]> granicus.if.org Git - re2c/commit
Delay expansion of counted repetition until NFA construction time.
authorUlya Trofimovich <skvadrik@gmail.com>
Fri, 3 Mar 2017 01:15:05 +0000 (01:15 +0000)
committerUlya Trofimovich <skvadrik@gmail.com>
Fri, 3 Mar 2017 01:15:05 +0000 (01:15 +0000)
commit7f337a2451c4df12af41527fdfb693ccace0dcbd
tree87fe9425d3788362367e5773eb93f8e65d6fdfa8
parent225ea5362d35c8de40438c769a64dce1daa1d06c
Delay expansion of counted repetition until NFA construction time.

This is necessary to avoid creating default tags for tags that
are duplicated by expansion of counted repetition. Default tags
should only be created if zero repetitions are acceptable; this case
is still expanded early.
re2c/src/ir/nfa/estimate_size.cc
re2c/src/ir/nfa/re_to_nfa.cc
re2c/src/ir/re/ast_to_re.cc
re2c/src/ir/re/default_tags.cc
re2c/src/ir/re/fixed_tags.cc
re2c/src/ir/re/nullable.cc
re2c/src/ir/re/re.h
re2c/src/ir/re/split_charset.cc