From: Tan Kian-ting Date: Sun, 10 Sep 2023 15:48:59 +0000 (+0800) Subject: add mark to parser rule X-Git-Url: https://git.kianting.info/?a=commitdiff_plain;h=e8f894d994f145be9ffef38cdf4fa8fc23ae9e00;p=clo add mark to parser rule --- diff --git a/parser_rule.txt b/parser_rule.txt index 65ad348..d7d1f9a 100644 --- a/parser_rule.txt +++ b/parser_rule.txt @@ -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) ;