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

Comments on same line as statement cause failure #18

Closed
leviathan747 opened this issue Apr 26, 2018 · 0 comments
Closed

Comments on same line as statement cause failure #18

leviathan747 opened this issue Apr 26, 2018 · 0 comments

Comments

@leviathan747
Copy link
Contributor

I am seeing parse failures using version 2.0.0 of the interpreter. The problem seems to be related to using comments on the same line as an "end" statement. I've seen the problem with loops, conditionals, and functions. I'm not sure if it affects other places. The following is a reproducible case:

.if ( true )
  .print "foo"
.end if .// printing foo
.print "bar"

giving the error:

rsl.parse.ParseException: invalid token 'PRINTTOK' at /Users/levi/xtuml/m6130.2018-04-25-1704_10129-build/BridgePoint.app/Contents/Eclipse/tools/mc/bin/test.arc:4

This same case passes with version 2.0.0b1

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