Skip to content

Commit

Permalink
Fixes parsing of TIME$ in as PRINT parameter.
Browse files Browse the repository at this point in the history
The parser was interpreting TIME$ as numeric "TIME", so we now check
that after TIME there is no "$" symbol.
  • Loading branch information
dmsc committed Sep 26, 2020
1 parent d29c247 commit 1c62f50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion peg/basic-base.peg
Expand Up @@ -472,7 +472,7 @@ UnitExpr = ConstNum
| RAND r:ParNumExpr { $$ = ex_bin(0,r,TOK_RAND); }
| TRUNC r:ParNumExpr { $$ = ex_bin(0,r,TOK_TRUNC); }
| UINSTR r:ParInstrExpr { $$ = ex_bin(0,r,TOK_UINSTR); }
| TIME { $$ = ex_bin(0,0,TOK_TIME); }
| TIME !'$' { $$ = ex_bin(0,0,TOK_TIME); }
| ERR { $$ = ex_bin(0,0,TOK_ERR); }
| ERL { $$ = ex_bin(0,0,TOK_ERL); }
| AssignVarNum
Expand Down

0 comments on commit 1c62f50

Please sign in to comment.