csly: Unexpected Mode Result
Info
- Version: 3.5.0-alpha6
- OS: Windows 10
Lexer Enum
[Sugar("\"")]
[Push("defaultString")]
StartQuote,
[Sugar("\"")]
[Mode("defaultString")]
[Pop]
EndQuote,
[UpTo("\"")]
[Mode("defaultString")]
StringValue,
[Sugar(";")]
End,
[AlphaNumDashId]
Identifier,
[Sugar("=")]
Assign
Parser Rule
String Rule: STRING: StartQuote StringValue* EndQuote
Statement: statement: Identifier Assign STRING End
Program: program: statement*
Content
test = "3 3";
Output Result
Parser Error: unexpected EOF ('3 3 (line 0, column 8)'). Expecting StringValue, EndQuote, .
Tokens:
Identifier [test] @line 0, column 0 on channel 0
Assign [=] @line 0, column 5 on channel 0
StartQuote ["] @line 0, column 7 on channel 0
StringValue [3 3] @line 0, column 8 on channel 0
EndQuote ["] @line 0, column 11 on channel 0
End [;] @line 0, column 12 on channel 0
<<EOS>>
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 18 (18 by maintainers)
Commits related to this issue
- issue #495 unit test — committed to b3b00/csly by b3b00 2 years ago
- unit test #495 — committed to b3b00/csly by b3b00 2 years ago
- Merge pull request #496 from bdke/bugix/#495 Bugix/#495 Unit Test Reproducable — committed to b3b00/csly by b3b00 2 years ago
- #495 : debugging — committed to b3b00/csly by b3b00 2 years ago
- fix #495 — committed to b3b00/csly by b3b00 2 years ago
- Merge pull request #497 from b3b00/bugix/#495 Bugix/#495 — committed to b3b00/csly by b3b00 2 years ago
it is working now thanks a lots
Created pull request for reproducible case #496
this will create same error as my repo does