]> granicus.if.org Git - re2c/commit
Make skeleton a part of DFA.
authorUlya Trofimovich <skvadrik@gmail.com>
Wed, 9 Sep 2015 14:30:09 +0000 (15:30 +0100)
committerUlya Trofimovich <skvadrik@gmail.com>
Wed, 9 Sep 2015 14:30:09 +0000 (15:30 +0100)
commit4385e9d67fb7a64b7f6b4efb194a889d63309af4
treec25f482b22ac8f63a9cd1cc8cdc90b32697e34b3
parent6e63459dda7ffa257d3ccfd294a2010a950897c5
Make skeleton a part of DFA.

This let us create skeletom right after DFA creation (but befor DFA
has been mangled in different ways), but call skeleton methods any time.

Undefined control flow is now checked at the time of real code generation,
that's why all those tests that use '-r' changed: re2c stopped reporting
'rules:re2c' blocks and reports 'use:re2c' blocks instead.
20 files changed:
re2c/bootstrap/src/parse/parser.cc
re2c/src/codegen/emit_dfa.cc
re2c/src/codegen/skeleton/generate_code.cc
re2c/src/codegen/skeleton/skeleton.h
re2c/src/ir/bytecode/bytecode.cc
re2c/src/ir/bytecode/bytecode.h
re2c/src/ir/dfa/dfa.cc
re2c/src/ir/dfa/dfa.h
re2c/src/parse/parser.ypp
re2c/test/repeat-01.cgir.c
re2c/test/repeat-02.cgir.c
re2c/test/repeat-03.cgir.c
re2c/test/repeat-04.cgir.c
re2c/test/repeat-06.gir.c
re2c/test/repeat-07.gir.c
re2c/test/repeat-07_error.gir.c
re2c/test/reuse_conds_default_0.cgir.c
re2c/test/reuse_conds_default_1.cgir.c
re2c/test/reuse_conds_setup_0.cgir.c
re2c/test/reuse_conds_setup_1.cgir.c