]> granicus.if.org Git - re2c/commit
Simplified tracking of fixed-length trailing contexts.
authorUlya Trofimovich <skvadrik@gmail.com>
Wed, 17 Feb 2016 16:12:59 +0000 (16:12 +0000)
committerUlya Trofimovich <skvadrik@gmail.com>
Wed, 17 Feb 2016 16:12:59 +0000 (16:12 +0000)
commit4c49568635af260c25f49a7bc4ba91ec70fdb7f6
tree979e6a75c4696bb4a89b009ad3c872cfef049de6
parent551154584ab3322b4f15f6da4ea70ebc041d8f6e
Simplified tracking of fixed-length trailing contexts.

Static (that is, of fixed length) trailing contexts don't need
recording context position with YYCTXMARKER and restoring it
back on successful match. They can be tracked simply by decreasing
input position by context length.
20 files changed:
re2c/src/codegen/emit_action.cc
re2c/src/codegen/input_api.cc
re2c/src/codegen/input_api.h
re2c/src/ir/nfa/nfa.cc
re2c/src/ir/regexp/regexp_rule.h
re2c/src/ir/skeleton/skeleton.cc
re2c/test/bug116.c
re2c/test/config10.c
re2c/test/config8.c
re2c/test/config9.b.c
re2c/test/ctx.b.c
re2c/test/ctx.c
re2c/test/ctx.s.c
re2c/test/modula.c
re2c/test/rexx.--empty-class(match-empty).c
re2c/test/rexx.--empty-class(match-none).c
re2c/test/rexx.c
re2c/test/scanner_re2c.bi.c
re2c/test/scanner_re2c_default.bi.c
re2c/test/strip_003.b.c