Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root : statement? (SEMICOLON!)? EOF!;
- statement : create | ...;
- create : CREATE | ( TABLE table_create | USER user_create | ....);
- try {
- int alt6=16;
- alt6 = dfa6.predict(input);
- switch (alt6) {
- case 1 :
- {
- root_0 = (CommonTree)adaptor.nil();
- pushFollow(FOLLOW_create_in_statement1088);
- create8=create();
- state._fsp--;
- adaptor.addChild(root_0, create8.getTree());
- }
- break;
- case 2 :
- ...
- /** A (...) subrule with multiple alternatives */
- block(alts,decls,decision,enclosingBlockLevel,blockLevel,decisionNumber,maxK,maxAlt,description) ::= <<
- // <fileName>:<description>
- int alt<decisionNumber>=<maxAlt>;
- <decls>
- <@predecision()>
- <decision>
- <@postdecision()>
- <@prebranch()>
- switch (alt<decisionNumber>) {
- <alts:{a | <altSwitchCase(i,a)>}>
- }
- <@postbranch()>
- >>
- /** A case in a switch that jumps to an alternative given the alternative
- * number. A DFA predicts the alternative and then a simple switch
- * does the jump to the code that actually matches that alternative.
- */
- altSwitchCase(altNum,alt) ::= <<
- case <altNum> :
- <@prealt()>
- <alt>
- break;<n>
- >>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement