Mercurial > ~dholland > hg > ag > index.cgi
view tests/agcl/parsifal/test1.syn @ 22:5581ef01f993
Regen all the AG output.
This also fixes the line number output in the tools
(cgbigen/helpgen/help2html), apparently because those files weren't
regenerated last go.
author | David A. Holland |
---|---|
date | Mon, 13 Jun 2022 00:06:39 -0400 |
parents | 13d2b8934445 |
children |
line wrap: on
line source
{ #include <stdio.h> } [ //event driven distinguish keywords {'a-z' + 'A-Z' + '0-9'} ] line $ -> "if", '(', ~(eol + '(')?..., eol =printf("if\n"); -> "ifx",'(', ~(eol + '(')?..., eol =printf("ifx\n"); -> other stuff, eol other stuff -> ~eol:c =printf("%c", c); -> other stuff, ~eol:c =printf("%c", c); eol = '\n' { int main(void) { /* int c; init_test2(); do { c = getchar(); PCB.input_code = c; test2(); } while ( c != '\n'); */ test1(); return 0; } }