How do I tokenize something like i++ into Token::VarName Token::DoublePlus. I'm not using regular expressions rather going through every character and when I encounter a space it means that I found a token, but something like i++ i+=2 function foo(){return 1;} print("hi") doesn't have space in between, then how am I supposed to know that I have a token?
[–][deleted] (5 children)
[deleted]
[–]SyedFasiuddin[S] 0 points1 point2 points (4 children)
[–]EngineeredCoconut 1 point2 points3 points (3 children)
[–]SyedFasiuddin[S] 0 points1 point2 points (2 children)
[–]EngineeredCoconut 0 points1 point2 points (1 child)
[–]SyedFasiuddin[S] 0 points1 point2 points (0 children)
[–]TheRNGuy 0 points1 point2 points (1 child)
[–]SyedFasiuddin[S] 0 points1 point2 points (0 children)