add mark to parser rule

This commit is contained in:
Tan, Kian-ting 2023-09-10 23:48:59 +08:00
parent 6f2e788329
commit e8f894d994

View file

@ -52,7 +52,7 @@ COMPAREE ::= FAC| (FAC(ADD | SUB) FAC)
FAC ::= APPLY | (APPLIER (MUL | DIV) APPLY)
APPLY ::= "(" ID APPLYEE* ")" | APPLYEE
APPLYEE ::= REF | CONST | EXPR | FUNC
CONST ::= INT | STR | FLO | BOOL
* CONST ::= INT | STR | FLO | BOOL
BOOL ::= "true" | "false"
FUNC ::= FUNC_OPTION? ( ARGS? ) -> TYPE {BLOCK}
BLOCK ::= PROG (return ID |noReturn) ;