]> granicus.if.org Git - re2c/commit
Address skeleton nodes by indices rather than by pointers.
authorUlya Trofimovich <skvadrik@gmail.com>
Wed, 16 Mar 2016 09:41:02 +0000 (09:41 +0000)
committerUlya Trofimovich <skvadrik@gmail.com>
Wed, 16 Mar 2016 09:44:24 +0000 (09:44 +0000)
commitfffb5932ee52127e03b9f7f5ccca83a421d69061
treed9a4df39ff381505e40eaa2dc513148219655563
parentc0afcbf19a7e6437251c6f1a2dbb8cc41900c495
Address skeleton nodes by indices rather than by pointers.

This way it is more convenient to add various graph algorithms:
each algorithm can keep its own data in array indexed by skeleton
node numbers (instead of pushing all relevant data inside of the
node).
17 files changed:
re2c/Makefile.am
re2c/bootstrap/src/parse/lex.cc
re2c/bootstrap/src/parse/parser.cc
re2c/src/codegen/emit_action.cc
re2c/src/codegen/emit_dfa.cc
re2c/src/conf/warn.cc
re2c/src/conf/warn.h
re2c/src/ir/skeleton/control_flow.cc
re2c/src/ir/skeleton/generate_code.cc
re2c/src/ir/skeleton/generate_data.cc
re2c/src/ir/skeleton/maxlen.cc [deleted file]
re2c/src/ir/skeleton/maxpath.cc [new file with mode: 0644]
re2c/src/ir/skeleton/path.h
re2c/src/ir/skeleton/skeleton.cc
re2c/src/ir/skeleton/skeleton.h
re2c/src/ir/skeleton/unreachable_nullable.cc
re2c/src/parse/parser.ypp