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

Support single line compound statements #1

Open
nya3jp opened this issue Oct 30, 2016 · 0 comments
Open

Support single line compound statements #1

nya3jp opened this issue Oct 30, 2016 · 0 comments

Comments

@nya3jp
Copy link
Owner

nya3jp commented Oct 30, 2016

For single-line compound statements, "end" should be put at the end of the line:

if a > 28: a = 3; end

In order to parse this correctly, we need more info from lexical analysis. Note that checking lineno is not enough to tell if it is a single-line statement due to logical lines. For example:

if a > 28: \
      a = 3; end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant