/* Generated By:JavaCC: Do not edit this line. ModelParser.java */\r
package org.simantics.sysdyn.modelParser;\r
\r
+import java.util.ArrayList;\r
+\r
public class ModelParser implements ModelParserConstants {\r
\r
+ private ArrayList<Parameter> inputs = new ArrayList<Parameter>();\r
+ private ArrayList<Parameter> outputs = new ArrayList<Parameter>();\r
+\r
+ private enum InterfaceVariableType\r
+ {\r
+ INPUT, OUTPUT, OTHER\r
+ }\r
+\r
+ public class Parameter\r
+ {\r
+ public String name;\r
+ public boolean optional;\r
+ public String description;\r
+ public String type;\r
+\r
+ public Parameter()\r
+ {\r
+ name = new String("");\r
+ optional = false;\r
+ description = null;\r
+ type = null;\r
+ }\r
+ }\r
+\r
+ public ArrayList<Parameter> getInputs()\r
+ {\r
+ return inputs;\r
+ }\r
+\r
+ public ArrayList<Parameter> getOutputs()\r
+ {\r
+ return outputs;\r
+ }\r
+\r
/*** Parser ********************************************************/\r
\r
// https://javacc.dev.java.net/doc/javaccgrm.html\r
\r
/*** Component Clause **********************************************/\r
final public void component_clause() throws ParseException {\r
- boolean isInput = false;\r
- isInput = type_prefix();\r
- type_specifier();\r
+ InterfaceVariableType ioType = InterfaceVariableType.OTHER;\r
+ String typeSpecifier = "";\r
+ //String arraySubscripts = null;\r
+ ArrayList<Parameter> componentList = new ArrayList<Parameter>();\r
+ ioType = type_prefix();\r
+ typeSpecifier = type_specifier();\r
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r
case 66:\r
array_subscripts();\r
jj_la1[39] = jj_gen;\r
;\r
}\r
- component_list(isInput);\r
+ componentList = component_list();\r
+ if (ioType == InterfaceVariableType.INPUT) {\r
+ for (Parameter input : componentList) {\r
+ input.type = typeSpecifier;\r
+ inputs.add(input);\r
+ }\r
+ } else if (ioType == InterfaceVariableType.OUTPUT) {\r
+ for (Parameter output : componentList) {\r
+ output.type = typeSpecifier;\r
+ outputs.add(output);\r
+ }\r
+ }\r
}\r
\r
- final public boolean type_prefix() throws ParseException {\r
- boolean isInput = false;\r
+ final public InterfaceVariableType type_prefix() throws ParseException {\r
+ InterfaceVariableType type = InterfaceVariableType.OTHER;\r
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r
case 16:\r
case 23:\r
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r
case 32:\r
jj_consume_token(32);\r
+ type = InterfaceVariableType.OUTPUT;\r
break;\r
case 56:\r
jj_consume_token(56);\r
- isInput = true;\r
+ type = InterfaceVariableType.INPUT;\r
break;\r
default:\r
jj_la1[44] = jj_gen;\r
jj_la1[45] = jj_gen;\r
;\r
}\r
- {if (true) return isInput;}\r
+ {if (true) return type;}\r
throw new Error("Missing return statement in function");\r
}\r
\r
- final public void type_specifier() throws ParseException {\r
- name();\r
+ final public String type_specifier() throws ParseException {\r
+ String ret = new String("");\r
+ ret = name();\r
+ {if (true) return ret;}\r
+ throw new Error("Missing return statement in function");\r
}\r
\r
- final public void component_list(boolean isInput) throws ParseException {\r
- component_declaration(isInput);\r
+ final public ArrayList<Parameter> component_list() throws ParseException {\r
+ ArrayList<Parameter> ret = new ArrayList<Parameter>();\r
+ Parameter temp;\r
+ // component_declaration { "," component_declaration }\r
+ temp = component_declaration();\r
+ ret.add(temp);\r
label_6:\r
while (true) {\r
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r
break label_6;\r
}\r
jj_consume_token(71);\r
- component_declaration(isInput);\r
+ temp = component_declaration();\r
+ ret.add(temp);\r
}\r
+ {if (true) return ret;}\r
+ throw new Error("Missing return statement in function");\r
}\r
\r
- final public void component_declaration(boolean isInput) throws ParseException {\r
- declaration(isInput);\r
+ final public Parameter component_declaration() throws ParseException {\r
+ Parameter ret;\r
+ String temp = "";\r
+ // declaration [ conditional_attribute ] comment\r
+ ret = declaration();\r
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r
case 31:\r
conditional_attribute();\r
jj_la1[47] = jj_gen;\r
;\r
}\r
- comment();\r
+ ret.description = comment();\r
+ {if (true) return ret;}\r
+ throw new Error("Missing return statement in function");\r
}\r
\r
final public void conditional_attribute() throws ParseException {\r
expression();\r
}\r
\r
- final public void declaration(boolean isInput) throws ParseException {\r
- String input_variable = null;\r
+ final public Parameter declaration() throws ParseException {\r
+ // Parameter here without comment yet.\r
+ Parameter ret = new Parameter();\r
jj_consume_token(IDENT);\r
- if (isInput) input_variable = new String(token.image);\r
+ ret.name = new String(token.image);\r
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r
case 66:\r
array_subscripts();\r
case 62:\r
case 88:\r
case 89:\r
- modification();\r
- input_variable = null;\r
+ ret.optional = modification();\r
break;\r
default:\r
jj_la1[49] = jj_gen;\r
;\r
}\r
- if (input_variable != null)\r
- {\r
- //System.out.println("collect: " + input_variable);\r
- }\r
+ {if (true) return ret;}\r
+ throw new Error("Missing return statement in function");\r
}\r
\r
/*** Modification **********************************************/\r
- final public void modification() throws ParseException {\r
+ final public boolean modification() throws ParseException {\r
+ boolean optional = false;\r
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r
case 62:\r
class_modification();\r
case 88:\r
jj_consume_token(88);\r
expression();\r
+ optional = true;\r
break;\r
case 89:\r
jj_consume_token(89);\r
expression();\r
+ optional = true;\r
break;\r
default:\r
jj_la1[51] = jj_gen;\r
jj_consume_token(-1);\r
throw new ParseException();\r
}\r
+ {if (true) return optional;}\r
+ throw new Error("Missing return statement in function");\r
}\r
\r
final public void class_modification() throws ParseException {\r
}\r
\r
final public void component_declaration1() throws ParseException {\r
- declaration(false);\r
+ declaration();\r
comment();\r
}\r
\r
}\r
}\r
\r
- final public void name() throws ParseException {\r
+ final public String name() throws ParseException {\r
+ String ret = new String("");\r
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r
case 68:\r
jj_consume_token(68);\r
+ ret += ".";\r
break;\r
default:\r
jj_la1[115] = jj_gen;\r
;\r
}\r
jj_consume_token(IDENT);\r
+ ret += token.image;\r
label_35:\r
while (true) {\r
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r
break label_35;\r
}\r
jj_consume_token(68);\r
+ ret += ".";\r
jj_consume_token(IDENT);\r
+ ret += token.image;\r
}\r
+ {if (true) return ret;}\r
+ throw new Error("Missing return statement in function");\r
}\r
\r
final public void component_reference() throws ParseException {\r
}\r
}\r
\r
- final public void comment() throws ParseException {\r
- string_comment();\r
+ final public String comment() throws ParseException {\r
+ String ret;\r
+ // string_comment [ annotation ]\r
+ ret = string_comment();\r
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r
case 14:\r
annotation();\r
jj_la1[132] = jj_gen;\r
;\r
}\r
+ {if (true) return ret;}\r
+ throw new Error("Missing return statement in function");\r
}\r
\r
- final public void string_comment() throws ParseException {\r
+ final public String string_comment() throws ParseException {\r
+ String ret = null;\r
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r
case STRING:\r
jj_consume_token(STRING);\r
+ ret = new String(token.image);\r
label_40:\r
while (true) {\r
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r
break label_40;\r
}\r
jj_consume_token(78);\r
+ ret += "+";\r
jj_consume_token(STRING);\r
+ ret += token.image;\r
}\r
break;\r
default:\r
jj_la1[134] = jj_gen;\r
;\r
}\r
+ {if (true) return ret;}\r
+ throw new Error("Missing return statement in function");\r
}\r
\r
final public void annotation() throws ParseException {\r
finally { jj_save(8, xla); }\r
}\r
\r
- private boolean jj_3R_72() {\r
- Token xsp;\r
- xsp = jj_scanpos;\r
- if (jj_scan_token(8)) jj_scanpos = xsp;\r
- xsp = jj_scanpos;\r
- if (jj_scan_token(11)) jj_scanpos = xsp;\r
- xsp = jj_scanpos;\r
- if (jj_scan_token(51)) jj_scanpos = xsp;\r
- xsp = jj_scanpos;\r
- if (jj_scan_token(27)) jj_scanpos = xsp;\r
- xsp = jj_scanpos;\r
- if (jj_3R_77()) {\r
- jj_scanpos = xsp;\r
- if (jj_3R_78()) return true;\r
- }\r
- return false;\r
- }\r
-\r
- private boolean jj_3R_71() {\r
- if (jj_3R_76()) return true;\r
+ private boolean jj_3R_51() {\r
+ if (jj_3R_63()) return true;\r
return false;\r
}\r
\r
- private boolean jj_3R_64() {\r
+ private boolean jj_3R_41() {\r
Token xsp;\r
xsp = jj_scanpos;\r
- if (jj_3R_70()) {\r
- jj_scanpos = xsp;\r
- if (jj_3R_71()) {\r
- jj_scanpos = xsp;\r
- if (jj_3R_72()) return true;\r
- }\r
- }\r
+ if (jj_3R_48()) jj_scanpos = xsp;\r
return false;\r
}\r
\r
- private boolean jj_3R_70() {\r
- if (jj_3R_75()) return true;\r
+ private boolean jj_3R_50() {\r
+ if (jj_scan_token(59)) return true;\r
return false;\r
}\r
\r
- private boolean jj_3R_93() {\r
+ private boolean jj_3R_49() {\r
Token xsp;\r
xsp = jj_scanpos;\r
- if (jj_scan_token(78)) {\r
+ if (jj_3_5()) {\r
jj_scanpos = xsp;\r
- if (jj_scan_token(79)) {\r
+ if (jj_3R_60()) {\r
jj_scanpos = xsp;\r
- if (jj_scan_token(80)) {\r
+ if (jj_3R_61()) {\r
jj_scanpos = xsp;\r
- if (jj_scan_token(81)) return true;\r
+ if (jj_3R_62()) return true;\r
}\r
}\r
}\r
return false;\r
}\r
\r
- private boolean jj_3R_74() {\r
- if (jj_scan_token(9)) return true;\r
- if (jj_3R_73()) return true;\r
- return false;\r
- }\r
-\r
- private boolean jj_3R_86() {\r
- if (jj_3R_93()) return true;\r
+ private boolean jj_3_5() {\r
+ if (jj_scan_token(57)) return true;\r
+ if (jj_3R_43()) return true;\r
return false;\r
}\r
\r
- private boolean jj_3R_82() {\r
+ private boolean jj_3R_42() {\r
+ if (jj_3R_43()) return true;\r
Token xsp;\r
- xsp = jj_scanpos;\r
- if (jj_3R_86()) jj_scanpos = xsp;\r
- if (jj_3R_87()) return true;\r
while (true) {\r
xsp = jj_scanpos;\r
- if (jj_3R_88()) { jj_scanpos = xsp; break; }\r
+ if (jj_3R_49()) { jj_scanpos = xsp; break; }\r
}\r
- return false;\r
- }\r
-\r
- private boolean jj_3R_89() {\r
- Token xsp;\r
xsp = jj_scanpos;\r
- if (jj_scan_token(72)) {\r
- jj_scanpos = xsp;\r
- if (jj_scan_token(73)) {\r
- jj_scanpos = xsp;\r
- if (jj_scan_token(74)) {\r
- jj_scanpos = xsp;\r
- if (jj_scan_token(75)) {\r
- jj_scanpos = xsp;\r
- if (jj_scan_token(76)) {\r
- jj_scanpos = xsp;\r
- if (jj_scan_token(77)) return true;\r
- }\r
- }\r
- }\r
- }\r
- }\r
- return false;\r
- }\r
-\r
- private boolean jj_3R_54() {\r
- if (jj_scan_token(69)) return true;\r
- if (jj_3R_53()) return true;\r
- return false;\r
- }\r
-\r
- private boolean jj_3R_66() {\r
- if (jj_scan_token(22)) return true;\r
- if (jj_3R_65()) return true;\r
+ if (jj_3R_50()) jj_scanpos = xsp;\r
+ xsp = jj_scanpos;\r
+ if (jj_3R_51()) jj_scanpos = xsp;\r
return false;\r
}\r
\r
- private boolean jj_3R_52() {\r
- if (jj_3R_64()) return true;\r
+ private boolean jj_3R_126() {\r
+ if (jj_3R_45()) return true;\r
return false;\r
}\r
\r
- private boolean jj_3_7() {\r
- if (jj_3R_44()) return true;\r
- if (jj_scan_token(88)) return true;\r
+ private boolean jj_3R_130() {\r
if (jj_3R_45()) return true;\r
return false;\r
}\r
\r
- private boolean jj_3R_79() {\r
- if (jj_3R_82()) return true;\r
+ private boolean jj_3R_122() {\r
+ if (jj_scan_token(71)) return true;\r
Token xsp;\r
xsp = jj_scanpos;\r
- if (jj_3R_83()) jj_scanpos = xsp;\r
+ if (jj_3R_126()) jj_scanpos = xsp;\r
return false;\r
}\r
\r
- private boolean jj_3R_43() {\r
+ private boolean jj_3R_128() {\r
Token xsp;\r
- while (true) {\r
- xsp = jj_scanpos;\r
- if (jj_3R_52()) { jj_scanpos = xsp; break; }\r
+ xsp = jj_scanpos;\r
+ if (jj_scan_token(69)) {\r
+ jj_scanpos = xsp;\r
+ if (jj_3R_130()) return true;\r
}\r
return false;\r
}\r
\r
- private boolean jj_3R_73() {\r
+ private boolean jj_3R_91() {\r
Token xsp;\r
xsp = jj_scanpos;\r
- if (jj_scan_token(12)) jj_scanpos = xsp;\r
- if (jj_3R_79()) return true;\r
- return false;\r
- }\r
-\r
- private boolean jj_3R_65() {\r
- if (jj_3R_73()) return true;\r
- Token xsp;\r
- while (true) {\r
- xsp = jj_scanpos;\r
- if (jj_3R_74()) { jj_scanpos = xsp; break; }\r
- }\r
+ if (jj_scan_token(50)) jj_scanpos = xsp;\r
+ if (jj_scan_token(44)) return true;\r
return false;\r
}\r
\r
- private boolean jj_3R_69() {\r
- Token xsp;\r
- xsp = jj_scanpos;\r
- if (jj_scan_token(46)) jj_scanpos = xsp;\r
- if (jj_scan_token(4)) return true;\r
+ private boolean jj_3R_123() {\r
+ if (jj_scan_token(71)) return true;\r
return false;\r
}\r
\r
- private boolean jj_3R_53() {\r
- if (jj_3R_65()) return true;\r
- Token xsp;\r
- while (true) {\r
- xsp = jj_scanpos;\r
- if (jj_3R_66()) { jj_scanpos = xsp; break; }\r
- }\r
+ private boolean jj_3R_125() {\r
+ if (jj_scan_token(66)) return true;\r
+ if (jj_3R_128()) return true;\r
return false;\r
}\r
\r
- private boolean jj_3R_51() {\r
- if (jj_3R_63()) return true;\r
+ private boolean jj_3R_120() {\r
+ if (jj_scan_token(68)) return true;\r
+ if (jj_scan_token(IDENT)) return true;\r
return false;\r
}\r
\r
- private boolean jj_3R_50() {\r
- if (jj_scan_token(59)) return true;\r
+ private boolean jj_3R_58() {\r
+ if (jj_scan_token(71)) return true;\r
return false;\r
}\r
\r
- private boolean jj_3R_49() {\r
+ private boolean jj_3R_47() {\r
Token xsp;\r
xsp = jj_scanpos;\r
- if (jj_3_5()) {\r
- jj_scanpos = xsp;\r
- if (jj_3R_60()) {\r
- jj_scanpos = xsp;\r
- if (jj_3R_61()) {\r
+ if (jj_3R_58()) {\r
jj_scanpos = xsp;\r
- if (jj_3R_62()) return true;\r
- }\r
- }\r
+ if (jj_3R_59()) return true;\r
}\r
return false;\r
}\r
\r
- private boolean jj_3_5() {\r
- if (jj_scan_token(57)) return true;\r
- if (jj_3R_43()) return true;\r
- return false;\r
- }\r
-\r
- private boolean jj_3R_68() {\r
- Token xsp;\r
- xsp = jj_scanpos;\r
- if (jj_scan_token(46)) jj_scanpos = xsp;\r
- if (jj_scan_token(45)) return true;\r
- return false;\r
- }\r
-\r
- private boolean jj_3R_44() {\r
- if (jj_3R_53()) return true;\r
- Token xsp;\r
- xsp = jj_scanpos;\r
- if (jj_3R_54()) jj_scanpos = xsp;\r
+ private boolean jj_3R_121() {\r
+ if (jj_3R_45()) return true;\r
return false;\r
}\r
\r
- private boolean jj_3R_42() {\r
- if (jj_3R_43()) return true;\r
+ private boolean jj_3R_115() {\r
+ if (jj_3R_45()) return true;\r
Token xsp;\r
while (true) {\r
xsp = jj_scanpos;\r
- if (jj_3R_49()) { jj_scanpos = xsp; break; }\r
+ if (jj_3R_123()) { jj_scanpos = xsp; break; }\r
}\r
- xsp = jj_scanpos;\r
- if (jj_3R_50()) jj_scanpos = xsp;\r
- xsp = jj_scanpos;\r
- if (jj_3R_51()) jj_scanpos = xsp;\r
- return false;\r
- }\r
-\r
- private boolean jj_3R_56() {\r
- if (jj_scan_token(31)) return true;\r
- if (jj_3R_45()) return true;\r
- return false;\r
- }\r
-\r
- private boolean jj_3R_55() {\r
- if (jj_3R_44()) return true;\r
return false;\r
}\r
\r
- private boolean jj_3R_45() {\r
+ private boolean jj_3R_114() {\r
Token xsp;\r
xsp = jj_scanpos;\r
- if (jj_3R_55()) {\r
- jj_scanpos = xsp;\r
- if (jj_3R_56()) return true;\r
+ if (jj_3R_121()) jj_scanpos = xsp;\r
+ while (true) {\r
+ xsp = jj_scanpos;\r
+ if (jj_3R_122()) { jj_scanpos = xsp; break; }\r
}\r
return false;\r
}\r
\r
- private boolean jj_3R_90() {\r
- Token xsp;\r
- xsp = jj_scanpos;\r
- if (jj_scan_token(50)) jj_scanpos = xsp;\r
- if (jj_scan_token(44)) return true;\r
- return false;\r
- }\r
-\r
private boolean jj_3_4() {\r
if (jj_scan_token(IDENT)) return true;\r
if (jj_scan_token(88)) return true;\r
return false;\r
}\r
\r
+ private boolean jj_3R_129() {\r
+ if (jj_scan_token(IDENT)) return true;\r
+ if (jj_scan_token(88)) return true;\r
+ return false;\r
+ }\r
+\r
private boolean jj_3_2() {\r
if (jj_scan_token(IDENT)) return true;\r
if (jj_scan_token(88)) return true;\r
return false;\r
}\r
\r
- private boolean jj_3R_59() {\r
- if (jj_scan_token(21)) return true;\r
+ private boolean jj_3R_127() {\r
+ if (jj_3R_129()) return true;\r
return false;\r
}\r
\r
- private boolean jj_3R_63() {\r
- if (jj_scan_token(14)) return true;\r
+ private boolean jj_3R_119() {\r
+ if (jj_3R_125()) return true;\r
return false;\r
}\r
\r
- private boolean jj_3R_48() {\r
- if (jj_scan_token(STRING)) return true;\r
+ private boolean jj_3R_124() {\r
+ if (jj_3R_127()) return true;\r
return false;\r
}\r
\r
- private boolean jj_3R_41() {\r
+ private boolean jj_3R_111() {\r
+ if (jj_3R_57()) return true;\r
+ return false;\r
+ }\r
+\r
+ private boolean jj_3R_117() {\r
Token xsp;\r
xsp = jj_scanpos;\r
- if (jj_3R_48()) jj_scanpos = xsp;\r
+ if (jj_3_9()) {\r
+ jj_scanpos = xsp;\r
+ if (jj_3R_124()) return true;\r
+ }\r
return false;\r
}\r
\r
- private boolean jj_3R_128() {\r
+ private boolean jj_3_9() {\r
if (jj_3R_45()) return true;\r
+ Token xsp;\r
+ xsp = jj_scanpos;\r
+ if (jj_3R_47()) jj_scanpos = xsp;\r
return false;\r
}\r
\r
- private boolean jj_3R_124() {\r
- if (jj_3R_45()) return true;\r
+ private boolean jj_3R_118() {\r
+ if (jj_3R_117()) return true;\r
return false;\r
}\r
\r
- private boolean jj_3R_84() {\r
+ private boolean jj_3R_112() {\r
+ if (jj_scan_token(62)) return true;\r
+ Token xsp;\r
+ xsp = jj_scanpos;\r
+ if (jj_3R_118()) jj_scanpos = xsp;\r
+ if (jj_scan_token(63)) return true;\r
+ return false;\r
+ }\r
+\r
+ private boolean jj_3R_85() {\r
Token xsp;\r
xsp = jj_scanpos;\r
if (jj_scan_token(30)) jj_scanpos = xsp;\r
jj_scanpos = xsp;\r
if (jj_scan_token(24)) {\r
jj_scanpos = xsp;\r
- if (jj_3R_90()) {\r
+ if (jj_3R_91()) {\r
jj_scanpos = xsp;\r
if (jj_scan_token(38)) {\r
jj_scanpos = xsp;\r
return false;\r
}\r
\r
- private boolean jj_3R_120() {\r
- if (jj_scan_token(71)) return true;\r
+ private boolean jj_3R_113() {\r
Token xsp;\r
xsp = jj_scanpos;\r
- if (jj_3R_124()) jj_scanpos = xsp;\r
- return false;\r
- }\r
-\r
- private boolean jj_3R_126() {\r
- Token xsp;\r
+ if (jj_scan_token(68)) jj_scanpos = xsp;\r
+ if (jj_scan_token(IDENT)) return true;\r
xsp = jj_scanpos;\r
- if (jj_scan_token(69)) {\r
- jj_scanpos = xsp;\r
- if (jj_3R_128()) return true;\r
+ if (jj_3R_119()) jj_scanpos = xsp;\r
+ while (true) {\r
+ xsp = jj_scanpos;\r
+ if (jj_3R_120()) { jj_scanpos = xsp; break; }\r
}\r
return false;\r
}\r
\r
- private boolean jj_3R_121() {\r
- if (jj_scan_token(71)) return true;\r
- return false;\r
- }\r
-\r
- private boolean jj_3R_123() {\r
- if (jj_scan_token(66)) return true;\r
- if (jj_3R_126()) return true;\r
+ private boolean jj_3R_116() {\r
+ if (jj_scan_token(70)) return true;\r
return false;\r
}\r
\r
- private boolean jj_3R_118() {\r
+ private boolean jj_3R_68() {\r
if (jj_scan_token(68)) return true;\r
if (jj_scan_token(IDENT)) return true;\r
return false;\r
}\r
\r
- private boolean jj_3R_58() {\r
- if (jj_scan_token(71)) return true;\r
+ private boolean jj_3R_67() {\r
+ if (jj_scan_token(68)) return true;\r
return false;\r
}\r
\r
- private boolean jj_3R_47() {\r
+ private boolean jj_3R_57() {\r
Token xsp;\r
xsp = jj_scanpos;\r
- if (jj_3R_58()) {\r
- jj_scanpos = xsp;\r
- if (jj_3R_59()) return true;\r
+ if (jj_3R_67()) jj_scanpos = xsp;\r
+ if (jj_scan_token(IDENT)) return true;\r
+ while (true) {\r
+ xsp = jj_scanpos;\r
+ if (jj_3R_68()) { jj_scanpos = xsp; break; }\r
}\r
return false;\r
}\r
\r
- private boolean jj_3R_119() {\r
- if (jj_3R_45()) return true;\r
- return false;\r
- }\r
-\r
- private boolean jj_3R_113() {\r
- if (jj_3R_45()) return true;\r
- Token xsp;\r
- while (true) {\r
- xsp = jj_scanpos;\r
- if (jj_3R_121()) { jj_scanpos = xsp; break; }\r
- }\r
+ private boolean jj_3R_46() {\r
+ if (jj_3R_57()) return true;\r
return false;\r
}\r
\r
- private boolean jj_3R_112() {\r
+ private boolean jj_3_8() {\r
Token xsp;\r
xsp = jj_scanpos;\r
- if (jj_3R_119()) jj_scanpos = xsp;\r
- while (true) {\r
- xsp = jj_scanpos;\r
- if (jj_3R_120()) { jj_scanpos = xsp; break; }\r
+ if (jj_3R_46()) {\r
+ jj_scanpos = xsp;\r
+ if (jj_scan_token(58)) {\r
+ jj_scanpos = xsp;\r
+ if (jj_scan_token(46)) return true;\r
}\r
+ }\r
+ if (jj_scan_token(62)) return true;\r
return false;\r
}\r
\r
- private boolean jj_3R_127() {\r
- if (jj_scan_token(IDENT)) return true;\r
- if (jj_scan_token(88)) return true;\r
+ private boolean jj_3R_110() {\r
+ if (jj_scan_token(87)) return true;\r
+ if (jj_3R_100()) return true;\r
return false;\r
}\r
\r
- private boolean jj_3R_109() {\r
+ private boolean jj_3R_93() {\r
if (jj_3R_57()) return true;\r
return false;\r
}\r
\r
- private boolean jj_3R_125() {\r
- if (jj_3R_127()) return true;\r
- return false;\r
- }\r
-\r
- private boolean jj_3R_117() {\r
- if (jj_3R_123()) return true;\r
- return false;\r
- }\r
-\r
- private boolean jj_3R_122() {\r
- if (jj_3R_125()) return true;\r
- return false;\r
- }\r
-\r
- private boolean jj_3R_115() {\r
+ private boolean jj_3R_101() {\r
Token xsp;\r
xsp = jj_scanpos;\r
- if (jj_3_9()) {\r
+ if (jj_scan_token(86)) {\r
jj_scanpos = xsp;\r
- if (jj_3R_122()) return true;\r
+ if (jj_3R_110()) return true;\r
}\r
return false;\r
}\r
\r
- private boolean jj_3_9() {\r
- if (jj_3R_45()) return true;\r
- Token xsp;\r
- xsp = jj_scanpos;\r
- if (jj_3R_47()) jj_scanpos = xsp;\r
- return false;\r
- }\r
-\r
- private boolean jj_3R_62() {\r
- if (jj_3R_69()) return true;\r
+ private boolean jj_3R_109() {\r
+ if (jj_scan_token(64)) return true;\r
+ if (jj_3R_117()) return true;\r
+ if (jj_scan_token(65)) return true;\r
return false;\r
}\r
\r
- private boolean jj_3R_67() {\r
- if (jj_scan_token(68)) return true;\r
- if (jj_scan_token(IDENT)) return true;\r
+ private boolean jj_3R_104() {\r
+ if (jj_scan_token(56)) return true;\r
return false;\r
}\r
\r
- private boolean jj_3R_116() {\r
+ private boolean jj_3R_108() {\r
+ if (jj_scan_token(66)) return true;\r
if (jj_3R_115()) return true;\r
+ Token xsp;\r
+ while (true) {\r
+ xsp = jj_scanpos;\r
+ if (jj_3R_116()) { jj_scanpos = xsp; break; }\r
+ }\r
+ if (jj_scan_token(67)) return true;\r
return false;\r
}\r
\r
- private boolean jj_3R_102() {\r
- if (jj_scan_token(56)) return true;\r
+ private boolean jj_3R_107() {\r
+ if (jj_scan_token(62)) return true;\r
+ if (jj_3R_114()) return true;\r
+ if (jj_scan_token(63)) return true;\r
return false;\r
}\r
\r
- private boolean jj_3R_114() {\r
- if (jj_scan_token(70)) return true;\r
+ private boolean jj_3R_105() {\r
+ Token xsp;\r
+ xsp = jj_scanpos;\r
+ if (jj_3R_111()) {\r
+ jj_scanpos = xsp;\r
+ if (jj_scan_token(58)) {\r
+ jj_scanpos = xsp;\r
+ if (jj_scan_token(46)) return true;\r
+ }\r
+ }\r
+ if (jj_3R_112()) return true;\r
return false;\r
}\r
\r
- private boolean jj_3R_110() {\r
- if (jj_scan_token(62)) return true;\r
- Token xsp;\r
- xsp = jj_scanpos;\r
- if (jj_3R_116()) jj_scanpos = xsp;\r
- if (jj_scan_token(63)) return true;\r
+ private boolean jj_3R_106() {\r
+ if (jj_3R_113()) return true;\r
return false;\r
}\r
\r
- private boolean jj_3R_92() {\r
- if (jj_3R_57()) return true;\r
+ private boolean jj_3R_103() {\r
+ if (jj_scan_token(32)) return true;\r
return false;\r
}\r
\r
- private boolean jj_3R_111() {\r
+ private boolean jj_3R_99() {\r
Token xsp;\r
xsp = jj_scanpos;\r
- if (jj_scan_token(68)) jj_scanpos = xsp;\r
- if (jj_scan_token(IDENT)) return true;\r
- xsp = jj_scanpos;\r
- if (jj_3R_117()) jj_scanpos = xsp;\r
- while (true) {\r
- xsp = jj_scanpos;\r
- if (jj_3R_118()) { jj_scanpos = xsp; break; }\r
+ if (jj_3R_103()) {\r
+ jj_scanpos = xsp;\r
+ if (jj_3R_104()) return true;\r
}\r
return false;\r
}\r
\r
- private boolean jj_3R_98() {\r
+ private boolean jj_3R_100() {\r
Token xsp;\r
xsp = jj_scanpos;\r
- if (jj_scan_token(32)) {\r
+ if (jj_scan_token(93)) {\r
jj_scanpos = xsp;\r
- if (jj_3R_102()) return true;\r
+ if (jj_scan_token(92)) {\r
+ jj_scanpos = xsp;\r
+ if (jj_scan_token(91)) {\r
+ jj_scanpos = xsp;\r
+ if (jj_scan_token(6)) {\r
+ jj_scanpos = xsp;\r
+ if (jj_scan_token(33)) {\r
+ jj_scanpos = xsp;\r
+ if (jj_3R_105()) {\r
+ jj_scanpos = xsp;\r
+ if (jj_3R_106()) {\r
+ jj_scanpos = xsp;\r
+ if (jj_3R_107()) {\r
+ jj_scanpos = xsp;\r
+ if (jj_3R_108()) {\r
+ jj_scanpos = xsp;\r
+ if (jj_3R_109()) {\r
+ jj_scanpos = xsp;\r
+ if (jj_scan_token(35)) return true;\r
+ }\r
+ }\r
+ }\r
+ }\r
+ }\r
+ }\r
+ }\r
+ }\r
+ }\r
}\r
return false;\r
}\r
\r
- private boolean jj_3R_97() {\r
+ private boolean jj_3R_98() {\r
Token xsp;\r
xsp = jj_scanpos;\r
if (jj_scan_token(5)) {\r
return false;\r
}\r
\r
- private boolean jj_3R_96() {\r
+ private boolean jj_3R_97() {\r
Token xsp;\r
xsp = jj_scanpos;\r
if (jj_scan_token(16)) {\r
return false;\r
}\r
\r
- private boolean jj_3R_91() {\r
+ private boolean jj_3R_92() {\r
Token xsp;\r
xsp = jj_scanpos;\r
- if (jj_3R_96()) jj_scanpos = xsp;\r
- xsp = jj_scanpos;\r
if (jj_3R_97()) jj_scanpos = xsp;\r
xsp = jj_scanpos;\r
if (jj_3R_98()) jj_scanpos = xsp;\r
+ xsp = jj_scanpos;\r
+ if (jj_3R_99()) jj_scanpos = xsp;\r
return false;\r
}\r
\r
- private boolean jj_3R_57() {\r
+ private boolean jj_3R_95() {\r
+ if (jj_3R_100()) return true;\r
Token xsp;\r
xsp = jj_scanpos;\r
- if (jj_scan_token(68)) jj_scanpos = xsp;\r
- if (jj_scan_token(IDENT)) return true;\r
- while (true) {\r
- xsp = jj_scanpos;\r
- if (jj_3R_67()) { jj_scanpos = xsp; break; }\r
- }\r
+ if (jj_3R_101()) jj_scanpos = xsp;\r
return false;\r
}\r
\r
- private boolean jj_3R_46() {\r
- if (jj_3R_57()) return true;\r
+ private boolean jj_3R_62() {\r
+ if (jj_3R_70()) return true;\r
return false;\r
}\r
\r
- private boolean jj_3R_61() {\r
- if (jj_3R_68()) return true;\r
+ private boolean jj_3R_96() {\r
+ if (jj_3R_102()) return true;\r
+ if (jj_3R_95()) return true;\r
return false;\r
}\r
\r
- private boolean jj_3_8() {\r
- Token xsp;\r
- xsp = jj_scanpos;\r
- if (jj_3R_46()) {\r
- jj_scanpos = xsp;\r
- if (jj_scan_token(58)) {\r
- jj_scanpos = xsp;\r
- if (jj_scan_token(46)) return true;\r
- }\r
- }\r
- if (jj_scan_token(62)) return true;\r
+ private boolean jj_3R_84() {\r
+ if (jj_3R_90()) return true;\r
+ if (jj_3R_83()) return true;\r
return false;\r
}\r
\r
- private boolean jj_3R_108() {\r
- if (jj_scan_token(87)) return true;\r
- if (jj_3R_99()) return true;\r
+ private boolean jj_3R_89() {\r
+ if (jj_3R_94()) return true;\r
+ if (jj_3R_88()) return true;\r
return false;\r
}\r
\r
- private boolean jj_3R_85() {\r
- if (jj_3R_91()) return true;\r
- if (jj_3R_92()) return true;\r
+ private boolean jj_3R_102() {\r
+ Token xsp;\r
+ xsp = jj_scanpos;\r
+ if (jj_scan_token(82)) {\r
+ jj_scanpos = xsp;\r
+ if (jj_scan_token(83)) {\r
+ jj_scanpos = xsp;\r
+ if (jj_scan_token(84)) {\r
+ jj_scanpos = xsp;\r
+ if (jj_scan_token(85)) return true;\r
+ }\r
+ }\r
+ }\r
return false;\r
}\r
\r
- private boolean jj_3R_100() {\r
+ private boolean jj_3R_88() {\r
+ if (jj_3R_95()) return true;\r
+ Token xsp;\r
+ while (true) {\r
+ xsp = jj_scanpos;\r
+ if (jj_3R_96()) { jj_scanpos = xsp; break; }\r
+ }\r
+ return false;\r
+ }\r
+\r
+ private boolean jj_3R_94() {\r
Token xsp;\r
xsp = jj_scanpos;\r
- if (jj_scan_token(86)) {\r
+ if (jj_scan_token(78)) {\r
jj_scanpos = xsp;\r
- if (jj_3R_108()) return true;\r
+ if (jj_scan_token(79)) {\r
+ jj_scanpos = xsp;\r
+ if (jj_scan_token(80)) {\r
+ jj_scanpos = xsp;\r
+ if (jj_scan_token(81)) return true;\r
+ }\r
+ }\r
}\r
return false;\r
}\r
\r
- private boolean jj_3R_81() {\r
- if (jj_3R_85()) return true;\r
+ private boolean jj_3R_75() {\r
+ if (jj_scan_token(9)) return true;\r
+ if (jj_3R_74()) return true;\r
return false;\r
}\r
\r
- private boolean jj_3R_107() {\r
- if (jj_scan_token(64)) return true;\r
- if (jj_3R_115()) return true;\r
- if (jj_scan_token(65)) return true;\r
+ private boolean jj_3R_86() {\r
+ if (jj_3R_92()) return true;\r
+ if (jj_3R_93()) return true;\r
return false;\r
}\r
\r
- private boolean jj_3R_106() {\r
- if (jj_scan_token(66)) return true;\r
- if (jj_3R_113()) return true;\r
+ private boolean jj_3R_87() {\r
+ if (jj_3R_94()) return true;\r
+ return false;\r
+ }\r
+\r
+ private boolean jj_3R_61() {\r
+ if (jj_3R_69()) return true;\r
+ return false;\r
+ }\r
+\r
+ private boolean jj_3R_83() {\r
Token xsp;\r
+ xsp = jj_scanpos;\r
+ if (jj_3R_87()) jj_scanpos = xsp;\r
+ if (jj_3R_88()) return true;\r
while (true) {\r
xsp = jj_scanpos;\r
- if (jj_3R_114()) { jj_scanpos = xsp; break; }\r
+ if (jj_3R_89()) { jj_scanpos = xsp; break; }\r
}\r
- if (jj_scan_token(67)) return true;\r
- return false;\r
- }\r
-\r
- private boolean jj_3R_105() {\r
- if (jj_scan_token(62)) return true;\r
- if (jj_3R_112()) return true;\r
- if (jj_scan_token(63)) return true;\r
return false;\r
}\r
\r
- private boolean jj_3R_103() {\r
+ private boolean jj_3R_90() {\r
Token xsp;\r
xsp = jj_scanpos;\r
- if (jj_3R_109()) {\r
+ if (jj_scan_token(72)) {\r
jj_scanpos = xsp;\r
- if (jj_scan_token(58)) {\r
+ if (jj_scan_token(73)) {\r
jj_scanpos = xsp;\r
- if (jj_scan_token(46)) return true;\r
+ if (jj_scan_token(74)) {\r
+ jj_scanpos = xsp;\r
+ if (jj_scan_token(75)) {\r
+ jj_scanpos = xsp;\r
+ if (jj_scan_token(76)) {\r
+ jj_scanpos = xsp;\r
+ if (jj_scan_token(77)) return true;\r
+ }\r
+ }\r
+ }\r
}\r
}\r
- if (jj_3R_110()) return true;\r
return false;\r
}\r
\r
- private boolean jj_3R_104() {\r
- if (jj_3R_111()) return true;\r
+ private boolean jj_3R_54() {\r
+ if (jj_scan_token(69)) return true;\r
+ if (jj_3R_53()) return true;\r
+ return false;\r
+ }\r
+\r
+ private boolean jj_3R_66() {\r
+ if (jj_scan_token(22)) return true;\r
+ if (jj_3R_65()) return true;\r
+ return false;\r
+ }\r
+\r
+ private boolean jj_3_7() {\r
+ if (jj_3R_44()) return true;\r
+ if (jj_scan_token(88)) return true;\r
+ if (jj_3R_45()) return true;\r
+ return false;\r
+ }\r
+\r
+ private boolean jj_3R_80() {\r
+ if (jj_3R_83()) return true;\r
+ Token xsp;\r
+ xsp = jj_scanpos;\r
+ if (jj_3R_84()) jj_scanpos = xsp;\r
+ return false;\r
+ }\r
+\r
+ private boolean jj_3R_82() {\r
+ if (jj_3R_86()) return true;\r
+ return false;\r
+ }\r
+\r
+ private boolean jj_3R_74() {\r
+ Token xsp;\r
+ xsp = jj_scanpos;\r
+ if (jj_scan_token(12)) jj_scanpos = xsp;\r
+ if (jj_3R_80()) return true;\r
return false;\r
}\r
\r
return false;\r
}\r
\r
- private boolean jj_3R_99() {\r
+ private boolean jj_3R_65() {\r
+ if (jj_3R_74()) return true;\r
Token xsp;\r
- xsp = jj_scanpos;\r
- if (jj_scan_token(93)) {\r
- jj_scanpos = xsp;\r
- if (jj_scan_token(92)) {\r
- jj_scanpos = xsp;\r
- if (jj_scan_token(91)) {\r
- jj_scanpos = xsp;\r
- if (jj_scan_token(6)) {\r
- jj_scanpos = xsp;\r
- if (jj_scan_token(33)) {\r
- jj_scanpos = xsp;\r
- if (jj_3R_103()) {\r
- jj_scanpos = xsp;\r
- if (jj_3R_104()) {\r
- jj_scanpos = xsp;\r
- if (jj_3R_105()) {\r
- jj_scanpos = xsp;\r
- if (jj_3R_106()) {\r
- jj_scanpos = xsp;\r
- if (jj_3R_107()) {\r
- jj_scanpos = xsp;\r
- if (jj_scan_token(35)) return true;\r
- }\r
- }\r
- }\r
- }\r
- }\r
- }\r
- }\r
- }\r
+ while (true) {\r
+ xsp = jj_scanpos;\r
+ if (jj_3R_75()) { jj_scanpos = xsp; break; }\r
}\r
+ return false;\r
+ }\r
+\r
+ private boolean jj_3R_77() {\r
+ if (jj_scan_token(55)) return true;\r
+ return false;\r
+ }\r
+\r
+ private boolean jj_3R_70() {\r
+ Token xsp;\r
+ xsp = jj_scanpos;\r
+ if (jj_scan_token(46)) jj_scanpos = xsp;\r
+ if (jj_scan_token(4)) return true;\r
+ return false;\r
+ }\r
+\r
+ private boolean jj_3R_53() {\r
+ if (jj_3R_65()) return true;\r
+ Token xsp;\r
+ while (true) {\r
+ xsp = jj_scanpos;\r
+ if (jj_3R_66()) { jj_scanpos = xsp; break; }\r
}\r
return false;\r
}\r
\r
private boolean jj_3R_76() {\r
- if (jj_scan_token(55)) return true;\r
+ if (jj_scan_token(36)) return true;\r
return false;\r
}\r
\r
- private boolean jj_3R_94() {\r
- if (jj_3R_99()) return true;\r
+ private boolean jj_3R_69() {\r
Token xsp;\r
xsp = jj_scanpos;\r
- if (jj_3R_100()) jj_scanpos = xsp;\r
+ if (jj_scan_token(46)) jj_scanpos = xsp;\r
+ if (jj_scan_token(45)) return true;\r
return false;\r
}\r
\r
- private boolean jj_3R_95() {\r
- if (jj_3R_101()) return true;\r
- if (jj_3R_94()) return true;\r
+ private boolean jj_3R_44() {\r
+ if (jj_3R_53()) return true;\r
+ Token xsp;\r
+ xsp = jj_scanpos;\r
+ if (jj_3R_54()) jj_scanpos = xsp;\r
return false;\r
}\r
\r
- private boolean jj_3R_78() {\r
+ private boolean jj_3R_79() {\r
if (jj_scan_token(13)) return true;\r
return false;\r
}\r
\r
- private boolean jj_3R_83() {\r
- if (jj_3R_89()) return true;\r
+ private boolean jj_3R_60() {\r
+ if (jj_scan_token(52)) return true;\r
+ return false;\r
+ }\r
+\r
+ private boolean jj_3R_81() {\r
+ if (jj_3R_85()) return true;\r
+ return false;\r
+ }\r
+\r
+ private boolean jj_3R_78() {\r
+ Token xsp;\r
+ xsp = jj_scanpos;\r
+ if (jj_3R_81()) {\r
+ jj_scanpos = xsp;\r
if (jj_3R_82()) return true;\r
+ }\r
return false;\r
}\r
\r
- private boolean jj_3R_88() {\r
- if (jj_3R_93()) return true;\r
- if (jj_3R_87()) return true;\r
+ private boolean jj_3R_56() {\r
+ if (jj_scan_token(31)) return true;\r
+ if (jj_3R_45()) return true;\r
return false;\r
}\r
\r
- private boolean jj_3R_75() {\r
- if (jj_scan_token(36)) return true;\r
+ private boolean jj_3R_55() {\r
+ if (jj_3R_44()) return true;\r
return false;\r
}\r
\r
- private boolean jj_3R_101() {\r
+ private boolean jj_3R_45() {\r
Token xsp;\r
xsp = jj_scanpos;\r
- if (jj_scan_token(82)) {\r
- jj_scanpos = xsp;\r
- if (jj_scan_token(83)) {\r
- jj_scanpos = xsp;\r
- if (jj_scan_token(84)) {\r
+ if (jj_3R_55()) {\r
jj_scanpos = xsp;\r
- if (jj_scan_token(85)) return true;\r
- }\r
- }\r
+ if (jj_3R_56()) return true;\r
}\r
return false;\r
}\r
\r
- private boolean jj_3R_60() {\r
- if (jj_scan_token(52)) return true;\r
+ private boolean jj_3R_73() {\r
+ Token xsp;\r
+ xsp = jj_scanpos;\r
+ if (jj_scan_token(8)) jj_scanpos = xsp;\r
+ xsp = jj_scanpos;\r
+ if (jj_scan_token(11)) jj_scanpos = xsp;\r
+ xsp = jj_scanpos;\r
+ if (jj_scan_token(51)) jj_scanpos = xsp;\r
+ xsp = jj_scanpos;\r
+ if (jj_scan_token(27)) jj_scanpos = xsp;\r
+ xsp = jj_scanpos;\r
+ if (jj_3R_78()) {\r
+ jj_scanpos = xsp;\r
+ if (jj_3R_79()) return true;\r
+ }\r
return false;\r
}\r
\r
- private boolean jj_3R_80() {\r
- if (jj_3R_84()) return true;\r
+ private boolean jj_3R_72() {\r
+ if (jj_3R_77()) return true;\r
return false;\r
}\r
\r
- private boolean jj_3R_77() {\r
+ private boolean jj_3R_64() {\r
Token xsp;\r
xsp = jj_scanpos;\r
- if (jj_3R_80()) {\r
+ if (jj_3R_71()) {\r
jj_scanpos = xsp;\r
- if (jj_3R_81()) return true;\r
+ if (jj_3R_72()) {\r
+ jj_scanpos = xsp;\r
+ if (jj_3R_73()) return true;\r
+ }\r
}\r
return false;\r
}\r
\r
- private boolean jj_3R_87() {\r
- if (jj_3R_94()) return true;\r
+ private boolean jj_3R_71() {\r
+ if (jj_3R_76()) return true;\r
+ return false;\r
+ }\r
+\r
+ private boolean jj_3R_52() {\r
+ if (jj_3R_64()) return true;\r
+ return false;\r
+ }\r
+\r
+ private boolean jj_3R_43() {\r
Token xsp;\r
while (true) {\r
xsp = jj_scanpos;\r
- if (jj_3R_95()) { jj_scanpos = xsp; break; }\r
+ if (jj_3R_52()) { jj_scanpos = xsp; break; }\r
}\r
return false;\r
}\r
\r
+ private boolean jj_3R_63() {\r
+ if (jj_scan_token(14)) return true;\r
+ return false;\r
+ }\r
+\r
+ private boolean jj_3R_59() {\r
+ if (jj_scan_token(21)) return true;\r
+ return false;\r
+ }\r
+\r
+ private boolean jj_3R_48() {\r
+ if (jj_scan_token(STRING)) return true;\r
+ return false;\r
+ }\r
+\r
/** Generated Token Manager. */\r
public ModelParserTokenManager token_source;\r
SimpleCharStream jj_input_stream;\r