-
Notifications
You must be signed in to change notification settings - Fork 311
Issue with the io Lexer #9
Copy link
Copy link
Closed
Labels
bugSomething isn't working as intendedSomething isn't working as intendedgood first issueApproachable for new contributorsApproachable for new contributorsparserLexer, parser, operator shufflingLexer, parser, operator shuffling
Metadata
Metadata
Assignees
Labels
bugSomething isn't working as intendedSomething isn't working as intendedgood first issueApproachable for new contributorsApproachable for new contributorsparserLexer, parser, operator shufflingLexer, parser, operator shuffling
I found an issue when passing the string "()", "[]" or "{}" to Compiler tokensForString. The first token returned has its line slot set to 0.
When i pass any other string, such as "Foo bar()", the first token has the line slot set to one.
The following command should return true
Compiler tokensForString("()") at(0) line == Compiler tokensForString("a") at(0) line