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

Parser consumes EOL when parsing DATA statements #14

Open
mgr-inz-rafal opened this issue Jun 6, 2018 · 0 comments
Open

Parser consumes EOL when parsing DATA statements #14

mgr-inz-rafal opened this issue Jun 6, 2018 · 0 comments

Comments

@mgr-inz-rafal
Copy link
Owner

This (correct) BASIC code causes parsing error:

10 DATA 10, 20, 30

Error:

*** LINE 10 ***
DATA ELEMENT (10)
DATA ELEMENT ( 20)
DATA ELEMENT ( 30)
Parsing failed

However, adding simple PRINT statement satisfies the parser:

10 DATA 10, 20, 30
20 PRINT 1
*** LINE 10 ***
DATA ELEMENT (10)
DATA ELEMENT ( 20)
DATA ELEMENT ( 30)

*** LINE 20 ***
PRINT
INTEGER: 1
PRINT EXPRESSION
PRINT NEW LINE: 1
Parsing succeeded

Start the investigation here:

raw_data_element = qi::no_skip[*(~qi::char_(",") -qi::eol)]
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