/src/ca/usask/cs/giraffe/compiler/parser/CParser.java
Java | 8719 lines | 7345 code | 414 blank | 960 comment | 1334 complexity | f899d290bfbbc62a00ba072a61ed263c MD5 | raw file
Possible License(s): GPL-2.0
- /* Generated by: FreeCC 0.9.3. CParser.java */
- package ca.usask.cs.giraffe.compiler.parser;
- import ca.usask.cs.giraffe.core.GiraffeLogger;
- import java.util.*;
- @SuppressWarnings("unused")
- public class CParser implements CConstants {
- // Hastable for storing typedef types
- private static Set types=new HashSet();
- // Stack for determining when the parser
- // is parsing a typdef definition.
- private static Stack typedefParsingStack=new Stack();
- // Returns true if the given string is
- // a typedef type.
- private static boolean isType(String type) {
- return types.contains(type);
- }
- // Add a typedef type to those already defined
- private static void addType(String type) {
- types.add(type);
- }
- // Prints out all the types used in parsing the c source
- private static void printTypes() {
- for(Iterator i=types.iterator();
- i.hasNext();
- ) {
- GiraffeLogger.debug(""+i.next());
- }
- }
- private boolean buildTree=true;
- private boolean tokensAreNodes=true;
- private boolean specialTokensAreNodes=true;
- private java.util.ArrayList<Node>nodes=new java.util.ArrayList<Node>();
- private java.util.ArrayList<java.lang.Integer>marks=new java.util.ArrayList<java.lang.Integer>();
- private int mark;
- // current mark
- private boolean node_created;
- /**
- * Determines whether the current node was actually closed and
- * pushed. This should only be called in the final user action of a
- * node scope.
- */
- public boolean nodeCreated() {
- return node_created;
- }
- /**
- * Returns the root node of the AST. It only makes sense to call
- * this after a successful parse.
- */
- public Node rootNode() {
- return nodes.get(0);
- }
- /**
- * push a node onto the top of the node stack
- */
- public void pushNode(Node n) {
- nodes.add(n);
- }
- /**
- * Returns the node on the top of the stack, and remove it from the
- * stack.
- */
- public Node popNode() {
- return nodes.remove(nodes.size()-1);
- }
- /**
- * Returns the node currently on the top of the stack.
- */
- public Node peekNode() {
- return nodes.get(nodes.size()-1);
- }
- /**
- * Puts the node on the top of the stack. However, unlike pushNode()
- * it replaces the node that is currently on the top of the stack.
- * This is effectively equivalent to popNode() followed by pushNode(n)
- */
- public void pokeNode(Node n) {
- pokeNode(n,false);
- }
- /**
- * Puts the node on the top of the stack. If clearNodeScope is true,
- * it removes all the nodes in the current node scope and pushes
- * n onto the top. Otherwise, it simply replaces the node at the
- * top of the stack with n.
- */
- public void pokeNode(Node n,boolean clearNodeScope) {
- if (clearNodeScope) {
- clearNodeScope();
- nodes.add(n);
- }
- else {
- nodes.set(nodes.size()-1,n);
- }
- }
- /** Returns the number of children on the stack in the current node
- * scope.
- */
- public int nodeArity() {
- return nodes.size()-mark;
- }
- public void clearNodeScope() {
- while (nodes.size()>mark) {
- popNode();
- }
- }
- public void openNodeScope(Node n) {
- marks.add(mark);
- mark=nodes.size();
- n.open();
- }
- /* A definite node is constructed from a specified number of
- * children. That number of nodes are popped from the stack and
- * made the children of the definite node. Then the definite node
- * is pushed on to the stack. */
- public void closeNodeScope(Node n,int num) {
- mark=marks.remove(marks.size()-1);
- java.util.ArrayList<Node>nodes=new java.util.ArrayList<Node>();
- for(int i=0;
- i<num;
- i++) {
- nodes.add(popNode());
- }
- java.util.Collections.reverse(nodes);
- for(Node child : nodes) {
- if (specialTokensAreNodes&&(child instanceof Token)) {
- Token token=(Token) child;
- Token specialToken=token;
- while (specialToken!=null) {
- specialToken=specialToken.specialToken;
- }
- while (specialToken!=null&&specialToken!=token) {
- n.addChild(specialToken);
- specialToken=specialToken.next;
- }
- }
- n.addChild(child);
- }
- n.close();
- pushNode(n);
- node_created=true;
- }
- /**
- * A conditional node is constructed if its condition is true. All
- * the nodes that have been pushed since the node was opened are
- * made children of the conditional node, which is then pushed
- * on to the stack. If the condition is false the node is not
- * constructed and they are left on the stack.
- */
- public void closeNodeScope(Node n,boolean condition) {
- if (condition) {
- int a=nodeArity();
- mark=marks.remove(marks.size()-1);
- java.util.ArrayList<Node>nodes=new java.util.ArrayList<Node>();
- while (a-->0) {
- nodes.add(popNode());
- }
- java.util.Collections.reverse(nodes);
- for(Node child : nodes) {
- if (specialTokensAreNodes&&(child instanceof Token)) {
- Token token=(Token) child;
- Token specialToken=token;
- while (specialToken.specialToken!=null) {
- specialToken=specialToken.specialToken;
- }
- while (specialToken!=null&&specialToken!=token) {
- n.addChild(specialToken);
- specialToken=specialToken.next;
- }
- }
- n.addChild(child);
- }
- n.close();
- pushNode(n);
- node_created=true;
- }
- else {
- mark=marks.remove(marks.size()-1);
- node_created=false;
- }
- }
- public boolean getBuildTree() {
- return buildTree;
- }
- public void setBuildTree(boolean buildTree) {
- this.buildTree=buildTree;
- }
- private boolean isSpecialToken(Node n) {
- if (n instanceof Token) {
- Token t=(Token) n;
- return t.next!=null&&t.next.specialToken==t;
- }
- return false;
- }
- /**
- * @deprecated
- * Kludge so that existing jjtree-based code that uses
- * parser.jjtree.foo can work without change.
- */
- CParser jjtree=this;
- /** Generated Lexer. */
- public CLexer token_source;
- SimpleCharStream jj_input_stream;
- public void setInputSource(String inputSource) {
- token_source.setInputSource(inputSource);
- }
- String getInputSource() {
- return token_source.getInputSource();
- }
- Token current_token;
- /** Next token. */
- private Token jj_nt;
- private int jj_ntk;
- private Token jj_scanpos,jj_lastpos;
- private int jj_la;
- /** Whether we are looking ahead. */
- private boolean jj_lookingAhead=false;
- private boolean jj_semLA;
- private int jj_gen;
- final private int[] jj_la1=new int[79];
- static private int[] jj_la1_0;
- static private int[] jj_la1_1;
- static private int[] jj_la1_2;
- static private int[] jj_la1_3;
- static {
- jj_la1_init_0();
- jj_la1_init_1();
- jj_la1_init_2();
- jj_la1_init_3();
- }
- private static void jj_la1_init_0() {
- jj_la1_0=new int[]{0x0,0xa0a00000,0x100000,0xa0a00000,0x42400000,0x100000,0x0,0x0,0x40000000,0x0,0x0,0x100000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x4068c00,0x0,0x0,0x0,0x100000,0x0,0x100000,0x0,0x0,0x0,0x0,0x4068c00,0x0,0x0,0x0,0x4068c00,0x0,0x0,0x4068c00,0x0,0x8000000,0x10080000,0x1000000,0x4068c00,0x8000000,0x0,0x0,0x4068c00,0x4068c00,0x10080000,0x4068c00,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x4068c00,0x4000000,0x0,0x0,0x0,0x0,0x68c00,0x68c00,0x0,0x68c00};
- }
- private static void jj_la1_init_1() {
- jj_la1_1=new int[]{0x80400000,0x800,0x10,0x800,0x93669,0x10,0x400000,0x400000,0x8,0x10000000,0x20000000,0x10,0x10000000,0x80400000,0xc0400000,0x400000,0x400000,0x10000000,0x20000000,0x0,0x80400000,0x80000000,0x80400000,0x400000,0x0,0x80000000,0x10,0x0,0x10,0x10000000,0x80000000,0x10000000,0x10000000,0x84400000,0x80000000,0x0,0x80000000,0x80400000,0x80000000,0x80000000,0x80400000,0x80000000,0x4068002,0x4004,0x4100,0x80400000,0x20000,0x48002,0x2000000,0x80400000,0x80400000,0x4004,0x80400000,0x10000000,0x20000000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x400000,0x0,0x0,0x80000000,0x80000000,0x80000000,0x80400000,0x400000,0x10000000,0x0};
- }
- private static void jj_la1_init_2() {
- jj_la1_2=new int[]{0x8,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x8,0x8,0x0,0x0,0x0,0x0,0x8,0x0,0x2,0x60400008,0x0,0x2,0x0,0x0,0x8,0x0,0x0,0xa,0x0,0x0,0x60400008,0xa,0x8,0xa,0x60400008,0x2,0x2,0x60400008,0x2,0x0,0x0,0x0,0x60400008,0x0,0x0,0x0,0x60400008,0x60400008,0x0,0x60400008,0x0,0x1ff80,0x20000,0x40000,0x80000,0x100000,0x200000,0x400000,0x1800000,0x1800000,0x1e000000,0x1e000000,0x60000000,0x60000000,0x80000008,0x80000008,0x60400008,0x60400008,0x60400008,0x0,0x2,0x2,0x0,0x0,0x0,0x0};
- }
- private static void jj_la1_init_3() {
- jj_la1_3=new int[]{0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1e,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1e,0x0,0x0,0x0,0x1e,0x0,0x0,0x1e,0x0,0x0,0x0,0x0,0x1e,0x0,0x0,0x0,0x1e,0x1e,0x0,0x1e,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1,0x1,0x1e,0x1e,0x18,0x0,0x66,0x66,0x0,0x0,0x0,0x0};
- }
- final private JJCalls[] jj_2_rtns=new JJCalls[43];
- private boolean jj_rescan=false;
- private int jj_gc=0;
- public CParser(java.io.Reader stream) {
- jj_input_stream=new SimpleCharStream(stream,1,1);
- token_source=new CLexer(this,jj_input_stream);
- current_token=new Token();
- jj_ntk=-1;
- for(int i=0;
- i<79;
- i++) jj_la1[i]=-1;
- for(int i=0;
- i<jj_2_rtns.length;
- i++) jj_2_rtns[i]=new JJCalls();
- }
- /** Constructor with generated Token Manager. */
- public CParser(CLexer tm) {
- token_source=tm;
- current_token=new Token();
- jj_ntk=-1;
- for(int i=0;
- i<79;
- i++) jj_la1[i]=-1;
- for(int i=0;
- i<jj_2_rtns.length;
- i++) jj_2_rtns[i]=new JJCalls();
- }
- private Token jj_consume_token(int kind) throws ParseException {
- Token oldToken=current_token;
- if (current_token.next!=null) current_token=current_token.next;
- else current_token=current_token.next=token_source.getNextToken();
- jj_ntk=-1;
- if (current_token.kind==kind) {
- jj_gen++;
- if (++jj_gc>100) {
- jj_gc=0;
- for(int i=0;
- i<jj_2_rtns.length;
- i++) {
- JJCalls c=jj_2_rtns[i];
- while (c!=null) {
- if (c.gen<jj_gen) c.first=null;
- c=c.next;
- }
- }
- }
- if (buildTree&&tokensAreNodes) {
- pushNode(current_token);
- }
- return current_token;
- }
- current_token=oldToken;
- jj_kind=kind;
- throw generateParseException();
- }
- @SuppressWarnings("serial")
- static private final class LookaheadSuccess extends java.lang.Error {
- }
- final private LookaheadSuccess jj_ls=new LookaheadSuccess();
- private boolean jj_scan_token(int kind) {
- if (jj_scanpos==jj_lastpos) {
- jj_la--;
- if (jj_scanpos.next==null) {
- jj_lastpos=jj_scanpos=jj_scanpos.next=token_source.getNextToken();
- }
- else {
- jj_lastpos=jj_scanpos=jj_scanpos.next;
- }
- }
- else {
- jj_scanpos=jj_scanpos.next;
- }
- if (jj_rescan) {
- int i=0;
- Token tok=current_token;
- while (tok!=null&&tok!=jj_scanpos) {
- i++;
- tok=tok.next;
- }
- if (tok!=null) jj_add_error_token(kind,i);
- }
- if (jj_scanpos.kind!=kind) return true;
- if (jj_la==0&&jj_scanpos==jj_lastpos) throw jj_ls;
- return false;
- }
- /** Get the next Token. */
- final public Token getNextToken() {
- if (current_token.next!=null) current_token=current_token.next;
- else current_token=current_token.next=token_source.getNextToken();
- jj_ntk=-1;
- jj_gen++;
- return current_token;
- }
- /** Get the specific Token. */
- final public Token getToken(int index) {
- Token t=current_token;
- for(int i=0;
- i<index;
- i++) {
- if (t.next!=null) t=t.next;
- else t=t.next=token_source.getNextToken();
- }
- return t;
- }
- private int jj_ntk() {
- if ((jj_nt=current_token.next)==null) return(jj_ntk=(current_token.next=token_source.getNextToken()).kind);
- else return(jj_ntk=jj_nt.kind);
- }
- private java.util.ArrayList<int[]>jj_expentries=new java.util.ArrayList<int[]>();
- private int[] jj_expentry;
- private int jj_kind=-1;
- private int[] jj_lasttokens=new int[100];
- private int jj_endpos;
- private void jj_add_error_token(int kind,int pos) {
- if (pos>=100) return;
- if (pos==jj_endpos+1) {
- jj_lasttokens[jj_endpos++]=kind;
- }
- else if (jj_endpos!=0) {
- jj_expentry=new int[jj_endpos];
- for(int i=0;
- i<jj_endpos;
- i++) {
- jj_expentry[i]=jj_lasttokens[i];
- }
- jj_entries_loop:
- for(java.util.Iterator<int[]>it=jj_expentries.iterator();
- it.hasNext();
- ) {
- int[] oldentry=(int[])(it.next());
- if (oldentry.length==jj_expentry.length) {
- for(int i=0;
- i<jj_expentry.length;
- i++) {
- if (oldentry[i]!=jj_expentry[i]) {
- continue jj_entries_loop;
- }
- }
- jj_expentries.add(jj_expentry);
- break jj_entries_loop;
- }
- }
- if (pos!=0) jj_lasttokens[(jj_endpos=pos)-1]=kind;
- }
- }
- public ParseException generateParseException() {
- jj_expentries.clear();
- boolean[] la1tokens=new boolean[103];
- if (jj_kind>=0) {
- la1tokens[jj_kind]=true;
- jj_kind=-1;
- }
- for(int i=0;
- i<79;
- i++) {
- if (jj_la1[i]==jj_gen) {
- for(int j=0;
- j<32;
- j++) {
- if ((jj_la1_0[i]&(1<<j))!=0) {
- la1tokens[0+j]=true;
- }
- if ((jj_la1_1[i]&(1<<j))!=0) {
- la1tokens[32+j]=true;
- }
- if ((jj_la1_2[i]&(1<<j))!=0) {
- la1tokens[64+j]=true;
- }
- if ((jj_la1_3[i]&(1<<j))!=0) {
- la1tokens[96+j]=true;
- }
- }
- }
- }
- for(int i=0;
- i<103;
- i++) {
- if (la1tokens[i]) {
- jj_expentry=new int[1];
- jj_expentry[0]=i;
- jj_expentries.add(jj_expentry);
- }
- }
- jj_endpos=0;
- jj_rescan_token();
- jj_add_error_token(0,0);
- int[][] exptokseq=new int[jj_expentries.size()][];
- for(int i=0;
- i<jj_expentries.size();
- i++) {
- exptokseq[i]=(int[]) jj_expentries.get(i);
- }
- return new ParseException(current_token,exptokseq,tokenImage);
- }
- /** Enable tracing. */
- final public void enable_tracing() {
- }
- /** Disable tracing. */
- final public void disable_tracing() {
- }
- private void jj_rescan_token() {
- jj_rescan=true;
- for(int i=0;
- i<43;
- i++) {
- try {
- JJCalls p=jj_2_rtns[i];
- do {
- if (p.gen>jj_gen) {
- jj_la=p.arg;
- jj_lastpos=jj_scanpos=p.first;
- switch(i) {
- case 0:
- jj_3_1();
- break;
- case 1:
- jj_3_2();
- break;
- case 2:
- jj_3_3();
- break;
- case 3:
- jj_3_4();
- break;
- case 4:
- jj_3_5();
- break;
- case 5:
- jj_3_6();
- break;
- case 6:
- jj_3_7();
- break;
- case 7:
- jj_3_8();
- break;
- case 8:
- jj_3_9();
- break;
- case 9:
- jj_3_10();
- break;
- case 10:
- jj_3_11();
- break;
- case 11:
- jj_3_12();
- break;
- case 12:
- jj_3_13();
- break;
- case 13:
- jj_3_14();
- break;
- case 14:
- jj_3_15();
- break;
- case 15:
- jj_3_16();
- break;
- case 16:
- jj_3_17();
- break;
- case 17:
- jj_3_18();
- break;
- case 18:
- jj_3_19();
- break;
- case 19:
- jj_3_20();
- break;
- case 20:
- jj_3_21();
- break;
- case 21:
- jj_3_22();
- break;
- case 22:
- jj_3_23();
- break;
- case 23:
- jj_3_24();
- break;
- case 24:
- jj_3_25();
- break;
- case 25:
- jj_3_26();
- break;
- case 26:
- jj_3_27();
- break;
- case 27:
- jj_3_28();
- break;
- case 28:
- jj_3_29();
- break;
- case 29:
- jj_3_30();
- break;
- case 30:
- jj_3_31();
- break;
- case 31:
- jj_3_32();
- break;
- case 32:
- jj_3_33();
- break;
- case 33:
- jj_3_34();
- break;
- case 34:
- jj_3_35();
- break;
- case 35:
- jj_3_36();
- break;
- case 36:
- jj_3_37();
- break;
- case 37:
- jj_3_38();
- break;
- case 38:
- jj_3_39();
- break;
- case 39:
- jj_3_40();
- break;
- case 40:
- jj_3_41();
- break;
- case 41:
- jj_3_42();
- break;
- case 42:
- jj_3_43();
- break;
- }
- }
- p=p.next;
- }
- while (p!=null);
- }
- catch(LookaheadSuccess ls) {
- }
- }
- jj_rescan=false;
- }
- private void jj_save(int index,int xla) {
- JJCalls p=jj_2_rtns[index];
- while (p.gen>jj_gen) {
- if (p.next==null) {
- p=p.next=new JJCalls();
- break;
- }
- p=p.next;
- }
- p.gen=jj_gen+xla-jj_la;
- p.first=current_token;
- p.arg=xla;
- }
- static final class JJCalls {
- int gen;
- Token first;
- int arg;
- JJCalls next;
- }
- // C.jj, line 235
- final public void TranslationUnit() throws ParseException {
- // C.jj, line 237
- TranslationUnit node1=null;
- if (buildTree) {
- node1=new TranslationUnit();
- Token jjtStartToken=getToken(1);
- node1.setBeginLine(jjtStartToken.beginLine);
- node1.setBeginColumn(jjtStartToken.beginColumn);
- node1.setInputSource(this.getInputSource());
- openNodeScope(node1);
- }
- boolean hitException1=false;
- try {
- // C.jj, line 237
- label_1:
- while (true) {
- // C.jj, line 237
- // C.jj, line 237
- ExternalDeclaration();
- if (!(jj_2_1(1))) {
- break label_1;
- }
- }
- // C.jj, line 238
- printTypes();
- }
- catch(Exception e1) {
- hitException1=false;
- if (e1 instanceof ParseException) throw(ParseException) e1;
- if (e1 instanceof RuntimeException) throw(RuntimeException) e1;
- throw new RuntimeException(e1);
- }
- finally {
- if (buildTree) {
- if (!hitException1) {
- closeNodeScope(node1,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node1.setEndLine(jjtEndToken.endLine);
- node1.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 241
- final public void ExternalDeclaration() throws ParseException {
- // C.jj, line 243
- ExternalDeclaration node2=null;
- if (buildTree) {
- node2=new ExternalDeclaration();
- Token jjtStartToken=getToken(1);
- node2.setBeginLine(jjtStartToken.beginLine);
- node2.setBeginColumn(jjtStartToken.beginColumn);
- node2.setInputSource(this.getInputSource());
- openNodeScope(node2);
- }
- boolean hitException2=false;
- try {
- // C.jj, line 243
- if (jj_2_2(2147483647)) {
- // C.jj, line 243
- // C.jj, line 243
- FunctionDefinition();
- }
- else if (jj_2_3(1)) {
- // C.jj, line 243
- // C.jj, line 243
- Declaration();
- }
- else {
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
- catch(Exception e2) {
- hitException2=false;
- if (e2 instanceof ParseException) throw(ParseException) e2;
- if (e2 instanceof RuntimeException) throw(RuntimeException) e2;
- throw new RuntimeException(e2);
- }
- finally {
- if (buildTree) {
- if (!hitException2) {
- closeNodeScope(node2,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node2.setEndLine(jjtEndToken.endLine);
- node2.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- //Removed Declaration list
- //Since declarations are statements now
- // C.jj, line 248
- final public void FunctionDefinition() throws ParseException {
- // C.jj, line 250
- FunctionDefinition node3=null;
- if (buildTree) {
- node3=new FunctionDefinition();
- Token jjtStartToken=getToken(1);
- node3.setBeginLine(jjtStartToken.beginLine);
- node3.setBeginColumn(jjtStartToken.beginColumn);
- node3.setInputSource(this.getInputSource());
- openNodeScope(node3);
- }
- boolean hitException3=false;
- try {
- // C.jj, line 250
- if (jj_2_4(2147483647)) {
- // C.jj, line 250
- // C.jj, line 250
- DeclarationSpecifiers();
- }
- // C.jj, line 250
- Declarator();
- // C.jj, line 252
- CompoundStatement();
- }
- catch(Exception e3) {
- hitException3=false;
- if (e3 instanceof ParseException) throw(ParseException) e3;
- if (e3 instanceof RuntimeException) throw(RuntimeException) e3;
- throw new RuntimeException(e3);
- }
- finally {
- if (buildTree) {
- if (!hitException3) {
- closeNodeScope(node3,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node3.setEndLine(jjtEndToken.endLine);
- node3.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 255
- final public void Declaration() throws ParseException {
- // C.jj, line 257
- Declaration node4=null;
- if (buildTree) {
- node4=new Declaration();
- Token jjtStartToken=getToken(1);
- node4.setBeginLine(jjtStartToken.beginLine);
- node4.setBeginColumn(jjtStartToken.beginColumn);
- node4.setInputSource(this.getInputSource());
- openNodeScope(node4);
- }
- boolean hitException4=false;
- try {
- // C.jj, line 257
- DeclarationSpecifiers();
- // C.jj, line 257
- int int1=(jj_ntk==-1)?jj_ntk():
- jj_ntk;
- if (int1==IDENTIFIER||int1==63||int1==67) {
- // C.jj, line 257
- // C.jj, line 257
- InitDeclaratorList();
- }
- else {
- jj_la1[0]=jj_gen;
- }
- // C.jj, line 257
- jj_consume_token(57);
- }
- catch(Exception e4) {
- hitException4=false;
- if (e4 instanceof ParseException) throw(ParseException) e4;
- if (e4 instanceof RuntimeException) throw(RuntimeException) e4;
- throw new RuntimeException(e4);
- }
- finally {
- if (buildTree) {
- if (!hitException4) {
- closeNodeScope(node4,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node4.setEndLine(jjtEndToken.endLine);
- node4.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- //Changed to allow mid-function declarations
- //Removed, but added declaration as type of Statement
- // C.jj, line 263
- final public void DeclarationList() throws ParseException {
- // C.jj, line 265
- DeclarationList node5=null;
- if (buildTree) {
- node5=new DeclarationList();
- Token jjtStartToken=getToken(1);
- node5.setBeginLine(jjtStartToken.beginLine);
- node5.setBeginColumn(jjtStartToken.beginColumn);
- node5.setInputSource(this.getInputSource());
- openNodeScope(node5);
- }
- boolean hitException5=false;
- try {
- // C.jj, line 265
- label_2:
- while (true) {
- // C.jj, line 265
- // C.jj, line 265
- Declaration();
- if (!(jj_2_5(2147483647))) {
- break label_2;
- }
- }
- }
- catch(Exception e5) {
- hitException5=false;
- if (e5 instanceof ParseException) throw(ParseException) e5;
- if (e5 instanceof RuntimeException) throw(RuntimeException) e5;
- throw new RuntimeException(e5);
- }
- finally {
- if (buildTree) {
- if (!hitException5) {
- closeNodeScope(node5,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node5.setEndLine(jjtEndToken.endLine);
- node5.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 268
- final public void DeclarationSpecifiers() throws ParseException {
- // C.jj, line 270
- DeclarationSpecifiers node6=null;
- if (buildTree) {
- node6=new DeclarationSpecifiers();
- Token jjtStartToken=getToken(1);
- node6.setBeginLine(jjtStartToken.beginLine);
- node6.setBeginColumn(jjtStartToken.beginColumn);
- node6.setInputSource(this.getInputSource());
- openNodeScope(node6);
- }
- boolean hitException6=false;
- try {
- switch((jj_ntk==-1)?jj_ntk():
- jj_ntk) {
- case REGISTER:
- case TYPEDEF:
- case EXTERN:
- case STATIC:
- case AUTO:
- // C.jj, line 270
- // C.jj, line 270
- StorageClassSpecifier();
- // C.jj, line 270
- if (jj_2_6(2147483647)) {
- // C.jj, line 270
- // C.jj, line 271
- DeclarationSpecifiers();
- }
- break;
- default:
- jj_la1[1]=jj_gen;
- if (jj_2_9(1)) {
- // C.jj, line 272
- // C.jj, line 272
- TypeSpecifier();
- // C.jj, line 272
- if (jj_2_7(2147483647)) {
- // C.jj, line 272
- // C.jj, line 273
- DeclarationSpecifiers();
- }
- }
- else {
- switch((jj_ntk==-1)?jj_ntk():
- jj_ntk) {
- case VOLATILE:
- case CONST:
- // C.jj, line 274
- // C.jj, line 274
- TypeQualifier();
- // C.jj, line 274
- if (jj_2_8(2147483647)) {
- // C.jj, line 274
- // C.jj, line 275
- DeclarationSpecifiers();
- }
- break;
- default:
- jj_la1[2]=jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
- }
- }
- catch(Exception e6) {
- hitException6=false;
- if (e6 instanceof ParseException) throw(ParseException) e6;
- if (e6 instanceof RuntimeException) throw(RuntimeException) e6;
- throw new RuntimeException(e6);
- }
- finally {
- if (buildTree) {
- if (!hitException6) {
- closeNodeScope(node6,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node6.setEndLine(jjtEndToken.endLine);
- node6.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 278
- final public void StorageClassSpecifier() throws ParseException {
- // C.jj, line 280
- StorageClassSpecifier node7=null;
- if (buildTree) {
- node7=new StorageClassSpecifier();
- Token jjtStartToken=getToken(1);
- node7.setBeginLine(jjtStartToken.beginLine);
- node7.setBeginColumn(jjtStartToken.beginColumn);
- node7.setInputSource(this.getInputSource());
- openNodeScope(node7);
- }
- boolean hitException7=false;
- try {
- // C.jj, line 280
- switch((jj_ntk==-1)?jj_ntk():
- jj_ntk) {
- case AUTO:
- // C.jj, line 280
- // C.jj, line 280
- jj_consume_token(AUTO);
- break;
- case REGISTER:
- // C.jj, line 280
- // C.jj, line 280
- jj_consume_token(REGISTER);
- break;
- case STATIC:
- // C.jj, line 280
- // C.jj, line 280
- jj_consume_token(STATIC);
- break;
- case EXTERN:
- // C.jj, line 280
- // C.jj, line 280
- jj_consume_token(EXTERN);
- break;
- case TYPEDEF:
- // C.jj, line 280
- // C.jj, line 280
- jj_consume_token(TYPEDEF);
- // C.jj, line 281
- typedefParsingStack.push(Boolean.TRUE);
- break;
- default:
- jj_la1[3]=jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
- catch(Exception e7) {
- hitException7=false;
- if (e7 instanceof ParseException) throw(ParseException) e7;
- if (e7 instanceof RuntimeException) throw(RuntimeException) e7;
- throw new RuntimeException(e7);
- }
- finally {
- if (buildTree) {
- if (!hitException7) {
- closeNodeScope(node7,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node7.setEndLine(jjtEndToken.endLine);
- node7.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 286
- final public void TypeSpecifier() throws ParseException {
- // C.jj, line 288
- TypeSpecifier node8=null;
- if (buildTree) {
- node8=new TypeSpecifier();
- Token jjtStartToken=getToken(1);
- node8.setBeginLine(jjtStartToken.beginLine);
- node8.setBeginColumn(jjtStartToken.beginColumn);
- node8.setInputSource(this.getInputSource());
- openNodeScope(node8);
- }
- boolean hitException8=false;
- try {
- // C.jj, line 288
- switch((jj_ntk==-1)?jj_ntk():
- jj_ntk) {
- case VOID:
- // C.jj, line 288
- // C.jj, line 288
- jj_consume_token(VOID);
- break;
- case CHAR:
- // C.jj, line 288
- // C.jj, line 288
- jj_consume_token(CHAR);
- break;
- case SHORT:
- // C.jj, line 288
- // C.jj, line 288
- jj_consume_token(SHORT);
- break;
- case INT:
- // C.jj, line 288
- // C.jj, line 288
- jj_consume_token(INT);
- break;
- case LONG:
- // C.jj, line 288
- // C.jj, line 288
- jj_consume_token(LONG);
- break;
- case FLOAT:
- // C.jj, line 288
- // C.jj, line 288
- jj_consume_token(FLOAT);
- break;
- case DOUBLE:
- // C.jj, line 288
- // C.jj, line 288
- jj_consume_token(DOUBLE);
- break;
- case SIGNED:
- // C.jj, line 288
- // C.jj, line 288
- jj_consume_token(SIGNED);
- break;
- case BOOL:
- // C.jj, line 288
- // C.jj, line 288
- jj_consume_token(BOOL);
- break;
- case UNSIGNED:
- // C.jj, line 289
- // C.jj, line 289
- jj_consume_token(UNSIGNED);
- break;
- case STRUCT:
- case UNION:
- // C.jj, line 289
- // C.jj, line 289
- StructOrUnionSpecifier();
- break;
- case ENUM:
- // C.jj, line 289
- // C.jj, line 289
- EnumSpecifier();
- break;
- default:
- jj_la1[4]=jj_gen;
- if (isType(getToken(1).image)) {
- // C.jj, line 289
- // C.jj, line 289
- TypedefName();
- }
- else {
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
- }
- catch(Exception e8) {
- hitException8=false;
- if (e8 instanceof ParseException) throw(ParseException) e8;
- if (e8 instanceof RuntimeException) throw(RuntimeException) e8;
- throw new RuntimeException(e8);
- }
- finally {
- if (buildTree) {
- if (!hitException8) {
- closeNodeScope(node8,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node8.setEndLine(jjtEndToken.endLine);
- node8.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 292
- final public void TypeQualifier() throws ParseException {
- // C.jj, line 294
- TypeQualifier node9=null;
- if (buildTree) {
- node9=new TypeQualifier();
- Token jjtStartToken=getToken(1);
- node9.setBeginLine(jjtStartToken.beginLine);
- node9.setBeginColumn(jjtStartToken.beginColumn);
- node9.setInputSource(this.getInputSource());
- openNodeScope(node9);
- }
- boolean hitException9=false;
- try {
- // C.jj, line 294
- switch((jj_ntk==-1)?jj_ntk():
- jj_ntk) {
- case CONST:
- // C.jj, line 294
- // C.jj, line 294
- jj_consume_token(CONST);
- break;
- case VOLATILE:
- // C.jj, line 294
- // C.jj, line 294
- jj_consume_token(VOLATILE);
- break;
- default:
- jj_la1[5]=jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
- catch(Exception e9) {
- hitException9=false;
- if (e9 instanceof ParseException) throw(ParseException) e9;
- if (e9 instanceof RuntimeException) throw(RuntimeException) e9;
- throw new RuntimeException(e9);
- }
- finally {
- if (buildTree) {
- if (!hitException9) {
- closeNodeScope(node9,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node9.setEndLine(jjtEndToken.endLine);
- node9.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 297
- final public void StructOrUnionSpecifier() throws ParseException {
- // C.jj, line 299
- StructOrUnionSpecifier node10=null;
- if (buildTree) {
- node10=new StructOrUnionSpecifier();
- Token jjtStartToken=getToken(1);
- node10.setBeginLine(jjtStartToken.beginLine);
- node10.setBeginColumn(jjtStartToken.beginColumn);
- node10.setInputSource(this.getInputSource());
- openNodeScope(node10);
- }
- boolean hitException10=false;
- try {
- // C.jj, line 299
- typedefParsingStack.push(Boolean.FALSE);
- // C.jj, line 303
- StructOrUnion();
- // C.jj, line 303
- if (jj_2_10(3)) {
- // C.jj, line 303
- // C.jj, line 303
- int int2=(jj_ntk==-1)?jj_ntk():
- jj_ntk;
- if (int2==IDENTIFIER) {
- // C.jj, line 303
- // C.jj, line 303
- jj_consume_token(IDENTIFIER);
- }
- else {
- jj_la1[6]=jj_gen;
- }
- // C.jj, line 303
- jj_consume_token(58);
- // C.jj, line 303
- StructDeclarationList();
- // C.jj, line 303
- jj_consume_token(59);
- }
- else {
- switch((jj_ntk==-1)?jj_ntk():
- jj_ntk) {
- case IDENTIFIER:
- // C.jj, line 303
- // C.jj, line 303
- jj_consume_token(IDENTIFIER);
- break;
- default:
- jj_la1[7]=jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
- // C.jj, line 305
- typedefParsingStack.pop();
- }
- catch(Exception e10) {
- hitException10=false;
- if (e10 instanceof ParseException) throw(ParseException) e10;
- if (e10 instanceof RuntimeException) throw(RuntimeException) e10;
- throw new RuntimeException(e10);
- }
- finally {
- if (buildTree) {
- if (!hitException10) {
- closeNodeScope(node10,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node10.setEndLine(jjtEndToken.endLine);
- node10.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 310
- final public void StructOrUnion() throws ParseException {
- // C.jj, line 312
- StructOrUnion node11=null;
- if (buildTree) {
- node11=new StructOrUnion();
- Token jjtStartToken=getToken(1);
- node11.setBeginLine(jjtStartToken.beginLine);
- node11.setBeginColumn(jjtStartToken.beginColumn);
- node11.setInputSource(this.getInputSource());
- openNodeScope(node11);
- }
- boolean hitException11=false;
- try {
- // C.jj, line 312
- switch((jj_ntk==-1)?jj_ntk():
- jj_ntk) {
- case STRUCT:
- // C.jj, line 312
- // C.jj, line 312
- jj_consume_token(STRUCT);
- break;
- case UNION:
- // C.jj, line 312
- // C.jj, line 312
- jj_consume_token(UNION);
- break;
- default:
- jj_la1[8]=jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
- catch(Exception e11) {
- hitException11=false;
- if (e11 instanceof ParseException) throw(ParseException) e11;
- if (e11 instanceof RuntimeException) throw(RuntimeException) e11;
- throw new RuntimeException(e11);
- }
- finally {
- if (buildTree) {
- if (!hitException11) {
- closeNodeScope(node11,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node11.setEndLine(jjtEndToken.endLine);
- node11.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 317
- final public void StructDeclarationList() throws ParseException {
- // C.jj, line 319
- StructDeclarationList node12=null;
- if (buildTree) {
- node12=new StructDeclarationList();
- Token jjtStartToken=getToken(1);
- node12.setBeginLine(jjtStartToken.beginLine);
- node12.setBeginColumn(jjtStartToken.beginColumn);
- node12.setInputSource(this.getInputSource());
- openNodeScope(node12);
- }
- boolean hitException12=false;
- try {
- // C.jj, line 319
- label_3:
- while (true) {
- // C.jj, line 319
- // C.jj, line 319
- StructDeclaration();
- if (!(jj_2_11(1))) {
- break label_3;
- }
- }
- }
- catch(Exception e12) {
- hitException12=false;
- if (e12 instanceof ParseException) throw(ParseException) e12;
- if (e12 instanceof RuntimeException) throw(RuntimeException) e12;
- throw new RuntimeException(e12);
- }
- finally {
- if (buildTree) {
- if (!hitException12) {
- closeNodeScope(node12,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node12.setEndLine(jjtEndToken.endLine);
- node12.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 322
- final public void InitDeclaratorList() throws ParseException {
- // C.jj, line 324
- InitDeclaratorList node13=null;
- if (buildTree) {
- node13=new InitDeclaratorList();
- Token jjtStartToken=getToken(1);
- node13.setBeginLine(jjtStartToken.beginLine);
- node13.setBeginColumn(jjtStartToken.beginColumn);
- node13.setInputSource(this.getInputSource());
- openNodeScope(node13);
- }
- boolean hitException13=false;
- try {
- // C.jj, line 324
- InitDeclarator();
- // C.jj, line 324
- label_4:
- while (true) {
- int int3=(jj_ntk==-1)?jj_ntk():
- jj_ntk;
- if (!(int3==60)) {
- jj_la1[9]=jj_gen;
- break label_4;
- }
- // C.jj, line 324
- // C.jj, line 324
- jj_consume_token(60);
- // C.jj, line 324
- InitDeclarator();
- }
- // C.jj, line 325
- // Finished with a typedefDeclaration??
- if (!(typedefParsingStack.empty())&&((Boolean) typedefParsingStack.peek()).booleanValue()) {
- typedefParsingStack.pop();
- }
- }
- catch(Exception e13) {
- hitException13=false;
- if (e13 instanceof ParseException) throw(ParseException) e13;
- if (e13 instanceof RuntimeException) throw(RuntimeException) e13;
- throw new RuntimeException(e13);
- }
- finally {
- if (buildTree) {
- if (!hitException13) {
- closeNodeScope(node13,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node13.setEndLine(jjtEndToken.endLine);
- node13.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 333
- final public void InitDeclarator() throws ParseException {
- // C.jj, line 335
- InitDeclarator node14=null;
- if (buildTree) {
- node14=new InitDeclarator();
- Token jjtStartToken=getToken(1);
- node14.setBeginLine(jjtStartToken.beginLine);
- node14.setBeginColumn(jjtStartToken.beginColumn);
- node14.setInputSource(this.getInputSource());
- openNodeScope(node14);
- }
- boolean hitException14=false;
- try {
- // C.jj, line 335
- Declarator();
- // C.jj, line 335
- int int4=(jj_ntk==-1)?jj_ntk():
- jj_ntk;
- if (int4==61) {
- // C.jj, line 335
- // C.jj, line 335
- jj_consume_token(61);
- // C.jj, line 335
- Initializer();
- }
- else {
- jj_la1[10]=jj_gen;
- }
- }
- catch(Exception e14) {
- hitException14=false;
- if (e14 instanceof ParseException) throw(ParseException) e14;
- if (e14 instanceof RuntimeException) throw(RuntimeException) e14;
- throw new RuntimeException(e14);
- }
- finally {
- if (buildTree) {
- if (!hitException14) {
- closeNodeScope(node14,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node14.setEndLine(jjtEndToken.endLine);
- node14.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 338
- final public void StructDeclaration() throws ParseException {
- // C.jj, line 340
- StructDeclaration node15=null;
- if (buildTree) {
- node15=new StructDeclaration();
- Token jjtStartToken=getToken(1);
- node15.setBeginLine(jjtStartToken.beginLine);
- node15.setBeginColumn(jjtStartToken.beginColumn);
- node15.setInputSource(this.getInputSource());
- openNodeScope(node15);
- }
- boolean hitException15=false;
- try {
- // C.jj, line 340
- SpecifierQualifierList();
- // C.jj, line 340
- StructDeclaratorList();
- // C.jj, line 340
- jj_consume_token(57);
- }
- catch(Exception e15) {
- hitException15=false;
- if (e15 instanceof ParseException) throw(ParseException) e15;
- if (e15 instanceof RuntimeException) throw(RuntimeException) e15;
- throw new RuntimeException(e15);
- }
- finally {
- if (buildTree) {
- if (!hitException15) {
- closeNodeScope(node15,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node15.setEndLine(jjtEndToken.endLine);
- node15.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 343
- final public void SpecifierQualifierList() throws ParseException {
- // C.jj, line 345
- SpecifierQualifierList node16=null;
- if (buildTree) {
- node16=new SpecifierQualifierList();
- Token jjtStartToken=getToken(1);
- node16.setBeginLine(jjtStartToken.beginLine);
- node16.setBeginColumn(jjtStartToken.beginColumn);
- node16.setInputSource(this.getInputSource());
- openNodeScope(node16);
- }
- boolean hitException16=false;
- try {
- if (jj_2_14(1)) {
- // C.jj, line 345
- // C.jj, line 345
- TypeSpecifier();
- // C.jj, line 345
- if (jj_2_12(2147483647)) {
- // C.jj, line 345
- // C.jj, line 346
- SpecifierQualifierList();
- }
- }
- else {
- switch((jj_ntk==-1)?jj_ntk():
- jj_ntk) {
- case VOLATILE:
- case CONST:
- // C.jj, line 347
- // C.jj, line 347
- TypeQualifier();
- // C.jj, line 347
- if (jj_2_13(2147483647)) {
- // C.jj, line 347
- // C.jj, line 348
- SpecifierQualifierList();
- }
- break;
- default:
- jj_la1[11]=jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
- }
- catch(Exception e16) {
- hitException16=false;
- if (e16 instanceof ParseException) throw(ParseException) e16;
- if (e16 instanceof RuntimeException) throw(RuntimeException) e16;
- throw new RuntimeException(e16);
- }
- finally {
- if (buildTree) {
- if (!hitException16) {
- closeNodeScope(node16,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node16.setEndLine(jjtEndToken.endLine);
- node16.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 351
- final public void StructDeclaratorList() throws ParseException {
- // C.jj, line 353
- StructDeclaratorList node17=null;
- if (buildTree) {
- node17=new StructDeclaratorList();
- Token jjtStartToken=getToken(1);
- node17.setBeginLine(jjtStartToken.beginLine);
- node17.setBeginColumn(jjtStartToken.beginColumn);
- node17.setInputSource(this.getInputSource());
- openNodeScope(node17);
- }
- boolean hitException17=false;
- try {
- // C.jj, line 353
- StructDeclarator();
- // C.jj, line 353
- label_5:
- while (true) {
- int int5=(jj_ntk==-1)?jj_ntk():
- jj_ntk;
- if (!(int5==60)) {
- jj_la1[12]=jj_gen;
- break label_5;
- }
- // C.jj, line 353
- // C.jj, line 353
- jj_consume_token(60);
- // C.jj, line 353
- StructDeclarator();
- }
- }
- catch(Exception e17) {
- hitException17=false;
- if (e17 instanceof ParseException) throw(ParseException) e17;
- if (e17 instanceof RuntimeException) throw(RuntimeException) e17;
- throw new RuntimeException(e17);
- }
- finally {
- if (buildTree) {
- if (!hitException17) {
- closeNodeScope(node17,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node17.setEndLine(jjtEndToken.endLine);
- node17.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 356
- final public void StructDeclarator() throws ParseException {
- // C.jj, line 358
- StructDeclarator node18=null;
- if (buildTree) {
- node18=new StructDeclarator();
- Token jjtStartToken=getToken(1);
- node18.setBeginLine(jjtStartToken.beginLine);
- node18.setBeginColumn(jjtStartToken.beginColumn);
- node18.setInputSource(this.getInputSource());
- openNodeScope(node18);
- }
- boolean hitException18=false;
- try {
- // C.jj, line 358
- if (jj_2_15(3)) {
- // C.jj, line 358
- // C.jj, line 358
- Declarator();
- }
- else {
- switch((jj_ntk==-1)?jj_ntk():
- jj_ntk) {
- case IDENTIFIER:
- case 62:
- case 63:
- case 67:
- // C.jj, line 358
- // C.jj, line 358
- int int6=(jj_ntk==-1)?jj_ntk():
- jj_ntk;
- if (int6==IDENTIFIER||int6==63||int6==67) {
- // C.jj, line 358
- // C.jj, line 358
- Declarator();
- }
- else {
- jj_la1[13]=jj_gen;
- }
- // C.jj, line 358
- jj_consume_token(62);
- // C.jj, line 358
- ConstantExpression();
- break;
- default:
- jj_la1[14]=jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
- }
- catch(Exception e18) {
- hitException18=false;
- if (e18 instanceof ParseException) throw(ParseException) e18;
- if (e18 instanceof RuntimeException) throw(RuntimeException) e18;
- throw new RuntimeException(e18);
- }
- finally {
- if (buildTree) {
- if (!hitException18) {
- closeNodeScope(node18,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node18.setEndLine(jjtEndToken.endLine);
- node18.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 361
- final public void EnumSpecifier() throws ParseException {
- // C.jj, line 363
- EnumSpecifier node19=null;
- if (buildTree) {
- node19=new EnumSpecifier();
- Token jjtStartToken=getToken(1);
- node19.setBeginLine(jjtStartToken.beginLine);
- node19.setBeginColumn(jjtStartToken.beginColumn);
- node19.setInputSource(this.getInputSource());
- openNodeScope(node19);
- }
- boolean hitException19=false;
- try {
- // C.jj, line 363
- jj_consume_token(ENUM);
- // C.jj, line 363
- if (jj_2_16(3)) {
- // C.jj, line 363
- // C.jj, line 363
- int int7=(jj_ntk==-1)?jj_ntk():
- jj_ntk;
- if (int7==IDENTIFIER) {
- // C.jj, line 363
- // C.jj, line 363
- jj_consume_token(IDENTIFIER);
- }
- else {
- jj_la1[15]=jj_gen;
- }
- // C.jj, line 363
- jj_consume_token(58);
- // C.jj, line 363
- EnumeratorList();
- // C.jj, line 363
- jj_consume_token(59);
- }
- else {
- switch((jj_ntk==-1)?jj_ntk():
- jj_ntk) {
- case IDENTIFIER:
- // C.jj, line 363
- // C.jj, line 363
- jj_consume_token(IDENTIFIER);
- break;
- default:
- jj_la1[16]=jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
- }
- catch(Exception e19) {
- hitException19=false;
- if (e19 instanceof ParseException) throw(ParseException) e19;
- if (e19 instanceof RuntimeException) throw(RuntimeException) e19;
- throw new RuntimeException(e19);
- }
- finally {
- if (buildTree) {
- if (!hitException19) {
- closeNodeScope(node19,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node19.setEndLine(jjtEndToken.endLine);
- node19.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 366
- final public void EnumeratorList() throws ParseException {
- // C.jj, line 368
- EnumeratorList node20=null;
- if (buildTree) {
- node20=new EnumeratorList();
- Token jjtStartToken=getToken(1);
- node20.setBeginLine(jjtStartToken.beginLine);
- node20.setBeginColumn(jjtStartToken.beginColumn);
- node20.setInputSource(this.getInputSource());
- openNodeScope(node20);
- }
- boolean hitException20=false;
- try {
- // C.jj, line 368
- Enumerator();
- // C.jj, line 368
- label_6:
- while (true) {
- int int8=(jj_ntk==-1)?jj_ntk():
- jj_ntk;
- if (!(int8==60)) {
- jj_la1[17]=jj_gen;
- break label_6;
- }
- // C.jj, line 368
- // C.jj, line 368
- jj_consume_token(60);
- // C.jj, line 368
- Enumerator();
- }
- }
- catch(Exception e20) {
- hitException20=false;
- if (e20 instanceof ParseException) throw(ParseException) e20;
- if (e20 instanceof RuntimeException) throw(RuntimeException) e20;
- throw new RuntimeException(e20);
- }
- finally {
- if (buildTree) {
- if (!hitException20) {
- closeNodeScope(node20,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node20.setEndLine(jjtEndToken.endLine);
- node20.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 371
- final public void Enumerator() throws ParseException {
- // C.jj, line 373
- Enumerator node21=null;
- if (buildTree) {
- node21=new Enumerator();
- Token jjtStartToken=getToken(1);
- node21.setBeginLine(jjtStartToken.beginLine);
- node21.setBeginColumn(jjtStartToken.beginColumn);
- node21.setInputSource(this.getInputSource());
- openNodeScope(node21);
- }
- boolean hitException21=false;
- try {
- // C.jj, line 373
- jj_consume_token(IDENTIFIER);
- // C.jj, line 373
- int int9=(jj_ntk==-1)?jj_ntk():
- jj_ntk;
- if (int9==61) {
- // C.jj, line 373
- // C.jj, line 373
- jj_consume_token(61);
- // C.jj, line 373
- ConstantExpression();
- }
- else {
- jj_la1[18]=jj_gen;
- }
- }
- catch(Exception e21) {
- hitException21=false;
- if (e21 instanceof ParseException) throw(ParseException) e21;
- if (e21 instanceof RuntimeException) throw(RuntimeException) e21;
- throw new RuntimeException(e21);
- }
- finally {
- if (buildTree) {
- if (!hitException21) {
- closeNodeScope(node21,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node21.setEndLine(jjtEndToken.endLine);
- node21.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 376
- final public void Declarator() throws ParseException {
- // C.jj, line 378
- Declarator node22=null;
- if (buildTree) {
- node22=new Declarator();
- Token jjtStartToken=getToken(1);
- node22.setBeginLine(jjtStartToken.beginLine);
- node22.setBeginColumn(jjtStartToken.beginColumn);
- node22.setInputSource(this.getInputSource());
- openNodeScope(node22);
- }
- boolean hitException22=false;
- try {
- // C.jj, line 378
- int int10=(jj_ntk==-1)?jj_ntk():
- jj_ntk;
- if (int10==67) {
- // C.jj, line 378
- // C.jj, line 378
- Pointer();
- }
- else {
- jj_la1[19]=jj_gen;
- }
- // C.jj, line 378
- DirectDeclarator();
- }
- catch(Exception e22) {
- hitException22=false;
- if (e22 instanceof ParseException) throw(ParseException) e22;
- if (e22 instanceof RuntimeException) throw(RuntimeException) e22;
- throw new RuntimeException(e22);
- }
- finally {
- if (buildTree) {
- if (!hitException22) {
- closeNodeScope(node22,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node22.setEndLine(jjtEndToken.endLine);
- node22.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 381
- final public void DirectDeclarator() throws ParseException {
- Token t;
- // C.jj, line 383
- DirectDeclarator node23=null;
- if (buildTree) {
- node23=new DirectDeclarator();
- Token jjtStartToken=getToken(1);
- node23.setBeginLine(jjtStartToken.beginLine);
- node23.setBeginColumn(jjtStartToken.beginColumn);
- node23.setInputSource(this.getInputSource());
- openNodeScope(node23);
- }
- boolean hitException23=false;
- try {
- // C.jj, line 383
- switch((jj_ntk==-1)?jj_ntk():
- jj_ntk) {
- case IDENTIFIER:
- // C.jj, line 383
- // C.jj, line 383
- t=jj_consume_token(IDENTIFIER);
- // C.jj, line 385
- if (!(typedefParsingStack.empty())&&((Boolean) typedefParsingStack.peek()).booleanValue()) {
- addType(t.image);
- }
- break;
- case 63:
- // C.jj, line 389
- // C.jj, line 389
- jj_consume_token(63);
- // C.jj, line 389
- Declarator();
- // C.jj, line 389
- jj_consume_token(64);
- break;
- default:
- jj_la1[20]=jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- // C.jj, line 391
- typedefParsingStack.push(Boolean.FALSE);
- // C.jj, line 395
- label_7:
- while (true) {
- int int11=(jj_ntk==-1)?jj_ntk():
- jj_ntk;
- if (!(int11==63||int11==65)) {
- jj_la1[21]=jj_gen;
- break label_7;
- }
- // C.jj, line 393
- switch((jj_ntk==-1)?jj_ntk():
- jj_ntk) {
- case 65:
- // C.jj, line 393
- // C.jj, line 393
- jj_consume_token(65);
- // C.jj, line 393
- int int12=(jj_ntk==-1)?jj_ntk():
- jj_ntk;
- if (int12==INTEGER_LITERAL||int12==BOOL_LITERAL||int12==FLOATING_POINT_LITERAL||int12==CHARACTER_LITERAL||int12==STRING_LITERAL||int12==SIZEOF||int12==IDENTIFIER||int12==63||int12==67||int12==86||int12==93||int12==94||int12==97||int12==98||int12==99||int12==100) {
- // C.jj, line 393
- // C.jj, line 393
- ConstantExpression();
- }
- else {
- jj_la1[22]=jj_gen;
- }
- // C.jj, line 393
- jj_consume_token(66);
- break;
- default:
- jj_la1[24]=jj_gen;
- if (jj_2_17(3)) {
- // C.jj, line 394
- // C.jj, line 394
- jj_consume_token(63);
- // C.jj, line 394
- ParameterTypeList();
- // C.jj, line 394
- jj_consume_token(64);
- }
- else {
- switch((jj_ntk==-1)?jj_ntk():
- jj_ntk) {
- case 63:
- // C.jj, line 395
- // C.jj, line 395
- jj_consume_token(63);
- // C.jj, line 395
- int int13=(jj_ntk==-1)?jj_ntk():
- jj_ntk;
- if (int13==IDENTIFIER) {
- // C.jj, line 395
- // C.jj, line 395
- IdentifierList();
- }
- else {
- jj_la1[23]=jj_gen;
- }
- // C.jj, line 395
- jj_consume_token(64);
- break;
- default:
- jj_la1[25]=jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
- }
- }
- // C.jj, line 396
- typedefParsingStack.pop();
- }
- catch(Exception e23) {
- hitException23=false;
- if (e23 instanceof ParseException) throw(ParseException) e23;
- if (e23 instanceof RuntimeException) throw(RuntimeException) e23;
- throw new RuntimeException(e23);
- }
- finally {
- if (buildTree) {
- if (!hitException23) {
- closeNodeScope(node23,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node23.setEndLine(jjtEndToken.endLine);
- node23.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 399
- final public void Pointer() throws ParseException {
- // C.jj, line 401
- Pointer node24=null;
- if (buildTree) {
- node24=new Pointer();
- Token jjtStartToken=getToken(1);
- node24.setBeginLine(jjtStartToken.beginLine);
- node24.setBeginColumn(jjtStartToken.beginColumn);
- node24.setInputSource(this.getInputSource());
- openNodeScope(node24);
- }
- boolean hitException24=false;
- try {
- // C.jj, line 401
- jj_consume_token(67);
- // C.jj, line 401
- int int14=(jj_ntk==-1)?jj_ntk():
- jj_ntk;
- if (int14==VOLATILE||int14==CONST) {
- // C.jj, line 401
- // C.jj, line 401
- TypeQualifierList();
- }
- else {
- jj_la1[26]=jj_gen;
- }
- // C.jj, line 401
- int int15=(jj_ntk==-1)?jj_ntk():
- jj_ntk;
- if (int15==67) {
- // C.jj, line 401
- // C.jj, line 401
- Pointer();
- }
- else {
- jj_la1[27]=jj_gen;
- }
- }
- catch(Exception e24) {
- hitException24=false;
- if (e24 instanceof ParseException) throw(ParseException) e24;
- if (e24 instanceof RuntimeException) throw(RuntimeException) e24;
- throw new RuntimeException(e24);
- }
- finally {
- if (buildTree) {
- if (!hitException24) {
- closeNodeScope(node24,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node24.setEndLine(jjtEndToken.endLine);
- node24.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 404
- final public void TypeQualifierList() throws ParseException {
- // C.jj, line 406
- TypeQualifierList node25=null;
- if (buildTree) {
- node25=new TypeQualifierList();
- Token jjtStartToken=getToken(1);
- node25.setBeginLine(jjtStartToken.beginLine);
- node25.setBeginColumn(jjtStartToken.beginColumn);
- node25.setInputSource(this.getInputSource());
- openNodeScope(node25);
- }
- boolean hitException25=false;
- try {
- // C.jj, line 406
- label_8:
- while (true) {
- // C.jj, line 406
- // C.jj, line 406
- TypeQualifier();
- int int16=(jj_ntk==-1)?jj_ntk():
- jj_ntk;
- if (!(int16==VOLATILE||int16==CONST)) {
- jj_la1[28]=jj_gen;
- break label_8;
- }
- }
- }
- catch(Exception e25) {
- hitException25=false;
- if (e25 instanceof ParseException) throw(ParseException) e25;
- if (e25 instanceof RuntimeException) throw(RuntimeException) e25;
- throw new RuntimeException(e25);
- }
- finally {
- if (buildTree) {
- if (!hitException25) {
- closeNodeScope(node25,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node25.setEndLine(jjtEndToken.endLine);
- node25.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 409
- final public void ParameterTypeList() throws ParseException {
- // C.jj, line 411
- ParameterTypeList node26=null;
- if (buildTree) {
- node26=new ParameterTypeList();
- Token jjtStartToken=getToken(1);
- node26.setBeginLine(jjtStartToken.beginLine);
- node26.setBeginColumn(jjtStartToken.beginColumn);
- node26.setInputSource(this.getInputSource());
- openNodeScope(node26);
- }
- boolean hitException26=false;
- try {
- // C.jj, line 411
- ParameterList();
- // C.jj, line 411
- int int17=(jj_ntk==-1)?jj_ntk():
- jj_ntk;
- if (int17==60) {
- // C.jj, line 411
- // C.jj, line 411
- jj_consume_token(60);
- // C.jj, line 411
- jj_consume_token(68);
- }
- else {
- jj_la1[29]=jj_gen;
- }
- }
- catch(Exception e26) {
- hitException26=false;
- if (e26 instanceof ParseException) throw(ParseException) e26;
- if (e26 instanceof RuntimeException) throw(RuntimeException) e26;
- throw new RuntimeException(e26);
- }
- finally {
- if (buildTree) {
- if (!hitException26) {
- closeNodeScope(node26,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node26.setEndLine(jjtEndToken.endLine);
- node26.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 414
- final public void ParameterList() throws ParseException {
- // C.jj, line 416
- ParameterList node27=null;
- if (buildTree) {
- node27=new ParameterList();
- Token jjtStartToken=getToken(1);
- node27.setBeginLine(jjtStartToken.beginLine);
- node27.setBeginColumn(jjtStartToken.beginColumn);
- node27.setInputSource(this.getInputSource());
- openNodeScope(node27);
- }
- boolean hitException27=false;
- try {
- // C.jj, line 416
- ParameterDeclaration();
- // C.jj, line 416
- label_9:
- while (true) {
- if (!(jj_2_18(2))) {
- break label_9;
- }
- // C.jj, line 416
- // C.jj, line 416
- jj_consume_token(60);
- // C.jj, line 416
- ParameterDeclaration();
- }
- }
- catch(Exception e27) {
- hitException27=false;
- if (e27 instanceof ParseException) throw(ParseException) e27;
- if (e27 instanceof RuntimeException) throw(RuntimeException) e27;
- throw new RuntimeException(e27);
- }
- finally {
- if (buildTree) {
- if (!hitException27) {
- closeNodeScope(node27,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node27.setEndLine(jjtEndToken.endLine);
- node27.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 419
- final public void ParameterDeclaration() throws ParseException {
- // C.jj, line 421
- ParameterDeclaration node28=null;
- if (buildTree) {
- node28=new ParameterDeclaration();
- Token jjtStartToken=getToken(1);
- node28.setBeginLine(jjtStartToken.beginLine);
- node28.setBeginColumn(jjtStartToken.beginColumn);
- node28.setInputSource(this.getInputSource());
- openNodeScope(node28);
- }
- boolean hitException28=false;
- try {
- // C.jj, line 421
- DeclarationSpecifiers();
- // C.jj, line 421
- if (jj_2_19(2147483647)) {
- // C.jj, line 421
- // C.jj, line 421
- Declarator();
- }
- else {
- // C.jj, line 421
- // C.jj, line 421
- int int18=(jj_ntk==-1)?jj_ntk():
- jj_ntk;
- if (int18==63||int18==65||int18==67) {
- // C.jj, line 421
- // C.jj, line 421
- AbstractDeclarator();
- }
- else {
- jj_la1[30]=jj_gen;
- }
- }
- }
- catch(Exception e28) {
- hitException28=false;
- if (e28 instanceof ParseException) throw(ParseException) e28;
- if (e28 instanceof RuntimeException) throw(RuntimeException) e28;
- throw new RuntimeException(e28);
- }
- finally {
- if (buildTree) {
- if (!hitException28) {
- closeNodeScope(node28,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node28.setEndLine(jjtEndToken.endLine);
- node28.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 424
- final public void IdentifierList() throws ParseException {
- // C.jj, line 426
- IdentifierList node29=null;
- if (buildTree) {
- node29=new IdentifierList();
- Token jjtStartToken=getToken(1);
- node29.setBeginLine(jjtStartToken.beginLine);
- node29.setBeginColumn(jjtStartToken.beginColumn);
- node29.setInputSource(this.getInputSource());
- openNodeScope(node29);
- }
- boolean hitException29=false;
- try {
- // C.jj, line 426
- jj_consume_token(IDENTIFIER);
- // C.jj, line 426
- label_10:
- while (true) {
- int int19=(jj_ntk==-1)?jj_ntk():
- jj_ntk;
- if (!(int19==60)) {
- jj_la1[31]=jj_gen;
- break label_10;
- }
- // C.jj, line 426
- // C.jj, line 426
- jj_consume_token(60);
- // C.jj, line 426
- jj_consume_token(IDENTIFIER);
- }
- }
- catch(Exception e29) {
- hitException29=false;
- if (e29 instanceof ParseException) throw(ParseException) e29;
- if (e29 instanceof RuntimeException) throw(RuntimeException) e29;
- throw new RuntimeException(e29);
- }
- finally {
- if (buildTree) {
- if (!hitException29) {
- closeNodeScope(node29,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node29.setEndLine(jjtEndToken.endLine);
- node29.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 429
- final public void Initializer() throws ParseException {
- // C.jj, line 431
- Initializer node30=null;
- if (buildTree) {
- node30=new Initializer();
- Token jjtStartToken=getToken(1);
- node30.setBeginLine(jjtStartToken.beginLine);
- node30.setBeginColumn(jjtStartToken.beginColumn);
- node30.setInputSource(this.getInputSource());
- openNodeScope(node30);
- }
- boolean hitException30=false;
- try {
- // C.jj, line 431
- switch((jj_ntk==-1)?jj_ntk():
- jj_ntk) {
- case INTEGER_LITERAL:
- case BOOL_LITERAL:
- case FLOATING_POINT_LITERAL:
- case CHARACTER_LITERAL:
- case STRING_LITERAL:
- case SIZEOF:
- case IDENTIFIER:
- case 63:
- case 67:
- case 86:
- case 93:
- case 94:
- case 97:
- case 98:
- case 99:
- case 100:
- // C.jj, line 431
- // C.jj, line 431
- AssignmentExpression();
- break;
- case 58:
- // C.jj, line 432
- // C.jj, line 432
- jj_consume_token(58);
- // C.jj, line 432
- InitializerList();
- // C.jj, line 432
- int int20=(jj_ntk==-1)?jj_ntk():
- jj_ntk;
- if (int20==60) {
- // C.jj, line 432
- // C.jj, line 432
- jj_consume_token(60);
- }
- else {
- jj_la1[32]=jj_gen;
- }
- // C.jj, line 432
- jj_consume_token(59);
- break;
- default:
- jj_la1[33]=jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
- catch(Exception e30) {
- hitException30=false;
- if (e30 instanceof ParseException) throw(ParseException) e30;
- if (e30 instanceof RuntimeException) throw(RuntimeException) e30;
- throw new RuntimeException(e30);
- }
- finally {
- if (buildTree) {
- if (!hitException30) {
- closeNodeScope(node30,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node30.setEndLine(jjtEndToken.endLine);
- node30.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 435
- final public void InitializerList() throws ParseException {
- // C.jj, line 437
- InitializerList node31=null;
- if (buildTree) {
- node31=new InitializerList();
- Token jjtStartToken=getToken(1);
- node31.setBeginLine(jjtStartToken.beginLine);
- node31.setBeginColumn(jjtStartToken.beginColumn);
- node31.setInputSource(this.getInputSource());
- openNodeScope(node31);
- }
- boolean hitException31=false;
- try {
- // C.jj, line 437
- Initializer();
- // C.jj, line 437
- label_11:
- while (true) {
- if (!(jj_2_20(2))) {
- break label_11;
- }
- // C.jj, line 437
- // C.jj, line 437
- jj_consume_token(60);
- // C.jj, line 437
- Initializer();
- }
- }
- catch(Exception e31) {
- hitException31=false;
- if (e31 instanceof ParseException) throw(ParseException) e31;
- if (e31 instanceof RuntimeException) throw(RuntimeException) e31;
- throw new RuntimeException(e31);
- }
- finally {
- if (buildTree) {
- if (!hitException31) {
- closeNodeScope(node31,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node31.setEndLine(jjtEndToken.endLine);
- node31.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 440
- final public void TypeName() throws ParseException {
- // C.jj, line 442
- TypeName node32=null;
- if (buildTree) {
- node32=new TypeName();
- Token jjtStartToken=getToken(1);
- node32.setBeginLine(jjtStartToken.beginLine);
- node32.setBeginColumn(jjtStartToken.beginColumn);
- node32.setInputSource(this.getInputSource());
- openNodeScope(node32);
- }
- boolean hitException32=false;
- try {
- // C.jj, line 442
- SpecifierQualifierList();
- // C.jj, line 442
- int int21=(jj_ntk==-1)?jj_ntk():
- jj_ntk;
- if (int21==63||int21==65||int21==67) {
- // C.jj, line 442
- // C.jj, line 442
- AbstractDeclarator();
- }
- else {
- jj_la1[34]=jj_gen;
- }
- }
- catch(Exception e32) {
- hitException32=false;
- if (e32 instanceof ParseException) throw(ParseException) e32;
- if (e32 instanceof RuntimeException) throw(RuntimeException) e32;
- throw new RuntimeException(e32);
- }
- finally {
- if (buildTree) {
- if (!hitException32) {
- closeNodeScope(node32,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node32.setEndLine(jjtEndToken.endLine);
- node32.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 446
- final public void AbstractDeclarator() throws ParseException {
- // C.jj, line 448
- AbstractDeclarator node33=null;
- if (buildTree) {
- node33=new AbstractDeclarator();
- Token jjtStartToken=getToken(1);
- node33.setBeginLine(jjtStartToken.beginLine);
- node33.setBeginColumn(jjtStartToken.beginColumn);
- node33.setInputSource(this.getInputSource());
- openNodeScope(node33);
- }
- boolean hitException33=false;
- try {
- // C.jj, line 448
- if (jj_2_21(3)) {
- // C.jj, line 448
- // C.jj, line 448
- Pointer();
- }
- else {
- switch((jj_ntk==-1)?jj_ntk():
- jj_ntk) {
- case 63:
- case 65:
- case 67:
- // C.jj, line 449
- // C.jj, line 449
- int int22=(jj_ntk==-1)?jj_ntk():
- jj_ntk;
- if (int22==67) {
- // C.jj, line 449
- // C.jj, line 449
- Pointer();
- }
- else {
- jj_la1[35]=jj_gen;
- }
- // C.jj, line 449
- DirectAbstractDeclarator();
- break;
- default:
- jj_la1[36]=jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
- }
- catch(Exception e33) {
- hitException33=false;
- if (e33 instanceof ParseException) throw(ParseException) e33;
- if (e33 instanceof RuntimeException) throw(RuntimeException) e33;
- throw new RuntimeException(e33);
- }
- finally {
- if (buildTree) {
- if (!hitException33) {
- closeNodeScope(node33,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node33.setEndLine(jjtEndToken.endLine);
- node33.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 452
- final public void DirectAbstractDeclarator() throws ParseException {
- // C.jj, line 454
- DirectAbstractDeclarator node34=null;
- if (buildTree) {
- node34=new DirectAbstractDeclarator();
- Token jjtStartToken=getToken(1);
- node34.setBeginLine(jjtStartToken.beginLine);
- node34.setBeginColumn(jjtStartToken.beginColumn);
- node34.setInputSource(this.getInputSource());
- openNodeScope(node34);
- }
- boolean hitException34=false;
- try {
- // C.jj, line 454
- if (jj_2_23(2)) {
- // C.jj, line 454
- // C.jj, line 454
- jj_consume_token(63);
- // C.jj, line 454
- AbstractDeclarator();
- // C.jj, line 454
- jj_consume_token(64);
- }
- else {
- switch((jj_ntk==-1)?jj_ntk():
- jj_ntk) {
- case 65:
- // C.jj, line 455
- // C.jj, line 455
- jj_consume_token(65);
- // C.jj, line 455
- int int23=(jj_ntk==-1)?jj_ntk():
- jj_ntk;
- if (int23==INTEGER_LITERAL||int23==BOOL_LITERAL||int23==FLOATING_POINT_LITERAL||int23==CHARACTER_LITERAL||int23==STRING_LITERAL||int23==SIZEOF||int23==IDENTIFIER||int23==63||int23==67||int23==86||int23==93||int23==94||int23==97||int23==98||int23==99||int23==100) {
- // C.jj, line 455
- // C.jj, line 455
- ConstantExpression();
- }
- else {
- jj_la1[37]=jj_gen;
- }
- // C.jj, line 455
- jj_consume_token(66);
- break;
- case 63:
- // C.jj, line 456
- // C.jj, line 456
- jj_consume_token(63);
- // C.jj, line 456
- if (jj_2_22(1)) {
- // C.jj, line 456
- // C.jj, line 456
- ParameterTypeList();
- }
- // C.jj, line 456
- jj_consume_token(64);
- break;
- default:
- jj_la1[38]=jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
- // C.jj, line 458
- label_12:
- while (true) {
- int int24=(jj_ntk==-1)?jj_ntk():
- jj_ntk;
- if (!(int24==63||int24==65)) {
- jj_la1[39]=jj_gen;
- break label_12;
- }
- // C.jj, line 458
- switch((jj_ntk==-1)?jj_ntk():
- jj_ntk) {
- case 65:
- // C.jj, line 458
- // C.jj, line 458
- jj_consume_token(65);
- // C.jj, line 458
- int int25=(jj_ntk==-1)?jj_ntk():
- jj_ntk;
- if (int25==INTEGER_LITERAL||int25==BOOL_LITERAL||int25==FLOATING_POINT_LITERAL||int25==CHARACTER_LITERAL||int25==STRING_LITERAL||int25==SIZEOF||int25==IDENTIFIER||int25==63||int25==67||int25==86||int25==93||int25==94||int25==97||int25==98||int25==99||int25==100) {
- // C.jj, line 458
- // C.jj, line 458
- ConstantExpression();
- }
- else {
- jj_la1[40]=jj_gen;
- }
- // C.jj, line 458
- jj_consume_token(66);
- break;
- case 63:
- // C.jj, line 458
- // C.jj, line 458
- jj_consume_token(63);
- // C.jj, line 458
- if (jj_2_24(1)) {
- // C.jj, line 458
- // C.jj, line 458
- ParameterTypeList();
- }
- // C.jj, line 458
- jj_consume_token(64);
- break;
- default:
- jj_la1[41]=jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
- }
- catch(Exception e34) {
- hitException34=false;
- if (e34 instanceof ParseException) throw(ParseException) e34;
- if (e34 instanceof RuntimeException) throw(RuntimeException) e34;
- throw new RuntimeException(e34);
- }
- finally {
- if (buildTree) {
- if (!hitException34) {
- closeNodeScope(node34,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node34.setEndLine(jjtEndToken.endLine);
- node34.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 461
- final public void TypedefName() throws ParseException {
- // C.jj, line 463
- TypedefName node35=null;
- if (buildTree) {
- node35=new TypedefName();
- Token jjtStartToken=getToken(1);
- node35.setBeginLine(jjtStartToken.beginLine);
- node35.setBeginColumn(jjtStartToken.beginColumn);
- node35.setInputSource(this.getInputSource());
- openNodeScope(node35);
- }
- boolean hitException35=false;
- try {
- // C.jj, line 463
- jj_consume_token(IDENTIFIER);
- }
- catch(Exception e35) {
- hitException35=false;
- if (e35 instanceof ParseException) throw(ParseException) e35;
- if (e35 instanceof RuntimeException) throw(RuntimeException) e35;
- throw new RuntimeException(e35);
- }
- finally {
- if (buildTree) {
- if (!hitException35) {
- closeNodeScope(node35,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node35.setEndLine(jjtEndToken.endLine);
- node35.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- //Added declaration to avoid old-style C
- //restriction of needing declarations at beginning
- //changed lookahead to 3 cause compiler told me to
- //Was 2
- // C.jj, line 470
- final public void Statement() throws ParseException {
- // C.jj, line 472
- Statement node36=null;
- if (buildTree) {
- node36=new Statement();
- Token jjtStartToken=getToken(1);
- node36.setBeginLine(jjtStartToken.beginLine);
- node36.setBeginColumn(jjtStartToken.beginColumn);
- node36.setInputSource(this.getInputSource());
- openNodeScope(node36);
- }
- boolean hitException36=false;
- try {
- // C.jj, line 472
- if (jj_2_25(3)) {
- // C.jj, line 472
- // C.jj, line 472
- LabeledStatement();
- }
- else if (jj_2_26(3)) {
- // C.jj, line 473
- // C.jj, line 473
- ExpressionStatement();
- }
- else {
- switch((jj_ntk==-1)?jj_ntk():
- jj_ntk) {
- case 58:
- // C.jj, line 474
- // C.jj, line 474
- CompoundStatement();
- break;
- case SWITCH:
- case IF:
- // C.jj, line 475
- // C.jj, line 475
- SelectionStatement();
- break;
- case WHILE:
- case FOR:
- case DO:
- // C.jj, line 476
- // C.jj, line 476
- IterationStatement();
- break;
- default:
- jj_la1[42]=jj_gen;
- if (jj_2_27(3)) {
- // C.jj, line 477
- // C.jj, line 477
- Declaration();
- }
- else {
- switch((jj_ntk==-1)?jj_ntk():
- jj_ntk) {
- case CONTINUE:
- case RETURN:
- case BREAK:
- case GOTO:
- // C.jj, line 478
- // C.jj, line 478
- JumpStatement();
- break;
- default:
- jj_la1[43]=jj_gen;
- if (jj_2_28(2)) {
- // C.jj, line 479
- // C.jj, line 479
- CinStatement();
- }
- else if (jj_2_29(2)) {
- // C.jj, line 480
- // C.jj, line 480
- CoutStatement();
- }
- else if (jj_2_30(2)) {
- // C.jj, line 481
- // C.jj, line 481
- GotoLabelStatement();
- }
- else {
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
- }
- }
- }
- }
- catch(Exception e36) {
- hitException36=false;
- if (e36 instanceof ParseException) throw(ParseException) e36;
- if (e36 instanceof RuntimeException) throw(RuntimeException) e36;
- throw new RuntimeException(e36);
- }
- finally {
- if (buildTree) {
- if (!hitException36) {
- closeNodeScope(node36,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node36.setEndLine(jjtEndToken.endLine);
- node36.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- //Broken up for giraffe
- // C.jj, line 486
- final public void LabeledStatement() throws ParseException {
- // C.jj, line 488
- LabeledStatement node37=null;
- if (buildTree) {
- node37=new LabeledStatement();
- Token jjtStartToken=getToken(1);
- node37.setBeginLine(jjtStartToken.beginLine);
- node37.setBeginColumn(jjtStartToken.beginColumn);
- node37.setInputSource(this.getInputSource());
- openNodeScope(node37);
- }
- boolean hitException37=false;
- try {
- // C.jj, line 488
- switch((jj_ntk==-1)?jj_ntk():
- jj_ntk) {
- case GOTO:
- // C.jj, line 488
- // C.jj, line 488
- GotoStatement();
- break;
- case CASE:
- // C.jj, line 489
- // C.jj, line 489
- CaseStatement();
- break;
- case DFLT:
- // C.jj, line 490
- // C.jj, line 490
- DefaultStatement();
- break;
- default:
- jj_la1[44]=jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
- catch(Exception e37) {
- hitException37=false;
- if (e37 instanceof ParseException) throw(ParseException) e37;
- if (e37 instanceof RuntimeException) throw(RuntimeException) e37;
- throw new RuntimeException(e37);
- }
- finally {
- if (buildTree) {
- if (!hitException37) {
- closeNodeScope(node37,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node37.setEndLine(jjtEndToken.endLine);
- node37.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 493
- final public void GotoLabelStatement() throws ParseException {
- // C.jj, line 495
- GotoLabelStatement node38=null;
- if (buildTree) {
- node38=new GotoLabelStatement();
- Token jjtStartToken=getToken(1);
- node38.setBeginLine(jjtStartToken.beginLine);
- node38.setBeginColumn(jjtStartToken.beginColumn);
- node38.setInputSource(this.getInputSource());
- openNodeScope(node38);
- }
- boolean hitException38=false;
- try {
- // C.jj, line 495
- // C.jj, line 495
- jj_consume_token(IDENTIFIER);
- // C.jj, line 495
- jj_consume_token(62);
- // C.jj, line 495
- Statement();
- }
- catch(Exception e38) {
- hitException38=false;
- if (e38 instanceof ParseException) throw(ParseException) e38;
- if (e38 instanceof RuntimeException) throw(RuntimeException) e38;
- throw new RuntimeException(e38);
- }
- finally {
- if (buildTree) {
- if (!hitException38) {
- closeNodeScope(node38,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node38.setEndLine(jjtEndToken.endLine);
- node38.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 498
- final public void CaseStatement() throws ParseException {
- // C.jj, line 500
- CaseStatement node39=null;
- if (buildTree) {
- node39=new CaseStatement();
- Token jjtStartToken=getToken(1);
- node39.setBeginLine(jjtStartToken.beginLine);
- node39.setBeginColumn(jjtStartToken.beginColumn);
- node39.setInputSource(this.getInputSource());
- openNodeScope(node39);
- }
- boolean hitException39=false;
- try {
- // C.jj, line 500
- // C.jj, line 500
- jj_consume_token(CASE);
- // C.jj, line 500
- ConstantExpression();
- // C.jj, line 500
- jj_consume_token(62);
- // C.jj, line 500
- Statement();
- }
- catch(Exception e39) {
- hitException39=false;
- if (e39 instanceof ParseException) throw(ParseException) e39;
- if (e39 instanceof RuntimeException) throw(RuntimeException) e39;
- throw new RuntimeException(e39);
- }
- finally {
- if (buildTree) {
- if (!hitException39) {
- closeNodeScope(node39,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node39.setEndLine(jjtEndToken.endLine);
- node39.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 503
- final public void DefaultStatement() throws ParseException {
- // C.jj, line 505
- DefaultStatement node40=null;
- if (buildTree) {
- node40=new DefaultStatement();
- Token jjtStartToken=getToken(1);
- node40.setBeginLine(jjtStartToken.beginLine);
- node40.setBeginColumn(jjtStartToken.beginColumn);
- node40.setInputSource(this.getInputSource());
- openNodeScope(node40);
- }
- boolean hitException40=false;
- try {
- // C.jj, line 505
- // C.jj, line 505
- jj_consume_token(DFLT);
- // C.jj, line 505
- jj_consume_token(62);
- // C.jj, line 505
- Statement();
- }
- catch(Exception e40) {
- hitException40=false;
- if (e40 instanceof ParseException) throw(ParseException) e40;
- if (e40 instanceof RuntimeException) throw(RuntimeException) e40;
- throw new RuntimeException(e40);
- }
- finally {
- if (buildTree) {
- if (!hitException40) {
- closeNodeScope(node40,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node40.setEndLine(jjtEndToken.endLine);
- node40.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 508
- final public void ExpressionStatement() throws ParseException {
- // C.jj, line 510
- ExpressionStatement node41=null;
- if (buildTree) {
- node41=new ExpressionStatement();
- Token jjtStartToken=getToken(1);
- node41.setBeginLine(jjtStartToken.beginLine);
- node41.setBeginColumn(jjtStartToken.beginColumn);
- node41.setInputSource(this.getInputSource());
- openNodeScope(node41);
- }
- boolean hitException41=false;
- try {
- // C.jj, line 510
- int int26=(jj_ntk==-1)?jj_ntk():
- jj_ntk;
- if (int26==INTEGER_LITERAL||int26==BOOL_LITERAL||int26==FLOATING_POINT_LITERAL||int26==CHARACTER_LITERAL||int26==STRING_LITERAL||int26==SIZEOF||int26==IDENTIFIER||int26==63||int26==67||int26==86||int26==93||int26==94||int26==97||int26==98||int26==99||int26==100) {
- // C.jj, line 510
- // C.jj, line 510
- Expression();
- }
- else {
- jj_la1[45]=jj_gen;
- }
- // C.jj, line 510
- jj_consume_token(57);
- }
- catch(Exception e41) {
- hitException41=false;
- if (e41 instanceof ParseException) throw(ParseException) e41;
- if (e41 instanceof RuntimeException) throw(RuntimeException) e41;
- throw new RuntimeException(e41);
- }
- finally {
- if (buildTree) {
- if (!hitException41) {
- closeNodeScope(node41,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node41.setEndLine(jjtEndToken.endLine);
- node41.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- //Declaration is a statement now, so we don't need
- //Declaration list here
- // C.jj, line 515
- final public void CompoundStatement() throws ParseException {
- // C.jj, line 517
- CompoundStatement node42=null;
- if (buildTree) {
- node42=new CompoundStatement();
- Token jjtStartToken=getToken(1);
- node42.setBeginLine(jjtStartToken.beginLine);
- node42.setBeginColumn(jjtStartToken.beginColumn);
- node42.setInputSource(this.getInputSource());
- openNodeScope(node42);
- }
- boolean hitException42=false;
- try {
- // C.jj, line 517
- jj_consume_token(58);
- // C.jj, line 519
- if (jj_2_31(1)) {
- // C.jj, line 519
- // C.jj, line 519
- StatementList();
- }
- // C.jj, line 520
- jj_consume_token(59);
- }
- catch(Exception e42) {
- hitException42=false;
- if (e42 instanceof ParseException) throw(ParseException) e42;
- if (e42 instanceof RuntimeException) throw(RuntimeException) e42;
- throw new RuntimeException(e42);
- }
- finally {
- if (buildTree) {
- if (!hitException42) {
- closeNodeScope(node42,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node42.setEndLine(jjtEndToken.endLine);
- node42.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 523
- final public void StatementList() throws ParseException {
- // C.jj, line 525
- StatementList node43=null;
- if (buildTree) {
- node43=new StatementList();
- Token jjtStartToken=getToken(1);
- node43.setBeginLine(jjtStartToken.beginLine);
- node43.setBeginColumn(jjtStartToken.beginColumn);
- node43.setInputSource(this.getInputSource());
- openNodeScope(node43);
- }
- boolean hitException43=false;
- try {
- // C.jj, line 525
- label_13:
- while (true) {
- // C.jj, line 525
- // C.jj, line 525
- Statement();
- if (!(jj_2_32(1))) {
- break label_13;
- }
- }
- }
- catch(Exception e43) {
- hitException43=false;
- if (e43 instanceof ParseException) throw(ParseException) e43;
- if (e43 instanceof RuntimeException) throw(RuntimeException) e43;
- throw new RuntimeException(e43);
- }
- finally {
- if (buildTree) {
- if (!hitException43) {
- closeNodeScope(node43,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node43.setEndLine(jjtEndToken.endLine);
- node43.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- //Broken up for Giraffe
- // C.jj, line 530
- final public void SelectionStatement() throws ParseException {
- // C.jj, line 532
- SelectionStatement node44=null;
- if (buildTree) {
- node44=new SelectionStatement();
- Token jjtStartToken=getToken(1);
- node44.setBeginLine(jjtStartToken.beginLine);
- node44.setBeginColumn(jjtStartToken.beginColumn);
- node44.setInputSource(this.getInputSource());
- openNodeScope(node44);
- }
- boolean hitException44=false;
- try {
- // C.jj, line 532
- switch((jj_ntk==-1)?jj_ntk():
- jj_ntk) {
- case IF:
- // C.jj, line 532
- // C.jj, line 532
- IfStatement();
- break;
- case SWITCH:
- // C.jj, line 533
- // C.jj, line 533
- SwitchStatement();
- break;
- default:
- jj_la1[46]=jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
- catch(Exception e44) {
- hitException44=false;
- if (e44 instanceof ParseException) throw(ParseException) e44;
- if (e44 instanceof RuntimeException) throw(RuntimeException) e44;
- throw new RuntimeException(e44);
- }
- finally {
- if (buildTree) {
- if (!hitException44) {
- closeNodeScope(node44,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node44.setEndLine(jjtEndToken.endLine);
- node44.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 536
- final public void IfStatement() throws ParseException {
- // C.jj, line 538
- IfStatement node45=null;
- if (buildTree) {
- node45=new IfStatement();
- Token jjtStartToken=getToken(1);
- node45.setBeginLine(jjtStartToken.beginLine);
- node45.setBeginColumn(jjtStartToken.beginColumn);
- node45.setInputSource(this.getInputSource());
- openNodeScope(node45);
- }
- boolean hitException45=false;
- try {
- // C.jj, line 538
- // C.jj, line 538
- jj_consume_token(IF);
- // C.jj, line 538
- jj_consume_token(63);
- // C.jj, line 538
- Expression();
- // C.jj, line 538
- jj_consume_token(64);
- // C.jj, line 538
- Statement();
- // C.jj, line 538
- if (jj_2_33(2)) {
- // C.jj, line 538
- // C.jj, line 538
- jj_consume_token(ELSE);
- // C.jj, line 538
- Statement();
- }
- }
- catch(Exception e45) {
- hitException45=false;
- if (e45 instanceof ParseException) throw(ParseException) e45;
- if (e45 instanceof RuntimeException) throw(RuntimeException) e45;
- throw new RuntimeException(e45);
- }
- finally {
- if (buildTree) {
- if (!hitException45) {
- closeNodeScope(node45,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node45.setEndLine(jjtEndToken.endLine);
- node45.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 541
- final public void SwitchStatement() throws ParseException {
- // C.jj, line 543
- SwitchStatement node46=null;
- if (buildTree) {
- node46=new SwitchStatement();
- Token jjtStartToken=getToken(1);
- node46.setBeginLine(jjtStartToken.beginLine);
- node46.setBeginColumn(jjtStartToken.beginColumn);
- node46.setInputSource(this.getInputSource());
- openNodeScope(node46);
- }
- boolean hitException46=false;
- try {
- // C.jj, line 543
- // C.jj, line 543
- jj_consume_token(SWITCH);
- // C.jj, line 543
- jj_consume_token(63);
- // C.jj, line 543
- Expression();
- // C.jj, line 543
- jj_consume_token(64);
- // C.jj, line 543
- Statement();
- }
- catch(Exception e46) {
- hitException46=false;
- if (e46 instanceof ParseException) throw(ParseException) e46;
- if (e46 instanceof RuntimeException) throw(RuntimeException) e46;
- throw new RuntimeException(e46);
- }
- finally {
- if (buildTree) {
- if (!hitException46) {
- closeNodeScope(node46,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node46.setEndLine(jjtEndToken.endLine);
- node46.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 547
- final public void IterationStatement() throws ParseException {
- // C.jj, line 549
- IterationStatement node47=null;
- if (buildTree) {
- node47=new IterationStatement();
- Token jjtStartToken=getToken(1);
- node47.setBeginLine(jjtStartToken.beginLine);
- node47.setBeginColumn(jjtStartToken.beginColumn);
- node47.setInputSource(this.getInputSource());
- openNodeScope(node47);
- }
- boolean hitException47=false;
- try {
- // C.jj, line 549
- switch((jj_ntk==-1)?jj_ntk():
- jj_ntk) {
- case WHILE:
- // C.jj, line 549
- // C.jj, line 549
- WhileStatement();
- break;
- case DO:
- // C.jj, line 550
- // C.jj, line 550
- DoStatement();
- break;
- case FOR:
- // C.jj, line 551
- // C.jj, line 551
- ForStatement();
- break;
- default:
- jj_la1[47]=jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
- catch(Exception e47) {
- hitException47=false;
- if (e47 instanceof ParseException) throw(ParseException) e47;
- if (e47 instanceof RuntimeException) throw(RuntimeException) e47;
- throw new RuntimeException(e47);
- }
- finally {
- if (buildTree) {
- if (!hitException47) {
- closeNodeScope(node47,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node47.setEndLine(jjtEndToken.endLine);
- node47.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 554
- final public void WhileStatement() throws ParseException {
- // C.jj, line 556
- WhileStatement node48=null;
- if (buildTree) {
- node48=new WhileStatement();
- Token jjtStartToken=getToken(1);
- node48.setBeginLine(jjtStartToken.beginLine);
- node48.setBeginColumn(jjtStartToken.beginColumn);
- node48.setInputSource(this.getInputSource());
- openNodeScope(node48);
- }
- boolean hitException48=false;
- try {
- // C.jj, line 556
- // C.jj, line 556
- jj_consume_token(WHILE);
- // C.jj, line 556
- jj_consume_token(63);
- // C.jj, line 556
- Expression();
- // C.jj, line 556
- jj_consume_token(64);
- // C.jj, line 556
- Statement();
- }
- catch(Exception e48) {
- hitException48=false;
- if (e48 instanceof ParseException) throw(ParseException) e48;
- if (e48 instanceof RuntimeException) throw(RuntimeException) e48;
- throw new RuntimeException(e48);
- }
- finally {
- if (buildTree) {
- if (!hitException48) {
- closeNodeScope(node48,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node48.setEndLine(jjtEndToken.endLine);
- node48.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 559
- final public void DoStatement() throws ParseException {
- // C.jj, line 561
- DoStatement node49=null;
- if (buildTree) {
- node49=new DoStatement();
- Token jjtStartToken=getToken(1);
- node49.setBeginLine(jjtStartToken.beginLine);
- node49.setBeginColumn(jjtStartToken.beginColumn);
- node49.setInputSource(this.getInputSource());
- openNodeScope(node49);
- }
- boolean hitException49=false;
- try {
- // C.jj, line 561
- // C.jj, line 561
- jj_consume_token(DO);
- // C.jj, line 561
- Statement();
- // C.jj, line 561
- jj_consume_token(WHILE);
- // C.jj, line 561
- jj_consume_token(63);
- // C.jj, line 561
- Expression();
- // C.jj, line 561
- jj_consume_token(64);
- // C.jj, line 561
- jj_consume_token(57);
- }
- catch(Exception e49) {
- hitException49=false;
- if (e49 instanceof ParseException) throw(ParseException) e49;
- if (e49 instanceof RuntimeException) throw(RuntimeException) e49;
- throw new RuntimeException(e49);
- }
- finally {
- if (buildTree) {
- if (!hitException49) {
- closeNodeScope(node49,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node49.setEndLine(jjtEndToken.endLine);
- node49.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 564
- final public void ForStatement() throws ParseException {
- // C.jj, line 566
- ForStatement node50=null;
- if (buildTree) {
- node50=new ForStatement();
- Token jjtStartToken=getToken(1);
- node50.setBeginLine(jjtStartToken.beginLine);
- node50.setBeginColumn(jjtStartToken.beginColumn);
- node50.setInputSource(this.getInputSource());
- openNodeScope(node50);
- }
- boolean hitException50=false;
- try {
- // C.jj, line 566
- // C.jj, line 566
- jj_consume_token(FOR);
- // C.jj, line 566
- jj_consume_token(63);
- // C.jj, line 566
- if (jj_2_34(3)) {
- // C.jj, line 566
- // C.jj, line 566
- Expression();
- // C.jj, line 566
- jj_consume_token(57);
- }
- else if (jj_2_35(3)) {
- // C.jj, line 566
- // C.jj, line 566
- Declaration();
- }
- else {
- switch((jj_ntk==-1)?jj_ntk():
- jj_ntk) {
- case 57:
- // C.jj, line 566
- // C.jj, line 566
- jj_consume_token(57);
- break;
- default:
- jj_la1[48]=jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
- // C.jj, line 566
- int int27=(jj_ntk==-1)?jj_ntk():
- jj_ntk;
- if (int27==INTEGER_LITERAL||int27==BOOL_LITERAL||int27==FLOATING_POINT_LITERAL||int27==CHARACTER_LITERAL||int27==STRING_LITERAL||int27==SIZEOF||int27==IDENTIFIER||int27==63||int27==67||int27==86||int27==93||int27==94||int27==97||int27==98||int27==99||int27==100) {
- // C.jj, line 566
- // C.jj, line 566
- Expression();
- }
- else {
- jj_la1[49]=jj_gen;
- }
- // C.jj, line 566
- jj_consume_token(57);
- // C.jj, line 566
- int int28=(jj_ntk==-1)?jj_ntk():
- jj_ntk;
- if (int28==INTEGER_LITERAL||int28==BOOL_LITERAL||int28==FLOATING_POINT_LITERAL||int28==CHARACTER_LITERAL||int28==STRING_LITERAL||int28==SIZEOF||int28==IDENTIFIER||int28==63||int28==67||int28==86||int28==93||int28==94||int28==97||int28==98||int28==99||int28==100) {
- // C.jj, line 566
- // C.jj, line 566
- Expression();
- }
- else {
- jj_la1[50]=jj_gen;
- }
- // C.jj, line 566
- jj_consume_token(64);
- // C.jj, line 566
- Statement();
- }
- catch(Exception e50) {
- hitException50=false;
- if (e50 instanceof ParseException) throw(ParseException) e50;
- if (e50 instanceof RuntimeException) throw(RuntimeException) e50;
- throw new RuntimeException(e50);
- }
- finally {
- if (buildTree) {
- if (!hitException50) {
- closeNodeScope(node50,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node50.setEndLine(jjtEndToken.endLine);
- node50.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 569
- final public void JumpStatement() throws ParseException {
- // C.jj, line 571
- JumpStatement node51=null;
- if (buildTree) {
- node51=new JumpStatement();
- Token jjtStartToken=getToken(1);
- node51.setBeginLine(jjtStartToken.beginLine);
- node51.setBeginColumn(jjtStartToken.beginColumn);
- node51.setInputSource(this.getInputSource());
- openNodeScope(node51);
- }
- boolean hitException51=false;
- try {
- // C.jj, line 571
- switch((jj_ntk==-1)?jj_ntk():
- jj_ntk) {
- case GOTO:
- // C.jj, line 571
- // C.jj, line 571
- GotoStatement();
- break;
- case CONTINUE:
- // C.jj, line 572
- // C.jj, line 572
- ContinueStatement();
- break;
- case BREAK:
- // C.jj, line 573
- // C.jj, line 573
- BreakStatement();
- break;
- case RETURN:
- // C.jj, line 574
- // C.jj, line 574
- ReturnStatement();
- break;
- default:
- jj_la1[51]=jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
- catch(Exception e51) {
- hitException51=false;
- if (e51 instanceof ParseException) throw(ParseException) e51;
- if (e51 instanceof RuntimeException) throw(RuntimeException) e51;
- throw new RuntimeException(e51);
- }
- finally {
- if (buildTree) {
- if (!hitException51) {
- closeNodeScope(node51,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node51.setEndLine(jjtEndToken.endLine);
- node51.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- //Broken up into separate statements for Giraffe
- // C.jj, line 578
- final public void GotoStatement() throws ParseException {
- // C.jj, line 580
- GotoStatement node52=null;
- if (buildTree) {
- node52=new GotoStatement();
- Token jjtStartToken=getToken(1);
- node52.setBeginLine(jjtStartToken.beginLine);
- node52.setBeginColumn(jjtStartToken.beginColumn);
- node52.setInputSource(this.getInputSource());
- openNodeScope(node52);
- }
- boolean hitException52=false;
- try {
- // C.jj, line 580
- // C.jj, line 580
- jj_consume_token(GOTO);
- // C.jj, line 580
- jj_consume_token(IDENTIFIER);
- // C.jj, line 580
- jj_consume_token(57);
- }
- catch(Exception e52) {
- hitException52=false;
- if (e52 instanceof ParseException) throw(ParseException) e52;
- if (e52 instanceof RuntimeException) throw(RuntimeException) e52;
- throw new RuntimeException(e52);
- }
- finally {
- if (buildTree) {
- if (!hitException52) {
- closeNodeScope(node52,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node52.setEndLine(jjtEndToken.endLine);
- node52.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 583
- final public void ContinueStatement() throws ParseException {
- // C.jj, line 585
- ContinueStatement node53=null;
- if (buildTree) {
- node53=new ContinueStatement();
- Token jjtStartToken=getToken(1);
- node53.setBeginLine(jjtStartToken.beginLine);
- node53.setBeginColumn(jjtStartToken.beginColumn);
- node53.setInputSource(this.getInputSource());
- openNodeScope(node53);
- }
- boolean hitException53=false;
- try {
- // C.jj, line 585
- // C.jj, line 585
- jj_consume_token(CONTINUE);
- // C.jj, line 585
- jj_consume_token(57);
- }
- catch(Exception e53) {
- hitException53=false;
- if (e53 instanceof ParseException) throw(ParseException) e53;
- if (e53 instanceof RuntimeException) throw(RuntimeException) e53;
- throw new RuntimeException(e53);
- }
- finally {
- if (buildTree) {
- if (!hitException53) {
- closeNodeScope(node53,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node53.setEndLine(jjtEndToken.endLine);
- node53.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 588
- final public void BreakStatement() throws ParseException {
- // C.jj, line 590
- BreakStatement node54=null;
- if (buildTree) {
- node54=new BreakStatement();
- Token jjtStartToken=getToken(1);
- node54.setBeginLine(jjtStartToken.beginLine);
- node54.setBeginColumn(jjtStartToken.beginColumn);
- node54.setInputSource(this.getInputSource());
- openNodeScope(node54);
- }
- boolean hitException54=false;
- try {
- // C.jj, line 590
- // C.jj, line 590
- jj_consume_token(BREAK);
- // C.jj, line 590
- jj_consume_token(57);
- }
- catch(Exception e54) {
- hitException54=false;
- if (e54 instanceof ParseException) throw(ParseException) e54;
- if (e54 instanceof RuntimeException) throw(RuntimeException) e54;
- throw new RuntimeException(e54);
- }
- finally {
- if (buildTree) {
- if (!hitException54) {
- closeNodeScope(node54,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node54.setEndLine(jjtEndToken.endLine);
- node54.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 593
- final public void ReturnStatement() throws ParseException {
- // C.jj, line 595
- ReturnStatement node55=null;
- if (buildTree) {
- node55=new ReturnStatement();
- Token jjtStartToken=getToken(1);
- node55.setBeginLine(jjtStartToken.beginLine);
- node55.setBeginColumn(jjtStartToken.beginColumn);
- node55.setInputSource(this.getInputSource());
- openNodeScope(node55);
- }
- boolean hitException55=false;
- try {
- // C.jj, line 595
- // C.jj, line 595
- jj_consume_token(RETURN);
- // C.jj, line 595
- int int29=(jj_ntk==-1)?jj_ntk():
- jj_ntk;
- if (int29==INTEGER_LITERAL||int29==BOOL_LITERAL||int29==FLOATING_POINT_LITERAL||int29==CHARACTER_LITERAL||int29==STRING_LITERAL||int29==SIZEOF||int29==IDENTIFIER||int29==63||int29==67||int29==86||int29==93||int29==94||int29==97||int29==98||int29==99||int29==100) {
- // C.jj, line 595
- // C.jj, line 595
- Expression();
- }
- else {
- jj_la1[52]=jj_gen;
- }
- // C.jj, line 595
- jj_consume_token(57);
- }
- catch(Exception e55) {
- hitException55=false;
- if (e55 instanceof ParseException) throw(ParseException) e55;
- if (e55 instanceof RuntimeException) throw(RuntimeException) e55;
- throw new RuntimeException(e55);
- }
- finally {
- if (buildTree) {
- if (!hitException55) {
- closeNodeScope(node55,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node55.setEndLine(jjtEndToken.endLine);
- node55.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 598
- final public void CoutStatement() throws ParseException {
- // C.jj, line 600
- CoutStatement node56=null;
- if (buildTree) {
- node56=new CoutStatement();
- Token jjtStartToken=getToken(1);
- node56.setBeginLine(jjtStartToken.beginLine);
- node56.setBeginColumn(jjtStartToken.beginColumn);
- node56.setInputSource(this.getInputSource());
- openNodeScope(node56);
- }
- boolean hitException56=false;
- try {
- // C.jj, line 600
- // C.jj, line 600
- jj_consume_token(COUT);
- // C.jj, line 600
- label_14:
- while (true) {
- if (!(jj_2_36(2))) {
- break label_14;
- }
- // C.jj, line 600
- // C.jj, line 600
- jj_consume_token(69);
- // C.jj, line 600
- Expression();
- }
- // C.jj, line 600
- jj_consume_token(57);
- }
- catch(Exception e56) {
- hitException56=false;
- if (e56 instanceof ParseException) throw(ParseException) e56;
- if (e56 instanceof RuntimeException) throw(RuntimeException) e56;
- throw new RuntimeException(e56);
- }
- finally {
- if (buildTree) {
- if (!hitException56) {
- closeNodeScope(node56,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node56.setEndLine(jjtEndToken.endLine);
- node56.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 603
- final public void CinStatement() throws ParseException {
- // C.jj, line 605
- CinStatement node57=null;
- if (buildTree) {
- node57=new CinStatement();
- Token jjtStartToken=getToken(1);
- node57.setBeginLine(jjtStartToken.beginLine);
- node57.setBeginColumn(jjtStartToken.beginColumn);
- node57.setInputSource(this.getInputSource());
- openNodeScope(node57);
- }
- boolean hitException57=false;
- try {
- // C.jj, line 605
- // C.jj, line 605
- jj_consume_token(CIN);
- // C.jj, line 605
- label_15:
- while (true) {
- if (!(jj_2_37(2))) {
- break label_15;
- }
- // C.jj, line 605
- // C.jj, line 605
- jj_consume_token(70);
- // C.jj, line 605
- jj_consume_token(IDENTIFIER);
- }
- // C.jj, line 605
- jj_consume_token(57);
- }
- catch(Exception e57) {
- hitException57=false;
- if (e57 instanceof ParseException) throw(ParseException) e57;
- if (e57 instanceof RuntimeException) throw(RuntimeException) e57;
- throw new RuntimeException(e57);
- }
- finally {
- if (buildTree) {
- if (!hitException57) {
- closeNodeScope(node57,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node57.setEndLine(jjtEndToken.endLine);
- node57.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 609
- final public void Expression() throws ParseException {
- // C.jj, line 611
- Expression node58=null;
- if (buildTree) {
- node58=new Expression();
- Token jjtStartToken=getToken(1);
- node58.setBeginLine(jjtStartToken.beginLine);
- node58.setBeginColumn(jjtStartToken.beginColumn);
- node58.setInputSource(this.getInputSource());
- openNodeScope(node58);
- }
- boolean hitException58=false;
- try {
- // C.jj, line 611
- AssignmentExpression();
- // C.jj, line 611
- label_16:
- while (true) {
- int int30=(jj_ntk==-1)?jj_ntk():
- jj_ntk;
- if (!(int30==60)) {
- jj_la1[53]=jj_gen;
- break label_16;
- }
- // C.jj, line 611
- // C.jj, line 611
- jj_consume_token(60);
- // C.jj, line 611
- AssignmentExpression();
- }
- }
- catch(Exception e58) {
- hitException58=false;
- if (e58 instanceof ParseException) throw(ParseException) e58;
- if (e58 instanceof RuntimeException) throw(RuntimeException) e58;
- throw new RuntimeException(e58);
- }
- finally {
- if (buildTree) {
- if (!hitException58) {
- closeNodeScope(node58,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node58.setEndLine(jjtEndToken.endLine);
- node58.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 614
- final public void AssignmentExpression() throws ParseException {
- // C.jj, line 616
- AssignmentExpression node59=null;
- if (buildTree) {
- node59=new AssignmentExpression();
- Token jjtStartToken=getToken(1);
- node59.setBeginLine(jjtStartToken.beginLine);
- node59.setBeginColumn(jjtStartToken.beginColumn);
- node59.setInputSource(this.getInputSource());
- openNodeScope(node59);
- }
- boolean hitException59=false;
- try {
- if (jj_2_38(2147483647)) {
- // C.jj, line 616
- // C.jj, line 616
- UnaryExpression();
- // C.jj, line 616
- AssignmentOperator();
- // C.jj, line 616
- AssignmentExpression();
- }
- else if (jj_2_39(3)) {
- // C.jj, line 617
- // C.jj, line 617
- ConditionalExpression();
- }
- else {
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
- catch(Exception e59) {
- hitException59=false;
- if (e59 instanceof ParseException) throw(ParseException) e59;
- if (e59 instanceof RuntimeException) throw(RuntimeException) e59;
- throw new RuntimeException(e59);
- }
- finally {
- if (buildTree) {
- if (!hitException59) {
- closeNodeScope(node59,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node59.setEndLine(jjtEndToken.endLine);
- node59.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 620
- final public void AssignmentOperator() throws ParseException {
- // C.jj, line 622
- AssignmentOperator node60=null;
- if (buildTree) {
- node60=new AssignmentOperator();
- Token jjtStartToken=getToken(1);
- node60.setBeginLine(jjtStartToken.beginLine);
- node60.setBeginColumn(jjtStartToken.beginColumn);
- node60.setInputSource(this.getInputSource());
- openNodeScope(node60);
- }
- boolean hitException60=false;
- try {
- // C.jj, line 622
- switch((jj_ntk==-1)?jj_ntk():
- jj_ntk) {
- case 61:
- // C.jj, line 622
- // C.jj, line 622
- jj_consume_token(61);
- break;
- case 71:
- // C.jj, line 622
- // C.jj, line 622
- jj_consume_token(71);
- break;
- case 72:
- // C.jj, line 622
- // C.jj, line 622
- jj_consume_token(72);
- break;
- case 73:
- // C.jj, line 622
- // C.jj, line 622
- jj_consume_token(73);
- break;
- case 74:
- // C.jj, line 622
- // C.jj, line 622
- jj_consume_token(74);
- break;
- case 75:
- // C.jj, line 622
- // C.jj, line 622
- jj_consume_token(75);
- break;
- case 76:
- // C.jj, line 622
- // C.jj, line 622
- jj_consume_token(76);
- break;
- case 77:
- // C.jj, line 622
- // C.jj, line 622
- jj_consume_token(77);
- break;
- case 78:
- // C.jj, line 622
- // C.jj, line 622
- jj_consume_token(78);
- break;
- case 79:
- // C.jj, line 622
- // C.jj, line 622
- jj_consume_token(79);
- break;
- case 80:
- // C.jj, line 622
- // C.jj, line 622
- jj_consume_token(80);
- break;
- default:
- jj_la1[54]=jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
- catch(Exception e60) {
- hitException60=false;
- if (e60 instanceof ParseException) throw(ParseException) e60;
- if (e60 instanceof RuntimeException) throw(RuntimeException) e60;
- throw new RuntimeException(e60);
- }
- finally {
- if (buildTree) {
- if (!hitException60) {
- closeNodeScope(node60,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node60.setEndLine(jjtEndToken.endLine);
- node60.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 625
- final public void ConditionalExpression() throws ParseException {
- // C.jj, line 627
- ConditionalExpression node61=null;
- if (buildTree) {
- node61=new ConditionalExpression();
- Token jjtStartToken=getToken(1);
- node61.setBeginLine(jjtStartToken.beginLine);
- node61.setBeginColumn(jjtStartToken.beginColumn);
- node61.setInputSource(this.getInputSource());
- openNodeScope(node61);
- }
- boolean hitException61=false;
- try {
- // C.jj, line 627
- LogicalORExpression();
- // C.jj, line 627
- int int31=(jj_ntk==-1)?jj_ntk():
- jj_ntk;
- if (int31==81) {
- // C.jj, line 627
- // C.jj, line 627
- jj_consume_token(81);
- // C.jj, line 627
- Expression();
- // C.jj, line 627
- jj_consume_token(62);
- // C.jj, line 627
- ConditionalExpression();
- }
- else {
- jj_la1[55]=jj_gen;
- }
- }
- catch(Exception e61) {
- hitException61=false;
- if (e61 instanceof ParseException) throw(ParseException) e61;
- if (e61 instanceof RuntimeException) throw(RuntimeException) e61;
- throw new RuntimeException(e61);
- }
- finally {
- if (buildTree) {
- if (!hitException61) {
- closeNodeScope(node61,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node61.setEndLine(jjtEndToken.endLine);
- node61.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 630
- final public void ConstantExpression() throws ParseException {
- // C.jj, line 632
- ConstantExpression node62=null;
- if (buildTree) {
- node62=new ConstantExpression();
- Token jjtStartToken=getToken(1);
- node62.setBeginLine(jjtStartToken.beginLine);
- node62.setBeginColumn(jjtStartToken.beginColumn);
- node62.setInputSource(this.getInputSource());
- openNodeScope(node62);
- }
- boolean hitException62=false;
- try {
- // C.jj, line 632
- ConditionalExpression();
- }
- catch(Exception e62) {
- hitException62=false;
- if (e62 instanceof ParseException) throw(ParseException) e62;
- if (e62 instanceof RuntimeException) throw(RuntimeException) e62;
- throw new RuntimeException(e62);
- }
- finally {
- if (buildTree) {
- if (!hitException62) {
- closeNodeScope(node62,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node62.setEndLine(jjtEndToken.endLine);
- node62.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 635
- final public void LogicalORExpression() throws ParseException {
- // C.jj, line 637
- LogicalORExpression node63=null;
- if (buildTree) {
- node63=new LogicalORExpression();
- Token jjtStartToken=getToken(1);
- node63.setBeginLine(jjtStartToken.beginLine);
- node63.setBeginColumn(jjtStartToken.beginColumn);
- node63.setInputSource(this.getInputSource());
- openNodeScope(node63);
- }
- boolean hitException63=false;
- try {
- // C.jj, line 637
- LogicalANDExpression();
- // C.jj, line 637
- int int32=(jj_ntk==-1)?jj_ntk():
- jj_ntk;
- if (int32==82) {
- // C.jj, line 637
- // C.jj, line 637
- jj_consume_token(82);
- // C.jj, line 637
- LogicalORExpression();
- }
- else {
- jj_la1[56]=jj_gen;
- }
- }
- catch(Exception e63) {
- hitException63=false;
- if (e63 instanceof ParseException) throw(ParseException) e63;
- if (e63 instanceof RuntimeException) throw(RuntimeException) e63;
- throw new RuntimeException(e63);
- }
- finally {
- if (buildTree) {
- if (!hitException63) {
- closeNodeScope(node63,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node63.setEndLine(jjtEndToken.endLine);
- node63.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 640
- final public void LogicalANDExpression() throws ParseException {
- // C.jj, line 642
- LogicalANDExpression node64=null;
- if (buildTree) {
- node64=new LogicalANDExpression();
- Token jjtStartToken=getToken(1);
- node64.setBeginLine(jjtStartToken.beginLine);
- node64.setBeginColumn(jjtStartToken.beginColumn);
- node64.setInputSource(this.getInputSource());
- openNodeScope(node64);
- }
- boolean hitException64=false;
- try {
- // C.jj, line 642
- InclusiveORExpression();
- // C.jj, line 642
- int int33=(jj_ntk==-1)?jj_ntk():
- jj_ntk;
- if (int33==83) {
- // C.jj, line 642
- // C.jj, line 642
- jj_consume_token(83);
- // C.jj, line 642
- LogicalANDExpression();
- }
- else {
- jj_la1[57]=jj_gen;
- }
- }
- catch(Exception e64) {
- hitException64=false;
- if (e64 instanceof ParseException) throw(ParseException) e64;
- if (e64 instanceof RuntimeException) throw(RuntimeException) e64;
- throw new RuntimeException(e64);
- }
- finally {
- if (buildTree) {
- if (!hitException64) {
- closeNodeScope(node64,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node64.setEndLine(jjtEndToken.endLine);
- node64.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 645
- final public void InclusiveORExpression() throws ParseException {
- // C.jj, line 647
- InclusiveORExpression node65=null;
- if (buildTree) {
- node65=new InclusiveORExpression();
- Token jjtStartToken=getToken(1);
- node65.setBeginLine(jjtStartToken.beginLine);
- node65.setBeginColumn(jjtStartToken.beginColumn);
- node65.setInputSource(this.getInputSource());
- openNodeScope(node65);
- }
- boolean hitException65=false;
- try {
- // C.jj, line 647
- ExclusiveORExpression();
- // C.jj, line 647
- int int34=(jj_ntk==-1)?jj_ntk():
- jj_ntk;
- if (int34==84) {
- // C.jj, line 647
- // C.jj, line 647
- jj_consume_token(84);
- // C.jj, line 647
- InclusiveORExpression();
- }
- else {
- jj_la1[58]=jj_gen;
- }
- }
- catch(Exception e65) {
- hitException65=false;
- if (e65 instanceof ParseException) throw(ParseException) e65;
- if (e65 instanceof RuntimeException) throw(RuntimeException) e65;
- throw new RuntimeException(e65);
- }
- finally {
- if (buildTree) {
- if (!hitException65) {
- closeNodeScope(node65,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node65.setEndLine(jjtEndToken.endLine);
- node65.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 650
- final public void ExclusiveORExpression() throws ParseException {
- // C.jj, line 652
- ExclusiveORExpression node66=null;
- if (buildTree) {
- node66=new ExclusiveORExpression();
- Token jjtStartToken=getToken(1);
- node66.setBeginLine(jjtStartToken.beginLine);
- node66.setBeginColumn(jjtStartToken.beginColumn);
- node66.setInputSource(this.getInputSource());
- openNodeScope(node66);
- }
- boolean hitException66=false;
- try {
- // C.jj, line 652
- ANDExpression();
- // C.jj, line 652
- int int35=(jj_ntk==-1)?jj_ntk():
- jj_ntk;
- if (int35==85) {
- // C.jj, line 652
- // C.jj, line 652
- jj_consume_token(85);
- // C.jj, line 652
- ExclusiveORExpression();
- }
- else {
- jj_la1[59]=jj_gen;
- }
- }
- catch(Exception e66) {
- hitException66=false;
- if (e66 instanceof ParseException) throw(ParseException) e66;
- if (e66 instanceof RuntimeException) throw(RuntimeException) e66;
- throw new RuntimeException(e66);
- }
- finally {
- if (buildTree) {
- if (!hitException66) {
- closeNodeScope(node66,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node66.setEndLine(jjtEndToken.endLine);
- node66.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 655
- final public void ANDExpression() throws ParseException {
- // C.jj, line 657
- ANDExpression node67=null;
- if (buildTree) {
- node67=new ANDExpression();
- Token jjtStartToken=getToken(1);
- node67.setBeginLine(jjtStartToken.beginLine);
- node67.setBeginColumn(jjtStartToken.beginColumn);
- node67.setInputSource(this.getInputSource());
- openNodeScope(node67);
- }
- boolean hitException67=false;
- try {
- // C.jj, line 657
- EqualityExpression();
- // C.jj, line 657
- int int36=(jj_ntk==-1)?jj_ntk():
- jj_ntk;
- if (int36==86) {
- // C.jj, line 657
- // C.jj, line 657
- jj_consume_token(86);
- // C.jj, line 657
- ANDExpression();
- }
- else {
- jj_la1[60]=jj_gen;
- }
- }
- catch(Exception e67) {
- hitException67=false;
- if (e67 instanceof ParseException) throw(ParseException) e67;
- if (e67 instanceof RuntimeException) throw(RuntimeException) e67;
- throw new RuntimeException(e67);
- }
- finally {
- if (buildTree) {
- if (!hitException67) {
- closeNodeScope(node67,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node67.setEndLine(jjtEndToken.endLine);
- node67.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 660
- final public void EqualityExpression() throws ParseException {
- // C.jj, line 662
- EqualityExpression node68=null;
- if (buildTree) {
- node68=new EqualityExpression();
- Token jjtStartToken=getToken(1);
- node68.setBeginLine(jjtStartToken.beginLine);
- node68.setBeginColumn(jjtStartToken.beginColumn);
- node68.setInputSource(this.getInputSource());
- openNodeScope(node68);
- }
- boolean hitException68=false;
- try {
- // C.jj, line 662
- RelationalExpression();
- // C.jj, line 662
- int int37=(jj_ntk==-1)?jj_ntk():
- jj_ntk;
- if (int37==87||int37==88) {
- // C.jj, line 662
- // C.jj, line 662
- switch((jj_ntk==-1)?jj_ntk():
- jj_ntk) {
- case 87:
- // C.jj, line 662
- // C.jj, line 662
- jj_consume_token(87);
- break;
- case 88:
- // C.jj, line 662
- // C.jj, line 662
- jj_consume_token(88);
- break;
- default:
- jj_la1[61]=jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- // C.jj, line 662
- EqualityExpression();
- }
- else {
- jj_la1[62]=jj_gen;
- }
- }
- catch(Exception e68) {
- hitException68=false;
- if (e68 instanceof ParseException) throw(ParseException) e68;
- if (e68 instanceof RuntimeException) throw(RuntimeException) e68;
- throw new RuntimeException(e68);
- }
- finally {
- if (buildTree) {
- if (!hitException68) {
- closeNodeScope(node68,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node68.setEndLine(jjtEndToken.endLine);
- node68.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 665
- final public void RelationalExpression() throws ParseException {
- // C.jj, line 667
- RelationalExpression node69=null;
- if (buildTree) {
- node69=new RelationalExpression();
- Token jjtStartToken=getToken(1);
- node69.setBeginLine(jjtStartToken.beginLine);
- node69.setBeginColumn(jjtStartToken.beginColumn);
- node69.setInputSource(this.getInputSource());
- openNodeScope(node69);
- }
- boolean hitException69=false;
- try {
- // C.jj, line 667
- AdditiveExpression();
- // C.jj, line 667
- int int38=(jj_ntk==-1)?jj_ntk():
- jj_ntk;
- if (int38==89||int38==90||int38==91||int38==92) {
- // C.jj, line 667
- // C.jj, line 667
- switch((jj_ntk==-1)?jj_ntk():
- jj_ntk) {
- case 89:
- // C.jj, line 667
- // C.jj, line 667
- jj_consume_token(89);
- break;
- case 90:
- // C.jj, line 667
- // C.jj, line 667
- jj_consume_token(90);
- break;
- case 91:
- // C.jj, line 667
- // C.jj, line 667
- jj_consume_token(91);
- break;
- case 92:
- // C.jj, line 667
- // C.jj, line 667
- jj_consume_token(92);
- break;
- default:
- jj_la1[63]=jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- // C.jj, line 667
- RelationalExpression();
- }
- else {
- jj_la1[64]=jj_gen;
- }
- }
- catch(Exception e69) {
- hitException69=false;
- if (e69 instanceof ParseException) throw(ParseException) e69;
- if (e69 instanceof RuntimeException) throw(RuntimeException) e69;
- throw new RuntimeException(e69);
- }
- finally {
- if (buildTree) {
- if (!hitException69) {
- closeNodeScope(node69,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node69.setEndLine(jjtEndToken.endLine);
- node69.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- /*
- void ShiftExpression() : {}
- {
- //Bitwise shifts not allowed in our grammar
- AdditiveExpression() //[ LOOKAHEAD(3) ( "<<" | ">>" ) ShiftExpression() ]
- }*/
- // C.jj, line 677
- final public void AdditiveExpression() throws ParseException {
- // C.jj, line 679
- AdditiveExpression node70=null;
- if (buildTree) {
- node70=new AdditiveExpression();
- Token jjtStartToken=getToken(1);
- node70.setBeginLine(jjtStartToken.beginLine);
- node70.setBeginColumn(jjtStartToken.beginColumn);
- node70.setInputSource(this.getInputSource());
- openNodeScope(node70);
- }
- boolean hitException70=false;
- try {
- // C.jj, line 679
- MultiplicativeExpression();
- // C.jj, line 679
- int int39=(jj_ntk==-1)?jj_ntk():
- jj_ntk;
- if (int39==93||int39==94) {
- // C.jj, line 679
- // C.jj, line 679
- switch((jj_ntk==-1)?jj_ntk():
- jj_ntk) {
- case 93:
- // C.jj, line 679
- // C.jj, line 679
- jj_consume_token(93);
- break;
- case 94:
- // C.jj, line 679
- // C.jj, line 679
- jj_consume_token(94);
- break;
- default:
- jj_la1[65]=jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- // C.jj, line 679
- AdditiveExpression();
- }
- else {
- jj_la1[66]=jj_gen;
- }
- }
- catch(Exception e70) {
- hitException70=false;
- if (e70 instanceof ParseException) throw(ParseException) e70;
- if (e70 instanceof RuntimeException) throw(RuntimeException) e70;
- throw new RuntimeException(e70);
- }
- finally {
- if (buildTree) {
- if (!hitException70) {
- closeNodeScope(node70,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node70.setEndLine(jjtEndToken.endLine);
- node70.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 682
- final public void MultiplicativeExpression() throws ParseException {
- // C.jj, line 684
- MultiplicativeExpression node71=null;
- if (buildTree) {
- node71=new MultiplicativeExpression();
- Token jjtStartToken=getToken(1);
- node71.setBeginLine(jjtStartToken.beginLine);
- node71.setBeginColumn(jjtStartToken.beginColumn);
- node71.setInputSource(this.getInputSource());
- openNodeScope(node71);
- }
- boolean hitException71=false;
- try {
- // C.jj, line 684
- CastExpression();
- // C.jj, line 684
- int int40=(jj_ntk==-1)?jj_ntk():
- jj_ntk;
- if (int40==67||int40==95||int40==96) {
- // C.jj, line 684
- // C.jj, line 684
- switch((jj_ntk==-1)?jj_ntk():
- jj_ntk) {
- case 67:
- // C.jj, line 684
- // C.jj, line 684
- jj_consume_token(67);
- break;
- case 95:
- // C.jj, line 684
- // C.jj, line 684
- jj_consume_token(95);
- break;
- case 96:
- // C.jj, line 684
- // C.jj, line 684
- jj_consume_token(96);
- break;
- default:
- jj_la1[67]=jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- // C.jj, line 684
- MultiplicativeExpression();
- }
- else {
- jj_la1[68]=jj_gen;
- }
- }
- catch(Exception e71) {
- hitException71=false;
- if (e71 instanceof ParseException) throw(ParseException) e71;
- if (e71 instanceof RuntimeException) throw(RuntimeException) e71;
- throw new RuntimeException(e71);
- }
- finally {
- if (buildTree) {
- if (!hitException71) {
- closeNodeScope(node71,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node71.setEndLine(jjtEndToken.endLine);
- node71.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 687
- final public void CastExpression() throws ParseException {
- // C.jj, line 689
- CastExpression node72=null;
- if (buildTree) {
- node72=new CastExpression();
- Token jjtStartToken=getToken(1);
- node72.setBeginLine(jjtStartToken.beginLine);
- node72.setBeginColumn(jjtStartToken.beginColumn);
- node72.setInputSource(this.getInputSource());
- openNodeScope(node72);
- }
- boolean hitException72=false;
- try {
- // C.jj, line 689
- if (jj_2_40(2147483647)) {
- // C.jj, line 689
- // C.jj, line 689
- jj_consume_token(63);
- // C.jj, line 689
- TypeName();
- // C.jj, line 689
- jj_consume_token(64);
- // C.jj, line 689
- CastExpression();
- }
- else {
- switch((jj_ntk==-1)?jj_ntk():
- jj_ntk) {
- case INTEGER_LITERAL:
- case BOOL_LITERAL:
- case FLOATING_POINT_LITERAL:
- case CHARACTER_LITERAL:
- case STRING_LITERAL:
- case SIZEOF:
- case IDENTIFIER:
- case 67:
- case 86:
- case 93:
- case 94:
- case 97:
- case 98:
- case 99:
- case 100:
- // C.jj, line 690
- // C.jj, line 690
- UnaryExpression();
- break;
- default:
- jj_la1[69]=jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
- }
- catch(Exception e72) {
- hitException72=false;
- if (e72 instanceof ParseException) throw(ParseException) e72;
- if (e72 instanceof RuntimeException) throw(RuntimeException) e72;
- throw new RuntimeException(e72);
- }
- finally {
- if (buildTree) {
- if (!hitException72) {
- closeNodeScope(node72,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node72.setEndLine(jjtEndToken.endLine);
- node72.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 693
- final public void UnaryExpression() throws ParseException {
- // C.jj, line 695
- UnaryExpression node73=null;
- if (buildTree) {
- node73=new UnaryExpression();
- Token jjtStartToken=getToken(1);
- node73.setBeginLine(jjtStartToken.beginLine);
- node73.setBeginColumn(jjtStartToken.beginColumn);
- node73.setInputSource(this.getInputSource());
- openNodeScope(node73);
- }
- boolean hitException73=false;
- try {
- // C.jj, line 695
- if (jj_2_41(3)) {
- // C.jj, line 695
- // C.jj, line 695
- PostfixExpression();
- }
- else {
- switch((jj_ntk==-1)?jj_ntk():
- jj_ntk) {
- case 97:
- // C.jj, line 696
- // C.jj, line 696
- PrePPExpression();
- break;
- case 98:
- // C.jj, line 697
- // C.jj, line 697
- PreMMExpression();
- break;
- case 67:
- case 86:
- case 93:
- case 94:
- case 99:
- case 100:
- // C.jj, line 699
- // C.jj, line 699
- UnaryOpExpression();
- break;
- case SIZEOF:
- // C.jj, line 700
- // C.jj, line 700
- SizeofExpression();
- break;
- default:
- jj_la1[70]=jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
- }
- catch(Exception e73) {
- hitException73=false;
- if (e73 instanceof ParseException) throw(ParseException) e73;
- if (e73 instanceof RuntimeException) throw(RuntimeException) e73;
- throw new RuntimeException(e73);
- }
- finally {
- if (buildTree) {
- if (!hitException73) {
- closeNodeScope(node73,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node73.setEndLine(jjtEndToken.endLine);
- node73.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 713
- final public void UnaryOpExpression() throws ParseException {
- // C.jj, line 715
- UnaryOpExpression node74=null;
- if (buildTree) {
- node74=new UnaryOpExpression();
- Token jjtStartToken=getToken(1);
- node74.setBeginLine(jjtStartToken.beginLine);
- node74.setBeginColumn(jjtStartToken.beginColumn);
- node74.setInputSource(this.getInputSource());
- openNodeScope(node74);
- }
- boolean hitException74=false;
- try {
- // C.jj, line 715
- switch((jj_ntk==-1)?jj_ntk():
- jj_ntk) {
- case 86:
- // C.jj, line 715
- // C.jj, line 715
- AddrOfExpression();
- break;
- case 67:
- // C.jj, line 716
- // C.jj, line 716
- DerefExpression();
- break;
- case 93:
- // C.jj, line 717
- // C.jj, line 717
- PosExpression();
- break;
- case 94:
- // C.jj, line 718
- // C.jj, line 718
- NegExpression();
- break;
- case 99:
- // C.jj, line 719
- // C.jj, line 719
- BitwiseNotExpression();
- break;
- case 100:
- // C.jj, line 720
- // C.jj, line 720
- NotExpression();
- break;
- default:
- jj_la1[71]=jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
- catch(Exception e74) {
- hitException74=false;
- if (e74 instanceof ParseException) throw(ParseException) e74;
- if (e74 instanceof RuntimeException) throw(RuntimeException) e74;
- throw new RuntimeException(e74);
- }
- finally {
- if (buildTree) {
- if (!hitException74) {
- closeNodeScope(node74,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node74.setEndLine(jjtEndToken.endLine);
- node74.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 724
- final public void PrePPExpression() throws ParseException {
- // C.jj, line 726
- PrePPExpression node75=null;
- if (buildTree) {
- node75=new PrePPExpression();
- Token jjtStartToken=getToken(1);
- node75.setBeginLine(jjtStartToken.beginLine);
- node75.setBeginColumn(jjtStartToken.beginColumn);
- node75.setInputSource(this.getInputSource());
- openNodeScope(node75);
- }
- boolean hitException75=false;
- try {
- // C.jj, line 726
- // C.jj, line 726
- jj_consume_token(97);
- // C.jj, line 726
- UnaryExpression();
- }
- catch(Exception e75) {
- hitException75=false;
- if (e75 instanceof ParseException) throw(ParseException) e75;
- if (e75 instanceof RuntimeException) throw(RuntimeException) e75;
- throw new RuntimeException(e75);
- }
- finally {
- if (buildTree) {
- if (!hitException75) {
- closeNodeScope(node75,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node75.setEndLine(jjtEndToken.endLine);
- node75.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 729
- final public void PreMMExpression() throws ParseException {
- // C.jj, line 731
- PreMMExpression node76=null;
- if (buildTree) {
- node76=new PreMMExpression();
- Token jjtStartToken=getToken(1);
- node76.setBeginLine(jjtStartToken.beginLine);
- node76.setBeginColumn(jjtStartToken.beginColumn);
- node76.setInputSource(this.getInputSource());
- openNodeScope(node76);
- }
- boolean hitException76=false;
- try {
- // C.jj, line 731
- // C.jj, line 731
- jj_consume_token(98);
- // C.jj, line 731
- UnaryExpression();
- }
- catch(Exception e76) {
- hitException76=false;
- if (e76 instanceof ParseException) throw(ParseException) e76;
- if (e76 instanceof RuntimeException) throw(RuntimeException) e76;
- throw new RuntimeException(e76);
- }
- finally {
- if (buildTree) {
- if (!hitException76) {
- closeNodeScope(node76,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node76.setEndLine(jjtEndToken.endLine);
- node76.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 734
- final public void SizeofExpression() throws ParseException {
- // C.jj, line 736
- SizeofExpression node77=null;
- if (buildTree) {
- node77=new SizeofExpression();
- Token jjtStartToken=getToken(1);
- node77.setBeginLine(jjtStartToken.beginLine);
- node77.setBeginColumn(jjtStartToken.beginColumn);
- node77.setInputSource(this.getInputSource());
- openNodeScope(node77);
- }
- boolean hitException77=false;
- try {
- // C.jj, line 736
- jj_consume_token(SIZEOF);
- // C.jj, line 736
- if (jj_2_42(2147483647)) {
- // C.jj, line 736
- // C.jj, line 736
- UnaryExpression();
- }
- else {
- switch((jj_ntk==-1)?jj_ntk():
- jj_ntk) {
- case 63:
- // C.jj, line 736
- // C.jj, line 736
- jj_consume_token(63);
- // C.jj, line 736
- TypeName();
- // C.jj, line 736
- jj_consume_token(64);
- break;
- default:
- jj_la1[72]=jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
- }
- catch(Exception e77) {
- hitException77=false;
- if (e77 instanceof ParseException) throw(ParseException) e77;
- if (e77 instanceof RuntimeException) throw(RuntimeException) e77;
- throw new RuntimeException(e77);
- }
- finally {
- if (buildTree) {
- if (!hitException77) {
- closeNodeScope(node77,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node77.setEndLine(jjtEndToken.endLine);
- node77.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 739
- final public void AddrOfExpression() throws ParseException {
- // C.jj, line 741
- AddrOfExpression node78=null;
- if (buildTree) {
- node78=new AddrOfExpression();
- Token jjtStartToken=getToken(1);
- node78.setBeginLine(jjtStartToken.beginLine);
- node78.setBeginColumn(jjtStartToken.beginColumn);
- node78.setInputSource(this.getInputSource());
- openNodeScope(node78);
- }
- boolean hitException78=false;
- try {
- // C.jj, line 741
- // C.jj, line 741
- jj_consume_token(86);
- // C.jj, line 741
- CastExpression();
- }
- catch(Exception e78) {
- hitException78=false;
- if (e78 instanceof ParseException) throw(ParseException) e78;
- if (e78 instanceof RuntimeException) throw(RuntimeException) e78;
- throw new RuntimeException(e78);
- }
- finally {
- if (buildTree) {
- if (!hitException78) {
- closeNodeScope(node78,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node78.setEndLine(jjtEndToken.endLine);
- node78.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 744
- final public void DerefExpression() throws ParseException {
- // C.jj, line 746
- DerefExpression node79=null;
- if (buildTree) {
- node79=new DerefExpression();
- Token jjtStartToken=getToken(1);
- node79.setBeginLine(jjtStartToken.beginLine);
- node79.setBeginColumn(jjtStartToken.beginColumn);
- node79.setInputSource(this.getInputSource());
- openNodeScope(node79);
- }
- boolean hitException79=false;
- try {
- // C.jj, line 746
- // C.jj, line 746
- jj_consume_token(67);
- // C.jj, line 746
- CastExpression();
- }
- catch(Exception e79) {
- hitException79=false;
- if (e79 instanceof ParseException) throw(ParseException) e79;
- if (e79 instanceof RuntimeException) throw(RuntimeException) e79;
- throw new RuntimeException(e79);
- }
- finally {
- if (buildTree) {
- if (!hitException79) {
- closeNodeScope(node79,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node79.setEndLine(jjtEndToken.endLine);
- node79.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 749
- final public void PosExpression() throws ParseException {
- // C.jj, line 751
- PosExpression node80=null;
- if (buildTree) {
- node80=new PosExpression();
- Token jjtStartToken=getToken(1);
- node80.setBeginLine(jjtStartToken.beginLine);
- node80.setBeginColumn(jjtStartToken.beginColumn);
- node80.setInputSource(this.getInputSource());
- openNodeScope(node80);
- }
- boolean hitException80=false;
- try {
- // C.jj, line 751
- // C.jj, line 751
- jj_consume_token(93);
- // C.jj, line 751
- CastExpression();
- }
- catch(Exception e80) {
- hitException80=false;
- if (e80 instanceof ParseException) throw(ParseException) e80;
- if (e80 instanceof RuntimeException) throw(RuntimeException) e80;
- throw new RuntimeException(e80);
- }
- finally {
- if (buildTree) {
- if (!hitException80) {
- closeNodeScope(node80,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node80.setEndLine(jjtEndToken.endLine);
- node80.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 754
- final public void NegExpression() throws ParseException {
- // C.jj, line 756
- NegExpression node81=null;
- if (buildTree) {
- node81=new NegExpression();
- Token jjtStartToken=getToken(1);
- node81.setBeginLine(jjtStartToken.beginLine);
- node81.setBeginColumn(jjtStartToken.beginColumn);
- node81.setInputSource(this.getInputSource());
- openNodeScope(node81);
- }
- boolean hitException81=false;
- try {
- // C.jj, line 756
- // C.jj, line 756
- jj_consume_token(94);
- // C.jj, line 756
- CastExpression();
- }
- catch(Exception e81) {
- hitException81=false;
- if (e81 instanceof ParseException) throw(ParseException) e81;
- if (e81 instanceof RuntimeException) throw(RuntimeException) e81;
- throw new RuntimeException(e81);
- }
- finally {
- if (buildTree) {
- if (!hitException81) {
- closeNodeScope(node81,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node81.setEndLine(jjtEndToken.endLine);
- node81.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 759
- final public void BitwiseNotExpression() throws ParseException {
- // C.jj, line 761
- BitwiseNotExpression node82=null;
- if (buildTree) {
- node82=new BitwiseNotExpression();
- Token jjtStartToken=getToken(1);
- node82.setBeginLine(jjtStartToken.beginLine);
- node82.setBeginColumn(jjtStartToken.beginColumn);
- node82.setInputSource(this.getInputSource());
- openNodeScope(node82);
- }
- boolean hitException82=false;
- try {
- // C.jj, line 761
- // C.jj, line 761
- jj_consume_token(99);
- // C.jj, line 761
- CastExpression();
- }
- catch(Exception e82) {
- hitException82=false;
- if (e82 instanceof ParseException) throw(ParseException) e82;
- if (e82 instanceof RuntimeException) throw(RuntimeException) e82;
- throw new RuntimeException(e82);
- }
- finally {
- if (buildTree) {
- if (!hitException82) {
- closeNodeScope(node82,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node82.setEndLine(jjtEndToken.endLine);
- node82.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 764
- final public void NotExpression() throws ParseException {
- // C.jj, line 766
- NotExpression node83=null;
- if (buildTree) {
- node83=new NotExpression();
- Token jjtStartToken=getToken(1);
- node83.setBeginLine(jjtStartToken.beginLine);
- node83.setBeginColumn(jjtStartToken.beginColumn);
- node83.setInputSource(this.getInputSource());
- openNodeScope(node83);
- }
- boolean hitException83=false;
- try {
- // C.jj, line 766
- // C.jj, line 766
- jj_consume_token(100);
- // C.jj, line 766
- CastExpression();
- }
- catch(Exception e83) {
- hitException83=false;
- if (e83 instanceof ParseException) throw(ParseException) e83;
- if (e83 instanceof RuntimeException) throw(RuntimeException) e83;
- throw new RuntimeException(e83);
- }
- finally {
- if (buildTree) {
- if (!hitException83) {
- closeNodeScope(node83,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node83.setEndLine(jjtEndToken.endLine);
- node83.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- /*
- void UnaryOperator() : {}
- {
- ( "&" | "*" | "+" | "-" | "~" | "!" )
- }
- */
- //Split Up for Giraffe
- // C.jj, line 778
- final public void PostfixExpression() throws ParseException {
- // C.jj, line 780
- PostfixExpression node84=null;
- if (buildTree) {
- node84=new PostfixExpression();
- Token jjtStartToken=getToken(1);
- node84.setBeginLine(jjtStartToken.beginLine);
- node84.setBeginColumn(jjtStartToken.beginColumn);
- node84.setInputSource(this.getInputSource());
- openNodeScope(node84);
- }
- boolean hitException84=false;
- try {
- // C.jj, line 780
- PrimaryExpression();
- // C.jj, line 780
- PostfixList();
- }
- catch(Exception e84) {
- hitException84=false;
- if (e84 instanceof ParseException) throw(ParseException) e84;
- if (e84 instanceof RuntimeException) throw(RuntimeException) e84;
- throw new RuntimeException(e84);
- }
- finally {
- if (buildTree) {
- if (!hitException84) {
- closeNodeScope(node84,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node84.setEndLine(jjtEndToken.endLine);
- node84.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 783
- final public void Postfix() throws ParseException {
- // C.jj, line 785
- Postfix node85=null;
- if (buildTree) {
- node85=new Postfix();
- Token jjtStartToken=getToken(1);
- node85.setBeginLine(jjtStartToken.beginLine);
- node85.setBeginColumn(jjtStartToken.beginColumn);
- node85.setInputSource(this.getInputSource());
- openNodeScope(node85);
- }
- boolean hitException85=false;
- try {
- switch((jj_ntk==-1)?jj_ntk():
- jj_ntk) {
- case 65:
- // C.jj, line 785
- // C.jj, line 785
- ArrBoxPostfix();
- break;
- case 63:
- // C.jj, line 786
- // C.jj, line 786
- FnCallPostfix();
- break;
- case 101:
- // C.jj, line 787
- // C.jj, line 787
- DotMemberPostfix();
- break;
- case 102:
- // C.jj, line 788
- // C.jj, line 788
- ArrowMemberPostfix();
- break;
- case 97:
- // C.jj, line 789
- // C.jj, line 789
- PPPostfix();
- break;
- case 98:
- // C.jj, line 790
- // C.jj, line 790
- MMPostfix();
- break;
- default:
- jj_la1[73]=jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
- catch(Exception e85) {
- hitException85=false;
- if (e85 instanceof ParseException) throw(ParseException) e85;
- if (e85 instanceof RuntimeException) throw(RuntimeException) e85;
- throw new RuntimeException(e85);
- }
- finally {
- if (buildTree) {
- if (!hitException85) {
- closeNodeScope(node85,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node85.setEndLine(jjtEndToken.endLine);
- node85.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- //Simulation of Kleene star to make tree eaiser to parse
- // C.jj, line 794
- final public void PostfixList() throws ParseException {
- // C.jj, line 797
- PostfixList node86=null;
- if (buildTree) {
- node86=new PostfixList();
- Token jjtStartToken=getToken(1);
- node86.setBeginLine(jjtStartToken.beginLine);
- node86.setBeginColumn(jjtStartToken.beginColumn);
- node86.setInputSource(this.getInputSource());
- openNodeScope(node86);
- }
- boolean hitException86=false;
- try {
- // C.jj, line 797
- label_17:
- while (true) {
- int int41=(jj_ntk==-1)?jj_ntk():
- jj_ntk;
- if (!(int41==63||int41==65||int41==97||int41==98||int41==101||int41==102)) {
- jj_la1[74]=jj_gen;
- break label_17;
- }
- // C.jj, line 797
- // C.jj, line 797
- Postfix();
- }
- }
- catch(Exception e86) {
- hitException86=false;
- if (e86 instanceof ParseException) throw(ParseException) e86;
- if (e86 instanceof RuntimeException) throw(RuntimeException) e86;
- throw new RuntimeException(e86);
- }
- finally {
- if (buildTree) {
- if (!hitException86) {
- closeNodeScope(node86,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node86.setEndLine(jjtEndToken.endLine);
- node86.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 802
- final public void ArrBoxPostfix() throws ParseException {
- // C.jj, line 804
- ArrBoxPostfix node87=null;
- if (buildTree) {
- node87=new ArrBoxPostfix();
- Token jjtStartToken=getToken(1);
- node87.setBeginLine(jjtStartToken.beginLine);
- node87.setBeginColumn(jjtStartToken.beginColumn);
- node87.setInputSource(this.getInputSource());
- openNodeScope(node87);
- }
- boolean hitException87=false;
- try {
- // C.jj, line 804
- jj_consume_token(65);
- // C.jj, line 804
- Expression();
- // C.jj, line 804
- jj_consume_token(66);
- }
- catch(Exception e87) {
- hitException87=false;
- if (e87 instanceof ParseException) throw(ParseException) e87;
- if (e87 instanceof RuntimeException) throw(RuntimeException) e87;
- throw new RuntimeException(e87);
- }
- finally {
- if (buildTree) {
- if (!hitException87) {
- closeNodeScope(node87,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node87.setEndLine(jjtEndToken.endLine);
- node87.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 807
- final public void FnCallPostfix() throws ParseException {
- // C.jj, line 809
- FnCallPostfix node88=null;
- if (buildTree) {
- node88=new FnCallPostfix();
- Token jjtStartToken=getToken(1);
- node88.setBeginLine(jjtStartToken.beginLine);
- node88.setBeginColumn(jjtStartToken.beginColumn);
- node88.setInputSource(this.getInputSource());
- openNodeScope(node88);
- }
- boolean hitException88=false;
- try {
- // C.jj, line 809
- jj_consume_token(63);
- // C.jj, line 809
- if (jj_2_43(2147483647)) {
- // C.jj, line 809
- // C.jj, line 809
- ArgumentExpressionList();
- }
- // C.jj, line 809
- jj_consume_token(64);
- }
- catch(Exception e88) {
- hitException88=false;
- if (e88 instanceof ParseException) throw(ParseException) e88;
- if (e88 instanceof RuntimeException) throw(RuntimeException) e88;
- throw new RuntimeException(e88);
- }
- finally {
- if (buildTree) {
- if (!hitException88) {
- closeNodeScope(node88,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node88.setEndLine(jjtEndToken.endLine);
- node88.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 812
- final public void DotMemberPostfix() throws ParseException {
- // C.jj, line 814
- DotMemberPostfix node89=null;
- if (buildTree) {
- node89=new DotMemberPostfix();
- Token jjtStartToken=getToken(1);
- node89.setBeginLine(jjtStartToken.beginLine);
- node89.setBeginColumn(jjtStartToken.beginColumn);
- node89.setInputSource(this.getInputSource());
- openNodeScope(node89);
- }
- boolean hitException89=false;
- try {
- // C.jj, line 814
- jj_consume_token(101);
- // C.jj, line 814
- jj_consume_token(IDENTIFIER);
- }
- catch(Exception e89) {
- hitException89=false;
- if (e89 instanceof ParseException) throw(ParseException) e89;
- if (e89 instanceof RuntimeException) throw(RuntimeException) e89;
- throw new RuntimeException(e89);
- }
- finally {
- if (buildTree) {
- if (!hitException89) {
- closeNodeScope(node89,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node89.setEndLine(jjtEndToken.endLine);
- node89.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 817
- final public void ArrowMemberPostfix() throws ParseException {
- // C.jj, line 819
- ArrowMemberPostfix node90=null;
- if (buildTree) {
- node90=new ArrowMemberPostfix();
- Token jjtStartToken=getToken(1);
- node90.setBeginLine(jjtStartToken.beginLine);
- node90.setBeginColumn(jjtStartToken.beginColumn);
- node90.setInputSource(this.getInputSource());
- openNodeScope(node90);
- }
- boolean hitException90=false;
- try {
- // C.jj, line 819
- jj_consume_token(102);
- // C.jj, line 819
- jj_consume_token(IDENTIFIER);
- }
- catch(Exception e90) {
- hitException90=false;
- if (e90 instanceof ParseException) throw(ParseException) e90;
- if (e90 instanceof RuntimeException) throw(RuntimeException) e90;
- throw new RuntimeException(e90);
- }
- finally {
- if (buildTree) {
- if (!hitException90) {
- closeNodeScope(node90,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node90.setEndLine(jjtEndToken.endLine);
- node90.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 822
- final public void PPPostfix() throws ParseException {
- // C.jj, line 824
- PPPostfix node91=null;
- if (buildTree) {
- node91=new PPPostfix();
- Token jjtStartToken=getToken(1);
- node91.setBeginLine(jjtStartToken.beginLine);
- node91.setBeginColumn(jjtStartToken.beginColumn);
- node91.setInputSource(this.getInputSource());
- openNodeScope(node91);
- }
- boolean hitException91=false;
- try {
- // C.jj, line 824
- jj_consume_token(97);
- }
- catch(Exception e91) {
- hitException91=false;
- if (e91 instanceof ParseException) throw(ParseException) e91;
- if (e91 instanceof RuntimeException) throw(RuntimeException) e91;
- throw new RuntimeException(e91);
- }
- finally {
- if (buildTree) {
- if (!hitException91) {
- closeNodeScope(node91,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node91.setEndLine(jjtEndToken.endLine);
- node91.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 827
- final public void MMPostfix() throws ParseException {
- // C.jj, line 829
- MMPostfix node92=null;
- if (buildTree) {
- node92=new MMPostfix();
- Token jjtStartToken=getToken(1);
- node92.setBeginLine(jjtStartToken.beginLine);
- node92.setBeginColumn(jjtStartToken.beginColumn);
- node92.setInputSource(this.getInputSource());
- openNodeScope(node92);
- }
- boolean hitException92=false;
- try {
- // C.jj, line 829
- jj_consume_token(98);
- }
- catch(Exception e92) {
- hitException92=false;
- if (e92 instanceof ParseException) throw(ParseException) e92;
- if (e92 instanceof RuntimeException) throw(RuntimeException) e92;
- throw new RuntimeException(e92);
- }
- finally {
- if (buildTree) {
- if (!hitException92) {
- closeNodeScope(node92,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node92.setEndLine(jjtEndToken.endLine);
- node92.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 832
- final public void ParenExpression() throws ParseException {
- // C.jj, line 834
- ParenExpression node93=null;
- if (buildTree) {
- node93=new ParenExpression();
- Token jjtStartToken=getToken(1);
- node93.setBeginLine(jjtStartToken.beginLine);
- node93.setBeginColumn(jjtStartToken.beginColumn);
- node93.setInputSource(this.getInputSource());
- openNodeScope(node93);
- }
- boolean hitException93=false;
- try {
- // C.jj, line 834
- switch((jj_ntk==-1)?jj_ntk():
- jj_ntk) {
- case INTEGER_LITERAL:
- case BOOL_LITERAL:
- case FLOATING_POINT_LITERAL:
- case CHARACTER_LITERAL:
- case STRING_LITERAL:
- case IDENTIFIER:
- // C.jj, line 834
- // C.jj, line 834
- PrimaryExpression();
- break;
- case 63:
- // C.jj, line 835
- // C.jj, line 835
- jj_consume_token(63);
- // C.jj, line 835
- Expression();
- // C.jj, line 835
- jj_consume_token(64);
- break;
- default:
- jj_la1[75]=jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
- catch(Exception e93) {
- hitException93=false;
- if (e93 instanceof ParseException) throw(ParseException) e93;
- if (e93 instanceof RuntimeException) throw(RuntimeException) e93;
- throw new RuntimeException(e93);
- }
- finally {
- if (buildTree) {
- if (!hitException93) {
- closeNodeScope(node93,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node93.setEndLine(jjtEndToken.endLine);
- node93.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 838
- final public void PrimaryExpression() throws ParseException {
- // C.jj, line 840
- PrimaryExpression node94=null;
- if (buildTree) {
- node94=new PrimaryExpression();
- Token jjtStartToken=getToken(1);
- node94.setBeginLine(jjtStartToken.beginLine);
- node94.setBeginColumn(jjtStartToken.beginColumn);
- node94.setInputSource(this.getInputSource());
- openNodeScope(node94);
- }
- boolean hitException94=false;
- try {
- // C.jj, line 840
- switch((jj_ntk==-1)?jj_ntk():
- jj_ntk) {
- case IDENTIFIER:
- // C.jj, line 840
- // C.jj, line 840
- VariableExpression();
- break;
- case INTEGER_LITERAL:
- case BOOL_LITERAL:
- case FLOATING_POINT_LITERAL:
- case CHARACTER_LITERAL:
- case STRING_LITERAL:
- // C.jj, line 841
- // C.jj, line 841
- Constant();
- break;
- default:
- jj_la1[76]=jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
- catch(Exception e94) {
- hitException94=false;
- if (e94 instanceof ParseException) throw(ParseException) e94;
- if (e94 instanceof RuntimeException) throw(RuntimeException) e94;
- throw new RuntimeException(e94);
- }
- finally {
- if (buildTree) {
- if (!hitException94) {
- closeNodeScope(node94,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node94.setEndLine(jjtEndToken.endLine);
- node94.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 844
- final public void VariableExpression() throws ParseException {
- // C.jj, line 846
- VariableExpression node95=null;
- if (buildTree) {
- node95=new VariableExpression();
- Token jjtStartToken=getToken(1);
- node95.setBeginLine(jjtStartToken.beginLine);
- node95.setBeginColumn(jjtStartToken.beginColumn);
- node95.setInputSource(this.getInputSource());
- openNodeScope(node95);
- }
- boolean hitException95=false;
- try {
- // C.jj, line 846
- // C.jj, line 846
- jj_consume_token(IDENTIFIER);
- }
- catch(Exception e95) {
- hitException95=false;
- if (e95 instanceof ParseException) throw(ParseException) e95;
- if (e95 instanceof RuntimeException) throw(RuntimeException) e95;
- throw new RuntimeException(e95);
- }
- finally {
- if (buildTree) {
- if (!hitException95) {
- closeNodeScope(node95,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node95.setEndLine(jjtEndToken.endLine);
- node95.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 849
- final public void ArgumentExpressionList() throws ParseException {
- // C.jj, line 851
- ArgumentExpressionList node96=null;
- if (buildTree) {
- node96=new ArgumentExpressionList();
- Token jjtStartToken=getToken(1);
- node96.setBeginLine(jjtStartToken.beginLine);
- node96.setBeginColumn(jjtStartToken.beginColumn);
- node96.setInputSource(this.getInputSource());
- openNodeScope(node96);
- }
- boolean hitException96=false;
- try {
- // C.jj, line 851
- AssignmentExpression();
- // C.jj, line 851
- label_18:
- while (true) {
- int int42=(jj_ntk==-1)?jj_ntk():
- jj_ntk;
- if (!(int42==60)) {
- jj_la1[77]=jj_gen;
- break label_18;
- }
- // C.jj, line 851
- // C.jj, line 851
- jj_consume_token(60);
- // C.jj, line 851
- AssignmentExpression();
- }
- }
- catch(Exception e96) {
- hitException96=false;
- if (e96 instanceof ParseException) throw(ParseException) e96;
- if (e96 instanceof RuntimeException) throw(RuntimeException) e96;
- throw new RuntimeException(e96);
- }
- finally {
- if (buildTree) {
- if (!hitException96) {
- closeNodeScope(node96,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node96.setEndLine(jjtEndToken.endLine);
- node96.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- // C.jj, line 854
- final public void Constant() throws ParseException {
- // C.jj, line 856
- Constant node97=null;
- if (buildTree) {
- node97=new Constant();
- Token jjtStartToken=getToken(1);
- node97.setBeginLine(jjtStartToken.beginLine);
- node97.setBeginColumn(jjtStartToken.beginColumn);
- node97.setInputSource(this.getInputSource());
- openNodeScope(node97);
- }
- boolean hitException97=false;
- try {
- switch((jj_ntk==-1)?jj_ntk():
- jj_ntk) {
- case INTEGER_LITERAL:
- // C.jj, line 856
- // C.jj, line 856
- jj_consume_token(INTEGER_LITERAL);
- break;
- case FLOATING_POINT_LITERAL:
- // C.jj, line 856
- // C.jj, line 856
- jj_consume_token(FLOATING_POINT_LITERAL);
- break;
- case CHARACTER_LITERAL:
- // C.jj, line 856
- // C.jj, line 856
- jj_consume_token(CHARACTER_LITERAL);
- break;
- case STRING_LITERAL:
- // C.jj, line 856
- // C.jj, line 856
- jj_consume_token(STRING_LITERAL);
- break;
- case BOOL_LITERAL:
- // C.jj, line 858
- // C.jj, line 858
- jj_consume_token(BOOL_LITERAL);
- break;
- default:
- jj_la1[78]=jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
- catch(Exception e97) {
- hitException97=false;
- if (e97 instanceof ParseException) throw(ParseException) e97;
- if (e97 instanceof RuntimeException) throw(RuntimeException) e97;
- throw new RuntimeException(e97);
- }
- finally {
- if (buildTree) {
- if (!hitException97) {
- closeNodeScope(node97,nodeArity()>1);
- Token jjtEndToken=getToken(0);
- node97.setEndLine(jjtEndToken.endLine);
- node97.setEndColumn(jjtEndToken.endColumn);
- }
- else {
- clearNodeScope();
- mark=marks.remove(marks.size()-1);
- }
- }
- }
- }
- private boolean jj_2_1(int xla) {
- jj_la=xla;
- jj_lastpos=jj_scanpos=current_token;
- try {
- return!jj_3_1();
- }
- catch(LookaheadSuccess ls) {
- return true;
- }
- finally {
- jj_save(0,xla);
- }
- }
- private boolean jj_2_2(int xla) {
- jj_la=xla;
- jj_lastpos=jj_scanpos=current_token;
- try {
- return!jj_3_2();
- }
- catch(LookaheadSuccess ls) {
- return true;
- }
- finally {
- jj_save(1,xla);
- }
- }
- private boolean jj_2_3(int xla) {
- jj_la=xla;
- jj_lastpos=jj_scanpos=current_token;
- try {
- return!jj_3_3();
- }
- catch(LookaheadSuccess ls) {
- return true;
- }
- finally {
- jj_save(2,xla);
- }
- }
- private boolean jj_2_4(int xla) {
- jj_la=xla;
- jj_lastpos=jj_scanpos=current_token;
- try {
- return!jj_3_4();
- }
- catch(LookaheadSuccess ls) {
- return true;
- }
- finally {
- jj_save(3,xla);
- }
- }
- private boolean jj_2_5(int xla) {
- jj_la=xla;
- jj_lastpos=jj_scanpos=current_token;
- try {
- return!jj_3_5();
- }
- catch(LookaheadSuccess ls) {
- return true;
- }
- finally {
- jj_save(4,xla);
- }
- }
- private boolean jj_2_6(int xla) {
- jj_la=xla;
- jj_lastpos=jj_scanpos=current_token;
- try {
- return!jj_3_6();
- }
- catch(LookaheadSuccess ls) {
- return true;
- }
- finally {
- jj_save(5,xla);
- }
- }
- private boolean jj_2_7(int xla) {
- jj_la=xla;
- jj_lastpos=jj_scanpos=current_token;
- try {
- return!jj_3_7();
- }
- catch(LookaheadSuccess ls) {
- return true;
- }
- finally {
- jj_save(6,xla);
- }
- }
- private boolean jj_2_8(int xla) {
- jj_la=xla;
- jj_lastpos=jj_scanpos=current_token;
- try {
- return!jj_3_8();
- }
- catch(LookaheadSuccess ls) {
- return true;
- }
- finally {
- jj_save(7,xla);
- }
- }
- private boolean jj_2_9(int xla) {
- jj_la=xla;
- jj_lastpos=jj_scanpos=current_token;
- try {
- return!jj_3_9();
- }
- catch(LookaheadSuccess ls) {
- return true;
- }
- finally {
- jj_save(8,xla);
- }
- }
- private boolean jj_2_10(int xla) {
- jj_la=xla;
- jj_lastpos=jj_scanpos=current_token;
- try {
- return!jj_3_10();
- }
- catch(LookaheadSuccess ls) {
- return true;
- }
- finally {
- jj_save(9,xla);
- }
- }
- private boolean jj_2_11(int xla) {
- jj_la=xla;
- jj_lastpos=jj_scanpos=current_token;
- try {
- return!jj_3_11();
- }
- catch(LookaheadSuccess ls) {
- return true;
- }
- finally {
- jj_save(10,xla);
- }
- }
- private boolean jj_2_12(int xla) {
- jj_la=xla;
- jj_lastpos=jj_scanpos=current_token;
- try {
- return!jj_3_12();
- }
- catch(LookaheadSuccess ls) {
- return true;
- }
- finally {
- jj_save(11,xla);
- }
- }
- private boolean jj_2_13(int xla) {
- jj_la=xla;
- jj_lastpos=jj_scanpos=current_token;
- try {
- return!jj_3_13();
- }
- catch(LookaheadSuccess ls) {
- return true;
- }
- finally {
- jj_save(12,xla);
- }
- }
- private boolean jj_2_14(int xla) {
- jj_la=xla;
- jj_lastpos=jj_scanpos=current_token;
- try {
- return!jj_3_14();
- }
- catch(LookaheadSuccess ls) {
- return true;
- }
- finally {
- jj_save(13,xla);
- }
- }
- private boolean jj_2_15(int xla) {
- jj_la=xla;
- jj_lastpos=jj_scanpos=current_token;
- try {
- return!jj_3_15();
- }
- catch(LookaheadSuccess ls) {
- return true;
- }
- finally {
- jj_save(14,xla);
- }
- }
- private boolean jj_2_16(int xla) {
- jj_la=xla;
- jj_lastpos=jj_scanpos=current_token;
- try {
- return!jj_3_16();
- }
- catch(LookaheadSuccess ls) {
- return true;
- }
- finally {
- jj_save(15,xla);
- }
- }
- private boolean jj_2_17(int xla) {
- jj_la=xla;
- jj_lastpos=jj_scanpos=current_token;
- try {
- return!jj_3_17();
- }
- catch(LookaheadSuccess ls) {
- return true;
- }
- finally {
- jj_save(16,xla);
- }
- }
- private boolean jj_2_18(int xla) {
- jj_la=xla;
- jj_lastpos=jj_scanpos=current_token;
- try {
- return!jj_3_18();
- }
- catch(LookaheadSuccess ls) {
- return true;
- }
- finally {
- jj_save(17,xla);
- }
- }
- private boolean jj_2_19(int xla) {
- jj_la=xla;
- jj_lastpos=jj_scanpos=current_token;
- try {
- return!jj_3_19();
- }
- catch(LookaheadSuccess ls) {
- return true;
- }
- finally {
- jj_save(18,xla);
- }
- }
- private boolean jj_2_20(int xla) {
- jj_la=xla;
- jj_lastpos=jj_scanpos=current_token;
- try {
- return!jj_3_20();
- }
- catch(LookaheadSuccess ls) {
- return true;
- }
- finally {
- jj_save(19,xla);
- }
- }
- private boolean jj_2_21(int xla) {
- jj_la=xla;
- jj_lastpos=jj_scanpos=current_token;
- try {
- return!jj_3_21();
- }
- catch(LookaheadSuccess ls) {
- return true;
- }
- finally {
- jj_save(20,xla);
- }
- }
- private boolean jj_2_22(int xla) {
- jj_la=xla;
- jj_lastpos=jj_scanpos=current_token;
- try {
- return!jj_3_22();
- }
- catch(LookaheadSuccess ls) {
- return true;
- }
- finally {
- jj_save(21,xla);
- }
- }
- private boolean jj_2_23(int xla) {
- jj_la=xla;
- jj_lastpos=jj_scanpos=current_token;
- try {
- return!jj_3_23();
- }
- catch(LookaheadSuccess ls) {
- return true;
- }
- finally {
- jj_save(22,xla);
- }
- }
- private boolean jj_2_24(int xla) {
- jj_la=xla;
- jj_lastpos=jj_scanpos=current_token;
- try {
- return!jj_3_24();
- }
- catch(LookaheadSuccess ls) {
- return true;
- }
- finally {
- jj_save(23,xla);
- }
- }
- private boolean jj_2_25(int xla) {
- jj_la=xla;
- jj_lastpos=jj_scanpos=current_token;
- try {
- return!jj_3_25();
- }
- catch(LookaheadSuccess ls) {
- return true;
- }
- finally {
- jj_save(24,xla);
- }
- }
- private boolean jj_2_26(int xla) {
- jj_la=xla;
- jj_lastpos=jj_scanpos=current_token;
- try {
- return!jj_3_26();
- }
- catch(LookaheadSuccess ls) {
- return true;
- }
- finally {
- jj_save(25,xla);
- }
- }
- private boolean jj_2_27(int xla) {
- jj_la=xla;
- jj_lastpos=jj_scanpos=current_token;
- try {
- return!jj_3_27();
- }
- catch(LookaheadSuccess ls) {
- return true;
- }
- finally {
- jj_save(26,xla);
- }
- }
- private boolean jj_2_28(int xla) {
- jj_la=xla;
- jj_lastpos=jj_scanpos=current_token;
- try {
- return!jj_3_28();
- }
- catch(LookaheadSuccess ls) {
- return true;
- }
- finally {
- jj_save(27,xla);
- }
- }
- private boolean jj_2_29(int xla) {
- jj_la=xla;
- jj_lastpos=jj_scanpos=current_token;
- try {
- return!jj_3_29();
- }
- catch(LookaheadSuccess ls) {
- return true;
- }
- finally {
- jj_save(28,xla);
- }
- }
- private boolean jj_2_30(int xla) {
- jj_la=xla;
- jj_lastpos=jj_scanpos=current_token;
- try {
- return!jj_3_30();
- }
- catch(LookaheadSuccess ls) {
- return true;
- }
- finally {
- jj_save(29,xla);
- }
- }
- private boolean jj_2_31(int xla) {
- jj_la=xla;
- jj_lastpos=jj_scanpos=current_token;
- try {
- return!jj_3_31();
- }
- catch(LookaheadSuccess ls) {
- return true;
- }
- finally {
- jj_save(30,xla);
- }
- }
- private boolean jj_2_32(int xla) {
- jj_la=xla;
- jj_lastpos=jj_scanpos=current_token;
- try {
- return!jj_3_32();
- }
- catch(LookaheadSuccess ls) {
- return true;
- }
- finally {
- jj_save(31,xla);
- }
- }
- private boolean jj_2_33(int xla) {
- jj_la=xla;
- jj_lastpos=jj_scanpos=current_token;
- try {
- return!jj_3_33();
- }
- catch(LookaheadSuccess ls) {
- return true;
- }
- finally {
- jj_save(32,xla);
- }
- }
- private boolean jj_2_34(int xla) {
- jj_la=xla;
- jj_lastpos=jj_scanpos=current_token;
- try {
- return!jj_3_34();
- }
- catch(LookaheadSuccess ls) {
- return true;
- }
- finally {
- jj_save(33,xla);
- }
- }
- private boolean jj_2_35(int xla) {
- jj_la=xla;
- jj_lastpos=jj_scanpos=current_token;
- try {
- return!jj_3_35();
- }
- catch(LookaheadSuccess ls) {
- return true;
- }
- finally {
- jj_save(34,xla);
- }
- }
- private boolean jj_2_36(int xla) {
- jj_la=xla;
- jj_lastpos=jj_scanpos=current_token;
- try {
- return!jj_3_36();
- }
- catch(LookaheadSuccess ls) {
- return true;
- }
- finally {
- jj_save(35,xla);
- }
- }
- private boolean jj_2_37(int xla) {
- jj_la=xla;
- jj_lastpos=jj_scanpos=current_token;
- try {
- return!jj_3_37();
- }
- catch(LookaheadSuccess ls) {
- return true;
- }
- finally {
- jj_save(36,xla);
- }
- }
- private boolean jj_2_38(int xla) {
- jj_la=xla;
- jj_lastpos=jj_scanpos=current_token;
- try {
- return!jj_3_38();
- }
- catch(LookaheadSuccess ls) {
- return true;
- }
- finally {
- jj_save(37,xla);
- }
- }
- private boolean jj_2_39(int xla) {
- jj_la=xla;
- jj_lastpos=jj_scanpos=current_token;
- try {
- return!jj_3_39();
- }
- catch(LookaheadSuccess ls) {
- return true;
- }
- finally {
- jj_save(38,xla);
- }
- }
- private boolean jj_2_40(int xla) {
- jj_la=xla;
- jj_lastpos=jj_scanpos=current_token;
- try {
- return!jj_3_40();
- }
- catch(LookaheadSuccess ls) {
- return true;
- }
- finally {
- jj_save(39,xla);
- }
- }
- private boolean jj_2_41(int xla) {
- jj_la=xla;
- jj_lastpos=jj_scanpos=current_token;
- try {
- return!jj_3_41();
- }
- catch(LookaheadSuccess ls) {
- return true;
- }
- finally {
- jj_save(40,xla);
- }
- }
- private boolean jj_2_42(int xla) {
- jj_la=xla;
- jj_lastpos=jj_scanpos=current_token;
- try {
- return!jj_3_42();
- }
- catch(LookaheadSuccess ls) {
- return true;
- }
- finally {
- jj_save(41,xla);
- }
- }
- private boolean jj_2_43(int xla) {
- jj_la=xla;
- jj_lastpos=jj_scanpos=current_token;
- try {
- return!jj_3_43();
- }
- catch(LookaheadSuccess ls) {
- return true;
- }
- finally {
- jj_save(42,xla);
- }
- }
- private boolean jj_3_1() {
- if (jj_3R_19()) return true;
- return false;
- }
- private boolean jj_3_2() {
- if (jj_3R_20()) return true;
- return false;
- }
- private boolean jj_3_3() {
- if (jj_3R_21()) return true;
- return false;
- }
- private boolean jj_3_4() {
- if (jj_3R_22()) return true;
- return false;
- }
- private boolean jj_3_5() {
- if (jj_3R_21()) return true;
- return false;
- }
- private boolean jj_3_6() {
- if (jj_3R_22()) return true;
- return false;
- }
- private boolean jj_3_7() {
- if (jj_3R_22()) return true;
- return false;
- }
- private boolean jj_3_8() {
- if (jj_3R_22()) return true;
- return false;
- }
- private boolean jj_3_9() {
- if (jj_3R_23()) return true;
- Token token43=jj_scanpos;
- if (jj_3R_92()) jj_scanpos=token43;
- return false;
- }
- private boolean jj_3_10() {
- Token token44=jj_scanpos;
- if (jj_scan_token(54)) jj_scanpos=token44;
- if (jj_scan_token(58)) return true;
- if (jj_3R_24()) return true;
- if (jj_scan_token(59)) return true;
- return false;
- }
- private boolean jj_3_11() {
- if (jj_3R_25()) return true;
- return false;
- }
- private boolean jj_3_12() {
- if (jj_3R_26()) return true;
- return false;
- }
- private boolean jj_3_13() {
- if (jj_3R_26()) return true;
- return false;
- }
- private boolean jj_3_14() {
- if (jj_3R_23()) return true;
- Token token45=jj_scanpos;
- if (jj_3R_98()) jj_scanpos=token45;
- return false;
- }
- private boolean jj_3_15() {
- if (jj_3R_27()) return true;
- return false;
- }
- private boolean jj_3_16() {
- Token token46=jj_scanpos;
- if (jj_scan_token(54)) jj_scanpos=token46;
- if (jj_scan_token(58)) return true;
- if (jj_3R_28()) return true;
- if (jj_scan_token(59)) return true;
- return false;
- }
- private boolean jj_3_17() {
- if (jj_scan_token(63)) return true;
- if (jj_3R_29()) return true;
- if (jj_scan_token(64)) return true;
- return false;
- }
- private boolean jj_3_18() {
- if (jj_scan_token(60)) return true;
- if (jj_3R_30()) return true;
- return false;
- }
- private boolean jj_3_19() {
- if (jj_3R_27()) return true;
- return false;
- }
- private boolean jj_3_20() {
- if (jj_scan_token(60)) return true;
- if (jj_3R_31()) return true;
- return false;
- }
- private boolean jj_3_21() {
- if (jj_3R_32()) return true;
- return false;
- }
- private boolean jj_3_22() {
- if (jj_3R_29()) return true;
- return false;
- }
- private boolean jj_3_23() {
- if (jj_scan_token(63)) return true;
- if (jj_3R_33()) return true;
- if (jj_scan_token(64)) return true;
- return false;
- }
- private boolean jj_3_24() {
- if (jj_3R_29()) return true;
- return false;
- }
- private boolean jj_3_25() {
- if (jj_3R_34()) return true;
- return false;
- }
- private boolean jj_3_26() {
- if (jj_3R_35()) return true;
- return false;
- }
- private boolean jj_3_27() {
- if (jj_3R_21()) return true;
- return false;
- }
- private boolean jj_3_28() {
- if (jj_3R_36()) return true;
- return false;
- }
- private boolean jj_3_29() {
- if (jj_3R_37()) return true;
- return false;
- }
- private boolean jj_3_30() {
- if (jj_3R_38()) return true;
- return false;
- }
- private boolean jj_3_31() {
- if (jj_3R_39()) return true;
- return false;
- }
- private boolean jj_3_32() {
- if (jj_3R_40()) return true;
- return false;
- }
- private boolean jj_3_33() {
- if (jj_scan_token(ELSE)) return true;
- if (jj_3R_40()) return true;
- return false;
- }
- private boolean jj_3_34() {
- if (jj_3R_41()) return true;
- if (jj_scan_token(57)) return true;
- return false;
- }
- private boolean jj_3_35() {
- if (jj_3R_21()) return true;
- return false;
- }
- private boolean jj_3_36() {
- if (jj_scan_token(69)) return true;
- if (jj_3R_41()) return true;
- return false;
- }
- private boolean jj_3_37() {
- if (jj_scan_token(70)) return true;
- if (jj_scan_token(IDENTIFIER)) return true;
- return false;
- }
- private boolean jj_3_38() {
- if (jj_3R_42()) return true;
- if (jj_3R_43()) return true;
- return false;
- }
- private boolean jj_3_39() {
- if (jj_3R_44()) return true;
- return false;
- }
- private boolean jj_3_40() {
- if (jj_scan_token(63)) return true;
- if (jj_3R_45()) return true;
- if (jj_scan_token(64)) return true;
- if (jj_3R_46()) return true;
- return false;
- }
- private boolean jj_3_41() {
- if (jj_3R_47()) return true;
- return false;
- }
- private boolean jj_3_42() {
- if (jj_3R_42()) return true;
- return false;
- }
- private boolean jj_3_43() {
- if (jj_3R_48()) return true;
- return false;
- }
- private boolean jj_3R_19() {
- Token token47=jj_scanpos;
- if (jj_3R_49()) {
- jj_scanpos=token47;
- if (jj_3_3()) return true;
- }
- return false;
- }
- private boolean jj_3R_20() {
- Token token48=jj_scanpos;
- if (jj_3R_50()) jj_scanpos=token48;
- if (jj_3R_27()) return true;
- if (jj_3R_51()) return true;
- return false;
- }
- private boolean jj_3R_21() {
- if (jj_3R_22()) return true;
- Token token49=jj_scanpos;
- if (jj_3R_54()) jj_scanpos=token49;
- if (jj_scan_token(57)) return true;
- return false;
- }
- private boolean jj_3R_22() {
- Token token50=jj_scanpos;
- if (jj_3R_52()) {
- jj_scanpos=token50;
- if (jj_3_9()) {
- jj_scanpos=token50;
- if (jj_3R_53()) return true;
- }
- }
- return false;
- }
- private boolean jj_3R_23() {
- Token token51=jj_scanpos;
- if (jj_scan_token(44)) {
- jj_scanpos=token51;
- if (jj_scan_token(45)) {
- jj_scanpos=token51;
- if (jj_scan_token(38)) {
- jj_scanpos=token51;
- if (jj_scan_token(48)) {
- jj_scanpos=token51;
- if (jj_scan_token(41)) {
- jj_scanpos=token51;
- if (jj_scan_token(37)) {
- jj_scanpos=token51;
- if (jj_scan_token(25)) {
- jj_scanpos=token51;
- if (jj_scan_token(32)) {
- jj_scanpos=token51;
- if (jj_scan_token(51)) {
- jj_scanpos=token51;
- if (jj_scan_token(22)) {
- jj_scanpos=token51;
- if (jj_3R_55()) {
- jj_scanpos=token51;
- if (jj_3R_56()) {
- jj_scanpos=token51;
- jj_lookingAhead=true;
- jj_semLA=isType(getToken(1).image);
- jj_lookingAhead=false;
- if (!jj_semLA||jj_scan_token(54)) return true;
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- return false;
- }
- private boolean jj_3R_24() {
- if (jj_3_11()) return true;
- while (true) {
- Token token52=jj_scanpos;
- if (jj_3_11()) {
- jj_scanpos=token52;
- break;
- }
- }
- return false;
- }
- private boolean jj_3R_25() {
- if (jj_3R_26()) return true;
- if (jj_3R_126()) return true;
- if (jj_scan_token(57)) return true;
- return false;
- }
- private boolean jj_3R_26() {
- Token token53=jj_scanpos;
- if (jj_3_14()) {
- jj_scanpos=token53;
- if (jj_3R_57()) return true;
- }
- return false;
- }
- private boolean jj_3R_27() {
- Token token54=jj_scanpos;
- if (jj_3R_58()) jj_scanpos=token54;
- if (jj_3R_59()) return true;
- return false;
- }
- private boolean jj_3R_28() {
- if (jj_3R_60()) return true;
- while (true) {
- Token token55=jj_scanpos;
- if (jj_3R_61()) {
- jj_scanpos=token55;
- break;
- }
- }
- return false;
- }
- private boolean jj_3R_29() {
- if (jj_3R_62()) return true;
- Token token56=jj_scanpos;
- if (jj_3R_183()) jj_scanpos=token56;
- return false;
- }
- private boolean jj_3R_30() {
- if (jj_3R_22()) return true;
- Token token57=jj_scanpos;
- if (jj_3R_129()) {
- jj_scanpos=token57;
- if (jj_3R_130()) return true;
- }
- return false;
- }
- private boolean jj_3R_31() {
- Token token58=jj_scanpos;
- if (jj_3R_63()) {
- jj_scanpos=token58;
- if (jj_3R_64()) return true;
- }
- return false;
- }
- private boolean jj_3R_32() {
- if (jj_scan_token(67)) return true;
- Token token59=jj_scanpos;
- if (jj_3R_65()) jj_scanpos=token59;
- Token token60=jj_scanpos;
- if (jj_3R_66()) jj_scanpos=token60;
- return false;
- }
- private boolean jj_3R_33() {
- Token token61=jj_scanpos;
- if (jj_3_21()) {
- jj_scanpos=token61;
- if (jj_3R_67()) return true;
- }
- return false;
- }
- private boolean jj_3R_34() {
- Token token62=jj_scanpos;
- if (jj_3R_68()) {
- jj_scanpos=token62;
- if (jj_3R_69()) {
- jj_scanpos=token62;
- if (jj_3R_70()) return true;
- }
- }
- return false;
- }
- private boolean jj_3R_35() {
- Token token63=jj_scanpos;
- if (jj_3R_71()) jj_scanpos=token63;
- if (jj_scan_token(57)) return true;
- return false;
- }
- private boolean jj_3R_36() {
- if (jj_scan_token(CIN)) return true;
- while (true) {
- Token token64=jj_scanpos;
- if (jj_3_37()) {
- jj_scanpos=token64;
- break;
- }
- }
- if (jj_scan_token(57)) return true;
- return false;
- }
- private boolean jj_3R_37() {
- if (jj_scan_token(COUT)) return true;
- while (true) {
- Token token65=jj_scanpos;
- if (jj_3_36()) {
- jj_scanpos=token65;
- break;
- }
- }
- if (jj_scan_token(57)) return true;
- return false;
- }
- private boolean jj_3R_38() {
- if (jj_scan_token(IDENTIFIER)) return true;
- if (jj_scan_token(62)) return true;
- if (jj_3R_40()) return true;
- return false;
- }
- private boolean jj_3R_39() {
- if (jj_3_32()) return true;
- while (true) {
- Token token66=jj_scanpos;
- if (jj_3_32()) {
- jj_scanpos=token66;
- break;
- }
- }
- return false;
- }
- private boolean jj_3R_40() {
- Token token67=jj_scanpos;
- if (jj_3_25()) {
- jj_scanpos=token67;
- if (jj_3_26()) {
- jj_scanpos=token67;
- if (jj_3R_72()) {
- jj_scanpos=token67;
- if (jj_3R_73()) {
- jj_scanpos=token67;
- if (jj_3R_74()) {
- jj_scanpos=token67;
- if (jj_3_27()) {
- jj_scanpos=token67;
- if (jj_3R_75()) {
- jj_scanpos=token67;
- if (jj_3_28()) {
- jj_scanpos=token67;
- if (jj_3_29()) {
- jj_scanpos=token67;
- if (jj_3_30()) return true;
- }
- }
- }
- }
- }
- }
- }
- }
- }
- return false;
- }
- private boolean jj_3R_41() {
- if (jj_3R_76()) return true;
- while (true) {
- Token token68=jj_scanpos;
- if (jj_3R_77()) {
- jj_scanpos=token68;
- break;
- }
- }
- return false;
- }
- private boolean jj_3R_42() {
- Token token69=jj_scanpos;
- if (jj_3_41()) {
- jj_scanpos=token69;
- if (jj_3R_78()) {
- jj_scanpos=token69;
- if (jj_3R_79()) {
- jj_scanpos=token69;
- if (jj_3R_80()) {
- jj_scanpos=token69;
- if (jj_3R_81()) return true;
- }
- }
- }
- }
- return false;
- }
- private boolean jj_3R_43() {
- Token token70=jj_scanpos;
- if (jj_scan_token(61)) {
- jj_scanpos=token70;
- if (jj_scan_token(71)) {
- jj_scanpos=token70;
- if (jj_scan_token(72)) {
- jj_scanpos=token70;
- if (jj_scan_token(73)) {
- jj_scanpos=token70;
- if (jj_scan_token(74)) {
- jj_scanpos=token70;
- if (jj_scan_token(75)) {
- jj_scanpos=token70;
- if (jj_scan_token(76)) {
- jj_scanpos=token70;
- if (jj_scan_token(77)) {
- jj_scanpos=token70;
- if (jj_scan_token(78)) {
- jj_scanpos=token70;
- if (jj_scan_token(79)) {
- jj_scanpos=token70;
- if (jj_scan_token(80)) return true;
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- return false;
- }
- private boolean jj_3R_44() {
- if (jj_3R_82()) return true;
- Token token71=jj_scanpos;
- if (jj_3R_83()) jj_scanpos=token71;
- return false;
- }
- private boolean jj_3R_45() {
- if (jj_3R_26()) return true;
- Token token72=jj_scanpos;
- if (jj_3R_84()) jj_scanpos=token72;
- return false;
- }
- private boolean jj_3R_46() {
- Token token73=jj_scanpos;
- if (jj_3R_85()) {
- jj_scanpos=token73;
- if (jj_3R_86()) return true;
- }
- return false;
- }
- private boolean jj_3R_47() {
- if (jj_3R_87()) return true;
- if (jj_3R_88()) return true;
- return false;
- }
- private boolean jj_3R_48() {
- if (jj_3R_76()) return true;
- while (true) {
- Token token74=jj_scanpos;
- if (jj_3R_89()) {
- jj_scanpos=token74;
- break;
- }
- }
- return false;
- }
- private boolean jj_3R_49() {
- if (jj_3R_20()) return true;
- return false;
- }
- private boolean jj_3R_50() {
- if (jj_3R_22()) return true;
- return false;
- }
- private boolean jj_3R_51() {
- if (jj_scan_token(58)) return true;
- Token token75=jj_scanpos;
- if (jj_3_31()) jj_scanpos=token75;
- if (jj_scan_token(59)) return true;
- return false;
- }
- private boolean jj_3R_52() {
- if (jj_3R_90()) return true;
- Token token76=jj_scanpos;
- if (jj_3R_91()) jj_scanpos=token76;
- return false;
- }
- private boolean jj_3R_53() {
- if (jj_3R_93()) return true;
- Token token77=jj_scanpos;
- if (jj_3R_94()) jj_scanpos=token77;
- return false;
- }
- private boolean jj_3R_54() {
- if (jj_3R_95()) return true;
- return false;
- }
- private boolean jj_3R_55() {
- if (jj_3R_96()) return true;
- return false;
- }
- private boolean jj_3R_56() {
- if (jj_3R_97()) return true;
- return false;
- }
- private boolean jj_3R_57() {
- if (jj_3R_93()) return true;
- Token token78=jj_scanpos;
- if (jj_3R_99()) jj_scanpos=token78;
- return false;
- }
- private boolean jj_3R_58() {
- if (jj_3R_32()) return true;
- return false;
- }
- private boolean jj_3R_59() {
- Token token79=jj_scanpos;
- if (jj_3R_100()) {
- jj_scanpos=token79;
- if (jj_3R_101()) return true;
- }
- while (true) {
- Token token80=jj_scanpos;
- if (jj_3R_102()) {
- jj_scanpos=token80;
- break;
- }
- }
- return false;
- }
- private boolean jj_3R_60() {
- if (jj_scan_token(IDENTIFIER)) return true;
- Token token81=jj_scanpos;
- if (jj_3R_103()) jj_scanpos=token81;
- return false;
- }
- private boolean jj_3R_61() {
- if (jj_scan_token(60)) return true;
- if (jj_3R_60()) return true;
- return false;
- }
- private boolean jj_3R_62() {
- if (jj_3R_30()) return true;
- while (true) {
- Token token82=jj_scanpos;
- if (jj_3_18()) {
- jj_scanpos=token82;
- break;
- }
- }
- return false;
- }
- private boolean jj_3R_63() {
- if (jj_3R_76()) return true;
- return false;
- }
- private boolean jj_3R_64() {
- if (jj_scan_token(58)) return true;
- if (jj_3R_199()) return true;
- Token token83=jj_scanpos;
- if (jj_scan_token(60)) jj_scanpos=token83;
- if (jj_scan_token(59)) return true;
- return false;
- }
- private boolean jj_3R_65() {
- if (jj_3R_104()) return true;
- return false;
- }
- private boolean jj_3R_66() {
- if (jj_3R_32()) return true;
- return false;
- }
- private boolean jj_3R_67() {
- Token token84=jj_scanpos;
- if (jj_3R_105()) jj_scanpos=token84;
- if (jj_3R_106()) return true;
- return false;
- }
- private boolean jj_3R_68() {
- if (jj_3R_107()) return true;
- return false;
- }
- private boolean jj_3R_69() {
- if (jj_3R_108()) return true;
- return false;
- }
- private boolean jj_3R_70() {
- if (jj_3R_109()) return true;
- return false;
- }
- private boolean jj_3R_71() {
- if (jj_3R_41()) return true;
- return false;
- }
- private boolean jj_3R_72() {
- if (jj_3R_51()) return true;
- return false;
- }
- private boolean jj_3R_73() {
- if (jj_3R_110()) return true;
- return false;
- }
- private boolean jj_3R_74() {
- if (jj_3R_111()) return true;
- return false;
- }
- private boolean jj_3R_75() {
- if (jj_3R_112()) return true;
- return false;
- }
- private boolean jj_3R_76() {
- Token token85=jj_scanpos;
- if (jj_3R_113()) {
- jj_scanpos=token85;
- if (jj_3_39()) return true;
- }
- return false;
- }
- private boolean jj_3R_77() {
- if (jj_scan_token(60)) return true;
- if (jj_3R_76()) return true;
- return false;
- }
- private boolean jj_3R_78() {
- if (jj_3R_114()) return true;
- return false;
- }
- private boolean jj_3R_79() {
- if (jj_3R_115()) return true;
- return false;
- }
- private boolean jj_3R_80() {
- if (jj_3R_116()) return true;
- return false;
- }
- private boolean jj_3R_81() {
- if (jj_3R_117()) return true;
- return false;
- }
- private boolean jj_3R_82() {
- if (jj_3R_118()) return true;
- Token token86=jj_scanpos;
- if (jj_3R_119()) jj_scanpos=token86;
- return false;
- }
- private boolean jj_3R_83() {
- if (jj_scan_token(81)) return true;
- if (jj_3R_41()) return true;
- if (jj_scan_token(62)) return true;
- if (jj_3R_44()) return true;
- return false;
- }
- private boolean jj_3R_84() {
- if (jj_3R_33()) return true;
- return false;
- }
- private boolean jj_3R_85() {
- if (jj_scan_token(63)) return true;
- if (jj_3R_45()) return true;
- if (jj_scan_token(64)) return true;
- if (jj_3R_46()) return true;
- return false;
- }
- private boolean jj_3R_86() {
- if (jj_3R_42()) return true;
- return false;
- }
- private boolean jj_3R_87() {
- Token token87=jj_scanpos;
- if (jj_scan_token(54)) {
- jj_scanpos=token87;
- if (jj_3R_120()) return true;
- }
- return false;
- }
- private boolean jj_3R_88() {
- while (true) {
- Token token88=jj_scanpos;
- if (jj_3R_121()) {
- jj_scanpos=token88;
- break;
- }
- }
- return false;
- }
- private boolean jj_3R_89() {
- if (jj_scan_token(60)) return true;
- if (jj_3R_76()) return true;
- return false;
- }
- private boolean jj_3R_90() {
- Token token89=jj_scanpos;
- if (jj_scan_token(43)) {
- jj_scanpos=token89;
- if (jj_scan_token(21)) {
- jj_scanpos=token89;
- if (jj_scan_token(31)) {
- jj_scanpos=token89;
- if (jj_scan_token(29)) {
- jj_scanpos=token89;
- if (jj_3R_122()) return true;
- }
- }
- }
- }
- return false;
- }
- private boolean jj_3R_91() {
- if (jj_3R_22()) return true;
- return false;
- }
- private boolean jj_3R_92() {
- if (jj_3R_22()) return true;
- return false;
- }
- private boolean jj_3R_93() {
- Token token90=jj_scanpos;
- if (jj_scan_token(36)) {
- jj_scanpos=token90;
- if (jj_scan_token(20)) return true;
- }
- return false;
- }
- private boolean jj_3R_94() {
- if (jj_3R_22()) return true;
- return false;
- }
- private boolean jj_3R_95() {
- if (jj_3R_123()) return true;
- while (true) {
- Token token91=jj_scanpos;
- if (jj_3R_124()) {
- jj_scanpos=token91;
- break;
- }
- }
- return false;
- }
- private boolean jj_3R_96() {
- if (jj_3R_125()) return true;
- Token token92=jj_scanpos;
- if (jj_3_10()) {
- jj_scanpos=token92;
- if (jj_scan_token(54)) return true;
- }
- return false;
- }
- private boolean jj_3R_97() {
- if (jj_scan_token(ENUM)) return true;
- Token token93=jj_scanpos;
- if (jj_3_16()) {
- jj_scanpos=token93;
- if (jj_scan_token(54)) return true;
- }
- return false;
- }
- private boolean jj_3R_98() {
- if (jj_3R_26()) return true;
- return false;
- }
- private boolean jj_3R_99() {
- if (jj_3R_26()) return true;
- return false;
- }
- private boolean jj_3R_100() {
- if (jj_scan_token(IDENTIFIER)) return true;
- return false;
- }
- private boolean jj_3R_101() {
- if (jj_scan_token(63)) return true;
- if (jj_3R_27()) return true;
- if (jj_scan_token(64)) return true;
- return false;
- }
- private boolean jj_3R_102() {
- Token token94=jj_scanpos;
- if (jj_3R_127()) {
- jj_scanpos=token94;
- if (jj_3_17()) {
- jj_scanpos=token94;
- if (jj_3R_128()) return true;
- }
- }
- return false;
- }
- private boolean jj_3R_103() {
- if (jj_scan_token(61)) return true;
- if (jj_3R_134()) return true;
- return false;
- }
- private boolean jj_3R_104() {
- if (jj_3R_131()) return true;
- while (true) {
- Token token95=jj_scanpos;
- if (jj_3R_131()) {
- jj_scanpos=token95;
- break;
- }
- }
- return false;
- }
- private boolean jj_3R_105() {
- if (jj_3R_32()) return true;
- return false;
- }
- private boolean jj_3R_106() {
- Token token96=jj_scanpos;
- if (jj_3_23()) {
- jj_scanpos=token96;
- if (jj_3R_132()) {
- jj_scanpos=token96;
- if (jj_3R_133()) return true;
- }
- }
- while (true) {
- Token token97=jj_scanpos;
- if (jj_3R_186()) {
- jj_scanpos=token97;
- break;
- }
- }
- return false;
- }
- private boolean jj_3R_107() {
- if (jj_scan_token(GOTO)) return true;
- if (jj_scan_token(IDENTIFIER)) return true;
- if (jj_scan_token(57)) return true;
- return false;
- }
- private boolean jj_3R_108() {
- if (jj_scan_token(CASE)) return true;
- if (jj_3R_134()) return true;
- if (jj_scan_token(62)) return true;
- if (jj_3R_40()) return true;
- return false;
- }
- private boolean jj_3R_109() {
- if (jj_scan_token(DFLT)) return true;
- if (jj_scan_token(62)) return true;
- if (jj_3R_40()) return true;
- return false;
- }
- private boolean jj_3R_110() {
- Token token98=jj_scanpos;
- if (jj_3R_135()) {
- jj_scanpos=token98;
- if (jj_3R_136()) return true;
- }
- return false;
- }
- private boolean jj_3R_111() {
- Token token99=jj_scanpos;
- if (jj_3R_137()) {
- jj_scanpos=token99;
- if (jj_3R_138()) {
- jj_scanpos=token99;
- if (jj_3R_139()) return true;
- }
- }
- return false;
- }
- private boolean jj_3R_112() {
- Token token100=jj_scanpos;
- if (jj_3R_140()) {
- jj_scanpos=token100;
- if (jj_3R_141()) {
- jj_scanpos=token100;
- if (jj_3R_142()) {
- jj_scanpos=token100;
- if (jj_3R_143()) return true;
- }
- }
- }
- return false;
- }
- private boolean jj_3R_113() {
- if (jj_3R_42()) return true;
- if (jj_3R_43()) return true;
- if (jj_3R_76()) return true;
- return false;
- }
- private boolean jj_3R_114() {
- if (jj_scan_token(97)) return true;
- if (jj_3R_42()) return true;
- return false;
- }
- private boolean jj_3R_115() {
- if (jj_scan_token(98)) return true;
- if (jj_3R_42()) return true;
- return false;
- }
- private boolean jj_3R_116() {
- Token token101=jj_scanpos;
- if (jj_3R_144()) {
- jj_scanpos=token101;
- if (jj_3R_145()) {
- jj_scanpos=token101;
- if (jj_3R_146()) {
- jj_scanpos=token101;
- if (jj_3R_147()) {
- jj_scanpos=token101;
- if (jj_3R_148()) {
- jj_scanpos=token101;
- if (jj_3R_149()) return true;
- }
- }
- }
- }
- }
- return false;
- }
- private boolean jj_3R_117() {
- if (jj_scan_token(SIZEOF)) return true;
- Token token102=jj_scanpos;
- if (jj_3R_150()) {
- jj_scanpos=token102;
- if (jj_3R_151()) return true;
- }
- return false;
- }
- private boolean jj_3R_118() {
- if (jj_3R_152()) return true;
- Token token103=jj_scanpos;
- if (jj_3R_153()) jj_scanpos=token103;
- return false;
- }
- private boolean jj_3R_119() {
- if (jj_scan_token(82)) return true;
- if (jj_3R_82()) return true;
- return false;
- }
- private boolean jj_3R_120() {
- if (jj_3R_154()) return true;
- return false;
- }
- private boolean jj_3R_121() {
- if (jj_3R_155()) return true;
- return false;
- }
- private boolean jj_3R_122() {
- if (jj_scan_token(TYPEDEF)) return true;
- return false;
- }
- private boolean jj_3R_123() {
- if (jj_3R_27()) return true;
- Token token104=jj_scanpos;
- if (jj_3R_156()) jj_scanpos=token104;
- return false;
- }
- private boolean jj_3R_124() {
- if (jj_scan_token(60)) return true;
- if (jj_3R_123()) return true;
- return false;
- }
- private boolean jj_3R_125() {
- Token token105=jj_scanpos;
- if (jj_scan_token(30)) {
- jj_scanpos=token105;
- if (jj_scan_token(35)) return true;
- }
- return false;
- }
- private boolean jj_3R_126() {
- if (jj_3R_157()) return true;
- while (true) {
- Token token106=jj_scanpos;
- if (jj_3R_210()) {
- jj_scanpos=token106;
- break;
- }
- }
- return false;
- }
- private boolean jj_3R_127() {
- if (jj_scan_token(65)) return true;
- Token token107=jj_scanpos;
- if (jj_3R_158()) jj_scanpos=token107;
- if (jj_scan_token(66)) return true;
- return false;
- }
- private boolean jj_3R_128() {
- if (jj_scan_token(63)) return true;
- Token token108=jj_scanpos;
- if (jj_3R_159()) jj_scanpos=token108;
- if (jj_scan_token(64)) return true;
- return false;
- }
- private boolean jj_3R_129() {
- if (jj_3R_27()) return true;
- return false;
- }
- private boolean jj_3R_130() {
- Token token109=jj_scanpos;
- if (jj_3R_160()) jj_scanpos=token109;
- return false;
- }
- private boolean jj_3R_131() {
- if (jj_3R_93()) return true;
- return false;
- }
- private boolean jj_3R_132() {
- if (jj_scan_token(65)) return true;
- Token token110=jj_scanpos;
- if (jj_3R_195()) jj_scanpos=token110;
- if (jj_scan_token(66)) return true;
- return false;
- }
- private boolean jj_3R_133() {
- if (jj_scan_token(63)) return true;
- Token token111=jj_scanpos;
- if (jj_3_22()) jj_scanpos=token111;
- if (jj_scan_token(64)) return true;
- return false;
- }
- private boolean jj_3R_134() {
- if (jj_3R_44()) return true;
- return false;
- }
- private boolean jj_3R_135() {
- if (jj_3R_161()) return true;
- return false;
- }
- private boolean jj_3R_136() {
- if (jj_3R_162()) return true;
- return false;
- }
- private boolean jj_3R_137() {
- if (jj_3R_163()) return true;
- return false;
- }
- private boolean jj_3R_138() {
- if (jj_3R_164()) return true;
- return false;
- }
- private boolean jj_3R_139() {
- if (jj_3R_165()) return true;
- return false;
- }
- private boolean jj_3R_140() {
- if (jj_3R_107()) return true;
- return false;
- }
- private boolean jj_3R_141() {
- if (jj_3R_166()) return true;
- return false;
- }
- private boolean jj_3R_142() {
- if (jj_3R_167()) return true;
- return false;
- }
- private boolean jj_3R_143() {
- if (jj_3R_168()) return true;
- return false;
- }
- private boolean jj_3R_144() {
- if (jj_3R_169()) return true;
- return false;
- }
- private boolean jj_3R_145() {
- if (jj_3R_170()) return true;
- return false;
- }
- private boolean jj_3R_146() {
- if (jj_3R_171()) return true;
- return false;
- }
- private boolean jj_3R_147() {
- if (jj_3R_172()) return true;
- return false;
- }
- private boolean jj_3R_148() {
- if (jj_3R_173()) return true;
- return false;
- }
- private boolean jj_3R_149() {
- if (jj_3R_174()) return true;
- return false;
- }
- private boolean jj_3R_150() {
- if (jj_3R_42()) return true;
- return false;
- }
- private boolean jj_3R_151() {
- if (jj_scan_token(63)) return true;
- if (jj_3R_45()) return true;
- if (jj_scan_token(64)) return true;
- return false;
- }
- private boolean jj_3R_152() {
- if (jj_3R_175()) return true;
- Token token112=jj_scanpos;
- if (jj_3R_176()) jj_scanpos=token112;
- return false;
- }
- private boolean jj_3R_153() {
- if (jj_scan_token(83)) return true;
- if (jj_3R_118()) return true;
- return false;
- }
- private boolean jj_3R_154() {
- Token token113=jj_scanpos;
- if (jj_scan_token(10)) {
- jj_scanpos=token113;
- if (jj_scan_token(15)) {
- jj_scanpos=token113;
- if (jj_scan_token(17)) {
- jj_scanpos=token113;
- if (jj_scan_token(18)) {
- jj_scanpos=token113;
- if (jj_scan_token(11)) return true;
- }
- }
- }
- }
- return false;
- }
- private boolean jj_3R_155() {
- Token token114=jj_scanpos;
- if (jj_3R_177()) {
- jj_scanpos=token114;
- if (jj_3R_178()) {
- jj_scanpos=token114;
- if (jj_3R_179()) {
- jj_scanpos=token114;
- if (jj_3R_180()) {
- jj_scanpos=token114;
- if (jj_scan_token(97)) {
- jj_scanpos=token114;
- if (jj_scan_token(98)) return true;
- }
- }
- }
- }
- }
- return false;
- }
- private boolean jj_3R_156() {
- if (jj_scan_token(61)) return true;
- if (jj_3R_31()) return true;
- return false;
- }
- private boolean jj_3R_157() {
- Token token115=jj_scanpos;
- if (jj_3_15()) {
- jj_scanpos=token115;
- if (jj_3R_181()) return true;
- }
- return false;
- }
- private boolean jj_3R_158() {
- if (jj_3R_134()) return true;
- return false;
- }
- private boolean jj_3R_159() {
- if (jj_3R_182()) return true;
- return false;
- }
- private boolean jj_3R_160() {
- if (jj_3R_33()) return true;
- return false;
- }
- private boolean jj_3R_161() {
- if (jj_scan_token(IF)) return true;
- if (jj_scan_token(63)) return true;
- if (jj_3R_41()) return true;
- if (jj_scan_token(64)) return true;
- if (jj_3R_40()) return true;
- Token token116=jj_scanpos;
- if (jj_3_33()) jj_scanpos=token116;
- return false;
- }
- private boolean jj_3R_162() {
- if (jj_scan_token(SWITCH)) return true;
- if (jj_scan_token(63)) return true;
- if (jj_3R_41()) return true;
- if (jj_scan_token(64)) return true;
- if (jj_3R_40()) return true;
- return false;
- }
- private boolean jj_3R_163() {
- if (jj_scan_token(WHILE)) return true;
- if (jj_scan_token(63)) return true;
- if (jj_3R_41()) return true;
- if (jj_scan_token(64)) return true;
- if (jj_3R_40()) return true;
- return false;
- }
- private boolean jj_3R_164() {
- if (jj_scan_token(DO)) return true;
- if (jj_3R_40()) return true;
- if (jj_scan_token(WHILE)) return true;
- if (jj_scan_token(63)) return true;
- if (jj_3R_41()) return true;
- if (jj_scan_token(64)) return true;
- if (jj_scan_token(57)) return true;
- return false;
- }
- private boolean jj_3R_165() {
- if (jj_scan_token(FOR)) return true;
- if (jj_scan_token(63)) return true;
- Token token117=jj_scanpos;
- if (jj_3_34()) {
- jj_scanpos=token117;
- if (jj_3_35()) {
- jj_scanpos=token117;
- if (jj_scan_token(57)) return true;
- }
- }
- Token token118=jj_scanpos;
- if (jj_3R_207()) jj_scanpos=token118;
- if (jj_scan_token(57)) return true;
- Token token119=jj_scanpos;
- if (jj_3R_208()) jj_scanpos=token119;
- if (jj_scan_token(64)) return true;
- if (jj_3R_40()) return true;
- return false;
- }
- private boolean jj_3R_166() {
- if (jj_scan_token(CONTINUE)) return true;
- if (jj_scan_token(57)) return true;
- return false;
- }
- private boolean jj_3R_167() {
- if (jj_scan_token(BREAK)) return true;
- if (jj_scan_token(57)) return true;
- return false;
- }
- private boolean jj_3R_168() {
- if (jj_scan_token(RETURN)) return true;
- Token token120=jj_scanpos;
- if (jj_3R_209()) jj_scanpos=token120;
- if (jj_scan_token(57)) return true;
- return false;
- }
- private boolean jj_3R_169() {
- if (jj_scan_token(86)) return true;
- if (jj_3R_46()) return true;
- return false;
- }
- private boolean jj_3R_170() {
- if (jj_scan_token(67)) return true;
- if (jj_3R_46()) return true;
- return false;
- }
- private boolean jj_3R_171() {
- if (jj_scan_token(93)) return true;
- if (jj_3R_46()) return true;
- return false;
- }
- private boolean jj_3R_172() {
- if (jj_scan_token(94)) return true;
- if (jj_3R_46()) return true;
- return false;
- }
- private boolean jj_3R_173() {
- if (jj_scan_token(99)) return true;
- if (jj_3R_46()) return true;
- return false;
- }
- private boolean jj_3R_174() {
- if (jj_scan_token(100)) return true;
- if (jj_3R_46()) return true;
- return false;
- }
- private boolean jj_3R_175() {
- if (jj_3R_184()) return true;
- Token token121=jj_scanpos;
- if (jj_3R_185()) jj_scanpos=token121;
- return false;
- }
- private boolean jj_3R_176() {
- if (jj_scan_token(84)) return true;
- if (jj_3R_152()) return true;
- return false;
- }
- private boolean jj_3R_177() {
- if (jj_3R_187()) return true;
- return false;
- }
- private boolean jj_3R_178() {
- if (jj_3R_188()) return true;
- return false;
- }
- private boolean jj_3R_179() {
- if (jj_3R_189()) return true;
- return false;
- }
- private boolean jj_3R_180() {
- if (jj_3R_190()) return true;
- return false;
- }
- private boolean jj_3R_181() {
- Token token122=jj_scanpos;
- if (jj_3R_191()) jj_scanpos=token122;
- if (jj_scan_token(62)) return true;
- if (jj_3R_134()) return true;
- return false;
- }
- private boolean jj_3R_182() {
- if (jj_scan_token(IDENTIFIER)) return true;
- while (true) {
- Token token123=jj_scanpos;
- if (jj_3R_192()) {
- jj_scanpos=token123;
- break;
- }
- }
- return false;
- }
- private boolean jj_3R_183() {
- if (jj_scan_token(60)) return true;
- if (jj_scan_token(68)) return true;
- return false;
- }
- private boolean jj_3R_184() {
- if (jj_3R_193()) return true;
- Token token124=jj_scanpos;
- if (jj_3R_194()) jj_scanpos=token124;
- return false;
- }
- private boolean jj_3R_185() {
- if (jj_scan_token(85)) return true;
- if (jj_3R_175()) return true;
- return false;
- }
- private boolean jj_3R_186() {
- Token token125=jj_scanpos;
- if (jj_3R_196()) {
- jj_scanpos=token125;
- if (jj_3R_197()) return true;
- }
- return false;
- }
- private boolean jj_3R_187() {
- if (jj_scan_token(65)) return true;
- if (jj_3R_41()) return true;
- if (jj_scan_token(66)) return true;
- return false;
- }
- private boolean jj_3R_188() {
- if (jj_scan_token(63)) return true;
- Token token126=jj_scanpos;
- if (jj_3R_198()) jj_scanpos=token126;
- if (jj_scan_token(64)) return true;
- return false;
- }
- private boolean jj_3R_189() {
- if (jj_scan_token(101)) return true;
- if (jj_scan_token(IDENTIFIER)) return true;
- return false;
- }
- private boolean jj_3R_190() {
- if (jj_scan_token(102)) return true;
- if (jj_scan_token(IDENTIFIER)) return true;
- return false;
- }
- private boolean jj_3R_191() {
- if (jj_3R_27()) return true;
- return false;
- }
- private boolean jj_3R_192() {
- if (jj_scan_token(60)) return true;
- if (jj_scan_token(IDENTIFIER)) return true;
- return false;
- }
- private boolean jj_3R_193() {
- if (jj_3R_200()) return true;
- Token token127=jj_scanpos;
- if (jj_3R_201()) jj_scanpos=token127;
- return false;
- }
- private boolean jj_3R_194() {
- if (jj_scan_token(86)) return true;
- if (jj_3R_184()) return true;
- return false;
- }
- private boolean jj_3R_195() {
- if (jj_3R_134()) return true;
- return false;
- }
- private boolean jj_3R_196() {
- if (jj_scan_token(65)) return true;
- Token token128=jj_scanpos;
- if (jj_3R_202()) jj_scanpos=token128;
- if (jj_scan_token(66)) return true;
- return false;
- }
- private boolean jj_3R_197() {
- if (jj_scan_token(63)) return true;
- Token token129=jj_scanpos;
- if (jj_3_24()) jj_scanpos=token129;
- if (jj_scan_token(64)) return true;
- return false;
- }
- private boolean jj_3R_198() {
- if (jj_3R_48()) return true;
- return false;
- }
- private boolean jj_3R_199() {
- if (jj_3R_31()) return true;
- while (true) {
- Token token130=jj_scanpos;
- if (jj_3_20()) {
- jj_scanpos=token130;
- break;
- }
- }
- return false;
- }
- private boolean jj_3R_200() {
- if (jj_3R_203()) return true;
- Token token131=jj_scanpos;
- if (jj_3R_204()) jj_scanpos=token131;
- return false;
- }
- private boolean jj_3R_201() {
- Token token132=jj_scanpos;
- if (jj_scan_token(87)) {
- jj_scanpos=token132;
- if (jj_scan_token(88)) return true;
- }
- if (jj_3R_193()) return true;
- return false;
- }
- private boolean jj_3R_202() {
- if (jj_3R_134()) return true;
- return false;
- }
- private boolean jj_3R_203() {
- if (jj_3R_205()) return true;
- Token token133=jj_scanpos;
- if (jj_3R_206()) jj_scanpos=token133;
- return false;
- }
- private boolean jj_3R_204() {
- Token token134=jj_scanpos;
- if (jj_scan_token(89)) {
- jj_scanpos=token134;
- if (jj_scan_token(90)) {
- jj_scanpos=token134;
- if (jj_scan_token(91)) {
- jj_scanpos=token134;
- if (jj_scan_token(92)) return true;
- }
- }
- }
- if (jj_3R_200()) return true;
- return false;
- }
- private boolean jj_3R_205() {
- if (jj_3R_46()) return true;
- Token token135=jj_scanpos;
- if (jj_3R_211()) jj_scanpos=token135;
- return false;
- }
- private boolean jj_3R_206() {
- Token token136=jj_scanpos;
- if (jj_scan_token(93)) {
- jj_scanpos=token136;
- if (jj_scan_token(94)) return true;
- }
- if (jj_3R_203()) return true;
- return false;
- }
- private boolean jj_3R_207() {
- if (jj_3R_41()) return true;
- return false;
- }
- private boolean jj_3R_208() {
- if (jj_3R_41()) return true;
- return false;
- }
- private boolean jj_3R_209() {
- if (jj_3R_41()) return true;
- return false;
- }
- private boolean jj_3R_210() {
- if (jj_scan_token(60)) return true;
- if (jj_3R_157()) return true;
- return false;
- }
- private boolean jj_3R_211() {
- Token token137=jj_scanpos;
- if (jj_scan_token(67)) {
- jj_scanpos=token137;
- if (jj_scan_token(95)) {
- jj_scanpos=token137;
- if (jj_scan_token(96)) return true;
- }
- }
- if (jj_3R_205()) return true;
- return false;
- }
- }