cwbaker / lalr

LALR(1) parser for C++
MIT License
76 stars 10 forks source link

Back-track to most recently matched token in lexer #18

Closed cwbaker closed 1 year ago

cwbaker commented 1 year ago

Back-tracks to the most recently matched symbol and lexeme if a run continues but doesn't match anoter symbol. Allows tokens that are prefixes of other longer tokens to be matched after attempting to match the longer token fails.