Open jldav1d opened 3 weeks ago
the issue might've been because "\" isn't in any symbol list. I've put it into the "invalid_symbols" category. Will this conflict with anything? Do we use \ for anything other than withing text?
Will this conflict with anything?
Nope, I don't think so.
Do we use \ for anything other than withing text?
As far as i know, no. But "\", based on our document, is used to display "\" onto the screen. So another thing to check if it works on the Lexer.
Code:
\\
This code produces an infinite loop, causing the whole compiler to crash
After tinkering with the source code using the VS code debugger with breakpoints. It may be a bug within the get_symbol function which doesn't return the remaining characters when the input is the code above.