]> granicus.if.org Git - re2c/commit
Pass unquoted strings to parsing functions.
authorUlya Trofimovich <skvadrik@gmail.com>
Thu, 14 May 2015 12:58:29 +0000 (13:58 +0100)
committerUlya Trofimovich <skvadrik@gmail.com>
Thu, 14 May 2015 12:58:29 +0000 (13:58 +0100)
commit957681c7364c8a862af2a63d107d130511db5519
treef8530ce7faca10d8866ec3942742b23390d847cf
parentc66bbe0cee01711e4c1a22016e0df0e230f98195
Pass unquoted strings to parsing functions.

In most cases re2c accepts single-quoted or double-quoted strings
in regexp specifications, but if flex-like syntax if enabled, then
re2c accepts unquoted strings.

Before this commit, functions that parse strings into regexps
expected quoted strings, and we had to add quotes in case of
flex-like syntax. That was very inconvenient and in fact
unnecessary, since the first thing parsing functions do is get rid
of quotes.
re2c/bootstrap/scanner_lex.cc
re2c/src/dfa/actions.cc
re2c/src/parse/scanner.cc
re2c/src/parse/scanner.h
re2c/src/parse/scanner_lex.re