Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow expressions in the REPL #70

Open
ldilley opened this issue Sep 12, 2023 · 0 comments
Open

Allow expressions in the REPL #70

ldilley opened this issue Sep 12, 2023 · 0 comments
Assignees
Labels
new feature Request something new
Milestone

Comments

@ldilley
Copy link
Member

ldilley commented Sep 12, 2023

Feature Description

  • 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).

@ldilley ldilley added the new feature Request something new label Sep 12, 2023
@ldilley ldilley added this to the 0.1.0 milestone Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature Request something new
Projects
Status: ToDo
Development

No branches or pull requests

2 participants