feat: base structure for getting a MultiDivert.

This commit is contained in:
mattia
2025-02-16 22:29:22 +01:00
parent 4f8e83da9d
commit 1947ebd372
11 changed files with 585 additions and 279 deletions

View File

@@ -13,19 +13,30 @@ story: topLevelStatements ;
*/
topLevelStatements:
contentText+
topLevelStatement+
;
topLevelStatement:
contentText
| multiDivert
;
knotLevelStatements:
contentText+
(contentText
| multiDivert
)+
;
stitchLevelStatements:
contentText+
(contentText
| multiDivert
)+
;
innerBlockLevelStatements:
contentText+
(contentText
| multiDivert
)+
;
/*
@@ -52,7 +63,10 @@ inlineLogic:
INLINE_LOGIC_START
WS?
innerLogic
// TODO: += and -= are disabled here (don't know why)
WS?
INLINE_LOGIC_END
// TODO: tags ftw
;
innerLogic:
@@ -97,7 +111,7 @@ expression:
// all possible symbols or word(s) for sequencing
sequenceTypeAnnotation:
SEQUENCE_TYPE_SYMBOL_ANNOTATION
op=SEQUENCE_TYPE_SYMBOL_ANNOTATION
| ONCE
| CYCLE
| SHUFFLE