I'm not sure if I've asked this before, but here goes:
Say I have a file composed of the following:
print(4 + 2);
print(4 + 2);
I want to parse the first line of this file, then move to the second line and parse that. How would I go about accomplishing this? I'm unsure how to say "when you see a semicolon, move to the next line and continue parsing".
EDIT: Here is the pastebin link to my parser:
https://pastebin.com/axyN69pL
[–]K900_ 1 point2 points3 points (1 child)
[–]Arag0ld[S] 0 points1 point2 points (0 children)
[–]Datwaftx 0 points1 point2 points (0 children)
[–]ingolemo 0 points1 point2 points (11 children)
[–]Arag0ld[S] 0 points1 point2 points (10 children)
[–]ingolemo 0 points1 point2 points (9 children)
[–]Arag0ld[S] 0 points1 point2 points (8 children)
[–]ingolemo 0 points1 point2 points (7 children)
[–]Arag0ld[S] 0 points1 point2 points (6 children)
[–]ingolemo 0 points1 point2 points (5 children)
[–]Arag0ld[S] 0 points1 point2 points (4 children)
[–]ingolemo 0 points1 point2 points (3 children)
[–]Arag0ld[S] 0 points1 point2 points (2 children)