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

Error on Parser::parse when a file doesn't have expressions (max 3 lines) #26

Open
DrSensor opened this issue Jul 1, 2019 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@DrSensor
Copy link
Owner

DrSensor commented Jul 1, 2019

Given this file then execute scrap code $file -f xstate:

3 lines empty.scl



will produce:

ERROR: can't parse
---
 --> examples/test.scl:3:1
  |
3 | 
  | ^---
  |
  = expected expression
---
3 lines with comment.scl
// A -> B @ Click
// A <-> B @ Toggle
// ->> B @ Click

will produce:

ERROR: can't parse
---
 --> examples/test.scl:3:17
  |
3 | // ->> B @ Click
  |                 ^---
  |
  = expected expression
---
end with with comment.scl
// A -> B @ Click

// ->> B @ Click

will produce:

ERROR: can't parse
---
 --> examples/test.scl:3:17
  |
3 | // ->> B @ Click
  |                 ^---
  |
  = expected expression
---
end with with empty line.scl
// A -> B @ Click
// ->> B @ Click

will produce:

ERROR: can't parse
---
 --> examples/test.scl:3:1
  |
3 | 
  | ^---
  |
  = expected expression
---
@DrSensor DrSensor added the bug Something isn't working label Jul 1, 2019
@DrSensor DrSensor added this to the v2.0-dev milestone Jul 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant