What is ‘Push Approach’ and ‘Pull Approach’ to parsing?
Basically, a push is when the parser says to some handler, “I have a foo, do something with it.” A pull is when the handler says to the parser, “give me the next foo.” Push: if (myChar == ‘(‘) handler.handleOpenParen(); // push the open paren to the handler Pull: Token token = parser.next(); // pull … Read more