You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow expressions such as 1 + 2 or 1 > 0 in the REPL without an identifier and assignment operator. Currently, in interactive mode, the parser spits the following error rather than evaluate each expression (expected output below should be 3 and true):
> 1 + 2
Parsing error: [1] Expected a statement, got Int
> 1 > 0
Parsing error: [1] Expected a statement, got Int
Perhaps a relaxed mode could be added to cct_new_parser() when using a string lexer (and not file based).
The text was updated successfully, but these errors were encountered:
Feature Description
1 + 2
or1 > 0
in the REPL without an identifier and assignment operator. Currently, in interactive mode, the parser spits the following error rather than evaluate each expression (expected output below should be3
andtrue
):Perhaps a relaxed mode could be added to
cct_new_parser()
when using a string lexer (and not file based).The text was updated successfully, but these errors were encountered: