implement copy paste

This commit is contained in:
Joeri Exelmans 2025-10-15 13:53:49 +02:00
parent 39a229bf21
commit ec49c47b39
14 changed files with 580 additions and 234 deletions

View file

@ -1,4 +1,4 @@
export type ParsedText = TransitionLabel | Comment;
export type ParsedText = TransitionLabel | Comment | ParserError;
export type TransitionLabel = {
kind: "transitionLabel";
@ -14,6 +14,11 @@ export type Comment = {
text: string;
}
export type ParserError = {
kind: "parserError";
uid: string; // uid of the text node
}
export type Trigger = EventTrigger | AfterTrigger | EntryTrigger | ExitTrigger;
export type EventTrigger = {
@ -73,4 +78,10 @@ export type VarRef = {
export type Literal = {
kind: "literal";
value: any;
}
}
export type FunctionCall = {
kind: "call",
fn: VarRef,
param: Expression,
}