[Pntool-developers] SF.net SVN: pntool:[177] translator
Brought to you by:
compaqdrew,
miordache
From: <the...@us...> - 2009-07-07 03:49:01
|
Revision: 177 http://pntool.svn.sourceforge.net/pntool/?rev=177&view=rev Author: thecodeweasel Date: 2009-07-07 03:48:56 +0000 (Tue, 07 Jul 2009) Log Message: ----------- Fixing the single-line process\thread\thing definition to actually work 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 03:00:22 UTC (rev 176) +++ translator/docs/test.txt 2009-07-07 03:48:56 UTC (rev 177) @@ -77,7 +77,7 @@ q.reader1.t1 - writer1.p <= 0; 2*reader1.t1 - 2*reader1.t2 + w_group.pwr_2 <= 2; //reader1.t1 - (reader1.t2 + w_group.pwr_2) > -1; -//(reader1.t1 - (reader1.t2 + w_group.pwr_2) > -1) || (r_group.p1b <= 0 && (w_group.pwr_1 <= 0)); +//(reader1.t1 - (reader1.t2 + w_group.pwr_2) >= 0) || (r_group.p1b <= 0 && (w_group.pwr_1 > 0)); //-3*((reader1.p2+2)-2*w_group.pwr_2) < -(4*r_group.p1b-2*(3*writer1.pwr2-2)); //################################################ print supervisor to debug.log; \ No newline at end of file Modified: translator/pnscript.g =================================================================== --- translator/pnscript.g 2009-07-07 03:00:22 UTC (rev 176) +++ translator/pnscript.g 2009-07-07 03:48:56 UTC (rev 177) @@ -332,25 +332,29 @@ proc_instantiations : (proc_init | sync_def | proc_start) SEMICOLON!; proc_init + : ID! proc_init_helper[(char*) $ID.text->chars]+; + +proc_init_helper[char* proc] @init { void** list; ASSOC_ARRAY* places; } - : 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); + : ID { + if(0 == strcasecmp((char*) $ID.text->chars, (char*) "global")) { + fprintf(stderr, "ERROR: Sorry, you cannot name a thread \"\%s\".\n", $ID.text->chars); + FAIL_AT($ID); } - list = copy_list((void**) processes->get(processes, (char*) $proc.text->chars)); + list = copy_list((void**) processes->get(processes, $proc)); if(list == NULL) { - fprintf(stderr, "ERROR: You didn't declare a process type \%s...?\n", (char*) $proc.text->chars); + fprintf(stderr, "ERROR: You didn't declare a process type \%s...?\n", $proc); 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*)+; + threads->add(threads, (char*) $ID.text->chars, list, NULL); + } ('(' ids+=numbered_ID[places, $ID.text] (',' ids+=numbered_ID[places, $ID.text])* ')')? -> ^(ID $ids*); + sync_def : SYNC_TOK (group_elements { int size; Modified: translator/pnscriptLexer.c =================================================================== --- translator/pnscriptLexer.c 2009-07-07 03:00:22 UTC (rev 176) +++ translator/pnscriptLexer.c 2009-07-07 03:48:56 UTC (rev 177) @@ -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-06 21:52:27 + * - On : 2009-07-06 22:46:36 * - for the lexer : pnscriptLexerLexer * * Editing it, at least manually, is not wise. * @@ -1295,7 +1295,7 @@ } // $ANTLR end T__48 -// Comes from: 562:2: ( 'extern' ) +// Comes from: 566:2: ( 'extern' ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start EXTERN @@ -1315,8 +1315,8 @@ _type = EXTERN; - // /Users/bion/projects/iordache/translator/pnscript.g:562:2: ( 'extern' ) - // /Users/bion/projects/iordache/translator/pnscript.g:562:4: 'extern' + // /Users/bion/projects/iordache/translator/pnscript.g:566:2: ( 'extern' ) + // /Users/bion/projects/iordache/translator/pnscript.g:566:4: 'extern' { MATCHS(lit_4); if (HASEXCEPTION()) @@ -1338,7 +1338,7 @@ } // $ANTLR end EXTERN -// Comes from: 564:2: ( 'process' ( 'type' )? ) +// Comes from: 568: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:564:2: ( 'process' ( 'type' )? ) - // /Users/bion/projects/iordache/translator/pnscript.g:564:4: 'process' ( 'type' )? + // /Users/bion/projects/iordache/translator/pnscript.g:568:2: ( 'process' ( 'type' )? ) + // /Users/bion/projects/iordache/translator/pnscript.g:568:4: 'process' ( 'type' )? { MATCHS(lit_5); if (HASEXCEPTION()) @@ -1369,7 +1369,7 @@ - // /Users/bion/projects/iordache/translator/pnscript.g:564:14: ( 'type' )? + // /Users/bion/projects/iordache/translator/pnscript.g:568:14: ( 'type' )? { int alt1=2; { @@ -1382,7 +1382,7 @@ switch (alt1) { case 1: - // /Users/bion/projects/iordache/translator/pnscript.g:564:14: 'type' + // /Users/bion/projects/iordache/translator/pnscript.g:568:14: 'type' { MATCHS(lit_6); if (HASEXCEPTION()) @@ -1410,7 +1410,7 @@ } // $ANTLR end PROCESS -// Comes from: 566:2: ( 'build' ':' ) +// Comes from: 570:2: ( 'build' ':' ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start BUILD @@ -1430,8 +1430,8 @@ _type = BUILD; - // /Users/bion/projects/iordache/translator/pnscript.g:566:2: ( 'build' ':' ) - // /Users/bion/projects/iordache/translator/pnscript.g:566:4: 'build' ':' + // /Users/bion/projects/iordache/translator/pnscript.g:570:2: ( 'build' ':' ) + // /Users/bion/projects/iordache/translator/pnscript.g:570:4: 'build' ':' { MATCHS(lit_7); if (HASEXCEPTION()) @@ -1459,7 +1459,7 @@ } // $ANTLR end BUILD -// Comes from: 568:2: ( 'include' ':' ) +// Comes from: 572:2: ( 'include' ':' ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start INCLUDE @@ -1479,8 +1479,8 @@ _type = INCLUDE; - // /Users/bion/projects/iordache/translator/pnscript.g:568:2: ( 'include' ':' ) - // /Users/bion/projects/iordache/translator/pnscript.g:568:4: 'include' ':' + // /Users/bion/projects/iordache/translator/pnscript.g:572:2: ( 'include' ':' ) + // /Users/bion/projects/iordache/translator/pnscript.g:572:4: 'include' ':' { MATCHS(lit_8); if (HASEXCEPTION()) @@ -1508,7 +1508,7 @@ } // $ANTLR end INCLUDE -// Comes from: 571:2: ( '.PN:' ) +// Comes from: 575:2: ( '.PN:' ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start PNDEF @@ -1528,8 +1528,8 @@ _type = PNDEF; - // /Users/bion/projects/iordache/translator/pnscript.g:571:2: ( '.PN:' ) - // /Users/bion/projects/iordache/translator/pnscript.g:571:4: '.PN:' + // /Users/bion/projects/iordache/translator/pnscript.g:575:2: ( '.PN:' ) + // /Users/bion/projects/iordache/translator/pnscript.g:575:4: '.PN:' { MATCHS(lit_9); if (HASEXCEPTION()) @@ -1551,7 +1551,7 @@ } // $ANTLR end PNDEF -// Comes from: 573:2: ( 'places' ':' ) +// Comes from: 577:2: ( 'places' ':' ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start PLACES @@ -1571,8 +1571,8 @@ _type = PLACES; - // /Users/bion/projects/iordache/translator/pnscript.g:573:2: ( 'places' ':' ) - // /Users/bion/projects/iordache/translator/pnscript.g:573:4: 'places' ':' + // /Users/bion/projects/iordache/translator/pnscript.g:577:2: ( 'places' ':' ) + // /Users/bion/projects/iordache/translator/pnscript.g:577:4: 'places' ':' { MATCHS(lit_10); if (HASEXCEPTION()) @@ -1600,7 +1600,7 @@ } // $ANTLR end PLACES -// Comes from: 575:2: ( 'trans' ( 'itions' )? ':' ) +// Comes from: 579: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:575:2: ( 'trans' ( 'itions' )? ':' ) - // /Users/bion/projects/iordache/translator/pnscript.g:575:4: 'trans' ( 'itions' )? ':' + // /Users/bion/projects/iordache/translator/pnscript.g:579:2: ( 'trans' ( 'itions' )? ':' ) + // /Users/bion/projects/iordache/translator/pnscript.g:579:4: 'trans' ( 'itions' )? ':' { MATCHS(lit_11); if (HASEXCEPTION()) @@ -1631,7 +1631,7 @@ - // /Users/bion/projects/iordache/translator/pnscript.g:575:12: ( 'itions' )? + // /Users/bion/projects/iordache/translator/pnscript.g:579:12: ( 'itions' )? { int alt2=2; { @@ -1644,7 +1644,7 @@ switch (alt2) { case 1: - // /Users/bion/projects/iordache/translator/pnscript.g:575:12: 'itions' + // /Users/bion/projects/iordache/translator/pnscript.g:579:12: 'itions' { MATCHS(lit_12); if (HASEXCEPTION()) @@ -1678,7 +1678,7 @@ } // $ANTLR end TRANS -// Comes from: 577:2: ( '.code:' ) +// Comes from: 581:2: ( '.code:' ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start CODE @@ -1698,8 +1698,8 @@ _type = CODE; - // /Users/bion/projects/iordache/translator/pnscript.g:577:2: ( '.code:' ) - // /Users/bion/projects/iordache/translator/pnscript.g:577:4: '.code:' + // /Users/bion/projects/iordache/translator/pnscript.g:581:2: ( '.code:' ) + // /Users/bion/projects/iordache/translator/pnscript.g:581:4: '.code:' { MATCHS(lit_13); if (HASEXCEPTION()) @@ -1721,7 +1721,7 @@ } // $ANTLR end CODE -// Comes from: 579:2: ( 'select function' ) +// Comes from: 583: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:579:2: ( 'select function' ) - // /Users/bion/projects/iordache/translator/pnscript.g:579:4: 'select function' + // /Users/bion/projects/iordache/translator/pnscript.g:583:2: ( 'select function' ) + // /Users/bion/projects/iordache/translator/pnscript.g:583:4: 'select function' { MATCHS(lit_14); if (HASEXCEPTION()) @@ -1764,7 +1764,7 @@ } // $ANTLR end SELECT_DEF -// Comes from: 582:2: ( 'sync' ) +// Comes from: 586: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:582:2: ( 'sync' ) - // /Users/bion/projects/iordache/translator/pnscript.g:582:4: 'sync' + // /Users/bion/projects/iordache/translator/pnscript.g:586:2: ( 'sync' ) + // /Users/bion/projects/iordache/translator/pnscript.g:586:4: 'sync' { MATCHS(lit_15); if (HASEXCEPTION()) @@ -1807,7 +1807,7 @@ } // $ANTLR end SYNC_TOK -// Comes from: 584:2: ( 'start' ) +// Comes from: 588:2: ( 'start' ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start START @@ -1827,8 +1827,8 @@ _type = START; - // /Users/bion/projects/iordache/translator/pnscript.g:584:2: ( 'start' ) - // /Users/bion/projects/iordache/translator/pnscript.g:584:4: 'start' + // /Users/bion/projects/iordache/translator/pnscript.g:588:2: ( 'start' ) + // /Users/bion/projects/iordache/translator/pnscript.g:588:4: 'start' { MATCHS(lit_16); if (HASEXCEPTION()) @@ -1850,7 +1850,7 @@ } // $ANTLR end START -// Comes from: 587:2: ( '.constraints:' ) +// Comes from: 591:2: ( '.constraints:' ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start CONSTRAINTS @@ -1870,8 +1870,8 @@ _type = CONSTRAINTS; - // /Users/bion/projects/iordache/translator/pnscript.g:587:2: ( '.constraints:' ) - // /Users/bion/projects/iordache/translator/pnscript.g:587:4: '.constraints:' + // /Users/bion/projects/iordache/translator/pnscript.g:591:2: ( '.constraints:' ) + // /Users/bion/projects/iordache/translator/pnscript.g:591:4: '.constraints:' { MATCHS(lit_17); if (HASEXCEPTION()) @@ -1893,7 +1893,7 @@ } // $ANTLR end CONSTRAINTS -// Comes from: 589:2: ( '&&' | 'and' | 'AND' ) +// Comes from: 593:2: ( '&&' | 'and' | 'AND' ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start AND_OP @@ -1914,7 +1914,7 @@ { - // /Users/bion/projects/iordache/translator/pnscript.g:589:2: ( '&&' | 'and' | 'AND' ) + // /Users/bion/projects/iordache/translator/pnscript.g:593:2: ( '&&' | 'and' | 'AND' ) ANTLR3_UINT32 alt3; @@ -1952,7 +1952,7 @@ switch (alt3) { case 1: - // /Users/bion/projects/iordache/translator/pnscript.g:589:4: '&&' + // /Users/bion/projects/iordache/translator/pnscript.g:593:4: '&&' { MATCHS(lit_18); if (HASEXCEPTION()) @@ -1965,7 +1965,7 @@ } break; case 2: - // /Users/bion/projects/iordache/translator/pnscript.g:589:9: 'and' + // /Users/bion/projects/iordache/translator/pnscript.g:593:9: 'and' { MATCHS(lit_19); if (HASEXCEPTION()) @@ -1978,7 +1978,7 @@ } break; case 3: - // /Users/bion/projects/iordache/translator/pnscript.g:589:15: 'AND' + // /Users/bion/projects/iordache/translator/pnscript.g:593:15: 'AND' { MATCHS(lit_20); if (HASEXCEPTION()) @@ -2003,7 +2003,7 @@ } // $ANTLR end AND_OP -// Comes from: 591:2: ( '||' | 'or' | 'OR' ) +// Comes from: 595:2: ( '||' | 'or' | 'OR' ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start OR_OP @@ -2024,7 +2024,7 @@ { - // /Users/bion/projects/iordache/translator/pnscript.g:591:2: ( '||' | 'or' | 'OR' ) + // /Users/bion/projects/iordache/translator/pnscript.g:595:2: ( '||' | 'or' | 'OR' ) ANTLR3_UINT32 alt4; @@ -2062,7 +2062,7 @@ switch (alt4) { case 1: - // /Users/bion/projects/iordache/translator/pnscript.g:591:4: '||' + // /Users/bion/projects/iordache/translator/pnscript.g:595:4: '||' { MATCHS(lit_21); if (HASEXCEPTION()) @@ -2075,7 +2075,7 @@ } break; case 2: - // /Users/bion/projects/iordache/translator/pnscript.g:591:9: 'or' + // /Users/bion/projects/iordache/translator/pnscript.g:595:9: 'or' { MATCHS(lit_22); if (HASEXCEPTION()) @@ -2088,7 +2088,7 @@ } break; case 3: - // /Users/bion/projects/iordache/translator/pnscript.g:591:14: 'OR' + // /Users/bion/projects/iordache/translator/pnscript.g:595:14: 'OR' { MATCHS(lit_23); if (HASEXCEPTION()) @@ -2113,7 +2113,7 @@ } // $ANTLR end OR_OP -// Comes from: 593:2: ( '<=' ) +// Comes from: 597: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:593:2: ( '<=' ) - // /Users/bion/projects/iordache/translator/pnscript.g:593:4: '<=' + // /Users/bion/projects/iordache/translator/pnscript.g:597:2: ( '<=' ) + // /Users/bion/projects/iordache/translator/pnscript.g:597:4: '<=' { MATCHS(lit_24); if (HASEXCEPTION()) @@ -2156,7 +2156,7 @@ } // $ANTLR end EQ_OP -// Comes from: 595:2: ( '*' ) +// Comes from: 599:2: ( '*' ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start MULT @@ -2176,8 +2176,8 @@ _type = MULT; - // /Users/bion/projects/iordache/translator/pnscript.g:595:2: ( '*' ) - // /Users/bion/projects/iordache/translator/pnscript.g:595:4: '*' + // /Users/bion/projects/iordache/translator/pnscript.g:599:2: ( '*' ) + // /Users/bion/projects/iordache/translator/pnscript.g:599:4: '*' { MATCHC('*'); if (HASEXCEPTION()) @@ -2198,7 +2198,7 @@ } // $ANTLR end MULT -// Comes from: 597:2: ( 'live:' ) +// Comes from: 601:2: ( 'live:' ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start LIVE @@ -2218,8 +2218,8 @@ _type = LIVE; - // /Users/bion/projects/iordache/translator/pnscript.g:597:2: ( 'live:' ) - // /Users/bion/projects/iordache/translator/pnscript.g:597:4: 'live:' + // /Users/bion/projects/iordache/translator/pnscript.g:601:2: ( 'live:' ) + // /Users/bion/projects/iordache/translator/pnscript.g:601:4: 'live:' { MATCHS(lit_25); if (HASEXCEPTION()) @@ -2241,7 +2241,7 @@ } // $ANTLR end LIVE -// Comes from: 598:5: ( 'all' | 'All' | 'ALL' ) +// Comes from: 602:5: ( 'all' | 'All' | 'ALL' ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start ALL @@ -2262,7 +2262,7 @@ { - // /Users/bion/projects/iordache/translator/pnscript.g:598:5: ( 'all' | 'All' | 'ALL' ) + // /Users/bion/projects/iordache/translator/pnscript.g:602:5: ( 'all' | 'All' | 'ALL' ) ANTLR3_UINT32 alt5; @@ -2318,7 +2318,7 @@ switch (alt5) { case 1: - // /Users/bion/projects/iordache/translator/pnscript.g:598:7: 'all' + // /Users/bion/projects/iordache/translator/pnscript.g:602:7: 'all' { MATCHS(lit_26); if (HASEXCEPTION()) @@ -2331,7 +2331,7 @@ } break; case 2: - // /Users/bion/projects/iordache/translator/pnscript.g:598:13: 'All' + // /Users/bion/projects/iordache/translator/pnscript.g:602:13: 'All' { MATCHS(lit_27); if (HASEXCEPTION()) @@ -2344,7 +2344,7 @@ } break; case 3: - // /Users/bion/projects/iordache/translator/pnscript.g:598:19: 'ALL' + // /Users/bion/projects/iordache/translator/pnscript.g:602:19: 'ALL' { MATCHS(lit_28); if (HASEXCEPTION()) @@ -2369,7 +2369,7 @@ } // $ANTLR end ALL -// Comes from: 600:2: ( 'uncontrollable: ' ) +// Comes from: 604:2: ( 'uncontrollable: ' ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start UNCONTROL @@ -2389,8 +2389,8 @@ _type = UNCONTROL; - // /Users/bion/projects/iordache/translator/pnscript.g:600:2: ( 'uncontrollable: ' ) - // /Users/bion/projects/iordache/translator/pnscript.g:600:4: 'uncontrollable: ' + // /Users/bion/projects/iordache/translator/pnscript.g:604:2: ( 'uncontrollable: ' ) + // /Users/bion/projects/iordache/translator/pnscript.g:604:4: 'uncontrollable: ' { MATCHS(lit_29); if (HASEXCEPTION()) @@ -2412,7 +2412,7 @@ } // $ANTLR end UNCONTROL -// Comes from: 602:2: ( 'unobservable: ' ) +// Comes from: 606:2: ( 'unobservable: ' ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start UNOBSERVE @@ -2432,8 +2432,8 @@ _type = UNOBSERVE; - // /Users/bion/projects/iordache/translator/pnscript.g:602:2: ( 'unobservable: ' ) - // /Users/bion/projects/iordache/translator/pnscript.g:602:4: 'unobservable: ' + // /Users/bion/projects/iordache/translator/pnscript.g:606:2: ( 'unobservable: ' ) + // /Users/bion/projects/iordache/translator/pnscript.g:606:4: 'unobservable: ' { MATCHS(lit_30); if (HASEXCEPTION()) @@ -2455,7 +2455,7 @@ } // $ANTLR end UNOBSERVE -// Comes from: 605:2: ( 'print' ) +// Comes from: 609:2: ( 'print' ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start PRINT @@ -2475,8 +2475,8 @@ _type = PRINT; - // /Users/bion/projects/iordache/translator/pnscript.g:605:2: ( 'print' ) - // /Users/bion/projects/iordache/translator/pnscript.g:605:4: 'print' + // /Users/bion/projects/iordache/translator/pnscript.g:609:2: ( 'print' ) + // /Users/bion/projects/iordache/translator/pnscript.g:609:4: 'print' { MATCHS(lit_31); if (HASEXCEPTION()) @@ -2498,7 +2498,7 @@ } // $ANTLR end PRINT -// Comes from: 610:2: ( '{' ( CODE_BLOCK | STRING | ~ ( '{' | '}' | '\\\"' | '\\'' ) )* '}' ) +// Comes from: 614: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:610:2: ( '{' ( CODE_BLOCK | STRING | ~ ( '{' | '}' | '\\\"' | '\\'' ) )* '}' ) - // /Users/bion/projects/iordache/translator/pnscript.g:610:4: '{' ( CODE_BLOCK | STRING | ~ ( '{' | '}' | '\\\"' | '\\'' ) )* '}' + // /Users/bion/projects/iordache/translator/pnscript.g:614:2: ( '{' ( CODE_BLOCK | STRING | ~ ( '{' | '}' | '\\\"' | '\\'' ) )* '}' ) + // /Users/bion/projects/iordache/translator/pnscript.g:614:4: '{' ( CODE_BLOCK | STRING | ~ ( '{' | '}' | '\\\"' | '\\'' ) )* '}' { MATCHC('{'); if (HASEXCEPTION()) @@ -2528,7 +2528,7 @@ } - // /Users/bion/projects/iordache/translator/pnscript.g:610:8: ( CODE_BLOCK | STRING | ~ ( '{' | '}' | '\\\"' | '\\'' ) )* + // /Users/bion/projects/iordache/translator/pnscript.g:614:8: ( CODE_BLOCK | STRING | ~ ( '{' | '}' | '\\\"' | '\\'' ) )* for (;;) { @@ -2554,9 +2554,9 @@ switch (alt6) { case 1: - // /Users/bion/projects/iordache/translator/pnscript.g:610:10: CODE_BLOCK + // /Users/bion/projects/iordache/translator/pnscript.g:614:10: CODE_BLOCK { - /* 610:10: CODE_BLOCK */ + /* 614:10: CODE_BLOCK */ mCODE_BLOCK(ctx ); if (HASEXCEPTION()) { @@ -2567,9 +2567,9 @@ } break; case 2: - // /Users/bion/projects/iordache/translator/pnscript.g:610:23: STRING + // /Users/bion/projects/iordache/translator/pnscript.g:614:23: STRING { - /* 610:23: STRING */ + /* 614:23: STRING */ mSTRING(ctx ); if (HASEXCEPTION()) { @@ -2580,7 +2580,7 @@ } break; case 3: - // /Users/bion/projects/iordache/translator/pnscript.g:610:32: ~ ( '{' | '}' | '\\\"' | '\\'' ) + // /Users/bion/projects/iordache/translator/pnscript.g:614: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: 613:2: ( '\\'' ( CHAR_ESC | ~ ( '\\\\' | '\\'' ) )* '\\'' | '\\\"' ( CHAR_ESC | ~ ( '\\\\' | '\\\"' ) )* '\\\"' ) +// Comes from: 617: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:613:2: ( '\\'' ( CHAR_ESC | ~ ( '\\\\' | '\\'' ) )* '\\'' | '\\\"' ( CHAR_ESC | ~ ( '\\\\' | '\\\"' ) )* '\\\"' ) + // /Users/bion/projects/iordache/translator/pnscript.g:617:2: ( '\\'' ( CHAR_ESC | ~ ( '\\\\' | '\\'' ) )* '\\'' | '\\\"' ( CHAR_ESC | ~ ( '\\\\' | '\\\"' ) )* '\\\"' ) ANTLR3_UINT32 alt9; @@ -2680,7 +2680,7 @@ switch (alt9) { case 1: - // /Users/bion/projects/iordache/translator/pnscript.g:613:4: '\\'' ( CHAR_ESC | ~ ( '\\\\' | '\\'' ) )* '\\'' + // /Users/bion/projects/iordache/translator/pnscript.g:617:4: '\\'' ( CHAR_ESC | ~ ( '\\\\' | '\\'' ) )* '\\'' { MATCHC('\''); if (HASEXCEPTION()) @@ -2689,7 +2689,7 @@ } - // /Users/bion/projects/iordache/translator/pnscript.g:613:9: ( CHAR_ESC | ~ ( '\\\\' | '\\'' ) )* + // /Users/bion/projects/iordache/translator/pnscript.g:617:9: ( CHAR_ESC | ~ ( '\\\\' | '\\'' ) )* for (;;) { @@ -2711,9 +2711,9 @@ switch (alt7) { case 1: - // /Users/bion/projects/iordache/translator/pnscript.g:613:10: CHAR_ESC + // /Users/bion/projects/iordache/translator/pnscript.g:617:10: CHAR_ESC { - /* 613:10: CHAR_ESC */ + /* 617:10: CHAR_ESC */ mCHAR_ESC(ctx ); if (HASEXCEPTION()) { @@ -2724,7 +2724,7 @@ } break; case 2: - // /Users/bion/projects/iordache/translator/pnscript.g:613:19: ~ ( '\\\\' | '\\'' ) + // /Users/bion/projects/iordache/translator/pnscript.g:617: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:614:4: '\\\"' ( CHAR_ESC | ~ ( '\\\\' | '\\\"' ) )* '\\\"' + // /Users/bion/projects/iordache/translator/pnscript.g:618:4: '\\\"' ( CHAR_ESC | ~ ( '\\\\' | '\\\"' ) )* '\\\"' { MATCHC('\"'); if (HASEXCEPTION()) @@ -2770,7 +2770,7 @@ } - // /Users/bion/projects/iordache/translator/pnscript.g:614:9: ( CHAR_ESC | ~ ( '\\\\' | '\\\"' ) )* + // /Users/bion/projects/iordache/translator/pnscript.g:618:9: ( CHAR_ESC | ~ ( '\\\\' | '\\\"' ) )* for (;;) { @@ -2792,9 +2792,9 @@ switch (alt8) { case 1: - // /Users/bion/projects/iordache/translator/pnscript.g:614:10: CHAR_ESC + // /Users/bion/projects/iordache/translator/pnscript.g:618:10: CHAR_ESC { - /* 614:10: CHAR_ESC */ + /* 618:10: CHAR_ESC */ mCHAR_ESC(ctx ); if (HASEXCEPTION()) { @@ -2805,7 +2805,7 @@ } break; case 2: - // /Users/bion/projects/iordache/translator/pnscript.g:614:19: ~ ( '\\\\' | '\\\"' ) + // /Users/bion/projects/iordache/translator/pnscript.g:618: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: 616:2: ( '\\\\\\'' | '\\\\\\\"' | '\\\\' ~ ( '\\'' | '\\\"' ) ) +// Comes from: 620:2: ( '\\\\\\'' | '\\\\\\\"' | '\\\\' ~ ( '\\'' | '\\\"' ) ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start CHAR_ESC @@ -2875,7 +2875,7 @@ { - // /Users/bion/projects/iordache/translator/pnscript.g:616:2: ( '\\\\\\'' | '\\\\\\\"' | '\\\\' ~ ( '\\'' | '\\\"' ) ) + // /Users/bion/projects/iordache/translator/pnscript.g:620:2: ( '\\\\\\'' | '\\\\\\\"' | '\\\\' ~ ( '\\'' | '\\\"' ) ) ANTLR3_UINT32 alt10; @@ -2931,7 +2931,7 @@ switch (alt10) { case 1: - // /Users/bion/projects/iordache/translator/pnscript.g:616:4: '\\\\\\'' + // /Users/bion/projects/iordache/translator/pnscript.g:620:4: '\\\\\\'' { MATCHS(lit_32); if (HASEXCEPTION()) @@ -2944,7 +2944,7 @@ } break; case 2: - // /Users/bion/projects/iordache/translator/pnscript.g:617:4: '\\\\\\\"' + // /Users/bion/projects/iordache/translator/pnscript.g:621:4: '\\\\\\\"' { MATCHS(lit_33); if (HASEXCEPTION()) @@ -2957,7 +2957,7 @@ } break; case 3: - // /Users/bion/projects/iordache/translator/pnscript.g:618:4: '\\\\' ~ ( '\\'' | '\\\"' ) + // /Users/bion/projects/iordache/translator/pnscript.g:622:4: '\\\\' ~ ( '\\'' | '\\\"' ) { MATCHC('\\'); if (HASEXCEPTION()) @@ -2995,7 +2995,7 @@ } // $ANTLR end CHAR_ESC -// Comes from: 621:2: ( '.' ) +// Comes from: 625:2: ( '.' ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start DOT @@ -3015,8 +3015,8 @@ _type = DOT; - // /Users/bion/projects/iordache/translator/pnscript.g:621:2: ( '.' ) - // /Users/bion/projects/iordache/translator/pnscript.g:621:4: '.' + // /Users/bion/projects/iordache/translator/pnscript.g:625:2: ( '.' ) + // /Users/bion/projects/iordache/translator/pnscript.g:625:4: '.' { MATCHC('.'); if (HASEXCEPTION()) @@ -3037,7 +3037,7 @@ } // $ANTLR end DOT -// Comes from: 623:2: ( '+' ) +// Comes from: 627:2: ( '+' ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start PLUS @@ -3057,8 +3057,8 @@ _type = PLUS; - // /Users/bion/projects/iordache/translator/pnscript.g:623:2: ( '+' ) - // /Users/bion/projects/iordache/translator/pnscript.g:623:4: '+' + // /Users/bion/projects/iordache/translator/pnscript.g:627:2: ( '+' ) + // /Users/bion/projects/iordache/translator/pnscript.g:627:4: '+' { MATCHC('+'); if (HASEXCEPTION()) @@ -3079,7 +3079,7 @@ } // $ANTLR end PLUS -// Comes from: 625:2: ( '-' ) +// Comes from: 629:2: ( '-' ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start MINUS @@ -3099,8 +3099,8 @@ _type = MINUS; - // /Users/bion/projects/iordache/translator/pnscript.g:625:2: ( '-' ) - // /Users/bion/projects/iordache/translator/pnscript.g:625:4: '-' + // /Users/bion/projects/iordache/translator/pnscript.g:629:2: ( '-' ) + // /Users/bion/projects/iordache/translator/pnscript.g:629:4: '-' { MATCHC('-'); if (HASEXCEPTION()) @@ -3121,7 +3121,7 @@ } // $ANTLR end MINUS -// Comes from: 627:2: ( ( '0' .. '9' )+ ) +// Comes from: 631: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:627:2: ( ( '0' .. '9' )+ ) - // /Users/bion/projects/iordache/translator/pnscript.g:627:5: ( '0' .. '9' )+ + // /Users/bion/projects/iordache/translator/pnscript.g:631:2: ( ( '0' .. '9' )+ ) + // /Users/bion/projects/iordache/translator/pnscript.g:631:5: ( '0' .. '9' )+ { - // /Users/bion/projects/iordache/translator/pnscript.g:627:5: ( '0' .. '9' )+ + // /Users/bion/projects/iordache/translator/pnscript.g:631:5: ( '0' .. '9' )+ { int cnt11=0; @@ -3164,7 +3164,7 @@ switch (alt11) { case 1: - // /Users/bion/projects/iordache/translator/pnscript.g:627:5: '0' .. '9' + // /Users/bion/projects/iordache/translator/pnscript.g:631:5: '0' .. '9' { MATCHRANGE('0', '9'); if (HASEXCEPTION()) @@ -3208,7 +3208,7 @@ } // $ANTLR end INT -// Comes from: 629:2: ( ( 'A' .. 'Z' | 'a' .. 'z' ) ( 'A' .. 'Z' | 'a' .. 'z' | '0' .. '9' | '_' )* ) +// Comes from: 633: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: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' | '_' )* + // /Users/bion/projects/iordache/translator/pnscript.g:633:2: ( ( 'A' .. 'Z' | 'a' .. 'z' ) ( 'A' .. 'Z' | 'a' .. 'z' | '0' .. '9' | '_' )* ) + // /Users/bion/projects/iordache/translator/pnscript.g:633: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:629:24: ( 'A' .. 'Z' | 'a' .. 'z' | '0' .. '9' | '_' )* + // /Users/bion/projects/iordache/translator/pnscript.g:633:24: ( 'A' .. 'Z' | 'a' .. 'z' | '0' .. '9' | '_' )* for (;;) { @@ -3304,7 +3304,7 @@ } // $ANTLR end ID -// Comes from: 633:2: ( ( ';' )+ ) +// Comes from: 637:2: ( ( ';' )+ ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start SEMICOLON @@ -3324,10 +3324,10 @@ _type = SEMICOLON; - // /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:637:2: ( ( ';' )+ ) + // /Users/bion/projects/iordache/translator/pnscript.g:637:4: ( ';' )+ { - // /Users/bion/projects/iordache/translator/pnscript.g:633:4: ( ';' )+ + // /Users/bion/projects/iordache/translator/pnscript.g:637:4: ( ';' )+ { int cnt13=0; @@ -3347,7 +3347,7 @@ switch (alt13) { case 1: - // /Users/bion/projects/iordache/translator/pnscript.g:633:4: ';' + // /Users/bion/projects/iordache/translator/pnscript.g:637:4: ';' { MATCHC(';'); if (HASEXCEPTION()) @@ -3391,7 +3391,7 @@ } // $ANTLR end SEMICOLON -// Comes from: 637:2: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ ) +// Comes from: 641: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:637:2: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ ) - // /Users/bion/projects/iordache/translator/pnscript.g:637:5: ( ' ' | '\\t' | '\\r' | '\\n' )+ + // /Users/bion/projects/iordache/translator/pnscript.g:641:2: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ ) + // /Users/bion/projects/iordache/translator/pnscript.g:641:5: ( ' ' | '\\t' | '\\r' | '\\n' )+ { - // /Users/bion/projects/iordache/translator/pnscript.g:637:5: ( ' ' | '\\t' | '\\r' | '\\n' )+ + // /Users/bion/projects/iordache/translator/pnscript.g:641:5: ( ' ' | '\\t' | '\\r' | '\\n' )+ { int cnt14=0; @@ -3489,7 +3489,7 @@ } // $ANTLR end WS -// Comes from: 640:2: ( '//' ( . )* '\\n' ) +// Comes from: 644:2: ( '//' ( . )* '\\n' ) /** \brief Lexer rule generated by ANTLR3 * * $ANTLR start COMMENT @@ -3509,8 +3509,8 @@ _type = COMMENT; - // /Users/bion/projects/iordache/translator/pnscript.g:640:2: ( '//' ( . )* '\\n' ) - // /Users/bion/projects/iordache/translator/pnscript.g:640:5: '//' ( . )* '\\n' + // /Users/bion/projects/iordache/translator/pnscript.g:644:2: ( '//' ( . )* '\\n' ) + // /Users/bion/projects/iordache/translator/pnscript.g:644:5: '//' ( . )* '\\n' { MATCHS(lit_34); if (HASEXCEPTION()) @@ -3520,7 +3520,7 @@ - // /Users/bion/projects/iordache/translator/pnscript.g:640:10: ( . )* + // /Users/bion/projects/iordache/translator/pnscript.g:644:10: ( . )* for (;;) { @@ -3542,7 +3542,7 @@ switch (alt15) { case 1: - // /Users/bion/projects/iordache/translator/pnscript.g:640:10: . + // /Users/bion/projects/iordache/translator/pnscript.g:644:10: . { MATCHANY(); if (HASEXCEPTION()) @@ -3583,7 +3583,7 @@ } // $ANTLR end COMMENT -// Comes from: 643:2: ( '/*' ( . )* '*/' ) +// Comes from: 647: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:643:2: ( '/*' ( . )* '*/' ) - // /Users/bion/projects/iordache/translator/pnscript.g:643:5: '/*' ( . )* '*/' + // /Users/bion/projects/iordache/translator/pnscript.g:647:2: ( '/*' ( . )* '*/' ) + // /Users/bion/projects/iordache/translator/pnscript.g:647:5: '/*' ( . )* '*/' { MATCHS(lit_35); if (HASEXCEPTION()) @@ -3614,7 +3614,7 @@ - // /Users/bion/projects/iordache/translator/pnscript.g:643:10: ( . )* + // /Users/bion/projects/iordache/translator/pnscript.g:647:10: ( . )* for (;;) { @@ -3649,7 +3649,7 @@ switch (alt16) { case 1: - // /Users/bion/projects/iordache/translator/pnscript.g:643:10: . + // /Users/bion/projects/iordache/translator/pnscript.g:647:10: . { MATCHANY(); if (HASEXCEPTION()) Modified: translator/pnscriptLexer.h =================================================================== --- translator/pnscriptLexer.h 2009-07-07 03:00:22 UTC (rev 176) +++ translator/pnscriptLexer.h 2009-07-07 03:48:56 UTC (rev 177) @@ -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-06 21:52:27 + * - On : 2009-07-06 22:46:36 * - for the lexer : pnscriptLexerLexer * * Editing it, at least manually, is not wise. * Modified: translator/pnscriptParser.c =================================================================== --- translator/pnscriptParser.c 2009-07-07 03:00:22 UTC (rev 176) +++ translator/pnscriptParser.c 2009-07-07 03:48:56 UTC (rev 177) @@ -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-06 21:52:26 + * - On : 2009-07-06 22:46:35 * - for the parser : pnscriptParserParser * * Editing it, at least manually, is not wise. * @@ -607,6 +607,7 @@ static pnscriptParser_nondeterm_return nondeterm (ppnscriptParser ctx); static pnscriptParser_proc_instantiations_return proc_instantiations (ppnscriptParser ctx); static pnscriptParser_proc_init_return proc_init (ppnscriptParser ctx); +static pnscriptParser_proc_init_helper_return proc_init_helper (ppnscriptParser ctx, char* proc); static pnscriptParser_sync_def_return sync_def (ppnscriptParser ctx); static pnscriptParser_proc_start_return proc_start (ppnscriptParser ctx); static pnscriptParser_numbered_ID_return numbered_ID (ppnscriptParser ctx, ASSOC_ARRAY* places, pANTLR3_STRING name); @@ -709,6 +710,7 @@ ctx->nondeterm = nondeterm; ctx->proc_instantiations = proc_instantiations; ctx->proc_init = proc_init; + ctx->proc_init_helper = proc_init_helper; ctx->sync_def = sync_def; ctx->proc_start = proc_start; ctx->numbered_ID = numbered_ID; @@ -1066,201 +1068,204 @@ /** Bitset defining follow set for error recovery in rule state: FOLLOW_SEMICOLON_in_proc_instantiations610 */ static ANTLR3_BITWORD FOLLOW_SEMICOLON_in_proc_instantiations610_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; static ANTLR3_BITSET_LIST FOLLOW_SEMICOLON_in_proc_instantiations610 = { FOLLOW_SEMICOLON_in_proc_instantiations610_bits, 1 }; -/** 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_init632 */ -static ANTLR3_BITWORD FOLLOW_ID_in_proc_init632_bits[] = { ANTLR3_UINT64_LIT(0x0000100000000802) }; -static ANTLR3_BITSET_LIST FOLLOW_ID_in_proc_init632 = { FOLLOW_ID_in_proc_init632_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_44_in_proc_init637 */ -static ANTLR3_BITWORD FOLLOW_44_in_proc_init637_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000800) }; -static ANTLR3_BITSET_LIST FOLLOW_44_in_proc_init637 = { FOLLOW_44_in_proc_init637_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_numbered_ID_in_proc_init641 */ -static ANTLR3_BITWORD FOLLOW_numbered_ID_in_proc_init641_bits[] = { ANTLR3_UINT64_LIT(0x0000600000000000) }; -static ANTLR3_BITSET_LIST FOLLOW_numbered_ID_in_proc_init641 = { FOLLOW_numbered_ID_in_proc_init641_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_45_in_proc_init645 */ -static ANTLR3_BITWORD FOLLOW_45_in_proc_init645_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000800) }; -static ANTLR3_BITSET_LIST FOLLOW_45_in_proc_init645 = { FOLLOW_45_in_proc_init645_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_numbered_ID_in_proc_init649 */ -static ANTLR3_BITWORD FOLLOW_numbered_ID_in_proc_init649_bits[] = { ANTLR3_UINT64_LIT(0x0000600000000000) }; -static ANTLR3_BITSET_LIST FOLLOW_numbered_ID_in_proc_init649 = { FOLLOW_numbered_ID_in_proc_init649_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_46_in_proc_init654 */ -static ANTLR3_BITWORD FOLLOW_46_in_proc_init654_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000802) }; -static ANTLR3_BITSET_LIST FOLLOW_46_in_proc_init654 = { FOLLOW_46_in_proc_init654_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_SYNC_TOK_in_sync_def679 */ -static ANTLR3_BITWORD FOLLOW_SYNC_TOK_in_sync_def679_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000800) }; -static ANTLR3_BITSET_LIST FOLLOW_SYNC_TOK_in_sync_def679 = { FOLLOW_SYNC_TOK_in_sync_def679_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_group_elements_in_sync_def682 */ -static ANTLR3_BITWORD FOLLOW_group_elements_in_sync_def682_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000802) }; -static ANTLR3_BITSET_LIST FOLLOW_group_elements_in_sync_def682 = { FOLLOW_group_elements_in_sync_def682_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_START_in_proc_start704 */ -static ANTLR3_BITWORD FOLLOW_START_in_proc_start704_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000800) }; -static ANTLR3_BITSET_LIST FOLLOW_START_in_proc_start704 = { FOLLOW_START_in_proc_start704_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_ID_in_proc_start708 */ -static ANTLR3_BITWORD FOLLOW_ID_in_proc_start708_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000802) }; -static ANTLR3_BITSET_LIST FOLLOW_ID_in_proc_start708 = { FOLLOW_ID_in_proc_start708_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_ID_in_numbered_ID722 */ -static ANTLR3_BITWORD FOLLOW_ID_in_numbered_ID722_bits[] = { ANTLR3_UINT64_LIT(0x0000040000000002) }; -static ANTLR3_BITSET_LIST FOLLOW_ID_in_numbered_ID722 = { FOLLOW_ID_in_numbered_ID722_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_42_in_numbered_ID727 */ -static ANTLR3_BITWORD FOLLOW_42_in_numbered_ID727_bits[] = { ANTLR3_UINT64_LIT(0x0000000002000000) }; -static ANTLR3_BITSET_LIST FOLLOW_42_in_numbered_ID727 = { FOLLOW_42_in_numbered_ID727_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_INT_in_numbered_ID728 */ -static ANTLR3_BITWORD FOLLOW_INT_in_numbered_ID728_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; -static ANTLR3_BITSET_LIST FOLLOW_INT_in_numbered_ID728 = { FOLLOW_INT_in_numbered_ID728_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_constraint_block_in_constraints758 */ -static ANTLR3_BITWORD FOLLOW_constraint_block_in_constraints758_bits[] = { ANTLR3_UINT64_LIT(0x0000100D82000802) }; -static ANTLR3_BITSET_LIST FOLLOW_constraint_block_in_constraints758 = { FOLLOW_constraint_block_in_constraints758_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_eq_in_constraints763 */ -static ANTLR3_BITWORD FOLLOW_eq_in_constraints763_bits[] = { ANTLR3_UINT64_LIT(0x0000000000001000) }; -static ANTLR3_BITSET_LIST FOLLOW_eq_in_constraints763 = { FOLLOW_eq_in_constraints763_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_SEMICOLON_in_constraints765 */ -static ANTLR3_BITWORD FOLLOW_SEMICOLON_in_constraints765_bits[] = { ANTLR3_UINT64_LIT(0x0000100D82000802) }; -static ANTLR3_BITSET_LIST FOLLOW_SEMICOLON_in_constraints765 = { FOLLOW_SEMICOLON_in_constraints765_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_live_def_in_constraints769 */ -static ANTLR3_BITWORD FOLLOW_live_def_in_constraints769_bits[] = { ANTLR3_UINT64_LIT(0x0000100D82000802) }; -static ANTLR3_BITSET_LIST FOLLOW_live_def_in_constraints769 = { FOLLOW_live_def_in_constraints769_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_uncontrol_in_constraints771 */ -static ANTLR3_BITWORD FOLLOW_uncontrol_in_constraints771_bits[] = { ANTLR3_UINT64_LIT(0x0000100D82000802) }; -static ANTLR3_BITSET_LIST FOLLOW_uncontrol_in_constraints771 = { FOLLOW_uncontrol_in_constraints771_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_unobserve_in_constraints773 */ -static ANTLR3_BITWORD FOLLOW_unobserve_in_constraints773_bits[] = { ANTLR3_UINT64_LIT(0x0000100D82000802) }; -static ANTLR3_BITSET_LIST FOLLOW_unobserve_in_constraints773 = { FOLLOW_unobserve_in_constraints773_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_ID_in_constraint_block783 */ -static ANTLR3_BITWORD FOLLOW_ID_in_constraint_block783_bits[] = { ANTLR3_UINT64_LIT(0x0000000004000000) }; -static ANTLR3_BITSET_LIST FOLLOW_ID_in_constraint_block783 = { FOLLOW_ID_in_constraint_block783_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_CONSTRAINTS_in_constraint_block787 */ -static ANTLR3_BITWORD FOLLOW_CONSTRAINTS_in_constraint_block787_bits[] = { ANTLR3_UINT64_LIT(0x0000000000001002) }; -static ANTLR3_BITSET_LIST FOLLOW_CONSTRAINTS_in_constraint_block787 = { FOLLOW_CONSTRAINTS_in_constraint_block787_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_SEMICOLON_in_constraint_block789 */ -static ANTLR3_BITWORD FOLLOW_SEMICOLON_in_constraint_block789_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; -static ANTLR3_BITSET_LIST FOLLOW_SEMICOLON_in_constraint_block789 = { FOLLOW_SEMICOLON_in_constraint_block789_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_relationalExpression_in_eq805 */ -static ANTLR3_BITWORD FOLLOW_relationalExpression_in_eq805_bits[] = { ANTLR3_UINT64_LIT(0x0000000018000002) }; -static ANTLR3_BITSET_LIST FOLLOW_relationalExpression_in_eq805 = { FOLLOW_relationalExpression_in_eq805_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_set_in_eq808 */ -static ANTLR3_BITWORD FOLLOW_set_in_eq808_bits[] = { ANTLR3_UINT64_LIT(0x0000100082000800) }; -static ANTLR3_BITSET_LIST FOLLOW_set_in_eq808 = { FOLLOW_set_in_eq808_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_relationalExpression_in_eq815 */ -static ANTLR3_BITWORD FOLLOW_relationalExpression_in_eq815_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; -static ANTLR3_BITSET_LIST FOLLOW_relationalExpression_in_eq815 = { FOLLOW_relationalExpression_in_eq815_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_additiveExpression_in_relationalExpression831 */ -static ANTLR3_BITWORD FOLLOW_additiveExpression_in_relationalExpression831_bits[] = { ANTLR3_UINT64_LIT(0x0000000020000002) }; -static ANTLR3_BITSET_LIST FOLLOW_additiveExpression_in_relationalExpression831 = { FOLLOW_additiveExpression_in_relationalExpression831_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_EQ_OP_in_relationalExpression834 */ -static ANTLR3_BITWORD FOLLOW_EQ_OP_in_relationalExpression834_bits[] = { ANTLR3_UINT64_LIT(0x0000100082000800) }; -static ANTLR3_BITSET_LIST FOLLOW_EQ_OP_in_relationalExpression834 = { FOLLOW_EQ_OP_in_relationalExpression834_bits, 1 }; +/** Bitset defining follow set for error recovery in rule state: FOLLOW_ID_in_proc_init620 */ +static ANTLR3_BITWORD FOLLOW_ID_in_proc_init620_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000800) }; +static ANTLR3_BITSET_LIST FOLLOW_ID_in_proc_init620 = { FOLLOW_ID_in_proc_init620_bits, 1 }; +/** Bitset defining follow set for error recovery in rule state: FOLLOW_proc_init_helper_in_proc_init623 */ +static ANTLR3_BITWORD FOLLOW_proc_init_helper_in_proc_init623_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000802) }; +static ANTLR3_BITSET_LIST FOLLOW_proc_init_helper_in_proc_init623 = { FOLLOW_proc_init_helper_in_proc_init623_bits, 1 }; +/** Bitset defining follow set for error recovery in rule state: FOLLOW_ID_in_proc_init_helper641 */ +static ANTLR3_BITWORD FOLLOW_ID_in_proc_init_helper641_bits[] = { ANTLR3_UINT64_LIT(0x0000100000000002) }; +static ANTLR3_BITSET_LIST FOLLOW_ID_in_proc_init_helper641 = { FOLLOW_ID_in_proc_init_helper641_bits, 1 }; +/** Bitset defining follow set for error recovery in rule state: FOLLOW_44_in_proc_init_helper646 */ +static ANTLR3_BITWORD FOLLOW_44_in_proc_init_helper646_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000800) }; +static ANTLR3_BITSET_LIST FOLLOW_44_in_proc_init_helper646 = { FOLLOW_44_in_proc_init_helper646_bits, 1 }; +/** Bitset defining follow set for error recovery in rule state: FOLLOW_numbered_ID_in_proc_init_helper650 */ +static ANTLR3_BITWORD FOLLOW_numbered_ID_in_proc_init_helper650_bits[] = { ANTLR3_UINT64_LIT(0x0000600000000000) }; +static ANTLR3_BITSET_LIST FOLLOW_numbered_ID_in_proc_init_helper650 = { FOLLOW_numbered_ID_in_proc_init_helper650_bits, 1 }; +/** Bitset defining follow set for error recovery in rule state: FOLLOW_45_in_proc_init_helper654 */ +static ANTLR3_BITWORD FOLLOW_45_in_proc_init_helper654_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000800) }; +static ANTLR3_BITSET_LIST FOLLOW_45_in_proc_init_helper654 = { FOLLOW_45_in_proc_init_helper654_bits, 1 }; +/** Bitset defining follow set for error recovery in rule state: FOLLOW_numbered_ID_in_proc_init_helper658 */ +static ANTLR3_BITWORD FOLLOW_numbered_ID_in_proc_init_helper658_bits[] = { ANTLR3_UINT64_LIT(0x0000600000000000) }; +static ANTLR3_BITSET_LIST FOLLOW_numbered_ID_in_proc_init_helper658 = { FOLLOW_numbered_ID_in_proc_init_helper658_bits, 1 }; +/** Bitset defining follow set for error recovery in rule state: FOLLOW_46_in_proc_init_helper663 */ +static ANTLR3_BITWORD FOLLOW_46_in_proc_init_helper663_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; +static ANTLR3_BITSET_LIST FOLLOW_46_in_proc_init_helper663 = { FOLLOW_46_in_proc_init_helper663_bits, 1 }; +/** Bitset defining follow set for error recovery in rule state: FOLLOW_SYNC_TOK_in_sync_def685 */ +static ANTLR3_BITWORD FOLLOW_SYNC_TOK_in_sync_def685_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000800) }; +static ANTLR3_BITSET_LIST FOLLOW_SYNC_TOK_in_sync_def685 = { FOLLOW_SYNC_TOK_in_sync_def685_bits, 1 }; +/** Bitset defining follow set for error recovery in rule state: FOLLOW_group_elements_in_sync_def688 */ +static ANTLR3_BITWORD FOLLOW_group_elements_in_sync_def688_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000802) }; +static ANTLR3_BITSET_LIST FOLLOW_group_elements_in_sync_def688 = { FOLLOW_group_elements_in_sync_def688_bits, 1 }; +/** Bitset defining follow set for error recovery in rule state: FOLLOW_START_in_proc_start710 */ +static ANTLR3_BITWORD FOLLOW_START_in_proc_start710_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000800) }; +static ANTLR3_BITSET_LIST FOLLOW_START_in_proc_start710 = { FOLLOW_START_in_proc_start710_bits, 1 }; +/** Bitset defining follow set for error recovery in rule state: FOLLOW_ID_in_proc_start714 */ +static ANTLR3_BITWORD FOLLOW_ID_in_proc_start714_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000802) }; +static ANTLR3_BITSET_LIST FOLLOW_ID_in_proc_start714 = { FOLLOW_ID_in_proc_start714_bits, 1 }; +/** Bitset defining follow set for error recovery in rule state: FOLLOW_ID_in_numbered_ID728 */ +static ANTLR3_BITWORD FOLLOW_ID_in_numbered_ID728_bits[] = { ANTLR3_UINT64_LIT(0x0000040000000002) }; +static ANTLR3_BITSET_LIST FOLLOW_ID_in_numbered_ID728 = { FOLLOW_ID_in_numbered_ID728_bits, 1 }; +/** Bitset defining follow set for error recovery in rule state: FOLLOW_42_in_numbered_ID733 */ +static ANTLR3_BITWORD FOLLOW_42_in_numbered_ID733_bits[] = { ANTLR3_UINT64_LIT(0x0000000002000000) }; +static ANTLR3_BITSET_LIST FOLLOW_42_in_numbered_ID733 = { FOLLOW_42_in_numbered_ID733_bits, 1 }; +/** Bitset defining follow set for error recovery in rule state: FOLLOW_INT_in_numbered_ID734 */ +static ANTLR3_BITWORD FOLLOW_INT_in_numbered_ID734_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; +static ANTLR3_BITSET_LIST FOLLOW_INT_in_numbered_ID734 = { FOLLOW_INT_in_numbered_ID734_bits, 1 }; +/** Bitset defining follow set for error recovery in rule state: FOLLOW_constraint_block_in_constraints764 */ +static ANTLR3_BITWORD FOLLOW_constraint_block_in_constraints764_bits[] = { ANTLR3_UINT64_LIT(0x0000100D82000802) }; +static ANTLR3_BITSET_LIST FOLLOW_constraint_block_in_constraints764 = { FOLLOW_constraint_block_in_constraints764_bits, 1 }; +/** Bitset defining follow set for error recovery in rule state: FOLLOW_eq_in_constraints769 */ +static ANTLR3_BITWORD FOLLOW_eq_in_constraints769_bits[] = { ANTLR3_UINT64_LIT(0x0000000000001000) }; +static ANTLR3_BITSET_LIST FOLLOW_eq_in_constraints769 = { FOLLOW_eq_in_constraints769_bits, 1 }; +/** Bitset defining follow set for error recovery in rule state: FOLLOW_SEMICOLON_in_constraints771 */ +static ANTLR3_BITWORD FOLLOW_SEMICOLON_in_constraints771_bits[] = { ANTLR3_UINT64_LIT(0x0000100D82000802) }; +static ANTLR3_BITSET_LIST FOLLOW_SEMICOLON_in_constraints771 = { FOLLOW_SEMICOLON_in_constraints771_bits, 1 }; +/** Bitset defining follow set for error recovery in rule state: FOLLOW_live_def_in_constraints775 */ +static ANTLR3_BITWORD FOLLOW_live_def_in_constraints775_bits[] = { ANTLR3_UINT64_LIT(0x0000100D82000802) }; +static ANTLR3_BITSET_LIST FOLLOW_live_def_in_constraints775 = { FOLLOW_live_def_in_constraints775_bits, 1 }; +/** Bitset defining follow set for error recovery in rule state: FOLLOW_uncontrol_in_constraints777 */ +static ANTLR3_BITWORD FOLLOW_uncontrol_in_constraints777_bits[] = { ANTLR3_UINT64_LIT(0x0000100D82000802) }; +static ANTLR3_BITSET_LIST FOLLOW_uncontrol_in_constraints777 = { FOLLOW_uncontrol_in_constraints777_bits, 1 }; +/** Bitset defining follow set for error recovery in rule state: FOLLOW_unobserve_in_constraints779 */ +static ANTLR3_BITWORD FOLLOW_unobserve_in_constraints779_bits[] = { ANTLR3_UINT64_LIT(0x0000100D82000802) }; +static ANTLR3_BITSET_LIST FOLLOW_unobserve_in_constraints779 = { FOLLOW_unobserve_in_constraints779_bits, 1 }; +/** Bitset defining follow set for error recovery in rule state: FOLLOW_ID_in_constraint_block789 */ +static ANTLR3_BITWORD FOLLOW_ID_in_constraint_block789_bits[] = { ANTLR3_UINT64_LIT(0x0000000004000000) }; +static ANTLR3_BITSET_LIST FOLLOW_ID_in_constraint_block789 = { FOLLOW_ID_in_constraint_block789_bits, 1 }; +/** Bitset defining follow set for error recovery in rule state: FOLLOW_CONSTRAINTS_in_constraint_block793 */ +static ANTLR3_BITWORD FOLLOW_CONSTRAINTS_in_constraint_block793_bits[] = { ANTLR3_UINT64_LIT(0x0000000000001002) }; +static ANTLR3_BITSET_LIST FOLLOW_CONSTRAINTS_in_constraint_block793 = { FOLLOW_CONSTRAINTS_in_constraint_block793_bits, 1 }; +/** Bitset defining follow set for error recovery in rule state: FOLLOW_SEMICOLON_in_constraint_block795 */ +static ANTLR3_BITWORD FOLLOW_SEMICOLON_in_constraint_block795_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; +static ANTLR3_BITSET_LIST FOLLOW_SEMICOLON_in_constraint_block795 = { FOLLOW_SEMICOLON_in_constraint_block795_bits, 1 }; +/** Bitset defining follow set for error recovery in rule state: FOLLOW_relationalExpression_in_eq811 */ +static ANTLR3_BITWORD FOLLOW_relationalExpression_in_eq811_bits[] = { ANTLR3_UINT64_LIT(0x0000000018000002) }; +static ANTLR3_BITSET_LIST FOLLOW_relationalExpression_in_eq811 = { FOLLOW_relationalExpression_in_eq811_bits, 1 }; +/** Bitset defining follow set for error recovery in rule state: FOLLOW_set_in_eq814 */ +static ANTLR3_BITWORD FOLLOW_set_in_eq814_bits[] = { ANTLR3_UINT64_LIT(0x0000100082000800) }; +static ANTLR3_BITSET_LIST FOLLOW_set_in_eq814 = { FOLLOW_set_in_eq814_bits, 1 }; +/** Bitset defining follow set for error recovery in rule state: FOLLOW_relationalExpression_in_eq821 */ +static ANTLR3_BITWORD FOLLOW_relationalExpression_in_eq821_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; +static ANTLR3_BITSET_LIST FOLLOW_relationalExpression_in_eq821 = { FOLLOW_relationalExpression_in_eq821_bits, 1 }; /** Bitset defining follow set for error recovery in rule state: FOLLOW_additiveExpression_in_relationalExpression837 */ static ANTLR3_BITWORD FOLLOW_additiveExpression_in_relationalExpression837_bits[] = { ANTLR3_UINT64_LIT(0x0000000020000002) }; static ANTLR3_BITSET_LIST FOLLOW_additiveExpression_in_relationalExpression837 = { FOLLOW_additiveExpression_in_relationalExpression837_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_primary_in_additiveExpression848 */ -static ANTLR3_BITWORD FOLLOW_primary_in_additiveExpression848_bits[] = { ANTLR3_UINT64_LIT(0x00000000C0000002) }; -static ANTLR3_BITSET_LIST FOLLOW_primary_in_additiveExpression848 = { FOLLOW_primary_in_additiveExpression848_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_set_in_additiveExpression851 */ -static ANTLR3_BITWORD FOLLOW_set_in_additiveExpression851_bits[] = { ANTLR3_UINT64_LIT(0x0000100082000800) }; -static ANTLR3_BITSET_LIST FOLLOW_set_in_additiveExpression851 = { FOLLOW_set_in_additiveExpression851_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_primary_in_additiveExpression858 */ -static ANTLR3_BITWORD FOLLOW_primary_in_additiveExpression858_bits[] = { ANTLR3_UINT64_LIT(0x00000000C0000002) }; -static ANTLR3_BITSET_LIST FOLLOW_primary_in_additiveExpression858 = { FOLLOW_primary_in_additiveExpression858_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_44_in_primary874 */ -static ANTLR3_BITWORD FOLLOW_44_in_primary874_bits[] = { ANTLR3_UINT64_LIT(0x0000100082000800) }; -static ANTLR3_BITSET_LIST FOLLOW_44_in_primary874 = { FOLLOW_44_in_primary874_bits, 1 }; -/** Bitset defining follow set for error recovery in rule state: FOLLOW_eq_in_primary877 */ -static ANTLR3_BITWORD FOLLOW_eq_in_primary877_bits[] = { ANTLR3_UINT64_LIT(0x0000400000000000) }; -static ANTLR3_BITSET_LIST FOLLOW_eq_in_primary877 = { FOLLOW_eq_in_primary877_bits, 1 }; -/** Bitset de... [truncated message content] |