Earlier quoted context omitted.
> you are just consuming tokens from a stream. My guy... Do you think that parsers just like... concat tokens into tuples or something....??? Do you not understand that after lexing you have tokens (which are a "type") and AST node construction (an "operation") and that the grammar of a language is naturally a graph .... Like where else would you get the "recursion" from.... If that doesn't make sense I invite you to…
OK I might be wrong about the visitor pattern, but what I really did not like is to use the accept() and visitBlah() way to execute AST nodes: https://craftinginterpreters.com/representing-code.html#the-... I did continue reading the book (not the original author of that reply) but I do think it is distracting for newbies. I had to come back to this page over and over again to recollect memory about the pattern, beca…
Visitor thoroughly confuses me in the context of parsing (maybe in all contexts.)
visit and accept are not the verbs I want to be seeing in the code. I want to see then, or, and try.