Lexer
- Needed a shift counter, rather than a read counter, as ::token was lexing '-10d' into '-' and '-10d', which when evaluated is '--10d', which yields 10d.
This commit is contained in:
@@ -87,6 +87,7 @@ private:
|
||||
private:
|
||||
const std::string _input;
|
||||
std::string::size_type _i;
|
||||
std::string::size_type _shift_counter;
|
||||
int _n0;
|
||||
int _n1;
|
||||
int _n2;
|
||||
|
||||
Reference in New Issue
Block a user