doctrine / lexer

Base library for a lexer that can be used in Top-Down, Recursive Descent Parsers.
https://www.doctrine-project.org/projects/lexer.html
MIT License
11.07k stars 60 forks source link

Adds getTokenName method #8

Closed JordanAdams closed 7 years ago

JordanAdams commented 8 years ago

We're using this to get the shorthand token name for syntax error messages.

Essentially it's the same as getLiteral() only without the class name.