]> granicus.if.org Git - re2c/commit
Don't force mutations of immutable regexp AST.
authorUlya Trofimovich <skvadrik@gmail.com>
Fri, 6 May 2016 10:29:57 +0000 (11:29 +0100)
committerUlya Trofimovich <skvadrik@gmail.com>
Fri, 6 May 2016 10:45:04 +0000 (11:45 +0100)
commit362fc83f679bf642386f6cd47a202ede1ab8fd86
tree901bf43f5d195a032fd1587eea00b4a46df509cd
parent04b37b1bbcb290ff3a0f4e4ada395bbd6d2775c6
Don't force mutations of immutable regexp AST.

Regexp AST should stay immutable as it may be shared between
different conditions. This means we have to store tag indices
somwhere else.
17 files changed:
re2c/bootstrap/src/parse/lex.cc
re2c/bootstrap/src/parse/parser.cc
re2c/src/ir/ctx.h
re2c/src/ir/nfa/make_tags.cc
re2c/src/ir/nfa/nfa.cc
re2c/src/ir/nfa/nfa.h
re2c/src/ir/nfa/nullable.cc
re2c/src/ir/nfa/regexps2nfa.cc
re2c/src/ir/nfa/sizeof_regexps.cc
re2c/src/ir/regexp/encoding/range_suffix.cc
re2c/src/ir/regexp/encoding/utf16/utf16_regexp.cc
re2c/src/ir/regexp/encoding/utf8/utf8_regexp.cc
re2c/src/ir/regexp/regexp.cc
re2c/src/ir/regexp/regexp.h
re2c/src/ir/regexp/split_charset.cc
re2c/src/parse/lex.re
re2c/src/parse/parser.ypp