implement copy paste
This commit is contained in:
parent
39a229bf21
commit
ec49c47b39
14 changed files with 580 additions and 234 deletions
|
|
@ -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,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue