Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • parseExpression believes that only + and - are valid operators, but the program also uses ==. Once the stream of tokens deviates from what the parser expects, parseStatement() returns null without advancing, and parseProgram spins in a loop, pushing nulls into the vector. Commented Oct 19, 2024 at 14:19
  • 1
    Instead of giving us hundreds of lines, try to make it on-point and minimal. Use gdb to figure out where it actually stucks, this will help us to help you. Commented Oct 20, 2024 at 11:37