]> granicus.if.org Git - re2c/commit
Lexer: no need to have "{0,}" special case.
authorUlya Trofimovich <skvadrik@gmail.com>
Sun, 16 Aug 2015 19:57:29 +0000 (20:57 +0100)
committerUlya Trofimovich <skvadrik@gmail.com>
Sun, 16 Aug 2015 19:57:29 +0000 (20:57 +0100)
commit6d3c3f46510daa5aa9eda4f6be089a4305d73d22
tree544bd4978d345dfed6268c28f317be13a694b17b
parent030952a2204c165328bfb067de832214b3c12abf
Lexer: no need to have "{0,}" special case.

Now "{0,}" is handled by general case for counted repetition. Had to
fix test because of swapped alternatives in construction of regexps
of the form "r*" and "r{n,".

Added some tests for counted repetition.
re2c/bootstrap/src/parse/scanner_lex.cc
re2c/src/parse/scanner_lex.re
re2c/test/bug1390174.c
re2c/test/repeater2.c [new file with mode: 0644]
re2c/test/repeater2.re [new file with mode: 0644]
re2c/test/repeater_overflow.c [new file with mode: 0644]
re2c/test/repeater_overflow.re [new file with mode: 0644]