]> granicus.if.org Git - re2c/commit
Split control flow codegen in two phases:
authorUlya Trofimovich <skvadrik@gmail.com>
Tue, 17 Mar 2015 16:00:52 +0000 (16:00 +0000)
committerUlya Trofimovich <skvadrik@gmail.com>
Tue, 17 Mar 2015 16:00:52 +0000 (16:00 +0000)
commitfa88d997f2780d0a5212f36b175816223650db6c
treeec5c75adbf63581793c282d5e6289831d55cd736
parent5c7d6b06f4d9469fe43c0af12aba3544f429b353
Split control flow codegen in two phases:

- First, re2c builds a complex structure where it stores
  all control flow codegen decisions: nested ifs or switches,
  bitmaps or computed gotos, etc.
- Second, this structure is traversed and code is generated.

This differentiation is necessary to compute some statistics
(e.g. used labels) in advance, before code generation.
re2c/Makefile.am
re2c/cases.cc [deleted file]
re2c/cases.h [deleted file]
re2c/code.cc
re2c/go.cc
re2c/go.h