Skip to content

Commit

Permalink
modify statements order
Browse files Browse the repository at this point in the history
  • Loading branch information
ytsao committed Dec 1, 2024
1 parent fce9c96 commit eedb050
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion abstract_interpreter/include/parser.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class AbstractInterpreterParser{
ASTNode parse(const std::string& input){
peg::parser parser(R"(
Program <- Statements*
Statements <- Block / PreCon / DeclareVar / Assignment / Increment / IfElse / WhileLoop / Comment
Statements <- DeclareVar / Assignment / Increment / IfElse / WhileLoop / Block / PreCon / Comment
Integer <- < [+-]? [0-9]+ >
Identifier <- < [a-zA-Z_][a-zA-Z0-9_]* >
SeqOp <- '+' / '-'
Expand Down

0 comments on commit eedb050

Please sign in to comment.