]> granicus.if.org Git - re2c/commit
Buffer statements into a list to avoid complex pre-counting.
authorUlya Trofimovich <skvadrik@gmail.com>
Wed, 5 Oct 2016 20:56:58 +0000 (21:56 +0100)
committerUlya Trofimovich <skvadrik@gmail.com>
Wed, 5 Oct 2016 20:56:58 +0000 (21:56 +0100)
commit50386cb05a2aa55f37c214df4af90b1f6c1d6e4c
tree9ff4b8eed66c2ea63108f1e5bff4ce62963d5898
parent2b7aec358e324999d30520c542414591a2838710
Buffer statements into a list to avoid complex pre-counting.

Formatting of 'if' or 'case' statements depends on the number of
statements in the correspoonding code block: multi-statement blockss
must be wrapped in braces or extra-tabulated.

Estimating the number of lines has never been particularly elegant,
but it gets worse every time we add possible new instructions to
transitions.
re2c/src/codegen/emit.h
re2c/src/codegen/emit_action.cc
re2c/src/codegen/go_emit.cc