Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: