]> granicus.if.org Git - re2c/commit
Added ninja lexers to tests.
authorUlya Trofimovich <skvadrik@gmail.com>
Sun, 1 Sep 2019 09:03:48 +0000 (10:03 +0100)
committerUlya Trofimovich <skvadrik@gmail.com>
Sun, 1 Sep 2019 09:03:48 +0000 (10:03 +0100)
commit2ee9c50c058969f452be3ad9df9ab82b7e61b682
tree91222f0aca74cb9faa0f40d4748cc72f65462fba
parent94faf98935a5aff92dcb6900149c040727cc5858
Added ninja lexers to tests.

Note: ninja_lexer.ib.c differs from the original lexer in the ninja project,
because the latter was generated with re2c-0.16, which used slightly
different constructs for complex expressions:

Re2c-0.16 used generated something like this:

    ++YYCURSOR;
    if (yych = *YYCURSOR) ...

And the latest re2c generates something like this:

    yych = *++YYCYRSOR;
    if (yych) ...

The difference is insignificant.
test/real_world/ninja_depfile_parser.ib.c [new file with mode: 0644]
test/real_world/ninja_depfile_parser.ib.re [new file with mode: 0644]
test/real_world/ninja_lexer.ib.c [new file with mode: 0644]
test/real_world/ninja_lexer.ib.re [new file with mode: 0644]