[Pntool-developers] SF.net SVN: pntool:[176] translator
Brought to you by:
compaqdrew,
miordache
From: <the...@us...> - 2009-07-07 03:00:30
|
Revision: 176 http://pntool.svn.sourceforge.net/pntool/?rev=176&view=rev Author: thecodeweasel Date: 2009-07-07 03:00:22 +0000 (Tue, 07 Jul 2009) Log Message: ----------- Allowing multiple threads (processes, process instances, however you refer to them) to be declared on a single line. Example: WRITER writer1(p) w_group(p:2); Modified Paths: -------------- translator/docs/test.txt translator/pnscript.g translator/pnscriptLexer.c translator/pnscriptLexer.h translator/pnscriptParser.c translator/pnscriptParser.h Modified: translator/docs/test.txt =================================================================== --- translator/docs/test.txt 2009-07-07 02:56:50 UTC (rev 175) +++ translator/docs/test.txt 2009-07-07 03:00:22 UTC (rev 176) @@ -54,8 +54,7 @@ //################################################ READER r_group(p1:2, p3:1); READER reader1(p1b); -WRITER writer1(p); -WRITER w_group(p:2); +WRITER writer1(p) w_group(p:2); ARBITER arbiter(p1); //------------------------------------------------ sync reader1.t1 arbiter.t1; Modified: translator/pnscript.g =================================================================== --- translator/pnscript.g 2009-07-07 02:56:50 UTC (rev 175) +++ translator/pnscript.g 2009-07-07 03:00:22 UTC (rev 176) @@ -336,7 +336,7 @@ void** list; ASSOC_ARRAY* places; } - : proc=ID name=ID { + : proc=ID (name=ID { if(0 == strcasecmp((char*) $name.text->chars, (char*) "global")) { fprintf(stderr, "ERROR: Sorry, you cannot name a thread \"\%s\".\n", $name.text->chars); FAIL_AT($name); @@ -346,25 +346,11 @@ fprintf(stderr, "ERROR: You didn't declare a process type \%s...?\n", (char*) $proc.text->chars); FAIL_AT($proc); } - //when processes gets cleaned up by the ANTLR libraries, this list pointer will get - //deallocated. Really, it will. Don't try to free it here, because you can't free memory twice - threads->add(threads, (char*) $name.text->chars, list, NULL); - } -> $name - | proc=ID name=ID { - if(0 == strcasecmp((char*) $name.text->chars, (char*) "global")) { - fprintf(stderr, "ERROR: Sorry, you cannot name a thread \"\%s\".\n", $name.text->chars); - FAIL_AT($name); - } - list = copy_list((void**) processes->get(processes, (char*) $proc.text->chars)); - if(list == NULL) { - fprintf(stderr, "ERROR: You didn't declare a process type \%s...?\n", (char*) $proc.text->chars); - FAIL_AT($proc); - } places = (ASSOC_ARRAY*) list[kPLACES]; //when processes gets cleaned up by the ANTLR libraries, this list pointer will get //deallocated. Really, it will. Don't try to free it here, because you can't free memory twice threads->add(threads, (char*) $name.text->chars, list, NULL); - } '(' ids+=numbered_ID[places, $name.text] (',' ids+=numbered_ID[places, $name.text])* ')' -> ^($name $ids+); + } ('(' ids+=numbered_ID[places, $name.text] (',' ids+=numbered_ID[places, $name.text])* ')')?)+ -> ^($name $ids*)+; sync_def : SYNC_TOK (group_elements { int size; Modified: translator/pnscriptLexer.c =================================================================== --- translator/pnscriptLexer.c 2009-07-07 02:56:50 UTC (rev 175) +++ translator/pnscriptLexer.c 2009-07-07 03:00:22 UTC (rev 176) @@ -2,7 +2,7 @@ * This C source file was generated by $ANTLR version 3.1.2 * * - From the grammar source file : /Users/bion/projects/iordache/translator/pnscript.g - * - On : 2009-07-05 23:45:09 + * - On : 2009-07-06 21:52:27 * - for the lexer : pnscriptLexerLexer * * Editing it, at least manually, is not wise. * @@ -1295,7 +1295,7 @@ } // $ANTLR end T__48 -// Comes from: 576:2: ( 'extern' ) +// Comes from: 562:2: ( 'extern' ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start EXTERN @@ -1315,8 +1315,8 @@ _type = EXTERN; - // /Users/bion/projects/iordache/translator/pnscript.g:576:2: ( 'extern' ) - // /Users/bion/projects/iordache/translator/pnscript.g:576:4: 'extern' + // /Users/bion/projects/iordache/translator/pnscript.g:562:2: ( 'extern' ) + // /Users/bion/projects/iordache/translator/pnscript.g:562:4: 'extern' { MATCHS(lit_4); if (HASEXCEPTION()) @@ -1338,7 +1338,7 @@ } // $ANTLR end EXTERN -// Comes from: 578:2: ( 'process' ( 'type' )? ) +// Comes from: 564:2: ( 'process' ( 'type' )? ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start PROCESS @@ -1358,8 +1358,8 @@ _type = PROCESS; - // /Users/bion/projects/iordache/translator/pnscript.g:578:2: ( 'process' ( 'type' )? ) - // /Users/bion/projects/iordache/translator/pnscript.g:578:4: 'process' ( 'type' )? + // /Users/bion/projects/iordache/translator/pnscript.g:564:2: ( 'process' ( 'type' )? ) + // /Users/bion/projects/iordache/translator/pnscript.g:564:4: 'process' ( 'type' )? { MATCHS(lit_5); if (HASEXCEPTION()) @@ -1369,7 +1369,7 @@ - // /Users/bion/projects/iordache/translator/pnscript.g:578:14: ( 'type' )? + // /Users/bion/projects/iordache/translator/pnscript.g:564:14: ( 'type' )? { int alt1=2; { @@ -1382,7 +1382,7 @@ switch (alt1) { case 1: - // /Users/bion/projects/iordache/translator/pnscript.g:578:14: 'type' + // /Users/bion/projects/iordache/translator/pnscript.g:564:14: 'type' { MATCHS(lit_6); if (HASEXCEPTION()) @@ -1410,7 +1410,7 @@ } // $ANTLR end PROCESS -// Comes from: 580:2: ( 'build' ':' ) +// Comes from: 566:2: ( 'build' ':' ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start BUILD @@ -1430,8 +1430,8 @@ _type = BUILD; - // /Users/bion/projects/iordache/translator/pnscript.g:580:2: ( 'build' ':' ) - // /Users/bion/projects/iordache/translator/pnscript.g:580:4: 'build' ':' + // /Users/bion/projects/iordache/translator/pnscript.g:566:2: ( 'build' ':' ) + // /Users/bion/projects/iordache/translator/pnscript.g:566:4: 'build' ':' { MATCHS(lit_7); if (HASEXCEPTION()) @@ -1459,7 +1459,7 @@ } // $ANTLR end BUILD -// Comes from: 582:2: ( 'include' ':' ) +// Comes from: 568:2: ( 'include' ':' ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start INCLUDE @@ -1479,8 +1479,8 @@ _type = INCLUDE; - // /Users/bion/projects/iordache/translator/pnscript.g:582:2: ( 'include' ':' ) - // /Users/bion/projects/iordache/translator/pnscript.g:582:4: 'include' ':' + // /Users/bion/projects/iordache/translator/pnscript.g:568:2: ( 'include' ':' ) + // /Users/bion/projects/iordache/translator/pnscript.g:568:4: 'include' ':' { MATCHS(lit_8); if (HASEXCEPTION()) @@ -1508,7 +1508,7 @@ } // $ANTLR end INCLUDE -// Comes from: 585:2: ( '.PN:' ) +// Comes from: 571:2: ( '.PN:' ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start PNDEF @@ -1528,8 +1528,8 @@ _type = PNDEF; - // /Users/bion/projects/iordache/translator/pnscript.g:585:2: ( '.PN:' ) - // /Users/bion/projects/iordache/translator/pnscript.g:585:4: '.PN:' + // /Users/bion/projects/iordache/translator/pnscript.g:571:2: ( '.PN:' ) + // /Users/bion/projects/iordache/translator/pnscript.g:571:4: '.PN:' { MATCHS(lit_9); if (HASEXCEPTION()) @@ -1551,7 +1551,7 @@ } // $ANTLR end PNDEF -// Comes from: 587:2: ( 'places' ':' ) +// Comes from: 573:2: ( 'places' ':' ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start PLACES @@ -1571,8 +1571,8 @@ _type = PLACES; - // /Users/bion/projects/iordache/translator/pnscript.g:587:2: ( 'places' ':' ) - // /Users/bion/projects/iordache/translator/pnscript.g:587:4: 'places' ':' + // /Users/bion/projects/iordache/translator/pnscript.g:573:2: ( 'places' ':' ) + // /Users/bion/projects/iordache/translator/pnscript.g:573:4: 'places' ':' { MATCHS(lit_10); if (HASEXCEPTION()) @@ -1600,7 +1600,7 @@ } // $ANTLR end PLACES -// Comes from: 589:2: ( 'trans' ( 'itions' )? ':' ) +// Comes from: 575:2: ( 'trans' ( 'itions' )? ':' ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start TRANS @@ -1620,8 +1620,8 @@ _type = TRANS; - // /Users/bion/projects/iordache/translator/pnscript.g:589:2: ( 'trans' ( 'itions' )? ':' ) - // /Users/bion/projects/iordache/translator/pnscript.g:589:4: 'trans' ( 'itions' )? ':' + // /Users/bion/projects/iordache/translator/pnscript.g:575:2: ( 'trans' ( 'itions' )? ':' ) + // /Users/bion/projects/iordache/translator/pnscript.g:575:4: 'trans' ( 'itions' )? ':' { MATCHS(lit_11); if (HASEXCEPTION()) @@ -1631,7 +1631,7 @@ - // /Users/bion/projects/iordache/translator/pnscript.g:589:12: ( 'itions' )? + // /Users/bion/projects/iordache/translator/pnscript.g:575:12: ( 'itions' )? { int alt2=2; { @@ -1644,7 +1644,7 @@ switch (alt2) { case 1: - // /Users/bion/projects/iordache/translator/pnscript.g:589:12: 'itions' + // /Users/bion/projects/iordache/translator/pnscript.g:575:12: 'itions' { MATCHS(lit_12); if (HASEXCEPTION()) @@ -1678,7 +1678,7 @@ } // $ANTLR end TRANS -// Comes from: 591:2: ( '.code:' ) +// Comes from: 577:2: ( '.code:' ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start CODE @@ -1698,8 +1698,8 @@ _type = CODE; - // /Users/bion/projects/iordache/translator/pnscript.g:591:2: ( '.code:' ) - // /Users/bion/projects/iordache/translator/pnscript.g:591:4: '.code:' + // /Users/bion/projects/iordache/translator/pnscript.g:577:2: ( '.code:' ) + // /Users/bion/projects/iordache/translator/pnscript.g:577:4: '.code:' { MATCHS(lit_13); if (HASEXCEPTION()) @@ -1721,7 +1721,7 @@ } // $ANTLR end CODE -// Comes from: 593:2: ( 'select function' ) +// Comes from: 579:2: ( 'select function' ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start SELECT_DEF @@ -1741,8 +1741,8 @@ _type = SELECT_DEF; - // /Users/bion/projects/iordache/translator/pnscript.g:593:2: ( 'select function' ) - // /Users/bion/projects/iordache/translator/pnscript.g:593:4: 'select function' + // /Users/bion/projects/iordache/translator/pnscript.g:579:2: ( 'select function' ) + // /Users/bion/projects/iordache/translator/pnscript.g:579:4: 'select function' { MATCHS(lit_14); if (HASEXCEPTION()) @@ -1764,7 +1764,7 @@ } // $ANTLR end SELECT_DEF -// Comes from: 596:2: ( 'sync' ) +// Comes from: 582:2: ( 'sync' ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start SYNC_TOK @@ -1784,8 +1784,8 @@ _type = SYNC_TOK; - // /Users/bion/projects/iordache/translator/pnscript.g:596:2: ( 'sync' ) - // /Users/bion/projects/iordache/translator/pnscript.g:596:4: 'sync' + // /Users/bion/projects/iordache/translator/pnscript.g:582:2: ( 'sync' ) + // /Users/bion/projects/iordache/translator/pnscript.g:582:4: 'sync' { MATCHS(lit_15); if (HASEXCEPTION()) @@ -1807,7 +1807,7 @@ } // $ANTLR end SYNC_TOK -// Comes from: 598:2: ( 'start' ) +// Comes from: 584:2: ( 'start' ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start START @@ -1827,8 +1827,8 @@ _type = START; - // /Users/bion/projects/iordache/translator/pnscript.g:598:2: ( 'start' ) - // /Users/bion/projects/iordache/translator/pnscript.g:598:4: 'start' + // /Users/bion/projects/iordache/translator/pnscript.g:584:2: ( 'start' ) + // /Users/bion/projects/iordache/translator/pnscript.g:584:4: 'start' { MATCHS(lit_16); if (HASEXCEPTION()) @@ -1850,7 +1850,7 @@ } // $ANTLR end START -// Comes from: 601:2: ( '.constraints:' ) +// Comes from: 587:2: ( '.constraints:' ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start CONSTRAINTS @@ -1870,8 +1870,8 @@ _type = CONSTRAINTS; - // /Users/bion/projects/iordache/translator/pnscript.g:601:2: ( '.constraints:' ) - // /Users/bion/projects/iordache/translator/pnscript.g:601:4: '.constraints:' + // /Users/bion/projects/iordache/translator/pnscript.g:587:2: ( '.constraints:' ) + // /Users/bion/projects/iordache/translator/pnscript.g:587:4: '.constraints:' { MATCHS(lit_17); if (HASEXCEPTION()) @@ -1893,7 +1893,7 @@ } // $ANTLR end CONSTRAINTS -// Comes from: 603:2: ( '&&' | 'and' | 'AND' ) +// Comes from: 589:2: ( '&&' | 'and' | 'AND' ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start AND_OP @@ -1914,7 +1914,7 @@ { - // /Users/bion/projects/iordache/translator/pnscript.g:603:2: ( '&&' | 'and' | 'AND' ) + // /Users/bion/projects/iordache/translator/pnscript.g:589:2: ( '&&' | 'and' | 'AND' ) ANTLR3_UINT32 alt3; @@ -1952,7 +1952,7 @@ switch (alt3) { case 1: - // /Users/bion/projects/iordache/translator/pnscript.g:603:4: '&&' + // /Users/bion/projects/iordache/translator/pnscript.g:589:4: '&&' { MATCHS(lit_18); if (HASEXCEPTION()) @@ -1965,7 +1965,7 @@ } break; case 2: - // /Users/bion/projects/iordache/translator/pnscript.g:603:9: 'and' + // /Users/bion/projects/iordache/translator/pnscript.g:589:9: 'and' { MATCHS(lit_19); if (HASEXCEPTION()) @@ -1978,7 +1978,7 @@ } break; case 3: - // /Users/bion/projects/iordache/translator/pnscript.g:603:15: 'AND' + // /Users/bion/projects/iordache/translator/pnscript.g:589:15: 'AND' { MATCHS(lit_20); if (HASEXCEPTION()) @@ -2003,7 +2003,7 @@ } // $ANTLR end AND_OP -// Comes from: 605:2: ( '||' | 'or' | 'OR' ) +// Comes from: 591:2: ( '||' | 'or' | 'OR' ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start OR_OP @@ -2024,7 +2024,7 @@ { - // /Users/bion/projects/iordache/translator/pnscript.g:605:2: ( '||' | 'or' | 'OR' ) + // /Users/bion/projects/iordache/translator/pnscript.g:591:2: ( '||' | 'or' | 'OR' ) ANTLR3_UINT32 alt4; @@ -2062,7 +2062,7 @@ switch (alt4) { case 1: - // /Users/bion/projects/iordache/translator/pnscript.g:605:4: '||' + // /Users/bion/projects/iordache/translator/pnscript.g:591:4: '||' { MATCHS(lit_21); if (HASEXCEPTION()) @@ -2075,7 +2075,7 @@ } break; case 2: - // /Users/bion/projects/iordache/translator/pnscript.g:605:9: 'or' + // /Users/bion/projects/iordache/translator/pnscript.g:591:9: 'or' { MATCHS(lit_22); if (HASEXCEPTION()) @@ -2088,7 +2088,7 @@ } break; case 3: - // /Users/bion/projects/iordache/translator/pnscript.g:605:14: 'OR' + // /Users/bion/projects/iordache/translator/pnscript.g:591:14: 'OR' { MATCHS(lit_23); if (HASEXCEPTION()) @@ -2113,7 +2113,7 @@ } // $ANTLR end OR_OP -// Comes from: 607:2: ( '<=' ) +// Comes from: 593:2: ( '<=' ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start EQ_OP @@ -2133,8 +2133,8 @@ _type = EQ_OP; - // /Users/bion/projects/iordache/translator/pnscript.g:607:2: ( '<=' ) - // /Users/bion/projects/iordache/translator/pnscript.g:607:4: '<=' + // /Users/bion/projects/iordache/translator/pnscript.g:593:2: ( '<=' ) + // /Users/bion/projects/iordache/translator/pnscript.g:593:4: '<=' { MATCHS(lit_24); if (HASEXCEPTION()) @@ -2156,7 +2156,7 @@ } // $ANTLR end EQ_OP -// Comes from: 609:2: ( '*' ) +// Comes from: 595:2: ( '*' ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start MULT @@ -2176,8 +2176,8 @@ _type = MULT; - // /Users/bion/projects/iordache/translator/pnscript.g:609:2: ( '*' ) - // /Users/bion/projects/iordache/translator/pnscript.g:609:4: '*' + // /Users/bion/projects/iordache/translator/pnscript.g:595:2: ( '*' ) + // /Users/bion/projects/iordache/translator/pnscript.g:595:4: '*' { MATCHC('*'); if (HASEXCEPTION()) @@ -2198,7 +2198,7 @@ } // $ANTLR end MULT -// Comes from: 611:2: ( 'live:' ) +// Comes from: 597:2: ( 'live:' ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start LIVE @@ -2218,8 +2218,8 @@ _type = LIVE; - // /Users/bion/projects/iordache/translator/pnscript.g:611:2: ( 'live:' ) - // /Users/bion/projects/iordache/translator/pnscript.g:611:4: 'live:' + // /Users/bion/projects/iordache/translator/pnscript.g:597:2: ( 'live:' ) + // /Users/bion/projects/iordache/translator/pnscript.g:597:4: 'live:' { MATCHS(lit_25); if (HASEXCEPTION()) @@ -2241,7 +2241,7 @@ } // $ANTLR end LIVE -// Comes from: 612:5: ( 'all' | 'All' | 'ALL' ) +// Comes from: 598:5: ( 'all' | 'All' | 'ALL' ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start ALL @@ -2262,7 +2262,7 @@ { - // /Users/bion/projects/iordache/translator/pnscript.g:612:5: ( 'all' | 'All' | 'ALL' ) + // /Users/bion/projects/iordache/translator/pnscript.g:598:5: ( 'all' | 'All' | 'ALL' ) ANTLR3_UINT32 alt5; @@ -2318,7 +2318,7 @@ switch (alt5) { case 1: - // /Users/bion/projects/iordache/translator/pnscript.g:612:7: 'all' + // /Users/bion/projects/iordache/translator/pnscript.g:598:7: 'all' { MATCHS(lit_26); if (HASEXCEPTION()) @@ -2331,7 +2331,7 @@ } break; case 2: - // /Users/bion/projects/iordache/translator/pnscript.g:612:13: 'All' + // /Users/bion/projects/iordache/translator/pnscript.g:598:13: 'All' { MATCHS(lit_27); if (HASEXCEPTION()) @@ -2344,7 +2344,7 @@ } break; case 3: - // /Users/bion/projects/iordache/translator/pnscript.g:612:19: 'ALL' + // /Users/bion/projects/iordache/translator/pnscript.g:598:19: 'ALL' { MATCHS(lit_28); if (HASEXCEPTION()) @@ -2369,7 +2369,7 @@ } // $ANTLR end ALL -// Comes from: 614:2: ( 'uncontrollable: ' ) +// Comes from: 600:2: ( 'uncontrollable: ' ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start UNCONTROL @@ -2389,8 +2389,8 @@ _type = UNCONTROL; - // /Users/bion/projects/iordache/translator/pnscript.g:614:2: ( 'uncontrollable: ' ) - // /Users/bion/projects/iordache/translator/pnscript.g:614:4: 'uncontrollable: ' + // /Users/bion/projects/iordache/translator/pnscript.g:600:2: ( 'uncontrollable: ' ) + // /Users/bion/projects/iordache/translator/pnscript.g:600:4: 'uncontrollable: ' { MATCHS(lit_29); if (HASEXCEPTION()) @@ -2412,7 +2412,7 @@ } // $ANTLR end UNCONTROL -// Comes from: 616:2: ( 'unobservable: ' ) +// Comes from: 602:2: ( 'unobservable: ' ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start UNOBSERVE @@ -2432,8 +2432,8 @@ _type = UNOBSERVE; - // /Users/bion/projects/iordache/translator/pnscript.g:616:2: ( 'unobservable: ' ) - // /Users/bion/projects/iordache/translator/pnscript.g:616:4: 'unobservable: ' + // /Users/bion/projects/iordache/translator/pnscript.g:602:2: ( 'unobservable: ' ) + // /Users/bion/projects/iordache/translator/pnscript.g:602:4: 'unobservable: ' { MATCHS(lit_30); if (HASEXCEPTION()) @@ -2455,7 +2455,7 @@ } // $ANTLR end UNOBSERVE -// Comes from: 619:2: ( 'print' ) +// Comes from: 605:2: ( 'print' ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start PRINT @@ -2475,8 +2475,8 @@ _type = PRINT; - // /Users/bion/projects/iordache/translator/pnscript.g:619:2: ( 'print' ) - // /Users/bion/projects/iordache/translator/pnscript.g:619:4: 'print' + // /Users/bion/projects/iordache/translator/pnscript.g:605:2: ( 'print' ) + // /Users/bion/projects/iordache/translator/pnscript.g:605:4: 'print' { MATCHS(lit_31); if (HASEXCEPTION()) @@ -2498,7 +2498,7 @@ } // $ANTLR end PRINT -// Comes from: 624:2: ( '{' ( CODE_BLOCK | STRING | ~ ( '{' | '}' | '\\\"' | '\\'' ) )* '}' ) +// Comes from: 610:2: ( '{' ( CODE_BLOCK | STRING | ~ ( '{' | '}' | '\\\"' | '\\'' ) )* '}' ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start CODE_BLOCK @@ -2518,8 +2518,8 @@ _type = CODE_BLOCK; - // /Users/bion/projects/iordache/translator/pnscript.g:624:2: ( '{' ( CODE_BLOCK | STRING | ~ ( '{' | '}' | '\\\"' | '\\'' ) )* '}' ) - // /Users/bion/projects/iordache/translator/pnscript.g:624:4: '{' ( CODE_BLOCK | STRING | ~ ( '{' | '}' | '\\\"' | '\\'' ) )* '}' + // /Users/bion/projects/iordache/translator/pnscript.g:610:2: ( '{' ( CODE_BLOCK | STRING | ~ ( '{' | '}' | '\\\"' | '\\'' ) )* '}' ) + // /Users/bion/projects/iordache/translator/pnscript.g:610:4: '{' ( CODE_BLOCK | STRING | ~ ( '{' | '}' | '\\\"' | '\\'' ) )* '}' { MATCHC('{'); if (HASEXCEPTION()) @@ -2528,7 +2528,7 @@ } - // /Users/bion/projects/iordache/translator/pnscript.g:624:8: ( CODE_BLOCK | STRING | ~ ( '{' | '}' | '\\\"' | '\\'' ) )* + // /Users/bion/projects/iordache/translator/pnscript.g:610:8: ( CODE_BLOCK | STRING | ~ ( '{' | '}' | '\\\"' | '\\'' ) )* for (;;) { @@ -2554,9 +2554,9 @@ switch (alt6) { case 1: - // /Users/bion/projects/iordache/translator/pnscript.g:624:10: CODE_BLOCK + // /Users/bion/projects/iordache/translator/pnscript.g:610:10: CODE_BLOCK { - /* 624:10: CODE_BLOCK */ + /* 610:10: CODE_BLOCK */ mCODE_BLOCK(ctx ); if (HASEXCEPTION()) { @@ -2567,9 +2567,9 @@ } break; case 2: - // /Users/bion/projects/iordache/translator/pnscript.g:624:23: STRING + // /Users/bion/projects/iordache/translator/pnscript.g:610:23: STRING { - /* 624:23: STRING */ + /* 610:23: STRING */ mSTRING(ctx ); if (HASEXCEPTION()) { @@ -2580,7 +2580,7 @@ } break; case 3: - // /Users/bion/projects/iordache/translator/pnscript.g:624:32: ~ ( '{' | '}' | '\\\"' | '\\'' ) + // /Users/bion/projects/iordache/translator/pnscript.g:610:32: ~ ( '{' | '}' | '\\\"' | '\\'' ) { if ( ((LA(1) >= 0x0000) && (LA(1) <= '!')) || ((LA(1) >= '#') && (LA(1) <= '&')) || ((LA(1) >= '(') && (LA(1) <= 'z')) || LA(1) == '|' || ((LA(1) >= '~') && (LA(1) <= 0xFFFF)) ) { @@ -2626,7 +2626,7 @@ } // $ANTLR end CODE_BLOCK -// Comes from: 627:2: ( '\\'' ( CHAR_ESC | ~ ( '\\\\' | '\\'' ) )* '\\'' | '\\\"' ( CHAR_ESC | ~ ( '\\\\' | '\\\"' ) )* '\\\"' ) +// Comes from: 613:2: ( '\\'' ( CHAR_ESC | ~ ( '\\\\' | '\\'' ) )* '\\'' | '\\\"' ( CHAR_ESC | ~ ( '\\\\' | '\\\"' ) )* '\\\"' ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start STRING @@ -2647,7 +2647,7 @@ { - // /Users/bion/projects/iordache/translator/pnscript.g:627:2: ( '\\'' ( CHAR_ESC | ~ ( '\\\\' | '\\'' ) )* '\\'' | '\\\"' ( CHAR_ESC | ~ ( '\\\\' | '\\\"' ) )* '\\\"' ) + // /Users/bion/projects/iordache/translator/pnscript.g:613:2: ( '\\'' ( CHAR_ESC | ~ ( '\\\\' | '\\'' ) )* '\\'' | '\\\"' ( CHAR_ESC | ~ ( '\\\\' | '\\\"' ) )* '\\\"' ) ANTLR3_UINT32 alt9; @@ -2680,7 +2680,7 @@ switch (alt9) { case 1: - // /Users/bion/projects/iordache/translator/pnscript.g:627:4: '\\'' ( CHAR_ESC | ~ ( '\\\\' | '\\'' ) )* '\\'' + // /Users/bion/projects/iordache/translator/pnscript.g:613:4: '\\'' ( CHAR_ESC | ~ ( '\\\\' | '\\'' ) )* '\\'' { MATCHC('\''); if (HASEXCEPTION()) @@ -2689,7 +2689,7 @@ } - // /Users/bion/projects/iordache/translator/pnscript.g:627:9: ( CHAR_ESC | ~ ( '\\\\' | '\\'' ) )* + // /Users/bion/projects/iordache/translator/pnscript.g:613:9: ( CHAR_ESC | ~ ( '\\\\' | '\\'' ) )* for (;;) { @@ -2711,9 +2711,9 @@ switch (alt7) { case 1: - // /Users/bion/projects/iordache/translator/pnscript.g:627:10: CHAR_ESC + // /Users/bion/projects/iordache/translator/pnscript.g:613:10: CHAR_ESC { - /* 627:10: CHAR_ESC */ + /* 613:10: CHAR_ESC */ mCHAR_ESC(ctx ); if (HASEXCEPTION()) { @@ -2724,7 +2724,7 @@ } break; case 2: - // /Users/bion/projects/iordache/translator/pnscript.g:627:19: ~ ( '\\\\' | '\\'' ) + // /Users/bion/projects/iordache/translator/pnscript.g:613:19: ~ ( '\\\\' | '\\'' ) { if ( ((LA(1) >= 0x0000) && (LA(1) <= '&')) || ((LA(1) >= '(') && (LA(1) <= '[')) || ((LA(1) >= ']') && (LA(1) <= 0xFFFF)) ) { @@ -2761,7 +2761,7 @@ } break; case 2: - // /Users/bion/projects/iordache/translator/pnscript.g:628:4: '\\\"' ( CHAR_ESC | ~ ( '\\\\' | '\\\"' ) )* '\\\"' + // /Users/bion/projects/iordache/translator/pnscript.g:614:4: '\\\"' ( CHAR_ESC | ~ ( '\\\\' | '\\\"' ) )* '\\\"' { MATCHC('\"'); if (HASEXCEPTION()) @@ -2770,7 +2770,7 @@ } - // /Users/bion/projects/iordache/translator/pnscript.g:628:9: ( CHAR_ESC | ~ ( '\\\\' | '\\\"' ) )* + // /Users/bion/projects/iordache/translator/pnscript.g:614:9: ( CHAR_ESC | ~ ( '\\\\' | '\\\"' ) )* for (;;) { @@ -2792,9 +2792,9 @@ switch (alt8) { case 1: - // /Users/bion/projects/iordache/translator/pnscript.g:628:10: CHAR_ESC + // /Users/bion/projects/iordache/translator/pnscript.g:614:10: CHAR_ESC { - /* 628:10: CHAR_ESC */ + /* 614:10: CHAR_ESC */ mCHAR_ESC(ctx ); if (HASEXCEPTION()) { @@ -2805,7 +2805,7 @@ } break; case 2: - // /Users/bion/projects/iordache/translator/pnscript.g:628:19: ~ ( '\\\\' | '\\\"' ) + // /Users/bion/projects/iordache/translator/pnscript.g:614:19: ~ ( '\\\\' | '\\\"' ) { if ( ((LA(1) >= 0x0000) && (LA(1) <= '!')) || ((LA(1) >= '#') && (LA(1) <= '[')) || ((LA(1) >= ']') && (LA(1) <= 0xFFFF)) ) { @@ -2854,7 +2854,7 @@ } // $ANTLR end STRING -// Comes from: 630:2: ( '\\\\\\'' | '\\\\\\\"' | '\\\\' ~ ( '\\'' | '\\\"' ) ) +// Comes from: 616:2: ( '\\\\\\'' | '\\\\\\\"' | '\\\\' ~ ( '\\'' | '\\\"' ) ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start CHAR_ESC @@ -2875,7 +2875,7 @@ { - // /Users/bion/projects/iordache/translator/pnscript.g:630:2: ( '\\\\\\'' | '\\\\\\\"' | '\\\\' ~ ( '\\'' | '\\\"' ) ) + // /Users/bion/projects/iordache/translator/pnscript.g:616:2: ( '\\\\\\'' | '\\\\\\\"' | '\\\\' ~ ( '\\'' | '\\\"' ) ) ANTLR3_UINT32 alt10; @@ -2931,7 +2931,7 @@ switch (alt10) { case 1: - // /Users/bion/projects/iordache/translator/pnscript.g:630:4: '\\\\\\'' + // /Users/bion/projects/iordache/translator/pnscript.g:616:4: '\\\\\\'' { MATCHS(lit_32); if (HASEXCEPTION()) @@ -2944,7 +2944,7 @@ } break; case 2: - // /Users/bion/projects/iordache/translator/pnscript.g:631:4: '\\\\\\\"' + // /Users/bion/projects/iordache/translator/pnscript.g:617:4: '\\\\\\\"' { MATCHS(lit_33); if (HASEXCEPTION()) @@ -2957,7 +2957,7 @@ } break; case 3: - // /Users/bion/projects/iordache/translator/pnscript.g:632:4: '\\\\' ~ ( '\\'' | '\\\"' ) + // /Users/bion/projects/iordache/translator/pnscript.g:618:4: '\\\\' ~ ( '\\'' | '\\\"' ) { MATCHC('\\'); if (HASEXCEPTION()) @@ -2995,7 +2995,7 @@ } // $ANTLR end CHAR_ESC -// Comes from: 635:2: ( '.' ) +// Comes from: 621:2: ( '.' ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start DOT @@ -3015,8 +3015,8 @@ _type = DOT; - // /Users/bion/projects/iordache/translator/pnscript.g:635:2: ( '.' ) - // /Users/bion/projects/iordache/translator/pnscript.g:635:4: '.' + // /Users/bion/projects/iordache/translator/pnscript.g:621:2: ( '.' ) + // /Users/bion/projects/iordache/translator/pnscript.g:621:4: '.' { MATCHC('.'); if (HASEXCEPTION()) @@ -3037,7 +3037,7 @@ } // $ANTLR end DOT -// Comes from: 637:2: ( '+' ) +// Comes from: 623:2: ( '+' ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start PLUS @@ -3057,8 +3057,8 @@ _type = PLUS; - // /Users/bion/projects/iordache/translator/pnscript.g:637:2: ( '+' ) - // /Users/bion/projects/iordache/translator/pnscript.g:637:4: '+' + // /Users/bion/projects/iordache/translator/pnscript.g:623:2: ( '+' ) + // /Users/bion/projects/iordache/translator/pnscript.g:623:4: '+' { MATCHC('+'); if (HASEXCEPTION()) @@ -3079,7 +3079,7 @@ } // $ANTLR end PLUS -// Comes from: 639:2: ( '-' ) +// Comes from: 625:2: ( '-' ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start MINUS @@ -3099,8 +3099,8 @@ _type = MINUS; - // /Users/bion/projects/iordache/translator/pnscript.g:639:2: ( '-' ) - // /Users/bion/projects/iordache/translator/pnscript.g:639:4: '-' + // /Users/bion/projects/iordache/translator/pnscript.g:625:2: ( '-' ) + // /Users/bion/projects/iordache/translator/pnscript.g:625:4: '-' { MATCHC('-'); if (HASEXCEPTION()) @@ -3121,7 +3121,7 @@ } // $ANTLR end MINUS -// Comes from: 641:2: ( ( '0' .. '9' )+ ) +// Comes from: 627:2: ( ( '0' .. '9' )+ ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start INT @@ -3141,10 +3141,10 @@ _type = INT; - // /Users/bion/projects/iordache/translator/pnscript.g:641:2: ( ( '0' .. '9' )+ ) - // /Users/bion/projects/iordache/translator/pnscript.g:641:5: ( '0' .. '9' )+ + // /Users/bion/projects/iordache/translator/pnscript.g:627:2: ( ( '0' .. '9' )+ ) + // /Users/bion/projects/iordache/translator/pnscript.g:627:5: ( '0' .. '9' )+ { - // /Users/bion/projects/iordache/translator/pnscript.g:641:5: ( '0' .. '9' )+ + // /Users/bion/projects/iordache/translator/pnscript.g:627:5: ( '0' .. '9' )+ { int cnt11=0; @@ -3164,7 +3164,7 @@ switch (alt11) { case 1: - // /Users/bion/projects/iordache/translator/pnscript.g:641:5: '0' .. '9' + // /Users/bion/projects/iordache/translator/pnscript.g:627:5: '0' .. '9' { MATCHRANGE('0', '9'); if (HASEXCEPTION()) @@ -3208,7 +3208,7 @@ } // $ANTLR end INT -// Comes from: 643:2: ( ( 'A' .. 'Z' | 'a' .. 'z' ) ( 'A' .. 'Z' | 'a' .. 'z' | '0' .. '9' | '_' )* ) +// Comes from: 629:2: ( ( 'A' .. 'Z' | 'a' .. 'z' ) ( 'A' .. 'Z' | 'a' .. 'z' | '0' .. '9' | '_' )* ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start ID @@ -3228,8 +3228,8 @@ _type = ID; - // /Users/bion/projects/iordache/translator/pnscript.g:643:2: ( ( 'A' .. 'Z' | 'a' .. 'z' ) ( 'A' .. 'Z' | 'a' .. 'z' | '0' .. '9' | '_' )* ) - // /Users/bion/projects/iordache/translator/pnscript.g:643:4: ( 'A' .. 'Z' | 'a' .. 'z' ) ( 'A' .. 'Z' | 'a' .. 'z' | '0' .. '9' | '_' )* + // /Users/bion/projects/iordache/translator/pnscript.g:629:2: ( ( 'A' .. 'Z' | 'a' .. 'z' ) ( 'A' .. 'Z' | 'a' .. 'z' | '0' .. '9' | '_' )* ) + // /Users/bion/projects/iordache/translator/pnscript.g:629:4: ( 'A' .. 'Z' | 'a' .. 'z' ) ( 'A' .. 'Z' | 'a' .. 'z' | '0' .. '9' | '_' )* { if ( ((LA(1) >= 'A') && (LA(1) <= 'Z')) || ((LA(1) >= 'a') && (LA(1) <= 'z')) ) { @@ -3246,7 +3246,7 @@ } - // /Users/bion/projects/iordache/translator/pnscript.g:643:24: ( 'A' .. 'Z' | 'a' .. 'z' | '0' .. '9' | '_' )* + // /Users/bion/projects/iordache/translator/pnscript.g:629:24: ( 'A' .. 'Z' | 'a' .. 'z' | '0' .. '9' | '_' )* for (;;) { @@ -3304,7 +3304,7 @@ } // $ANTLR end ID -// Comes from: 647:2: ( ( ';' )+ ) +// Comes from: 633:2: ( ( ';' )+ ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start SEMICOLON @@ -3324,10 +3324,10 @@ _type = SEMICOLON; - // /Users/bion/projects/iordache/translator/pnscript.g:647:2: ( ( ';' )+ ) - // /Users/bion/projects/iordache/translator/pnscript.g:647:4: ( ';' )+ + // /Users/bion/projects/iordache/translator/pnscript.g:633:2: ( ( ';' )+ ) + // /Users/bion/projects/iordache/translator/pnscript.g:633:4: ( ';' )+ { - // /Users/bion/projects/iordache/translator/pnscript.g:647:4: ( ';' )+ + // /Users/bion/projects/iordache/translator/pnscript.g:633:4: ( ';' )+ { int cnt13=0; @@ -3347,7 +3347,7 @@ switch (alt13) { case 1: - // /Users/bion/projects/iordache/translator/pnscript.g:647:4: ';' + // /Users/bion/projects/iordache/translator/pnscript.g:633:4: ';' { MATCHC(';'); if (HASEXCEPTION()) @@ -3391,7 +3391,7 @@ } // $ANTLR end SEMICOLON -// Comes from: 651:2: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ ) +// Comes from: 637:2: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start WS @@ -3411,10 +3411,10 @@ _type = WS; - // /Users/bion/projects/iordache/translator/pnscript.g:651:2: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ ) - // /Users/bion/projects/iordache/translator/pnscript.g:651:5: ( ' ' | '\\t' | '\\r' | '\\n' )+ + // /Users/bion/projects/iordache/translator/pnscript.g:637:2: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ ) + // /Users/bion/projects/iordache/translator/pnscript.g:637:5: ( ' ' | '\\t' | '\\r' | '\\n' )+ { - // /Users/bion/projects/iordache/translator/pnscript.g:651:5: ( ' ' | '\\t' | '\\r' | '\\n' )+ + // /Users/bion/projects/iordache/translator/pnscript.g:637:5: ( ' ' | '\\t' | '\\r' | '\\n' )+ { int cnt14=0; @@ -3489,7 +3489,7 @@ } // $ANTLR end WS -// Comes from: 654:2: ( '//' ( . )* '\\n' ) +// Comes from: 640:2: ( '//' ( . )* '\\n' ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start COMMENT @@ -3509,8 +3509,8 @@ _type = COMMENT; - // /Users/bion/projects/iordache/translator/pnscript.g:654:2: ( '//' ( . )* '\\n' ) - // /Users/bion/projects/iordache/translator/pnscript.g:654:5: '//' ( . )* '\\n' + // /Users/bion/projects/iordache/translator/pnscript.g:640:2: ( '//' ( . )* '\\n' ) + // /Users/bion/projects/iordache/translator/pnscript.g:640:5: '//' ( . )* '\\n' { MATCHS(lit_34); if (HASEXCEPTION()) @@ -3520,7 +3520,7 @@ - // /Users/bion/projects/iordache/translator/pnscript.g:654:10: ( . )* + // /Users/bion/projects/iordache/translator/pnscript.g:640:10: ( . )* for (;;) { @@ -3542,7 +3542,7 @@ switch (alt15) { case 1: - // /Users/bion/projects/iordache/translator/pnscript.g:654:10: . + // /Users/bion/projects/iordache/translator/pnscript.g:640:10: . { MATCHANY(); if (HASEXCEPTION()) @@ -3583,7 +3583,7 @@ } // $ANTLR end COMMENT -// Comes from: 657:2: ( '/*' ( . )* '*/' ) +// Comes from: 643:2: ( '/*' ( . )* '*/' ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start BLOCK_COMMENT @@ -3603,8 +3603,8 @@ _type = BLOCK_COMMENT; - // /Users/bion/projects/iordache/translator/pnscript.g:657:2: ( '/*' ( . )* '*/' ) - // /Users/bion/projects/iordache/translator/pnscript.g:657:5: '/*' ( . )* '*/' + // /Users/bion/projects/iordache/translator/pnscript.g:643:2: ( '/*' ( . )* '*/' ) + // /Users/bion/projects/iordache/translator/pnscript.g:643:5: '/*' ( . )* '*/' { MATCHS(lit_35); if (HASEXCEPTION()) @@ -3614,7 +3614,7 @@ - // /Users/bion/projects/iordache/translator/pnscript.g:657:10: ( . )* + // /Users/bion/projects/iordache/translator/pnscript.g:643:10: ( . )* for (;;) { @@ -3649,7 +3649,7 @@ switch (alt16) { case 1: - // /Users/bion/projects/iordache/translator/pnscript.g:657:10: . + // /Users/bion/projects/iordache/translator/pnscript.g:643:10: . { MATCHANY(); if (HASEXCEPTION()) Modified: translator/pnscriptLexer.h =================================================================== --- translator/pnscriptLexer.h 2009-07-07 02:56:50 UTC (rev 175) +++ translator/pnscriptLexer.h 2009-07-07 03:00:22 UTC (rev 176) @@ -2,7 +2,7 @@ * This C header file was generated by $ANTLR version 3.1.2 * * - From the grammar source file : /Users/bion/projects/iordache/translator/pnscript.g - * - On : 2009-07-05 23:45:09 + * - On : 2009-07-06 21:52:27 * - for the lexer : pnscriptLexerLexer * * Editing it, at least manually, is not wise. * Modified: translator/pnscriptParser.c =================================================================== --- translator/pnscriptParser.c 2009-07-07 02:56:50 UTC (rev 175) +++ translator/pnscriptParser.c 2009-07-07 03:00:22 UTC (rev 176) @@ -2,7 +2,7 @@ * This C source file was generated by $ANTLR version 3.1.2 * * - From the grammar source file : /Users/bion/projects/iordache/translator/pnscript.g - * - On : 2009-07-05 23:45:08 + * - On : 2009-07-06 21:52:26 * - for the parser : pnscriptParserParser * * Editing it, at least manually, is not wise. * @@ -1069,204 +1069,198 @@ /** Bitset defining follow set for error recovery in rule state: FOLLOW_ID_in_proc_init627 */ static ANTLR3_BITWORD FOLLOW_ID_in_proc_init627_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000800) }; static ANTLR3_BITSET_LIST FOLLOW_ID_in_proc_init627 = { FOLLOW_ID_in_proc_init627_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_ID_in_proc_init631 */ -static ANTLR3_BITWORD FOLLOW_ID_in_proc_init631_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; -static ANTLR3_BITSET_LIST FOLLOW_ID_in_proc_init631 = { FOLLOW_ID_in_proc_init631_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_ID_in_proc_init645 */ -static ANTLR3_BITWORD FOLLOW_ID_in_proc_init645_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000800) }; -static ANTLR3_BITSET_LIST FOLLOW_ID_in_proc_init645 = { FOLLOW_ID_in_proc_init645_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_ID_in_proc_init649 */ -static ANTLR3_BITWORD FOLLOW_ID_in_proc_init649_bits[] = { ANTLR3_UINT64_LIT(0x0000100000000000) }; -static ANTLR3_BITSET_LIST FOLLOW_ID_in_proc_init649 = { FOLLOW_ID_in_proc_init649_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_44_in_proc_init653 */ -static ANTLR3_BITWORD FOLLOW_44_in_proc_init653_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000800) }; -static ANTLR3_BITSET_LIST FOLLOW_44_in_proc_init653 = { FOLLOW_44_in_proc_init653_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_numbered_ID_in_proc_init657 */ -static ANTLR3_BITWORD FOLLOW_numbered_ID_in_proc_init657_bits[] = { ANTLR3_UINT64_LIT(0x0000600000000000) }; -static ANTLR3_BITSET_LIST FOLLOW_numbered_ID_in_proc_init657 = { FOLLOW_numbered_ID_in_proc_init657_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_45_in_proc_init661 */ -static ANTLR3_BITWORD FOLLOW_45_in_proc_init661_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000800) }; -static ANTLR3_BITSET_LIST FOLLOW_45_in_proc_init661 = { FOLLOW_45_in_proc_init661_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_numbered_ID_in_proc_init665 */ -static ANTLR3_BITWORD FOLLOW_numbered_ID_in_proc_init665_bits[] = { ANTLR3_UINT64_LIT(0x0000600000000000) }; -static ANTLR3_BITSET_LIST FOLLOW_numbered_ID_in_proc_init665 = { FOLLOW_numbered_ID_in_proc_init665_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_46_in_proc_init670 */ -static ANTLR3_BITWORD FOLLOW_46_in_proc_init670_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; -static ANTLR3_BITSET_LIST FOLLOW_46_in_proc_init670 = { FOLLOW_46_in_proc_init670_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_SYNC_TOK_in_sync_def690 */ -static ANTLR3_BITWORD FOLLOW_SYNC_TOK_in_sync_def690_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000800) }; -static ANTLR3_BITSET_LIST FOLLOW_SYNC_TOK_in_sync_def690 = { FOLLOW_SYNC_TOK_in_sync_def690_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_group_elements_in_sync_def693 */ -static ANTLR3_BITWORD FOLLOW_group_elements_in_sync_def693_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000802) }; -static ANTLR3_BITSET_LIST FOLLOW_group_elements_in_sync_def693 = { FOLLOW_group_elements_in_sync_def693_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_START_in_proc_start715 */ -static ANTLR3_BITWORD FOLLOW_START_in_proc_start715_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000800) }; -static ANTLR3_BITSET_LIST FOLLOW_START_in_proc_start715 = { FOLLOW_START_in_proc_start715_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_ID_in_proc_start719 */ -static ANTLR3_BITWORD FOLLOW_ID_in_proc_start719_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000802) }; -static ANTLR3_BITSET_LIST FOLLOW_ID_in_proc_start719 = { FOLLOW_ID_in_proc_start719_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_ID_in_numbered_ID733 */ -static ANTLR3_BITWORD FOLLOW_ID_in_numbered_ID733_bits[] = { ANTLR3_UINT64_LIT(0x0000040000000002) }; -static ANTLR3_BITSET_LIST FOLLOW_ID_in_numbered_ID733 = { FOLLOW_ID_in_numbered_ID733_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_42_in_numbered_ID738 */ -static ANTLR3_BITWORD FOLLOW_42_in_numbered_ID738_bits[] = { ANTLR3_UINT64_LIT(0x0000000002000000) }; -static ANTLR3_BITSET_LIST FOLLOW_42_in_numbered_ID738 = { FOLLOW_42_in_numbered_ID738_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_INT_in_numbered_ID739 */ -static ANTLR3_BITWORD FOLLOW_INT_in_numbered_ID739_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; -static ANTLR3_BITSET_LIST FOLLOW_INT_in_numbered_ID739 = { FOLLOW_INT_in_numbered_ID739_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_constraint_block_in_constraints769 */ -static ANTLR3_BITWORD FOLLOW_constraint_block_in_constraints769_bits[] = { ANTLR3_UINT64_LIT(0x0000100D82000802) }; -static ANTLR3_BITSET_LIST FOLLOW_constraint_block_in_constraints769 = { FOLLOW_constraint_block_in_constraints769_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_eq_in_constraints774 */ -static ANTLR3_BITWORD FOLLOW_eq_in_constraints774_bits[] = { ANTLR3_UINT64_LIT(0x0000000000001000) }; -static ANTLR3_BITSET_LIST FOLLOW_eq_in_constraints774 = { FOLLOW_eq_in_constraints774_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_SEMICOLON_in_constraints776 */ -static ANTLR3_BITWORD FOLLOW_SEMICOLON_in_constraints776_bits[] = { ANTLR3_UINT64_LIT(0x0000100D82000802) }; -static ANTLR3_BITSET_LIST FOLLOW_SEMICOLON_in_constraints776 = { FOLLOW_SEMICOLON_in_constraints776_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_live_def_in_constraints780 */ -static ANTLR3_BITWORD FOLLOW_live_def_in_constraints780_bits[] = { ANTLR3_UINT64_LIT(0x0000100D82000802) }; -static ANTLR3_BITSET_LIST FOLLOW_live_def_in_constraints780 = { FOLLOW_live_def_in_constraints780_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_uncontrol_in_constraints782 */ -static ANTLR3_BITWORD FOLLOW_uncontrol_in_constraints782_bits[] = { ANTLR3_UINT64_LIT(0x0000100D82000802) }; -static ANTLR3_BITSET_LIST FOLLOW_uncontrol_in_constraints782 = { FOLLOW_uncontrol_in_constraints782_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_unobserve_in_constraints784 */ -static ANTLR3_BITWORD FOLLOW_unobserve_in_constraints784_bits[] = { ANTLR3_UINT64_LIT(0x0000100D82000802) }; -static ANTLR3_BITSET_LIST FOLLOW_unobserve_in_constraints784 = { FOLLOW_unobserve_in_constraints784_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_ID_in_constraint_block794 */ -static ANTLR3_BITWORD FOLLOW_ID_in_constraint_block794_bits[] = { ANTLR3_UINT64_LIT(0x0000000004000000) }; -static ANTLR3_BITSET_LIST FOLLOW_ID_in_constraint_block794 = { FOLLOW_ID_in_constraint_block794_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_CONSTRAINTS_in_constraint_block798 */ -static ANTLR3_BITWORD FOLLOW_CONSTRAINTS_in_constraint_block798_bits[] = { ANTLR3_UINT64_LIT(0x0000000000001002) }; -static ANTLR3_BITSET_LIST FOLLOW_CONSTRAINTS_in_constraint_block798 = { FOLLOW_CONSTRAINTS_in_constraint_block798_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_SEMICOLON_in_constraint_block800 */ -static ANTLR3_BITWORD FOLLOW_SEMICOLON_in_constraint_block800_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; -static ANTLR3_BITSET_LIST FOLLOW_SEMICOLON_in_constraint_block800 = { FOLLOW_SEMICOLON_in_constraint_block800_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_relationalExpression_in_eq816 */ -static ANTLR3_BITWORD FOLLOW_relationalExpression_in_eq816_bits[] = { ANTLR3_UINT64_LIT(0x0000000018000002) }; -static ANTLR3_BITSET_LIST FOLLOW_relationalExpression_in_eq816 = { FOLLOW_relationalExpression_in_eq816_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_set_in_eq819 */ -static ANTLR3_BITWORD FOLLOW_set_in_eq819_bits[] = { ANTLR3_UINT64_LIT(0x0000100082000800) }; -static ANTLR3_BITSET_LIST FOLLOW_set_in_eq819 = { FOLLOW_set_in_eq819_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_relationalExpression_in_eq826 */ -static ANTLR3_BITWORD FOLLOW_relationalExpression_in_eq826_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; -static ANTLR3_BITSET_LIST FOLLOW_relationalExpression_in_eq826 = { FOLLOW_relationalExpression_in_eq826_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_additiveExpression_in_relationalExpression842 */ -static ANTLR3_BITWORD FOLLOW_additiveExpression_in_relationalExpression842_bits[] = { ANTLR3_UINT64_LIT(0x0000000020000002) }; -static ANTLR3_BITSET_LIST FOLLOW_additiveExpression_in_relationalExpression842 = { FOLLOW_additiveExpression_in_relationalExpression842_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_EQ_OP_in_relationalExpression845 */ -static ANTLR3_BITWORD FOLLOW_EQ_OP_in_relationalExpression845_bits[] = { ANTLR3_UINT64_LIT(0x0000100082000800) }; -static ANTLR3_BITSET_LIST FOLLOW_EQ_OP_in_relationalExpression845 = { FOLLOW_EQ_OP_in_relationalExpression845_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_additiveExpression_in_relationalExpression848 */ -static ANTLR3_BITWORD FOLLOW_additiveExpression_in_relationalExpression848_bits[] = { ANTLR3_UINT64_LIT(0x0000000020000002) }; -static ANTLR3_BITSET_LIST FOLLOW_additiveExpression_in_relationalExpression848 = { FOLLOW_additiveExpression_in_relationalExpression848_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_primary_in_additiveExpression859 */ -static ANTLR3_BITWORD FOLLOW_primary_in_additiveExpression859_bits[] = { ANTLR3_UINT64_LIT(0x00000000C0000002) }; -static ANTLR3_BITSET_LIST FOLLOW_primary_in_additiveExpression859 = { FOLLOW_primary_in_additiveExpression859_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_set_in_additiveExpression862 */ -static ANTLR3_BITWORD FOLLOW_set_in_additiveExpression862_bits[] = { ANTLR3_UINT64_LIT(0x0000100082000800) }; -static ANTLR3_BITSET_LIST FOLLOW_set_in_additiveExpression862 = { FOLLOW_set_in_additiveExpression862_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_primary_in_additiveExpression869 */ -static ANTLR3_BITWORD FOLLOW_primary_in_additiveExpression869_bits[] = { ANTLR3_UINT64_LIT(0x00000000C0000002) }; -static ANTLR3_BITSET_LIST FOLLOW_primary_in_additiveExpression869 = { FOLLOW_primary_in_additiveExpression869_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_44_in_primary885 */ -static ANTLR3_BITWORD FOLLOW_44_in_primary885_bits[] = { ANTLR3_UINT64_LIT(0x0000100082000800) }; -static ANTLR3_BITSET_LIST FOLLOW_44_in_primary885 = { FOLLOW_44_in_primary885_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_eq_in_primary888 */ -static ANTLR3_BITWORD FOLLOW_eq_in_primary888_bits[] = { ANTLR3_UINT64_LIT(0x0000400000000000) }; -static ANTLR3_BITSET_LIST FOLLOW_eq_in_primary888 = { FOLLOW_eq_in_primary888_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_46_in_primary890 */ -static ANTLR3_BITWORD FOLLOW_46_in_primary890_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; -static ANTLR3_BITSET_LIST FOLLOW_46_in_primary890 = { FOLLOW_46_in_primary890_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_MINUS_in_primary899 */ -static ANTLR3_BITWORD FOLLOW_MINUS_in_primary899_bits[] = { ANTLR3_UINT64_LIT(0x0000100000000000) }; -static ANTLR3_BITSET_LIST FOLLOW_MINUS_in_primary899 = { FOLLOW_MINUS_in_primary899_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_44_in_primary901 */ -static ANTLR3_BITWORD FOLLOW_44_in_primary901_bits[] = { ANTLR3_UINT64_LIT(0x0000100082000800) }; -static ANTLR3_BITSET_LIST FOLLOW_44_in_primary901 = { FOLLOW_44_in_primary901_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_additiveExpression_in_primary904 */ -static ANTLR3_BITWORD FOLLOW_additiveExpression_in_primary904_bits[] = { ANTLR3_UINT64_LIT(0x0000400000000000) }; -static ANTLR3_BITSET_LIST FOLLOW_additiveExpression_in_primary904 = { FOLLOW_additiveExpression_in_primary904_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_46_in_primary906 */ -static ANTLR3_BITWORD FOLLOW_46_in_primary906_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; -static ANTLR3_BITSET_LIST FOLLOW_46_in_primary906 = { FOLLOW_46_in_primary906_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_group_elements_in_primary917 */ -static ANTLR3_BITWORD FOLLOW_group_elements_in_primary917_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; -static ANTLR3_BITSET_LIST FOLLOW_group_elements_in_primary917 = { FOLLOW_group_elements_in_primary917_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_number_in_primary924 */ -static ANTLR3_BITWORD FOLLOW_number_in_primary924_bits[] = { ANTLR3_UINT64_LIT(0x0000000000080002) }; -static ANTLR3_BITSET_LIST FOLLOW_number_in_primary924 = { FOLLOW_number_in_primary924_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_MULT_in_primary927 */ -static ANTLR3_BITWORD FOLLOW_MULT_in_primary927_bits[] = { ANTLR3_UINT64_LIT(0x0000100082000800) }; -static ANTLR3_BITSET_LIST FOLLOW_MULT_in_primary927 = { FOLLOW_MULT_in_primary927_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_primary_in_primary930 */ -static ANTLR3_BITWORD FOLLOW_primary_in_primary930_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; -static ANTLR3_BITSET_LIST FOLLOW_primary_in_primary930 = { FOLLOW_primary_in_primary930_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_LIVE_in_live_def940 */ -static ANTLR3_BITWORD FOLLOW_LIVE_in_live_def940_bits[] = { ANTLR3_UINT64_LIT(0x0000000200000800) }; -static ANTLR3_BITSET_LIST FOLLOW_LIVE_in_live_def940 = { FOLLOW_LIVE_in_live_def940_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_ALL_in_live_def948 */ -static ANTLR3_BITWORD FOLLOW_ALL_in_live_def948_bits[] = { ANTLR3_UINT64_LIT(0x0000000080001000) }; -static ANTLR3_BITSET_LIST FOLLOW_ALL_in_live_def948 = { FOLLOW_ALL_in_live_def948_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_MINUS_in_live_def951 */ -static ANTLR3_BITWORD FOLLOW_MINUS_in_live_def951_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000800) }; -static ANTLR3_BITSET_LIST FOLLOW_MINUS_in_live_def951 = { FOLLOW_MINUS_in_live_def951_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_ID_in_live_def955 */ -static ANTLR3_BITWORD FOLLOW_ID_in_live_def955_bits[] = { ANTLR3_UINT64_LIT(0x0000000080001000) }; -static ANTLR3_BITSET_LIST FOLLOW_ID_in_live_def955 = { FOLLOW_ID_in_live_def955_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_ID_in_live_def979 */ -static ANTLR3_BITWORD FOLLOW_ID_in_live_def979_bits[] = { ANTLR3_UINT64_LIT(0x0000000000001800) }; -static ANTLR3_BITSET_LIST FOLLOW_ID_in_live_def979 = { FOLLOW_ID_in_live_def979_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_SEMICOLON_in_live_def998 */ -static ANTLR3_BITWORD FOLLOW_SEMICOLON_in_live_def998_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; -static ANTLR3_BITSET_LIST FOLLOW_SEMICOLON_in_live_def998 = { FOLLOW_SEMICOLON_in_live_def998_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_UNCONTROL_in_uncontrol1007 */ -static ANTLR3_BITWORD FOLLOW_UNCONTROL_in_uncontrol1007_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000800) }; -static ANTLR3_BITSET_LIST FOLLOW_UNCONTROL_in_uncontrol1007 = { FOLLOW_UNCONTROL_in_uncontrol1007_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_ID_in_uncontrol1012 */ -static ANTLR3_BITWORD FOLLOW_ID_in_uncontrol1012_bits[] = { ANTLR3_UINT64_LIT(0x0000000000001800) }; -static ANTLR3_BITSET_LIST FOLLOW_ID_in_uncontrol1012 = { FOLLOW_ID_in_uncontrol1012_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_SEMICOLON_in_uncontrol1018 */ -static ANTLR3_BITWORD FOLLOW_SEMICOLON_in_uncontrol1018_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; -static ANTLR3_BITSET_LIST FOLLOW_SEMICOLON_in_uncontrol1018 = { FOLLOW_SEMICOLON_in_uncontrol1018_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_UNOBSERVE_in_unobserve1036 */ -static ANTLR3_BITWORD FOLLOW_UNOBSERVE_in_unobserve1036_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000800) }; -static ANTLR3_BITSET_LIST FOLLOW_UNOBSERVE_in_unobserve1036 = { FOLLOW_UNOBSERVE_in_unobserve1036_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_ID_in_unobserve1041 */ -static ANTLR3_BITWORD FOLLOW_ID_in_unobserve1041_bits[] = { ANTLR3_UINT64_LIT(0x0000000000001800) }; -static ANTLR3_BITSET_LIST FOLLOW_ID_in_unobserve1041 = { FOLLOW_ID_in_unobserve1041_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_SEMICOLON_in_unobserve1047 */ -static ANTLR3_BITWORD FOLLOW_SEMICOLON_in_unobserve1047_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; -static ANTLR3_BITSET_LIST FOLLOW_SEMICOLON_in_unobserve1047 = { FOLLOW_SEMICOLON_in_unobserve1047_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_print_in_other_commands1066 */ -static ANTLR3_BITWORD FOLLOW_print_in_other_commands1066_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; -static ANTLR3_BITSET_LIST FOLLOW_print_in_other_commands1066 = { FOLLOW_print_in_other_commands1066_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_PRINT_in_print1075 */ -static ANTLR3_BITWORD FOLLOW_PRINT_in_print1075_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000800) }; -static ANTLR3_BITSET_LIST FOLLOW_PRINT_in_print1075 = { FOLLOW_PRINT_in_print1075_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_ID_in_print1077 */ -static ANTLR3_BITWORD FOLLOW_ID_in_print1077_bits[] = { ANTLR3_UINT64_LIT(0x0001000000000000) }; -static ANTLR3_BITSET_LIST FOLLOW_ID_in_print1077 = { FOLLOW_ID_in_print1077_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_48_in_print1079 */ -static ANTLR3_BITWORD FOLLOW_48_in_print1079_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000800) }; -static ANTLR3_BITSET_LIST FOLLOW_48_in_print1079 = { FOLLOW_48_in_print1079_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_group_elements_in_print1081 */ -static ANTLR3_BITWORD FOLLOW_group_elements_in_print1081_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; -static ANTLR3_BITSET_LIST FOLLOW_group_elements_in_print1081 = { FOLLOW_group_elements_in_print1081_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_MINUS_in_number1100 */ -static ANTLR3_BITWORD FOLLOW_MINUS_in_number1100_bits[] = { ANTLR3_UINT64_LIT(0x0000000002000000) }; -static ANTLR3_BITSET_LIST FOLLOW_MINUS_in_number1100 = { FOLLOW_MINUS_in_number1100_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_INT_in_number1104 */ -static ANTLR3_BITWORD FOLLOW_INT_in_number1104_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; -static ANTLR3_BITSET_LIST FOLLOW_INT_in_number1104 = { FOLLOW_INT_in_number1104_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_ID_in_group_elements1119 */ -static ANTLR3_BITWORD FOLLOW_ID_in_group_elements1119_bits[] = { ANTLR3_UINT64_LIT(0x0000000000200002) }; -static ANTLR3_BITSET_LIST FOLLOW_ID_in_group_elements1119 = { FOLLOW_ID_in_group_elements1119_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_DOT_in_group_elements1122 */ -static ANTLR3_BITWORD FOLLOW_DOT_in_group_elements1122_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000800) }; -static ANTLR3_BITSET_LIST FOLLOW_DOT_in_group_elements1122 = { FOLLOW_DOT_in_group_elements1122_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_ID_in_group_elements1126 */ -static ANTLR3_BITWORD FOLLOW_ID_in_group_elements1126_bits[] = { ANTLR3_UINT64_LIT(0x0000000000200002) }; -static ANTLR3_BITSET_LIST FOLLOW_ID_in_group_elements1126 = { FOLLOW_ID_in_group_elements1126_bits, 1 }; +/** Bitset defining follow set for error recovery in rule state: FOLLOW_ID_in_proc_init632... [truncated message content] |