]> granicus.if.org Git - re2c/commit
Parse unquoted flex-like strings in lexer.
authorUlya Trofimovich <skvadrik@gmail.com>
Wed, 19 Aug 2015 17:49:28 +0000 (18:49 +0100)
committerUlya Trofimovich <skvadrik@gmail.com>
Wed, 19 Aug 2015 17:49:28 +0000 (18:49 +0100)
commitcd4c7d830be98d7f957a084593bdeeac1b4f3496
treea2fd06575b07b6e51fc18dd915d0e9254a5c1dbd
parent0d316a3794ed3df64311c6c2b99cc69fa95500b8
Parse unquoted flex-like strings in lexer.

Such strings can only contain ASCII letters, digits and uderscore:
no escapes. So there's very little parsing to do: just map code units
directly to code points.
re2c/bootstrap/src/parse/scanner_lex.cc
re2c/src/ir/regexp/regexp.cc
re2c/src/parse/scanner.h
re2c/src/parse/scanner_lex.re