Hacker News new | ask | show | jobs
by mrkeen 334 days ago
Nope, you had it right.

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.

1 comments

Parsers "accept" or "reject" programs. It's completely standard language.
Alright, so where can I read more about the visitor pattern's "reject" method?
> all other tokens should flag an error

Ie the link I posted above