]> granicus.if.org Git - re2c/commit
Use two tags instead of three for captures under iteration.
authorUlya Trofimovich <skvadrik@gmail.com>
Sun, 21 May 2017 09:07:58 +0000 (10:07 +0100)
committerUlya Trofimovich <skvadrik@gmail.com>
Sun, 21 May 2017 09:07:58 +0000 (10:07 +0100)
commitd62aa9f33d60f060d6bd5fb443ad4df465979abf
tree6738b2448d7ded9fe4e59e55cd6e78298006957c
parent5fdc5de763b3a3795a04e3596ab5021c707f81c9
Use two tags instead of three for captures under iteration.

Before we simplified POSIX disambiguation by inserting missing
captures, using three tags to represent captures under iteration
was the only way: we needed to guard where the first iteration starts,
where the last iteration starts and where the last iteration ends.
Therefore we used three tags: opening, closing and orbit.

Now that we insert missing pieces of capture hierarchy, we no longer
need a special opening tag for captures under iteration: there always
is a higher-priority tag that guards the start of the first iteration.

Massive test updates are mostly due to the fact that orbit tag is no
longer fixed (fixed tags go in the end): ~100 out of 147 tests.
Some other ~45 tests have two tag variables flipped. There are 4 tests
with non-trivial changes. All updated tests pass POSIX test
(/test/posix_captures/.run/__run.sh).
159 files changed:
re2c/src/code/emit_action.cc
re2c/src/re/ast_to_re.cc
re2c/src/re/default_tags.cc
re2c/src/re/fixed_tags.cc
re2c/src/re/tag.cc
re2c/src/re/tag.h
re2c/src/skeleton/generate_code.cc
re2c/src/skeleton/generate_data.cc
re2c/test/posix_captures/basic/01.i--flex-syntax.c
re2c/test/posix_captures/basic/02.i--flex-syntax.c
re2c/test/posix_captures/basic/14.i--flex-syntax.c
re2c/test/posix_captures/basic/19.i--flex-syntax.c
re2c/test/posix_captures/basic/20.i--flex-syntax.c
re2c/test/posix_captures/basic/23.i--flex-syntax.c
re2c/test/posix_captures/basic/24.i--flex-syntax.c
re2c/test/posix_captures/basic/36.i--flex-syntax.c
re2c/test/posix_captures/basic/37.i--flex-syntax.c
re2c/test/posix_captures/basic/38.i--flex-syntax.c
re2c/test/posix_captures/basic/39.i--flex-syntax.c
re2c/test/posix_captures/basic/40.i--flex-syntax.c
re2c/test/posix_captures/basic/42.i--flex-syntax.c
re2c/test/posix_captures/basic/43.i--flex-syntax.c
re2c/test/posix_captures/basic/46.i--flex-syntax.c
re2c/test/posix_captures/basic/59.i--flex-syntax.c
re2c/test/posix_captures/categorize/01.i--flex-syntax.c
re2c/test/posix_captures/categorize/02.i--flex-syntax.c
re2c/test/posix_captures/categorize/03.i--flex-syntax.c
re2c/test/posix_captures/categorize/06.i--flex-syntax.c
re2c/test/posix_captures/categorize/07.i--flex-syntax.c
re2c/test/posix_captures/categorize/08.i--flex-syntax.c
re2c/test/posix_captures/categorize/09.i--flex-syntax.c
re2c/test/posix_captures/exponential_epsilon_closure.i--posix-captures.c
re2c/test/posix_captures/glennfowler/08.i--flex-syntax.c
re2c/test/posix_captures/glennfowler/09.i--flex-syntax.c
re2c/test/posix_captures/glennfowler/13.i--flex-syntax.c
re2c/test/posix_captures/glennfowler/15.i--flex-syntax.c
re2c/test/posix_captures/glennfowler/16.i--flex-syntax.c
re2c/test/posix_captures/glennfowler/20.i--flex-syntax.c
re2c/test/posix_captures/glennfowler/25.i--flex-syntax.c
re2c/test/posix_captures/glennfowler/29.i--flex-syntax.c
re2c/test/posix_captures/glennfowler/33.i--flex-syntax.c
re2c/test/posix_captures/glennfowler/36.i--flex-syntax.c
re2c/test/posix_captures/glennfowler/41.i--flex-syntax.c
re2c/test/posix_captures/glennfowler/43.i--flex-syntax.c
re2c/test/posix_captures/glennfowler/44.i--flex-syntax.c
re2c/test/posix_captures/glennfowler/45.i--flex-syntax.c
re2c/test/posix_captures/implicit_grouping2.i--posix-captures.c
re2c/test/posix_captures/implicit_grouping3.i--posix-captures.c
re2c/test/posix_captures/leftmost1.i--posix-captures.c [new file with mode: 0644]
re2c/test/posix_captures/leftmost1.i--posix-captures.re [new file with mode: 0644]
re2c/test/posix_captures/leftmost2.i--posix-captures.c [new file with mode: 0644]
re2c/test/posix_captures/leftmost2.i--posix-captures.re [new file with mode: 0644]
re2c/test/posix_captures/nullsubexpr/01.i--flex-syntax.c
re2c/test/posix_captures/nullsubexpr/02.i--flex-syntax.c
re2c/test/posix_captures/nullsubexpr/03.i--flex-syntax.c
re2c/test/posix_captures/nullsubexpr/04.i--flex-syntax.c
re2c/test/posix_captures/nullsubexpr/05.i--flex-syntax.c
re2c/test/posix_captures/nullsubexpr/06.i--flex-syntax.c
re2c/test/posix_captures/nullsubexpr/07.i--flex-syntax.c
re2c/test/posix_captures/nullsubexpr/08.i--flex-syntax.c
re2c/test/posix_captures/nullsubexpr/09.i--flex-syntax.c
re2c/test/posix_captures/nullsubexpr/10.i--flex-syntax.c
re2c/test/posix_captures/nullsubexpr/11.i--flex-syntax.c
re2c/test/posix_captures/nullsubexpr/13.i--flex-syntax.c
re2c/test/posix_captures/nullsubexpr/14.i--flex-syntax.c
re2c/test/posix_captures/nullsubexpr/15.i--flex-syntax.c
re2c/test/posix_captures/nullsubexpr/16.i--flex-syntax.c
re2c/test/posix_captures/nullsubexpr/17.i--flex-syntax.c
re2c/test/posix_captures/nullsubexpr/18.i--flex-syntax.c
re2c/test/posix_captures/nullsubexpr/19.i--flex-syntax.c
re2c/test/posix_captures/nullsubexpr/20.i--flex-syntax.c
re2c/test/posix_captures/nullsubexpr/21.i--flex-syntax.c
re2c/test/posix_captures/osxbsdcritical/03.i--flex-syntax.c
re2c/test/posix_captures/osxbsdcritical/06.i--flex-syntax.c
re2c/test/posix_captures/other/01.i--flex-syntax.c
re2c/test/posix_captures/other/02.i--flex-syntax.c
re2c/test/posix_captures/other/07.i--flex-syntax.c
re2c/test/posix_captures/other/08.i--flex-syntax.c
re2c/test/posix_captures/other/09.i--flex-syntax.c
re2c/test/posix_captures/other/11.i--flex-syntax.c
re2c/test/posix_captures/other/12.i--flex-syntax.c
re2c/test/posix_captures/other/13.i--flex-syntax.c
re2c/test/posix_captures/other/14.i--flex-syntax.c
re2c/test/posix_captures/other/15.i--flex-syntax.c
re2c/test/posix_captures/other/16.i--flex-syntax.c
re2c/test/posix_captures/other/17.i--flex-syntax.c
re2c/test/posix_captures/other/18.i--flex-syntax.c
re2c/test/posix_captures/other/19.i--flex-syntax.c
re2c/test/posix_captures/other/20.i--flex-syntax.c
re2c/test/posix_captures/other/21.i--flex-syntax.c
re2c/test/posix_captures/other/22.i--flex-syntax.c
re2c/test/posix_captures/other/23.i--flex-syntax.c
re2c/test/posix_captures/other/24.i--flex-syntax.c
re2c/test/posix_captures/other/25.i--flex-syntax.c
re2c/test/posix_captures/other/26.i--flex-syntax.c
re2c/test/posix_captures/repetition/05.i--flex-syntax.c
re2c/test/posix_captures/repetition/06.i--flex-syntax.c
re2c/test/posix_captures/repetition/07.i--flex-syntax.c
re2c/test/posix_captures/repetition/12.i--flex-syntax.c
re2c/test/posix_captures/repetition/13.i--flex-syntax.c
re2c/test/posix_captures/repetition/14.i--flex-syntax.c
re2c/test/posix_captures/repetition/19.i--flex-syntax.c
re2c/test/posix_captures/repetition/20.i--flex-syntax.c
re2c/test/posix_captures/repetition/21.i--flex-syntax.c
re2c/test/posix_captures/repetition/26.i--flex-syntax.c
re2c/test/posix_captures/repetition/27.i--flex-syntax.c
re2c/test/posix_captures/repetition/28.i--flex-syntax.c
re2c/test/posix_captures/repetition/33.i--flex-syntax.c
re2c/test/posix_captures/repetition/34.i--flex-syntax.c
re2c/test/posix_captures/repetition/35.i--flex-syntax.c
re2c/test/posix_captures/repetition/40.i--flex-syntax.c
re2c/test/posix_captures/repetition/41.i--flex-syntax.c
re2c/test/posix_captures/repetition/42.i--flex-syntax.c
re2c/test/posix_captures/repetition/47.i--flex-syntax.c
re2c/test/posix_captures/repetition/48.i--flex-syntax.c
re2c/test/posix_captures/repetition/49.i--flex-syntax.c
re2c/test/posix_captures/repetition/50.i--flex-syntax.c
re2c/test/posix_captures/repetition/51.i--flex-syntax.c
re2c/test/posix_captures/repetition/52.i--flex-syntax.c
re2c/test/posix_captures/repetition/53.i--flex-syntax.c
re2c/test/posix_captures/repetition/54.i--flex-syntax.c
re2c/test/posix_captures/repetition/55.i--flex-syntax.c
re2c/test/posix_captures/repetition/56.i--flex-syntax.c
re2c/test/posix_captures/repetition/57.i--flex-syntax.c
re2c/test/posix_captures/repetition/58.i--flex-syntax.c
re2c/test/posix_captures/repetition/59.i--flex-syntax.c
re2c/test/posix_captures/repetition/60.i--flex-syntax.c
re2c/test/posix_captures/repetition/61.i--flex-syntax.c
re2c/test/posix_captures/repetition/62.i--flex-syntax.c
re2c/test/posix_captures/repetition/63.i--flex-syntax.c
re2c/test/posix_captures/repetition/64.i--flex-syntax.c
re2c/test/posix_captures/repetition/65.i--flex-syntax.c
re2c/test/posix_captures/repetition/66.i--flex-syntax.c
re2c/test/posix_captures/repetition/67.i--flex-syntax.c
re2c/test/posix_captures/repetition/68.i--flex-syntax.c
re2c/test/posix_captures/repetition/69.i--flex-syntax.c
re2c/test/posix_captures/repetition/70.i--flex-syntax.c
re2c/test/posix_captures/repetition/71.i--flex-syntax.c
re2c/test/posix_captures/repetition/72.i--flex-syntax.c
re2c/test/posix_captures/repetition/73.i--flex-syntax.c
re2c/test/posix_captures/repetition/74.i--flex-syntax.c
re2c/test/posix_captures/repetition/75.i--flex-syntax.c
re2c/test/posix_captures/repetition/76.i--flex-syntax.c
re2c/test/posix_captures/repetition/77.i--flex-syntax.c
re2c/test/posix_captures/repetition/78.i--flex-syntax.c
re2c/test/posix_captures/repetition/79.i--flex-syntax.c
re2c/test/posix_captures/repetition/80.i--flex-syntax.c
re2c/test/posix_captures/repetition/81.i--flex-syntax.c
re2c/test/posix_captures/repetition/82.i--flex-syntax.c
re2c/test/posix_captures/repetition/83.i--flex-syntax.c
re2c/test/posix_captures/repetition/84.i--flex-syntax.c
re2c/test/posix_captures/repetition/85.i--flex-syntax.c
re2c/test/posix_captures/repetition/86.i--flex-syntax.c
re2c/test/posix_captures/repetition/87.i--flex-syntax.c
re2c/test/posix_captures/repetition/88.i--flex-syntax.c
re2c/test/posix_captures/repetition/89.i--flex-syntax.c
re2c/test/posix_captures/repetition/90.i--flex-syntax.c
re2c/test/posix_captures/repetition/91.i--flex-syntax.c
re2c/test/posix_captures/uncomparable_bottoms.i--posix-captures.c