cwbaker / lalr

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

Improve whitespace handling #21

Closed cwbaker closed 1 year ago

cwbaker commented 1 year ago

Scan for whitespace until no whitespace token matches and reset the position to the start of scanning so that whitespace prefixes that are also valid tokens aren't skipped.