Compare commits
2 Commits
bc054afe82
...
57033c3452
| Author | SHA1 | Date |
|---|---|---|
|
|
57033c3452 | |
|
|
4bb8773d5d |
|
|
@ -248,8 +248,8 @@ list-tokens
|
|||
;
|
||||
|
||||
S-Expr-if
|
||||
: IF R-Value R-Value R-Value { std::printf("Parsed S-Expr-if -> IF R-Value R-Value R-Value\n"); }
|
||||
| IF R-Value R-Value { std::printf("Parsed S-Expr-if -> IF R-Value R-Value\n"); }
|
||||
: IF R-Value func-body-expr func-body-expr { std::printf("Parsed S-Expr-if -> IF R-Value func-body-expr func-body-expr\n"); }
|
||||
| IF R-Value func-body-expr { std::printf("Parsed S-Expr-if -> IF R-Value func-body-expr\n"); }
|
||||
;
|
||||
|
||||
S-Expr-loop
|
||||
|
|
@ -273,6 +273,7 @@ identifier-list
|
|||
|
||||
S-Expr-func-call
|
||||
: IDENTIFIER R-Value-list { std::printf("Parsed S-Expr-func-call -> IDENTIFIER R-Value-list\n"); }
|
||||
| IDENTIFIER { std::printf("Parsed S-Expr-func-call -> IDENTIFIER\n"); }
|
||||
;
|
||||
|
||||
%%
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ public:
|
|||
|
||||
using FlexLexer::yylex;
|
||||
virtual int yylex(
|
||||
DragonLisp::DLParser::semantic_type* const lval,
|
||||
DragonLisp::DLParser::semantic_type* lval,
|
||||
DragonLisp::DLParser::location_type* location,
|
||||
DragonLisp::DLDriver& drv
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue