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

Then you don't need the lexer to parse balanced parens. The job of the lexer is to turn

    ("Foo(" + bar)
into something like

    OpenParen String Op Identifier CloseParen
Then the (synyactical) parser takes over. This is pretty standard.


Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: