]> granicus.if.org Git - re2c/commit
Distinct restricted type for rule priority.
authorUlya Trofimovich <skvadrik@gmail.com>
Tue, 9 Jun 2015 14:28:58 +0000 (15:28 +0100)
committerUlya Trofimovich <skvadrik@gmail.com>
Tue, 9 Jun 2015 14:28:58 +0000 (15:28 +0100)
commitd2ca05e0032a299b52a36cf3563a9d3ecd3ac801
treeb3e2eee7921ec648cbd7f958a197f02c95ceda5c
parent7cea5109651304819dd5e18af933bf15f4a45761
Distinct restricted type for rule priority.

As with labels, try to control how rule priorities are created:
make a special counter that creates new priorities and disallow
everyone but this counter do it.
21 files changed:
re2c/Makefile.am
re2c/src/codegen/emit_action.cc
re2c/src/codegen/emit_dfa.cc
re2c/src/codegen/go_emit.cc
re2c/src/codegen/label.cc
re2c/src/codegen/label.h
re2c/src/codegen/output.cc
re2c/src/codegen/output.h
re2c/src/codegen/prepare_dfa.cc
re2c/src/codegen/skeleton/path.cc
re2c/src/codegen/skeleton/path.h
re2c/src/codegen/skeleton/skeleton.cc
re2c/src/codegen/skeleton/skeleton.h
re2c/src/dfa/actions.cc
re2c/src/dfa/dfa.cc
re2c/src/dfa/re.h
re2c/src/dfa/rule_rank.cc [new file with mode: 0644]
re2c/src/dfa/rule_rank.h [new file with mode: 0644]
re2c/src/dfa/state.h
re2c/src/parse/parser.ypp
re2c/src/util/counter.h [new file with mode: 0644]