diff --git a/pmd/bin/build.xml b/pmd/bin/build.xml index cfcd22d982..576416ceb7 100644 --- a/pmd/bin/build.xml +++ b/pmd/bin/build.xml @@ -392,8 +392,16 @@ + + + + + + + + - + diff --git a/pmd/etc/changelog.txt b/pmd/etc/changelog.txt index 5412ed73ab..efbf2bb4f8 100644 --- a/pmd/etc/changelog.txt +++ b/pmd/etc/changelog.txt @@ -13,6 +13,8 @@ Fixed bug 2904832 - Type resolution not working for ASTType when using an inner Correct -benchmark reporting of Rule visits via the RuleChain Fix issue with Type Resolution incorrectly handling of Classes with same name as a java.lang Class. +The JSP/JSF parser can now parse Unicode input. +The JSP/JSP parser can now handle tags. The AST HtmlScript node contains the content. Dependencies updates: asm updated to 3.2 @@ -23,6 +25,7 @@ New rule: Controversial : AvoidLiteralsInIfCondition (patch 2591627), UseConcurrentHashMap StrictExceptions : AvoidCatchingGenericException, AvoidLosingExceptionInformation Naming : GenericsNaming + JSP: NoInlineScript February 08, 2009 - 4.2.5: diff --git a/pmd/etc/grammar/JspParser.jjt b/pmd/etc/grammar/JspParser.jjt index e62defd6d2..9448db9bdf 100644 --- a/pmd/etc/grammar/JspParser.jjt +++ b/pmd/etc/grammar/JspParser.jjt @@ -1,13 +1,15 @@ - /* JSP Parser for PMD. +/* JSP Parser for PMD. * It supports supports more-or-less well written JSP files. * The JSP Document style is supported, except for inline DTD. * The JSP Page style (<% ... %>) is supported. * Java code is not parsed. + * Script code inside is not parsed. */ options { USER_CHAR_STREAM = true; NODE_USES_PARSER=true; + UNICODE_INPUT=true; IGNORE_CASE = true; STATIC = false; @@ -19,7 +21,7 @@ options { PARSER_BEGIN(JspParser) /** * JSP Parser for PMD. - * @author Pieter – Application Engineers NV/SA – http://www.ae.be + * @author Pieter – Application Engineers NV/SA – http://www.ae.be */ package net.sourceforge.pmd.jsp.ast; @@ -78,6 +80,7 @@ PARSER_END(JspParser) * - JspExpressionState : inside an expression <%= ... %> * - JspDeclarationState : inside a declaration <%! ... %> * - JspCommentState : inside a comment <%-- ... --%> + * - HtmlScriptContentState : inside an HTML script */ @@ -263,6 +266,18 @@ PARSER_END(JspParser) | < COMMENT_TEXT: (~[]) > } + TOKEN : +{ + + | + { + // We've done a custom lookahead for the closing and found it. + // Put it back into the input stream, so it can be processed normally. + input_stream.backup(8); + image.setLength(image.length() - 8); // kill the " - { jjtThis.setEmpty(false); } + { + jjtThis.setEmpty(false); + + // Content in a tag. + // This is a context sensitive switch for the token manager, not something one can + // express using normal JavaCC syntax. Hence the hoop jumping. + if ("script".equalsIgnoreCase(startTagName.image)) { + token_source.SwitchTo(HtmlScriptContentState); + } + } - (Content())? + (HtmlScript() | Content())? endTagName = @@ -645,3 +671,16 @@ void DoctypeExternalId() : { jjtThis.setUri(quoteContent(systemLiteral.image)); } ) } + +void HtmlScript() : +{ + StringBuffer content = new StringBuffer(); + Token t; +} +{ + (t = { content.append(t.image); })* + + { + jjtThis.setImage(content.toString().trim()); + } +} diff --git a/pmd/regress/test/net/sourceforge/pmd/jsp/ast/JspDocStyleTest.java b/pmd/regress/test/net/sourceforge/pmd/jsp/ast/JspDocStyleTest.java index cf3c5066ae..b38bd95452 100644 --- a/pmd/regress/test/net/sourceforge/pmd/jsp/ast/JspDocStyleTest.java +++ b/pmd/regress/test/net/sourceforge/pmd/jsp/ast/JspDocStyleTest.java @@ -1,6 +1,13 @@ package test.net.sourceforge.pmd.jsp.ast; import static org.junit.Assert.assertEquals; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.Comparator; +import java.util.List; +import java.util.Set; + import net.sourceforge.pmd.jsp.ast.ASTAttribute; import net.sourceforge.pmd.jsp.ast.ASTAttributeValue; import net.sourceforge.pmd.jsp.ast.ASTCData; @@ -8,14 +15,9 @@ import net.sourceforge.pmd.jsp.ast.ASTCommentTag; import net.sourceforge.pmd.jsp.ast.ASTDoctypeDeclaration; import net.sourceforge.pmd.jsp.ast.ASTDoctypeExternalId; import net.sourceforge.pmd.jsp.ast.ASTElement; +import net.sourceforge.pmd.jsp.ast.ASTHtmlScript; import org.junit.Test; - -import java.util.ArrayList; -import java.util.Collections; -import java.util.Comparator; -import java.util.List; -import java.util.Set; /** * Test parsing of a JSP in document style, by checking the generated AST. * @@ -156,6 +158,17 @@ public class JspDocStyleTest extends AbstractJspNodesTst { ASTCommentTag comment = (ASTCommentTag) comments.iterator().next(); assertEquals("Correct comment content expected!", "comment", comment.getImage()); } + + /** + * Test parsing of HTML "; + public static junit.framework.Test suite() { return new junit.framework.JUnit4TestAdapter(JspDocStyleTest.class); } diff --git a/pmd/regress/test/net/sourceforge/pmd/jsp/rules/NoInlineScriptTest.java b/pmd/regress/test/net/sourceforge/pmd/jsp/rules/NoInlineScriptTest.java new file mode 100644 index 0000000000..a2f9083d3c --- /dev/null +++ b/pmd/regress/test/net/sourceforge/pmd/jsp/rules/NoInlineScriptTest.java @@ -0,0 +1,17 @@ +package test.net.sourceforge.pmd.jsp.rules; + +import org.junit.Before; + +import test.net.sourceforge.pmd.testframework.SimpleAggregatorTst; + +public class NoInlineScriptTest extends SimpleAggregatorTst { + + @Before + public void setUp() { + addRule("jsp", "NoInlineScript"); + } + + public static junit.framework.Test suite() { + return new junit.framework.JUnit4TestAdapter(NoInlineScriptTest.class); + } +} diff --git a/pmd/regress/test/net/sourceforge/pmd/jsp/rules/xml/NoInlineScript.xml b/pmd/regress/test/net/sourceforge/pmd/jsp/rules/xml/NoInlineScript.xml new file mode 100644 index 0000000000..fe1c5ad5d0 --- /dev/null +++ b/pmd/regress/test/net/sourceforge/pmd/jsp/rules/xml/NoInlineScript.xml @@ -0,0 +1,53 @@ + + + + + 1 + + ]]> + jsp + + + + 1 + + ]]> + jsp + + + + 0 + + ]]> + jsp + + + + 0 + + ]]> + jsp + + + + 0 + tag. + // This is a context sensitive switch for the token manager, not something one can + // express using normal JavaCC syntax. Hence the hoop jumping. + if ("script".equalsIgnoreCase(startTagName.image)) { + token_source.SwitchTo(HtmlScriptContentState); + } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case TAG_START: case COMMENT_START: @@ -640,10 +649,33 @@ public class JspParser/*@bgen(jjtree)*/implements JspParserTreeConstants, JspPar case JSP_DIRECTIVE_START: case EL_EXPRESSION: case UNPARSED_TEXT: - Content(); + case HTML_SCRIPT_CONTENT: + case HTML_SCRIPT_END_TAG: + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case HTML_SCRIPT_CONTENT: + case HTML_SCRIPT_END_TAG: + HtmlScript(); + break; + case TAG_START: + case COMMENT_START: + case CDATA_START: + case JSP_COMMENT_START: + case JSP_DECLARATION_START: + case JSP_EXPRESSION_START: + case JSP_SCRIPTLET_START: + case JSP_DIRECTIVE_START: + case EL_EXPRESSION: + case UNPARSED_TEXT: + Content(); + break; + default: + jj_la1[13] = jj_gen; + jj_consume_token(-1); + throw new ParseException(); + } break; default: - jj_la1[13] = jj_gen; + jj_la1[14] = jj_gen; ; } jj_consume_token(ENDTAG_START); @@ -664,7 +696,7 @@ public class JspParser/*@bgen(jjtree)*/implements JspParserTreeConstants, JspPar jjtn000.setEmpty(true); break; default: - jj_la1[14] = jj_gen; + jj_la1[15] = jj_gen; jj_consume_token(-1); throw new ParseException(); } @@ -746,7 +778,7 @@ public class JspParser/*@bgen(jjtree)*/implements JspParserTreeConstants, JspPar ; break; default: - jj_la1[15] = jj_gen; + jj_la1[16] = jj_gen; break label_8; } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { @@ -759,7 +791,7 @@ public class JspParser/*@bgen(jjtree)*/implements JspParserTreeConstants, JspPar tmp = QuoteIndependentAttributeValueContent(); break; default: - jj_la1[16] = jj_gen; + jj_la1[17] = jj_gen; jj_consume_token(-1); throw new ParseException(); } @@ -774,7 +806,7 @@ public class JspParser/*@bgen(jjtree)*/implements JspParserTreeConstants, JspPar content.append(t.image.substring(0, 1)); break; default: - jj_la1[17] = jj_gen; + jj_la1[18] = jj_gen; jj_consume_token(-1); throw new ParseException(); } @@ -791,7 +823,7 @@ public class JspParser/*@bgen(jjtree)*/implements JspParserTreeConstants, JspPar ; break; default: - jj_la1[18] = jj_gen; + jj_la1[19] = jj_gen; break label_9; } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { @@ -804,7 +836,7 @@ public class JspParser/*@bgen(jjtree)*/implements JspParserTreeConstants, JspPar tmp = QuoteIndependentAttributeValueContent(); break; default: - jj_la1[19] = jj_gen; + jj_la1[20] = jj_gen; jj_consume_token(-1); throw new ParseException(); } @@ -819,13 +851,13 @@ public class JspParser/*@bgen(jjtree)*/implements JspParserTreeConstants, JspPar content.append(t.image.substring(0, 1)); break; default: - jj_la1[20] = jj_gen; + jj_la1[21] = jj_gen; jj_consume_token(-1); throw new ParseException(); } break; default: - jj_la1[21] = jj_gen; + jj_la1[22] = jj_gen; jj_consume_token(-1); throw new ParseException(); } @@ -870,7 +902,7 @@ public class JspParser/*@bgen(jjtree)*/implements JspParserTreeConstants, JspPar tmp = JspExpressionInAttribute(); break; default: - jj_la1[22] = jj_gen; + jj_la1[23] = jj_gen; jj_consume_token(-1); throw new ParseException(); } @@ -912,7 +944,7 @@ public class JspParser/*@bgen(jjtree)*/implements JspParserTreeConstants, JspPar ; break; default: - jj_la1[23] = jj_gen; + jj_la1[24] = jj_gen; break label_10; } t = jj_consume_token(COMMENT_TEXT); @@ -945,7 +977,7 @@ public class JspParser/*@bgen(jjtree)*/implements JspParserTreeConstants, JspPar ; break; default: - jj_la1[24] = jj_gen; + jj_la1[25] = jj_gen; break label_11; } Attribute(); @@ -987,7 +1019,7 @@ public class JspParser/*@bgen(jjtree)*/implements JspParserTreeConstants, JspPar jj_consume_token(WHITESPACES); break; default: - jj_la1[25] = jj_gen; + jj_la1[26] = jj_gen; ; } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { @@ -999,12 +1031,12 @@ public class JspParser/*@bgen(jjtree)*/implements JspParserTreeConstants, JspPar jj_consume_token(WHITESPACES); break; default: - jj_la1[26] = jj_gen; + jj_la1[27] = jj_gen; ; } break; default: - jj_la1[27] = jj_gen; + jj_la1[28] = jj_gen; ; } jj_consume_token(DOCTYPE_DECL_END); @@ -1057,7 +1089,7 @@ public class JspParser/*@bgen(jjtree)*/implements JspParserTreeConstants, JspPar jjtn000.setUri(quoteContent(systemLiteral.image)); break; default: - jj_la1[28] = jj_gen; + jj_la1[29] = jj_gen; jj_consume_token(-1); throw new ParseException(); } @@ -1068,6 +1100,37 @@ public class JspParser/*@bgen(jjtree)*/implements JspParserTreeConstants, JspPar } } + final public void HtmlScript() throws ParseException { + /*@bgen(jjtree) HtmlScript */ + ASTHtmlScript jjtn000 = new ASTHtmlScript(this, JJTHTMLSCRIPT); + boolean jjtc000 = true; + jjtree.openNodeScope(jjtn000);StringBuffer content = new StringBuffer(); + Token t; + try { + label_12: + while (true) { + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { + case HTML_SCRIPT_CONTENT: + ; + break; + default: + jj_la1[30] = jj_gen; + break label_12; + } + t = jj_consume_token(HTML_SCRIPT_CONTENT); + content.append(t.image); + } + jj_consume_token(HTML_SCRIPT_END_TAG); + jjtree.closeNodeScope(jjtn000, true); + jjtc000 = false; + jjtn000.setImage(content.toString().trim()); + } finally { + if (jjtc000) { + jjtree.closeNodeScope(jjtn000, true); + } + } + } + private boolean jj_2_1(int xla) { jj_la = xla; jj_lastpos = jj_scanpos = token; try { return !jj_3_1(); } @@ -1082,22 +1145,258 @@ public class JspParser/*@bgen(jjtree)*/implements JspParserTreeConstants, JspPar finally { jj_save(1, xla); } } - private boolean jj_3R_30() { - if (jj_scan_token(DOUBLE_QUOTE)) return true; + private boolean jj_3R_22() { + if (jj_3R_26()) return true; + Token xsp; + xsp = jj_scanpos; + if (jj_scan_token(48)) jj_scanpos = xsp; + return false; + } + + private boolean jj_3R_16() { + if (jj_scan_token(DOCTYPE_DECL_START)) return true; + if (jj_scan_token(WHITESPACES)) return true; + if (jj_scan_token(NAME)) return true; + Token xsp; + xsp = jj_scanpos; + if (jj_scan_token(48)) jj_scanpos = xsp; + xsp = jj_scanpos; + if (jj_3R_22()) jj_scanpos = xsp; + if (jj_scan_token(DOCTYPE_DECL_END)) return true; + return false; + } + + private boolean jj_3R_25() { + if (jj_scan_token(ATTR_NAME)) return true; + if (jj_scan_token(ATTR_EQ)) return true; + if (jj_3R_28()) return true; + return false; + } + + private boolean jj_3R_41() { + if (jj_scan_token(UNPARSED_TEXT_NO_DOUBLE_QUOTES)) return true; + return false; + } + + private boolean jj_3R_19() { + if (jj_3R_25()) return true; + return false; + } + + private boolean jj_3R_14() { + if (jj_scan_token(DECL_START)) return true; + if (jj_scan_token(TAG_NAME)) return true; Token xsp; while (true) { xsp = jj_scanpos; - if (jj_3R_32()) { jj_scanpos = xsp; break; } + if (jj_3R_19()) { jj_scanpos = xsp; break; } } + if (jj_scan_token(DECL_END)) return true; + return false; + } + + private boolean jj_3R_21() { + if (jj_3R_24()) return true; + return false; + } + + private boolean jj_3R_43() { + if (jj_scan_token(UNPARSED_TEXT_NO_SINGLE_QUOTES)) return true; + return false; + } + + private boolean jj_3R_27() { + if (jj_scan_token(COMMENT_TEXT)) return true; + return false; + } + + private boolean jj_3R_23() { + if (jj_scan_token(COMMENT_START)) return true; + Token xsp; + while (true) { + xsp = jj_scanpos; + if (jj_3R_27()) { jj_scanpos = xsp; break; } + } + if (jj_scan_token(COMMENT_END)) return true; + return false; + } + + private boolean jj_3R_18() { + if (jj_3R_24()) return true; + return false; + } + + private boolean jj_3R_49() { + if (jj_scan_token(JSP_EXPRESSION_IN_ATTRIBUTE)) return true; + return false; + } + + private boolean jj_3R_46() { + if (jj_3R_49()) return true; + return false; + } + + private boolean jj_3R_45() { + if (jj_3R_48()) return true; + return false; + } + + private boolean jj_3R_44() { + if (jj_3R_47()) return true; + return false; + } + + private boolean jj_3R_20() { + if (jj_3R_23()) return true; + return false; + } + + private boolean jj_3R_15() { + Token xsp; xsp = jj_scanpos; - if (jj_scan_token(72)) { + if (jj_3R_20()) { jj_scanpos = xsp; - if (jj_3R_33()) return true; + if (jj_3R_21()) return true; } return false; } - private boolean jj_3R_29() { + private boolean jj_3R_40() { + if (jj_3R_42()) return true; + return false; + } + + private boolean jj_3_2() { + Token xsp; + while (true) { + xsp = jj_scanpos; + if (jj_3R_15()) { jj_scanpos = xsp; break; } + } + if (jj_3R_16()) return true; + return false; + } + + private boolean jj_3R_36() { + if (jj_scan_token(DOLLAR_OR_HASH_SINGLE_QUOTE)) return true; + return false; + } + + private boolean jj_3R_39() { + if (jj_3R_43()) return true; + return false; + } + + private boolean jj_3R_13() { + Token xsp; + xsp = jj_scanpos; + if (jj_3R_17()) { + jj_scanpos = xsp; + if (jj_3R_18()) return true; + } + return false; + } + + private boolean jj_3R_17() { + if (jj_3R_23()) return true; + return false; + } + + private boolean jj_3R_34() { + if (jj_scan_token(DOLLAR_OR_HASH_DOUBLE_QUOTE)) return true; + return false; + } + + private boolean jj_3R_42() { + Token xsp; + xsp = jj_scanpos; + if (jj_3R_44()) { + jj_scanpos = xsp; + if (jj_3R_45()) { + jj_scanpos = xsp; + if (jj_3R_46()) return true; + } + } + return false; + } + + private boolean jj_3_1() { + Token xsp; + while (true) { + xsp = jj_scanpos; + if (jj_3R_13()) { jj_scanpos = xsp; break; } + } + if (jj_3R_14()) return true; + return false; + } + + private boolean jj_3R_35() { + Token xsp; + xsp = jj_scanpos; + if (jj_3R_39()) { + jj_scanpos = xsp; + if (jj_3R_40()) return true; + } + return false; + } + + private boolean jj_3R_38() { + if (jj_3R_42()) return true; + return false; + } + + private boolean jj_3R_37() { + if (jj_3R_41()) return true; + return false; + } + + private boolean jj_3R_33() { + Token xsp; + xsp = jj_scanpos; + if (jj_3R_37()) { + jj_scanpos = xsp; + if (jj_3R_38()) return true; + } + return false; + } + + private boolean jj_3R_32() { + if (jj_scan_token(SINGLE_QUOTE)) return true; + Token xsp; + while (true) { + xsp = jj_scanpos; + if (jj_3R_35()) { jj_scanpos = xsp; break; } + } + xsp = jj_scanpos; + if (jj_scan_token(69)) { + jj_scanpos = xsp; + if (jj_3R_36()) return true; + } + return false; + } + + private boolean jj_3R_24() { + if (jj_scan_token(JSP_COMMENT_START)) return true; + if (jj_scan_token(JSP_COMMENT_CONTENT)) return true; + if (jj_scan_token(JSP_COMMENT_END)) return true; + return false; + } + + private boolean jj_3R_31() { + if (jj_scan_token(DOUBLE_QUOTE)) return true; + Token xsp; + while (true) { + xsp = jj_scanpos; + if (jj_3R_33()) { jj_scanpos = xsp; break; } + } + xsp = jj_scanpos; + if (jj_scan_token(72)) { + jj_scanpos = xsp; + if (jj_3R_34()) return true; + } + return false; + } + + private boolean jj_3R_30() { if (jj_scan_token(PUBLIC)) return true; if (jj_scan_token(WHITESPACES)) return true; if (jj_scan_token(QUOTED_LITERAL)) return true; @@ -1107,275 +1406,39 @@ public class JspParser/*@bgen(jjtree)*/implements JspParserTreeConstants, JspPar } private boolean jj_3R_47() { - if (jj_scan_token(VALUE_BINDING_IN_ATTRIBUTE)) return true; - return false; - } - - private boolean jj_3R_27() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_30()) { - jj_scanpos = xsp; - if (jj_3R_31()) return true; - } - return false; - } - - private boolean jj_3R_25() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_28()) { - jj_scanpos = xsp; - if (jj_3R_29()) return true; - } + if (jj_scan_token(EL_EXPRESSION_IN_ATTRIBUTE)) return true; return false; } private boolean jj_3R_28() { + Token xsp; + xsp = jj_scanpos; + if (jj_3R_31()) { + jj_scanpos = xsp; + if (jj_3R_32()) return true; + } + return false; + } + + private boolean jj_3R_26() { + Token xsp; + xsp = jj_scanpos; + if (jj_3R_29()) { + jj_scanpos = xsp; + if (jj_3R_30()) return true; + } + return false; + } + + private boolean jj_3R_29() { if (jj_scan_token(SYSTEM)) return true; if (jj_scan_token(WHITESPACES)) return true; if (jj_scan_token(QUOTED_LITERAL)) return true; return false; } - private boolean jj_3R_21() { - if (jj_3R_25()) return true; - Token xsp; - xsp = jj_scanpos; - if (jj_scan_token(48)) jj_scanpos = xsp; - return false; - } - - private boolean jj_3R_40() { - if (jj_scan_token(UNPARSED_TEXT_NO_DOUBLE_QUOTES)) return true; - return false; - } - - private boolean jj_3R_15() { - if (jj_scan_token(DOCTYPE_DECL_START)) return true; - if (jj_scan_token(WHITESPACES)) return true; - if (jj_scan_token(NAME)) return true; - Token xsp; - xsp = jj_scanpos; - if (jj_scan_token(48)) jj_scanpos = xsp; - xsp = jj_scanpos; - if (jj_3R_21()) jj_scanpos = xsp; - if (jj_scan_token(DOCTYPE_DECL_END)) return true; - return false; - } - - private boolean jj_3R_24() { - if (jj_scan_token(ATTR_NAME)) return true; - if (jj_scan_token(ATTR_EQ)) return true; - if (jj_3R_27()) return true; - return false; - } - - private boolean jj_3R_20() { - if (jj_3R_23()) return true; - return false; - } - - private boolean jj_3R_42() { - if (jj_scan_token(UNPARSED_TEXT_NO_SINGLE_QUOTES)) return true; - return false; - } - - private boolean jj_3R_18() { - if (jj_3R_24()) return true; - return false; - } - - private boolean jj_3R_13() { - if (jj_scan_token(DECL_START)) return true; - if (jj_scan_token(TAG_NAME)) return true; - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_3R_18()) { jj_scanpos = xsp; break; } - } - if (jj_scan_token(DECL_END)) return true; - return false; - } - - private boolean jj_3R_17() { - if (jj_3R_23()) return true; - return false; - } - - private boolean jj_3R_26() { - if (jj_scan_token(COMMENT_TEXT)) return true; - return false; - } - - private boolean jj_3R_19() { - if (jj_3R_22()) return true; - return false; - } - - private boolean jj_3R_14() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_19()) { - jj_scanpos = xsp; - if (jj_3R_20()) return true; - } - return false; - } - - private boolean jj_3R_22() { - if (jj_scan_token(COMMENT_START)) return true; - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_3R_26()) { jj_scanpos = xsp; break; } - } - if (jj_scan_token(COMMENT_END)) return true; - return false; - } - - private boolean jj_3_2() { - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_3R_14()) { jj_scanpos = xsp; break; } - } - if (jj_3R_15()) return true; - return false; - } - - private boolean jj_3R_12() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_16()) { - jj_scanpos = xsp; - if (jj_3R_17()) return true; - } - return false; - } - - private boolean jj_3R_16() { - if (jj_3R_22()) return true; - return false; - } - private boolean jj_3R_48() { - if (jj_scan_token(JSP_EXPRESSION_IN_ATTRIBUTE)) return true; - return false; - } - - private boolean jj_3R_45() { - if (jj_3R_48()) return true; - return false; - } - - private boolean jj_3_1() { - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_3R_12()) { jj_scanpos = xsp; break; } - } - if (jj_3R_13()) return true; - return false; - } - - private boolean jj_3R_44() { - if (jj_3R_47()) return true; - return false; - } - - private boolean jj_3R_43() { - if (jj_3R_46()) return true; - return false; - } - - private boolean jj_3R_39() { - if (jj_3R_41()) return true; - return false; - } - - private boolean jj_3R_35() { - if (jj_scan_token(DOLLAR_OR_HASH_SINGLE_QUOTE)) return true; - return false; - } - - private boolean jj_3R_38() { - if (jj_3R_42()) return true; - return false; - } - - private boolean jj_3R_33() { - if (jj_scan_token(DOLLAR_OR_HASH_DOUBLE_QUOTE)) return true; - return false; - } - - private boolean jj_3R_41() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_43()) { - jj_scanpos = xsp; - if (jj_3R_44()) { - jj_scanpos = xsp; - if (jj_3R_45()) return true; - } - } - return false; - } - - private boolean jj_3R_34() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_38()) { - jj_scanpos = xsp; - if (jj_3R_39()) return true; - } - return false; - } - - private boolean jj_3R_37() { - if (jj_3R_41()) return true; - return false; - } - - private boolean jj_3R_36() { - if (jj_3R_40()) return true; - return false; - } - - private boolean jj_3R_23() { - if (jj_scan_token(JSP_COMMENT_START)) return true; - if (jj_scan_token(JSP_COMMENT_CONTENT)) return true; - if (jj_scan_token(JSP_COMMENT_END)) return true; - return false; - } - - private boolean jj_3R_32() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_36()) { - jj_scanpos = xsp; - if (jj_3R_37()) return true; - } - return false; - } - - private boolean jj_3R_31() { - if (jj_scan_token(SINGLE_QUOTE)) return true; - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_3R_34()) { jj_scanpos = xsp; break; } - } - xsp = jj_scanpos; - if (jj_scan_token(69)) { - jj_scanpos = xsp; - if (jj_3R_35()) return true; - } - return false; - } - - private boolean jj_3R_46() { - if (jj_scan_token(EL_EXPRESSION_IN_ATTRIBUTE)) return true; + if (jj_scan_token(VALUE_BINDING_IN_ATTRIBUTE)) return true; return false; } @@ -1389,7 +1452,7 @@ public class JspParser/*@bgen(jjtree)*/implements JspParserTreeConstants, JspPar private Token jj_scanpos, jj_lastpos; private int jj_la; private int jj_gen; - final private int[] jj_la1 = new int[29]; + final private int[] jj_la1 = new int[31]; static private int[] jj_la1_0; static private int[] jj_la1_1; static private int[] jj_la1_2; @@ -1399,13 +1462,13 @@ public class JspParser/*@bgen(jjtree)*/implements JspParserTreeConstants, JspPar jj_la1_init_2(); } private static void jj_la1_init_0() { - jj_la1_0 = new int[] {0x11000000,0x11000000,0x11000000,0x11000000,0xf9400000,0xf9400000,0xf9400000,0x0,0x0,0x0,0x0,0x0,0x0,0xf9400000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,}; + jj_la1_0 = new int[] {0x11000000,0x11000000,0x11000000,0x11000000,0xf9400000,0xf9400000,0xf9400000,0x0,0x0,0x0,0x0,0x0,0x0,0xf9400000,0xf9400000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,}; } private static void jj_la1_init_1() { - jj_la1_1 = new int[] {0x0,0x0,0x0,0x0,0x7,0x1,0x1,0x6,0x10,0x6,0x6,0x400000,0x4000000,0x7,0x28000000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x4000000,0x10000,0x10000,0xc0000,0xc0000,}; + jj_la1_1 = new int[] {0x0,0x0,0x0,0x0,0x7,0x1,0x1,0x6,0x10,0x6,0x6,0x400000,0x4000000,0x7,0x7,0x28000000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x4000000,0x10000,0x10000,0xc0000,0xc0000,0x0,}; } private static void jj_la1_init_2() { - jj_la1_2 = new int[] {0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x21c,0x21c,0x500,0x5c,0x5c,0xa0,0x3,0x1c,0x1000,0x0,0x0,0x0,0x0,0x0,}; + jj_la1_2 = new int[] {0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x6000,0x6000,0x0,0x21c,0x21c,0x500,0x5c,0x5c,0xa0,0x3,0x1c,0x1000,0x0,0x0,0x0,0x0,0x0,0x2000,}; } final private JJCalls[] jj_2_rtns = new JJCalls[2]; private boolean jj_rescan = false; @@ -1417,7 +1480,7 @@ public class JspParser/*@bgen(jjtree)*/implements JspParserTreeConstants, JspPar token = new Token(); jj_ntk = -1; jj_gen = 0; - for (int i = 0; i < 29; i++) jj_la1[i] = -1; + for (int i = 0; i < 31; i++) jj_la1[i] = -1; for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls(); } @@ -1428,7 +1491,7 @@ public class JspParser/*@bgen(jjtree)*/implements JspParserTreeConstants, JspPar jj_ntk = -1; jjtree.reset(); jj_gen = 0; - for (int i = 0; i < 29; i++) jj_la1[i] = -1; + for (int i = 0; i < 31; i++) jj_la1[i] = -1; for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls(); } @@ -1438,7 +1501,7 @@ public class JspParser/*@bgen(jjtree)*/implements JspParserTreeConstants, JspPar token = new Token(); jj_ntk = -1; jj_gen = 0; - for (int i = 0; i < 29; i++) jj_la1[i] = -1; + for (int i = 0; i < 31; i++) jj_la1[i] = -1; for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls(); } @@ -1449,7 +1512,7 @@ public class JspParser/*@bgen(jjtree)*/implements JspParserTreeConstants, JspPar jj_ntk = -1; jjtree.reset(); jj_gen = 0; - for (int i = 0; i < 29; i++) jj_la1[i] = -1; + for (int i = 0; i < 31; i++) jj_la1[i] = -1; for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls(); } @@ -1561,12 +1624,12 @@ public class JspParser/*@bgen(jjtree)*/implements JspParserTreeConstants, JspPar /** Generate ParseException. */ public ParseException generateParseException() { jj_expentries.clear(); - boolean[] la1tokens = new boolean[77]; + boolean[] la1tokens = new boolean[79]; if (jj_kind >= 0) { la1tokens[jj_kind] = true; jj_kind = -1; } - for (int i = 0; i < 29; i++) { + for (int i = 0; i < 31; i++) { if (jj_la1[i] == jj_gen) { for (int j = 0; j < 32; j++) { if ((jj_la1_0[i] & (1<", "", "", + "", + "", }; } diff --git a/pmd/src/net/sourceforge/pmd/jsp/ast/JspParserTokenManager.java b/pmd/src/net/sourceforge/pmd/jsp/ast/JspParserTokenManager.java index bae32fd8ce..d30b57b9be 100644 --- a/pmd/src/net/sourceforge/pmd/jsp/ast/JspParserTokenManager.java +++ b/pmd/src/net/sourceforge/pmd/jsp/ast/JspParserTokenManager.java @@ -1,7 +1,7 @@ /* Generated By:JJTree&JavaCC: Do not edit this line. JspParserTokenManager.java */ /** * JSP Parser for PMD. - * @author Pieter � Application Engineers NV/SA � http://www.ae.be + * @author Pieter – Application Engineers NV/SA – http://www.ae.be */ package net.sourceforge.pmd.jsp.ast; @@ -14,21 +14,17 @@ public class JspParserTokenManager implements JspParserConstants public java.io.PrintStream debugStream = System.out; /** Set debug output. */ public void setDebugStream(java.io.PrintStream ds) { debugStream = ds; } -private final int jjStopStringLiteralDfa_9(int pos, long active0) +private final int jjStopStringLiteralDfa_2(int pos, long active0, long active1) { switch (pos) { - case 0: - if ((active0 & 0x40000000000L) != 0L) - return 2; - return -1; default : return -1; } } -private final int jjStartNfa_9(int pos, long active0) +private final int jjStartNfa_2(int pos, long active0, long active1) { - return jjMoveNfa_9(jjStopStringLiteralDfa_9(pos, active0), pos + 1); + return jjMoveNfa_2(jjStopStringLiteralDfa_2(pos, active0, active1), pos + 1); } private int jjStopAtPos(int pos, int kind) { @@ -36,41 +32,26 @@ private int jjStopAtPos(int pos, int kind) jjmatchedPos = pos; return pos + 1; } -private int jjMoveStringLiteralDfa0_9() +private int jjMoveStringLiteralDfa0_2() { switch(curChar) { - case 37: - return jjMoveStringLiteralDfa1_9(0x40000000000L); + case 34: + return jjStopAtPos(0, 72); default : - return jjMoveNfa_9(3, 0); + return jjMoveNfa_2(9, 0); } } -private int jjMoveStringLiteralDfa1_9(long active0) -{ - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { - jjStopStringLiteralDfa_9(0, active0); - return 1; - } - switch(curChar) - { - case 62: - if ((active0 & 0x40000000000L) != 0L) - return jjStopAtPos(1, 42); - break; - default : - break; - } - return jjStartNfa_9(0, active0); -} static final long[] jjbitVec0 = { + 0xfffffffffffffffeL, 0xffffffffffffffffL, 0xffffffffffffffffL, 0xffffffffffffffffL +}; +static final long[] jjbitVec2 = { 0x0L, 0x0L, 0xffffffffffffffffL, 0xffffffffffffffffL }; -private int jjMoveNfa_9(int startState, int curPos) +private int jjMoveNfa_2(int startState, int curPos) { int startsAt = 0; - jjnewStateCnt = 3; + jjnewStateCnt = 37; int i = 1; jjstateSet[0] = startState; int kind = 0x7fffffff; @@ -85,33 +66,147 @@ private int jjMoveNfa_9(int startState, int curPos) { switch(jjstateSet[--i]) { - case 3: - if ((0xffffffdfffffffffL & l) != 0L) + case 9: + if ((0xffffffe3ffffffffL & l) != 0L) { - if (kind > 43) - kind = 43; - jjCheckNAddTwoStates(0, 1); + if (kind > 73) + kind = 73; + jjCheckNAddStates(0, 2); } - else if (curChar == 37) - jjstateSet[jjnewStateCnt++] = 2; - break; - case 0: - if ((0xffffffdfffffffffL & l) == 0L) - break; - if (kind > 43) - kind = 43; - jjCheckNAddTwoStates(0, 1); + else if ((0x1800000000L & l) != 0L) + jjCheckNAddTwoStates(30, 36); + if (curChar == 60) + jjstateSet[jjnewStateCnt++] = 26; + else if (curChar == 35) + jjstateSet[jjnewStateCnt++] = 10; + else if (curChar == 36) + jjstateSet[jjnewStateCnt++] = 0; break; case 1: - if (curChar == 37) - jjstateSet[jjnewStateCnt++] = 2; + if ((0xffffff7bffffffffL & l) != 0L) + jjCheckNAddStates(3, 6); break; case 2: - if ((0xbfffffffffffffffL & l) == 0L) + if (curChar == 34) + jjCheckNAddTwoStates(3, 4); + break; + case 3: + if ((0xfffffffbffffffffL & l) != 0L) + jjCheckNAddTwoStates(3, 4); + break; + case 4: + if (curChar == 34) + jjCheckNAddStates(3, 6); + break; + case 5: + if (curChar == 39) + jjCheckNAddTwoStates(6, 7); + break; + case 6: + if ((0xffffff7fffffffffL & l) != 0L) + jjCheckNAddTwoStates(6, 7); + break; + case 7: + if (curChar == 39) + jjCheckNAddStates(3, 6); + break; + case 11: + if ((0xffffff7bffffffffL & l) != 0L) + jjCheckNAddStates(7, 10); + break; + case 12: + if (curChar == 34) + jjCheckNAddTwoStates(13, 14); + break; + case 13: + if ((0xfffffffbffffffffL & l) != 0L) + jjCheckNAddTwoStates(13, 14); + break; + case 14: + if (curChar == 34) + jjCheckNAddStates(7, 10); + break; + case 15: + if (curChar == 39) + jjCheckNAddTwoStates(16, 17); + break; + case 16: + if ((0xffffff7fffffffffL & l) != 0L) + jjCheckNAddTwoStates(16, 17); + break; + case 17: + if (curChar == 39) + jjCheckNAddStates(7, 10); + break; + case 19: + if (curChar == 35) + jjstateSet[jjnewStateCnt++] = 10; + break; + case 20: + if (curChar == 61) + jjCheckNAddTwoStates(21, 22); + break; + case 21: + if ((0xffffffdfffffffffL & l) != 0L) + jjCheckNAddStates(11, 13); + break; + case 22: + if (curChar == 37) + jjstateSet[jjnewStateCnt++] = 23; + break; + case 23: + if ((0xbfffffffffffffffL & l) != 0L) + jjCheckNAddStates(11, 13); + break; + case 24: + if (curChar == 62 && kind > 68) + kind = 68; + break; + case 25: + if (curChar == 37) + jjstateSet[jjnewStateCnt++] = 24; + break; + case 26: + if (curChar == 37) + jjstateSet[jjnewStateCnt++] = 20; + break; + case 27: + if (curChar == 60) + jjstateSet[jjnewStateCnt++] = 26; + break; + case 28: + if ((0xffffffe3ffffffffL & l) == 0L) break; - if (kind > 43) - kind = 43; - jjCheckNAddTwoStates(0, 1); + if (kind > 73) + kind = 73; + jjCheckNAddStates(0, 2); + break; + case 29: + if ((0x1800000000L & l) != 0L) + jjCheckNAdd(30); + break; + case 30: + if ((0xfffffffbffffffffL & l) == 0L) + break; + if (kind > 73) + kind = 73; + jjCheckNAddStates(0, 2); + break; + case 33: + if (curChar == 35) + jjCheckNAdd(32); + break; + case 34: + if (curChar == 36) + jjCheckNAdd(32); + break; + case 35: + if ((0x1800000000L & l) != 0L) + jjCheckNAddTwoStates(30, 36); + break; + case 36: + if (curChar == 34 && kind > 74) + kind = 74; break; default : break; } @@ -124,12 +219,75 @@ private int jjMoveNfa_9(int startState, int curPos) { switch(jjstateSet[--i]) { - case 3: + case 9: + if (kind > 73) + kind = 73; + jjCheckNAddStates(0, 2); + if (curChar == 92) + jjAddStates(14, 15); + break; case 0: - case 2: - if (kind > 43) - kind = 43; - jjCheckNAddTwoStates(0, 1); + if (curChar == 123) + jjCheckNAddStates(3, 6); + break; + case 1: + if ((0xdfffffffffffffffL & l) != 0L) + jjCheckNAddStates(3, 6); + break; + case 3: + jjAddStates(16, 17); + break; + case 6: + jjAddStates(18, 19); + break; + case 8: + if (curChar == 125 && kind > 66) + kind = 66; + break; + case 10: + if (curChar == 123) + jjCheckNAddStates(7, 10); + break; + case 11: + if ((0xdfffffffffffffffL & l) != 0L) + jjCheckNAddStates(7, 10); + break; + case 13: + jjAddStates(20, 21); + break; + case 16: + jjAddStates(22, 23); + break; + case 18: + if (curChar == 125 && kind > 67) + kind = 67; + break; + case 21: + case 23: + jjCheckNAddStates(11, 13); + break; + case 28: + if (kind > 73) + kind = 73; + jjCheckNAddStates(0, 2); + break; + case 30: + if ((0xf7ffffffffffffffL & l) == 0L) + break; + if (kind > 73) + kind = 73; + jjCheckNAddStates(0, 2); + break; + case 31: + if (curChar == 92) + jjAddStates(14, 15); + break; + case 32: + if (curChar != 123) + break; + if (kind > 73) + kind = 73; + jjCheckNAddStates(0, 2); break; default : break; } @@ -137,20 +295,52 @@ private int jjMoveNfa_9(int startState, int curPos) } else { + int hiByte = (int)(curChar >> 8); + int i1 = hiByte >> 6; + long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); do { switch(jjstateSet[--i]) { - case 3: - case 0: - case 2: - if ((jjbitVec0[i2] & l2) == 0L) + case 9: + case 28: + case 30: + if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; - if (kind > 43) - kind = 43; - jjCheckNAddTwoStates(0, 1); + if (kind > 73) + kind = 73; + jjCheckNAddStates(0, 2); + break; + case 1: + if (jjCanMove_0(hiByte, i1, i2, l1, l2)) + jjAddStates(3, 6); + break; + case 3: + if (jjCanMove_0(hiByte, i1, i2, l1, l2)) + jjAddStates(16, 17); + break; + case 6: + if (jjCanMove_0(hiByte, i1, i2, l1, l2)) + jjAddStates(18, 19); + break; + case 11: + if (jjCanMove_0(hiByte, i1, i2, l1, l2)) + jjAddStates(7, 10); + break; + case 13: + if (jjCanMove_0(hiByte, i1, i2, l1, l2)) + jjAddStates(20, 21); + break; + case 16: + if (jjCanMove_0(hiByte, i1, i2, l1, l2)) + jjAddStates(22, 23); + break; + case 21: + case 23: + if (jjCanMove_0(hiByte, i1, i2, l1, l2)) + jjCheckNAddStates(11, 13); break; default : break; } @@ -163,7 +353,7 @@ private int jjMoveNfa_9(int startState, int curPos) kind = 0x7fffffff; } ++curPos; - if ((i = jjnewStateCnt) == (startsAt = 3 - (jjnewStateCnt = startsAt))) + if ((i = jjnewStateCnt) == (startsAt = 37 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } @@ -171,160 +361,12 @@ private int jjMoveNfa_9(int startState, int curPos) } private int jjMoveStringLiteralDfa0_4() { - switch(curChar) - { - case 93: - return jjMoveStringLiteralDfa1_4(0x80000000000000L); - default : - return 1; - } + return jjMoveNfa_4(0, 0); } -private int jjMoveStringLiteralDfa1_4(long active0) -{ - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { - return 1; - } - switch(curChar) - { - case 93: - return jjMoveStringLiteralDfa2_4(active0, 0x80000000000000L); - default : - return 2; - } -} -private int jjMoveStringLiteralDfa2_4(long old0, long active0) -{ - if (((active0 &= old0)) == 0L) - return 2; - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { - return 2; - } - switch(curChar) - { - case 62: - if ((active0 & 0x80000000000000L) != 0L) - return jjStopAtPos(2, 55); - break; - default : - return 3; - } - return 3; -} -private int jjMoveStringLiteralDfa0_6() -{ - return jjMoveNfa_6(1, 0); -} -static final long[] jjbitVec1 = { +static final long[] jjbitVec3 = { 0x0L, 0x0L, 0x0L, 0xff7fffffff7fffffL }; -private int jjMoveNfa_6(int startState, int curPos) -{ - int startsAt = 0; - jjnewStateCnt = 3; - int i = 1; - jjstateSet[0] = startState; - int kind = 0x7fffffff; - for (;;) - { - if (++jjround == 0x7fffffff) - ReInitRounds(); - if (curChar < 64) - { - long l = 1L << curChar; - do - { - switch(jjstateSet[--i]) - { - case 1: - if ((0x100002600L & l) != 0L) - { - if (kind > 48) - kind = 48; - jjCheckNAdd(0); - } - else if ((0x400001000000000L & l) != 0L) - { - if (kind > 49) - kind = 49; - jjCheckNAdd(2); - } - break; - case 0: - if ((0x100002600L & l) == 0L) - break; - kind = 48; - jjCheckNAdd(0); - break; - case 2: - if ((0x7ff601000000000L & l) == 0L) - break; - if (kind > 49) - kind = 49; - jjCheckNAdd(2); - break; - default : break; - } - } while(i != startsAt); - } - else if (curChar < 128) - { - long l = 1L << (curChar & 077); - do - { - switch(jjstateSet[--i]) - { - case 1: - case 2: - if ((0x7fffffe87fffffeL & l) == 0L) - break; - if (kind > 49) - kind = 49; - jjCheckNAdd(2); - break; - default : break; - } - } while(i != startsAt); - } - else - { - int i2 = (curChar & 0xff) >> 6; - long l2 = 1L << (curChar & 077); - do - { - switch(jjstateSet[--i]) - { - case 1: - case 2: - if ((jjbitVec1[i2] & l2) == 0L) - break; - if (kind > 49) - kind = 49; - jjCheckNAdd(2); - break; - default : break; - } - } while(i != startsAt); - } - if (kind != 0x7fffffff) - { - jjmatchedKind = kind; - jjmatchedPos = curPos; - kind = 0x7fffffff; - } - ++curPos; - if ((i = jjnewStateCnt) == (startsAt = 3 - (jjnewStateCnt = startsAt))) - return curPos; - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { return curPos; } - } -} -private int jjMoveStringLiteralDfa0_3() -{ - return jjMoveNfa_3(0, 0); -} -private int jjMoveNfa_3(int startState, int curPos) +private int jjMoveNfa_4(int startState, int curPos) { int startsAt = 0; jjnewStateCnt = 2; @@ -381,6 +423,9 @@ private int jjMoveNfa_3(int startState, int curPos) } else { + int hiByte = (int)(curChar >> 8); + int i1 = hiByte >> 6; + long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); do @@ -389,7 +434,7 @@ private int jjMoveNfa_3(int startState, int curPos) { case 0: case 1: - if ((jjbitVec1[i2] & l2) == 0L) + if (!jjCanMove_1(hiByte, i1, i2, l1, l2)) break; if (kind > 56) kind = 56; @@ -412,1047 +457,6 @@ private int jjMoveNfa_3(int startState, int curPos) catch(java.io.IOException e) { return curPos; } } } -private int jjMoveStringLiteralDfa0_0() -{ - return jjMoveNfa_0(0, 0); -} -private int jjMoveNfa_0(int startState, int curPos) -{ - int startsAt = 0; - jjnewStateCnt = 5; - int i = 1; - jjstateSet[0] = startState; - int kind = 0x7fffffff; - for (;;) - { - if (++jjround == 0x7fffffff) - ReInitRounds(); - if (curChar < 64) - { - long l = 1L << curChar; - do - { - switch(jjstateSet[--i]) - { - case 0: - if (curChar == 45) - jjAddStates(0, 1); - break; - case 1: - if (curChar == 45) - jjCheckNAddTwoStates(2, 3); - break; - case 2: - if (curChar == 32) - jjCheckNAddTwoStates(2, 3); - break; - case 3: - case 4: - if (curChar == 62 && kind > 75) - kind = 75; - break; - default : break; - } - } while(i != startsAt); - } - else if (curChar < 128) - { - long l = 1L << (curChar & 077); - do - { - switch(jjstateSet[--i]) - { - default : break; - } - } while(i != startsAt); - } - else - { - int i2 = (curChar & 0xff) >> 6; - long l2 = 1L << (curChar & 077); - do - { - switch(jjstateSet[--i]) - { - default : break; - } - } while(i != startsAt); - } - if (kind != 0x7fffffff) - { - jjmatchedKind = kind; - jjmatchedPos = curPos; - kind = 0x7fffffff; - } - ++curPos; - if ((i = jjnewStateCnt) == (startsAt = 5 - (jjnewStateCnt = startsAt))) - return curPos; - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { return curPos; } - } -} -private final int jjStopStringLiteralDfa_2(int pos, long active0, long active1) -{ - switch (pos) - { - default : - return -1; - } -} -private final int jjStartNfa_2(int pos, long active0, long active1) -{ - return jjMoveNfa_2(jjStopStringLiteralDfa_2(pos, active0, active1), pos + 1); -} -private int jjMoveStringLiteralDfa0_2() -{ - switch(curChar) - { - case 39: - return jjStopAtPos(0, 69); - default : - return jjMoveNfa_2(9, 0); - } -} -private int jjMoveNfa_2(int startState, int curPos) -{ - int startsAt = 0; - jjnewStateCnt = 37; - int i = 1; - jjstateSet[0] = startState; - int kind = 0x7fffffff; - for (;;) - { - if (++jjround == 0x7fffffff) - ReInitRounds(); - if (curChar < 64) - { - long l = 1L << curChar; - do - { - switch(jjstateSet[--i]) - { - case 9: - if ((0xffffff67ffffffffL & l) != 0L) - { - if (kind > 70) - kind = 70; - jjCheckNAddStates(2, 4); - } - else if ((0x1800000000L & l) != 0L) - jjCheckNAddTwoStates(30, 36); - if (curChar == 60) - jjstateSet[jjnewStateCnt++] = 26; - else if (curChar == 35) - jjstateSet[jjnewStateCnt++] = 10; - else if (curChar == 36) - jjstateSet[jjnewStateCnt++] = 0; - break; - case 1: - if ((0xffffff7bffffffffL & l) != 0L) - jjCheckNAddStates(5, 8); - break; - case 2: - if (curChar == 34) - jjCheckNAddTwoStates(3, 4); - break; - case 3: - if ((0xfffffffbffffffffL & l) != 0L) - jjCheckNAddTwoStates(3, 4); - break; - case 4: - if (curChar == 34) - jjCheckNAddStates(5, 8); - break; - case 5: - if (curChar == 39) - jjCheckNAddTwoStates(6, 7); - break; - case 6: - if ((0xffffff7fffffffffL & l) != 0L) - jjCheckNAddTwoStates(6, 7); - break; - case 7: - if (curChar == 39) - jjCheckNAddStates(5, 8); - break; - case 11: - if ((0xffffff7bffffffffL & l) != 0L) - jjCheckNAddStates(9, 12); - break; - case 12: - if (curChar == 34) - jjCheckNAddTwoStates(13, 14); - break; - case 13: - if ((0xfffffffbffffffffL & l) != 0L) - jjCheckNAddTwoStates(13, 14); - break; - case 14: - if (curChar == 34) - jjCheckNAddStates(9, 12); - break; - case 15: - if (curChar == 39) - jjCheckNAddTwoStates(16, 17); - break; - case 16: - if ((0xffffff7fffffffffL & l) != 0L) - jjCheckNAddTwoStates(16, 17); - break; - case 17: - if (curChar == 39) - jjCheckNAddStates(9, 12); - break; - case 19: - if (curChar == 35) - jjstateSet[jjnewStateCnt++] = 10; - break; - case 20: - if (curChar == 61) - jjCheckNAddTwoStates(21, 22); - break; - case 21: - if ((0xffffffdfffffffffL & l) != 0L) - jjCheckNAddStates(13, 15); - break; - case 22: - if (curChar == 37) - jjstateSet[jjnewStateCnt++] = 23; - break; - case 23: - if ((0xbfffffffffffffffL & l) != 0L) - jjCheckNAddStates(13, 15); - break; - case 24: - if (curChar == 62 && kind > 68) - kind = 68; - break; - case 25: - if (curChar == 37) - jjstateSet[jjnewStateCnt++] = 24; - break; - case 26: - if (curChar == 37) - jjstateSet[jjnewStateCnt++] = 20; - break; - case 27: - if (curChar == 60) - jjstateSet[jjnewStateCnt++] = 26; - break; - case 28: - if ((0xffffff67ffffffffL & l) == 0L) - break; - if (kind > 70) - kind = 70; - jjCheckNAddStates(2, 4); - break; - case 29: - if ((0x1800000000L & l) != 0L) - jjCheckNAdd(30); - break; - case 30: - if ((0xffffff7fffffffffL & l) == 0L) - break; - if (kind > 70) - kind = 70; - jjCheckNAddStates(2, 4); - break; - case 33: - if (curChar == 35) - jjCheckNAdd(32); - break; - case 34: - if (curChar == 36) - jjCheckNAdd(32); - break; - case 35: - if ((0x1800000000L & l) != 0L) - jjCheckNAddTwoStates(30, 36); - break; - case 36: - if (curChar == 39 && kind > 71) - kind = 71; - break; - default : break; - } - } while(i != startsAt); - } - else if (curChar < 128) - { - long l = 1L << (curChar & 077); - do - { - switch(jjstateSet[--i]) - { - case 9: - if (kind > 70) - kind = 70; - jjCheckNAddStates(2, 4); - if (curChar == 92) - jjAddStates(16, 17); - break; - case 0: - if (curChar == 123) - jjCheckNAddStates(5, 8); - break; - case 1: - if ((0xdfffffffffffffffL & l) != 0L) - jjCheckNAddStates(5, 8); - break; - case 3: - jjAddStates(18, 19); - break; - case 6: - jjAddStates(20, 21); - break; - case 8: - if (curChar == 125 && kind > 66) - kind = 66; - break; - case 10: - if (curChar == 123) - jjCheckNAddStates(9, 12); - break; - case 11: - if ((0xdfffffffffffffffL & l) != 0L) - jjCheckNAddStates(9, 12); - break; - case 13: - jjAddStates(22, 23); - break; - case 16: - jjAddStates(24, 25); - break; - case 18: - if (curChar == 125 && kind > 67) - kind = 67; - break; - case 21: - case 23: - jjCheckNAddStates(13, 15); - break; - case 28: - if (kind > 70) - kind = 70; - jjCheckNAddStates(2, 4); - break; - case 30: - if ((0xf7ffffffffffffffL & l) == 0L) - break; - if (kind > 70) - kind = 70; - jjCheckNAddStates(2, 4); - break; - case 31: - if (curChar == 92) - jjAddStates(16, 17); - break; - case 32: - if (curChar != 123) - break; - if (kind > 70) - kind = 70; - jjCheckNAddStates(2, 4); - break; - default : break; - } - } while(i != startsAt); - } - else - { - int i2 = (curChar & 0xff) >> 6; - long l2 = 1L << (curChar & 077); - do - { - switch(jjstateSet[--i]) - { - case 9: - case 28: - case 30: - if ((jjbitVec0[i2] & l2) == 0L) - break; - if (kind > 70) - kind = 70; - jjCheckNAddStates(2, 4); - break; - case 1: - if ((jjbitVec0[i2] & l2) != 0L) - jjAddStates(5, 8); - break; - case 3: - if ((jjbitVec0[i2] & l2) != 0L) - jjAddStates(18, 19); - break; - case 6: - if ((jjbitVec0[i2] & l2) != 0L) - jjAddStates(20, 21); - break; - case 11: - if ((jjbitVec0[i2] & l2) != 0L) - jjAddStates(9, 12); - break; - case 13: - if ((jjbitVec0[i2] & l2) != 0L) - jjAddStates(22, 23); - break; - case 16: - if ((jjbitVec0[i2] & l2) != 0L) - jjAddStates(24, 25); - break; - case 21: - case 23: - if ((jjbitVec0[i2] & l2) != 0L) - jjCheckNAddStates(13, 15); - break; - default : break; - } - } while(i != startsAt); - } - if (kind != 0x7fffffff) - { - jjmatchedKind = kind; - jjmatchedPos = curPos; - kind = 0x7fffffff; - } - ++curPos; - if ((i = jjnewStateCnt) == (startsAt = 37 - (jjnewStateCnt = startsAt))) - return curPos; - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { return curPos; } - } -} -private final int jjStopStringLiteralDfa_7(int pos, long active0) -{ - switch (pos) - { - case 0: - if ((active0 & 0x400000000000L) != 0L) - return 3; - return -1; - case 1: - if ((active0 & 0x400000000000L) != 0L) - return 4; - return -1; - case 2: - if ((active0 & 0x400000000000L) != 0L) - return 6; - return -1; - default : - return -1; - } -} -private final int jjStartNfa_7(int pos, long active0) -{ - return jjMoveNfa_7(jjStopStringLiteralDfa_7(pos, active0), pos + 1); -} -private int jjMoveStringLiteralDfa0_7() -{ - switch(curChar) - { - case 45: - return jjMoveStringLiteralDfa1_7(0x400000000000L); - default : - return jjMoveNfa_7(8, 0); - } -} -private int jjMoveStringLiteralDfa1_7(long active0) -{ - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { - jjStopStringLiteralDfa_7(0, active0); - return 1; - } - switch(curChar) - { - case 45: - return jjMoveStringLiteralDfa2_7(active0, 0x400000000000L); - default : - break; - } - return jjStartNfa_7(0, active0); -} -private int jjMoveStringLiteralDfa2_7(long old0, long active0) -{ - if (((active0 &= old0)) == 0L) - return jjStartNfa_7(0, old0); - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { - jjStopStringLiteralDfa_7(1, active0); - return 2; - } - switch(curChar) - { - case 37: - return jjMoveStringLiteralDfa3_7(active0, 0x400000000000L); - default : - break; - } - return jjStartNfa_7(1, active0); -} -private int jjMoveStringLiteralDfa3_7(long old0, long active0) -{ - if (((active0 &= old0)) == 0L) - return jjStartNfa_7(1, old0); - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { - jjStopStringLiteralDfa_7(2, active0); - return 3; - } - switch(curChar) - { - case 62: - if ((active0 & 0x400000000000L) != 0L) - return jjStopAtPos(3, 46); - break; - default : - break; - } - return jjStartNfa_7(2, active0); -} -private int jjMoveNfa_7(int startState, int curPos) -{ - int startsAt = 0; - jjnewStateCnt = 8; - int i = 1; - jjstateSet[0] = startState; - int kind = 0x7fffffff; - for (;;) - { - if (++jjround == 0x7fffffff) - ReInitRounds(); - if (curChar < 64) - { - long l = 1L << curChar; - do - { - switch(jjstateSet[--i]) - { - case 4: - if ((0xffffffdfffffffffL & l) != 0L) - { - if (kind > 47) - kind = 47; - jjCheckNAddStates(26, 28); - } - else if (curChar == 37) - jjstateSet[jjnewStateCnt++] = 6; - break; - case 3: - if ((0xffffdfffffffffffL & l) != 0L) - { - if (kind > 47) - kind = 47; - jjCheckNAddStates(26, 28); - } - else if (curChar == 45) - jjstateSet[jjnewStateCnt++] = 5; - if (curChar == 45) - jjstateSet[jjnewStateCnt++] = 4; - break; - case 8: - if ((0xffffdfffffffffffL & l) != 0L) - { - if (kind > 47) - kind = 47; - jjCheckNAddStates(26, 28); - } - else if (curChar == 45) - jjAddStates(29, 30); - if (curChar == 45) - jjCheckNAdd(0); - break; - case 0: - if ((0xffffdfffffffffffL & l) == 0L) - break; - if (kind > 47) - kind = 47; - jjCheckNAddStates(26, 28); - break; - case 1: - if (curChar == 45) - jjCheckNAdd(0); - break; - case 2: - if (curChar == 45) - jjAddStates(29, 30); - break; - case 5: - if (curChar == 37) - jjstateSet[jjnewStateCnt++] = 6; - break; - case 6: - if ((0xbfffffffffffffffL & l) == 0L) - break; - if (kind > 47) - kind = 47; - jjCheckNAddStates(26, 28); - break; - case 7: - if (curChar == 45) - jjstateSet[jjnewStateCnt++] = 5; - break; - default : break; - } - } while(i != startsAt); - } - else if (curChar < 128) - { - long l = 1L << (curChar & 077); - do - { - switch(jjstateSet[--i]) - { - case 4: - case 6: - if (kind > 47) - kind = 47; - jjCheckNAddStates(26, 28); - break; - case 3: - case 0: - if (kind > 47) - kind = 47; - jjCheckNAddStates(26, 28); - break; - case 8: - if (kind > 47) - kind = 47; - jjCheckNAddStates(26, 28); - break; - default : break; - } - } while(i != startsAt); - } - else - { - int i2 = (curChar & 0xff) >> 6; - long l2 = 1L << (curChar & 077); - do - { - switch(jjstateSet[--i]) - { - case 4: - case 6: - if ((jjbitVec0[i2] & l2) == 0L) - break; - if (kind > 47) - kind = 47; - jjCheckNAddStates(26, 28); - break; - case 3: - case 0: - if ((jjbitVec0[i2] & l2) == 0L) - break; - if (kind > 47) - kind = 47; - jjCheckNAddStates(26, 28); - break; - case 8: - if ((jjbitVec0[i2] & l2) == 0L) - break; - if (kind > 47) - kind = 47; - jjCheckNAddStates(26, 28); - break; - default : break; - } - } while(i != startsAt); - } - if (kind != 0x7fffffff) - { - jjmatchedKind = kind; - jjmatchedPos = curPos; - kind = 0x7fffffff; - } - ++curPos; - if ((i = jjnewStateCnt) == (startsAt = 8 - (jjnewStateCnt = startsAt))) - return curPos; - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { return curPos; } - } -} -private final int jjStopStringLiteralDfa_13(int pos, long active0, long active1) -{ - switch (pos) - { - default : - return -1; - } -} -private final int jjStartNfa_13(int pos, long active0, long active1) -{ - return jjMoveNfa_13(jjStopStringLiteralDfa_13(pos, active0, active1), pos + 1); -} -private int jjMoveStringLiteralDfa0_13() -{ - switch(curChar) - { - case 34: - return jjStopAtPos(0, 65); - case 39: - return jjStopAtPos(0, 64); - default : - return jjMoveNfa_13(0, 0); - } -} -private int jjMoveNfa_13(int startState, int curPos) -{ - int startsAt = 0; - jjnewStateCnt = 1; - int i = 1; - jjstateSet[0] = startState; - int kind = 0x7fffffff; - for (;;) - { - if (++jjround == 0x7fffffff) - ReInitRounds(); - if (curChar < 64) - { - long l = 1L << curChar; - do - { - switch(jjstateSet[--i]) - { - case 0: - if ((0x100002600L & l) == 0L) - break; - kind = 21; - jjstateSet[jjnewStateCnt++] = 0; - break; - default : break; - } - } while(i != startsAt); - } - else if (curChar < 128) - { - long l = 1L << (curChar & 077); - do - { - switch(jjstateSet[--i]) - { - default : break; - } - } while(i != startsAt); - } - else - { - int i2 = (curChar & 0xff) >> 6; - long l2 = 1L << (curChar & 077); - do - { - switch(jjstateSet[--i]) - { - default : break; - } - } while(i != startsAt); - } - if (kind != 0x7fffffff) - { - jjmatchedKind = kind; - jjmatchedPos = curPos; - kind = 0x7fffffff; - } - ++curPos; - if ((i = jjnewStateCnt) == (startsAt = 1 - (jjnewStateCnt = startsAt))) - return curPos; - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { return curPos; } - } -} -private final int jjStopStringLiteralDfa_16(int pos, long active0) -{ - switch (pos) - { - default : - return -1; - } -} -private final int jjStartNfa_16(int pos, long active0) -{ - return jjMoveNfa_16(jjStopStringLiteralDfa_16(pos, active0), pos + 1); -} -private int jjMoveStringLiteralDfa0_16() -{ - switch(curChar) - { - case 60: - jjmatchedKind = 22; - return jjMoveStringLiteralDfa1_16(0x1ff800000L); - default : - return jjMoveNfa_16(0, 0); - } -} -private int jjMoveStringLiteralDfa1_16(long active0) -{ - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { - jjStopStringLiteralDfa_16(0, active0); - return 1; - } - switch(curChar) - { - case 33: - return jjMoveStringLiteralDfa2_16(active0, 0xd000000L); - case 37: - if ((active0 & 0x80000000L) != 0L) - { - jjmatchedKind = 31; - jjmatchedPos = 1; - } - return jjMoveStringLiteralDfa2_16(active0, 0x170000000L); - case 47: - if ((active0 & 0x800000L) != 0L) - return jjStopAtPos(1, 23); - break; - case 63: - if ((active0 & 0x2000000L) != 0L) - return jjStopAtPos(1, 25); - break; - default : - break; - } - return jjStartNfa_16(0, active0); -} -private int jjMoveStringLiteralDfa2_16(long old0, long active0) -{ - if (((active0 &= old0)) == 0L) - return jjStartNfa_16(0, old0); - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { - jjStopStringLiteralDfa_16(1, active0); - return 2; - } - switch(curChar) - { - case 33: - if ((active0 & 0x20000000L) != 0L) - return jjStopAtPos(2, 29); - break; - case 45: - return jjMoveStringLiteralDfa3_16(active0, 0x11000000L); - case 61: - if ((active0 & 0x40000000L) != 0L) - return jjStopAtPos(2, 30); - break; - case 64: - if ((active0 & 0x100000000L) != 0L) - return jjStopAtPos(2, 32); - break; - case 91: - return jjMoveStringLiteralDfa3_16(active0, 0x8000000L); - case 68: - case 100: - return jjMoveStringLiteralDfa3_16(active0, 0x4000000L); - default : - break; - } - return jjStartNfa_16(1, active0); -} -private int jjMoveStringLiteralDfa3_16(long old0, long active0) -{ - if (((active0 &= old0)) == 0L) - return jjStartNfa_16(1, old0); - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { - jjStopStringLiteralDfa_16(2, active0); - return 3; - } - switch(curChar) - { - case 45: - if ((active0 & 0x1000000L) != 0L) - return jjStopAtPos(3, 24); - else if ((active0 & 0x10000000L) != 0L) - return jjStopAtPos(3, 28); - break; - case 67: - case 99: - return jjMoveStringLiteralDfa4_16(active0, 0x8000000L); - case 79: - case 111: - return jjMoveStringLiteralDfa4_16(active0, 0x4000000L); - default : - break; - } - return jjStartNfa_16(2, active0); -} -private int jjMoveStringLiteralDfa4_16(long old0, long active0) -{ - if (((active0 &= old0)) == 0L) - return jjStartNfa_16(2, old0); - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { - jjStopStringLiteralDfa_16(3, active0); - return 4; - } - switch(curChar) - { - case 67: - case 99: - return jjMoveStringLiteralDfa5_16(active0, 0x4000000L); - case 68: - case 100: - return jjMoveStringLiteralDfa5_16(active0, 0x8000000L); - default : - break; - } - return jjStartNfa_16(3, active0); -} -private int jjMoveStringLiteralDfa5_16(long old0, long active0) -{ - if (((active0 &= old0)) == 0L) - return jjStartNfa_16(3, old0); - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { - jjStopStringLiteralDfa_16(4, active0); - return 5; - } - switch(curChar) - { - case 65: - case 97: - return jjMoveStringLiteralDfa6_16(active0, 0x8000000L); - case 84: - case 116: - return jjMoveStringLiteralDfa6_16(active0, 0x4000000L); - default : - break; - } - return jjStartNfa_16(4, active0); -} -private int jjMoveStringLiteralDfa6_16(long old0, long active0) -{ - if (((active0 &= old0)) == 0L) - return jjStartNfa_16(4, old0); - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { - jjStopStringLiteralDfa_16(5, active0); - return 6; - } - switch(curChar) - { - case 84: - case 116: - return jjMoveStringLiteralDfa7_16(active0, 0x8000000L); - case 89: - case 121: - return jjMoveStringLiteralDfa7_16(active0, 0x4000000L); - default : - break; - } - return jjStartNfa_16(5, active0); -} -private int jjMoveStringLiteralDfa7_16(long old0, long active0) -{ - if (((active0 &= old0)) == 0L) - return jjStartNfa_16(5, old0); - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { - jjStopStringLiteralDfa_16(6, active0); - return 7; - } - switch(curChar) - { - case 65: - case 97: - return jjMoveStringLiteralDfa8_16(active0, 0x8000000L); - case 80: - case 112: - return jjMoveStringLiteralDfa8_16(active0, 0x4000000L); - default : - break; - } - return jjStartNfa_16(6, active0); -} -private int jjMoveStringLiteralDfa8_16(long old0, long active0) -{ - if (((active0 &= old0)) == 0L) - return jjStartNfa_16(6, old0); - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { - jjStopStringLiteralDfa_16(7, active0); - return 8; - } - switch(curChar) - { - case 91: - if ((active0 & 0x8000000L) != 0L) - return jjStopAtPos(8, 27); - break; - case 69: - case 101: - if ((active0 & 0x4000000L) != 0L) - return jjStopAtPos(8, 26); - break; - default : - break; - } - return jjStartNfa_16(7, active0); -} -private int jjMoveNfa_16(int startState, int curPos) -{ - int startsAt = 0; - jjnewStateCnt = 1; - int i = 1; - jjstateSet[0] = startState; - int kind = 0x7fffffff; - for (;;) - { - if (++jjround == 0x7fffffff) - ReInitRounds(); - if (curChar < 64) - { - long l = 1L << curChar; - do - { - switch(jjstateSet[--i]) - { - case 0: - if ((0x100002600L & l) == 0L) - break; - kind = 20; - jjstateSet[jjnewStateCnt++] = 0; - break; - default : break; - } - } while(i != startsAt); - } - else if (curChar < 128) - { - long l = 1L << (curChar & 077); - do - { - switch(jjstateSet[--i]) - { - default : break; - } - } while(i != startsAt); - } - else - { - int i2 = (curChar & 0xff) >> 6; - long l2 = 1L << (curChar & 077); - do - { - switch(jjstateSet[--i]) - { - default : break; - } - } while(i != startsAt); - } - if (kind != 0x7fffffff) - { - jjmatchedKind = kind; - jjmatchedPos = curPos; - kind = 0x7fffffff; - } - ++curPos; - if ((i = jjnewStateCnt) == (startsAt = 1 - (jjnewStateCnt = startsAt))) - return curPos; - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { return curPos; } - } -} private final int jjStopStringLiteralDfa_12(int pos, long active0) { switch (pos) @@ -1469,11 +473,14 @@ private int jjMoveStringLiteralDfa0_12() { switch(curChar) { - case 60: - jjmatchedKind = 22; - return jjMoveStringLiteralDfa1_12(0x1ff800000L); + case 47: + return jjMoveStringLiteralDfa1_12(0x2000000000000000L); + case 61: + return jjStopAtPos(0, 62); + case 62: + return jjStopAtPos(0, 59); default : - return jjMoveNfa_12(10, 0); + return jjMoveNfa_12(1, 0); } } private int jjMoveStringLiteralDfa1_12(long active0) @@ -1484,591 +491,6 @@ private int jjMoveStringLiteralDfa1_12(long active0) return 1; } switch(curChar) - { - case 33: - return jjMoveStringLiteralDfa2_12(active0, 0xd000000L); - case 37: - if ((active0 & 0x80000000L) != 0L) - { - jjmatchedKind = 31; - jjmatchedPos = 1; - } - return jjMoveStringLiteralDfa2_12(active0, 0x170000000L); - case 47: - if ((active0 & 0x800000L) != 0L) - return jjStopAtPos(1, 23); - break; - case 63: - if ((active0 & 0x2000000L) != 0L) - return jjStopAtPos(1, 25); - break; - default : - break; - } - return jjStartNfa_12(0, active0); -} -private int jjMoveStringLiteralDfa2_12(long old0, long active0) -{ - if (((active0 &= old0)) == 0L) - return jjStartNfa_12(0, old0); - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { - jjStopStringLiteralDfa_12(1, active0); - return 2; - } - switch(curChar) - { - case 33: - if ((active0 & 0x20000000L) != 0L) - return jjStopAtPos(2, 29); - break; - case 45: - return jjMoveStringLiteralDfa3_12(active0, 0x11000000L); - case 61: - if ((active0 & 0x40000000L) != 0L) - return jjStopAtPos(2, 30); - break; - case 64: - if ((active0 & 0x100000000L) != 0L) - return jjStopAtPos(2, 32); - break; - case 91: - return jjMoveStringLiteralDfa3_12(active0, 0x8000000L); - case 68: - case 100: - return jjMoveStringLiteralDfa3_12(active0, 0x4000000L); - default : - break; - } - return jjStartNfa_12(1, active0); -} -private int jjMoveStringLiteralDfa3_12(long old0, long active0) -{ - if (((active0 &= old0)) == 0L) - return jjStartNfa_12(1, old0); - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { - jjStopStringLiteralDfa_12(2, active0); - return 3; - } - switch(curChar) - { - case 45: - if ((active0 & 0x1000000L) != 0L) - return jjStopAtPos(3, 24); - else if ((active0 & 0x10000000L) != 0L) - return jjStopAtPos(3, 28); - break; - case 67: - case 99: - return jjMoveStringLiteralDfa4_12(active0, 0x8000000L); - case 79: - case 111: - return jjMoveStringLiteralDfa4_12(active0, 0x4000000L); - default : - break; - } - return jjStartNfa_12(2, active0); -} -private int jjMoveStringLiteralDfa4_12(long old0, long active0) -{ - if (((active0 &= old0)) == 0L) - return jjStartNfa_12(2, old0); - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { - jjStopStringLiteralDfa_12(3, active0); - return 4; - } - switch(curChar) - { - case 67: - case 99: - return jjMoveStringLiteralDfa5_12(active0, 0x4000000L); - case 68: - case 100: - return jjMoveStringLiteralDfa5_12(active0, 0x8000000L); - default : - break; - } - return jjStartNfa_12(3, active0); -} -private int jjMoveStringLiteralDfa5_12(long old0, long active0) -{ - if (((active0 &= old0)) == 0L) - return jjStartNfa_12(3, old0); - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { - jjStopStringLiteralDfa_12(4, active0); - return 5; - } - switch(curChar) - { - case 65: - case 97: - return jjMoveStringLiteralDfa6_12(active0, 0x8000000L); - case 84: - case 116: - return jjMoveStringLiteralDfa6_12(active0, 0x4000000L); - default : - break; - } - return jjStartNfa_12(4, active0); -} -private int jjMoveStringLiteralDfa6_12(long old0, long active0) -{ - if (((active0 &= old0)) == 0L) - return jjStartNfa_12(4, old0); - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { - jjStopStringLiteralDfa_12(5, active0); - return 6; - } - switch(curChar) - { - case 84: - case 116: - return jjMoveStringLiteralDfa7_12(active0, 0x8000000L); - case 89: - case 121: - return jjMoveStringLiteralDfa7_12(active0, 0x4000000L); - default : - break; - } - return jjStartNfa_12(5, active0); -} -private int jjMoveStringLiteralDfa7_12(long old0, long active0) -{ - if (((active0 &= old0)) == 0L) - return jjStartNfa_12(5, old0); - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { - jjStopStringLiteralDfa_12(6, active0); - return 7; - } - switch(curChar) - { - case 65: - case 97: - return jjMoveStringLiteralDfa8_12(active0, 0x8000000L); - case 80: - case 112: - return jjMoveStringLiteralDfa8_12(active0, 0x4000000L); - default : - break; - } - return jjStartNfa_12(6, active0); -} -private int jjMoveStringLiteralDfa8_12(long old0, long active0) -{ - if (((active0 &= old0)) == 0L) - return jjStartNfa_12(6, old0); - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { - jjStopStringLiteralDfa_12(7, active0); - return 8; - } - switch(curChar) - { - case 91: - if ((active0 & 0x8000000L) != 0L) - return jjStopAtPos(8, 27); - break; - case 69: - case 101: - if ((active0 & 0x4000000L) != 0L) - return jjStopAtPos(8, 26); - break; - default : - break; - } - return jjStartNfa_12(7, active0); -} -private int jjMoveNfa_12(int startState, int curPos) -{ - int startsAt = 0; - jjnewStateCnt = 18; - int i = 1; - jjstateSet[0] = startState; - int kind = 0x7fffffff; - for (;;) - { - if (++jjround == 0x7fffffff) - ReInitRounds(); - if (curChar < 64) - { - long l = 1L << curChar; - do - { - switch(jjstateSet[--i]) - { - case 10: - if ((0xefffffefffffffffL & l) != 0L) - { - if (kind > 34) - kind = 34; - jjCheckNAddStates(31, 33); - } - else if (curChar == 36) - jjstateSet[jjnewStateCnt++] = 13; - if ((0x100002600L & l) != 0L) - { - if (kind > 21) - kind = 21; - jjCheckNAdd(0); - } - else if (curChar == 36) - jjstateSet[jjnewStateCnt++] = 1; - break; - case 0: - if ((0x100002600L & l) == 0L) - break; - if (kind > 21) - kind = 21; - jjCheckNAdd(0); - break; - case 2: - if ((0xffffff7bffffffffL & l) != 0L) - jjCheckNAddStates(34, 37); - break; - case 3: - if (curChar == 34) - jjCheckNAddTwoStates(4, 5); - break; - case 4: - if ((0xfffffffbffffffffL & l) != 0L) - jjCheckNAddTwoStates(4, 5); - break; - case 5: - if (curChar == 34) - jjCheckNAddStates(34, 37); - break; - case 6: - if (curChar == 39) - jjCheckNAddTwoStates(7, 8); - break; - case 7: - if ((0xffffff7fffffffffL & l) != 0L) - jjCheckNAddTwoStates(7, 8); - break; - case 8: - if (curChar == 39) - jjCheckNAddStates(34, 37); - break; - case 11: - if ((0xefffffefffffffffL & l) == 0L) - break; - if (kind > 34) - kind = 34; - jjCheckNAddStates(31, 33); - break; - case 12: - if (curChar == 36) - jjstateSet[jjnewStateCnt++] = 13; - break; - case 13: - if ((0xefffffffffffffffL & l) == 0L) - break; - if (kind > 34) - kind = 34; - jjCheckNAddStates(31, 33); - break; - case 16: - if (curChar == 35) - jjCheckNAdd(15); - break; - case 17: - if (curChar == 36) - jjCheckNAdd(15); - break; - default : break; - } - } while(i != startsAt); - } - else if (curChar < 128) - { - long l = 1L << (curChar & 077); - do - { - switch(jjstateSet[--i]) - { - case 10: - if (kind > 34) - kind = 34; - jjCheckNAddStates(31, 33); - if (curChar == 92) - jjAddStates(24, 25); - break; - case 1: - if (curChar == 123) - jjCheckNAddStates(34, 37); - break; - case 2: - if ((0xdfffffffffffffffL & l) != 0L) - jjCheckNAddStates(34, 37); - break; - case 4: - jjAddStates(38, 39); - break; - case 7: - jjAddStates(40, 41); - break; - case 9: - if (curChar == 125 && kind > 33) - kind = 33; - break; - case 11: - if (kind > 34) - kind = 34; - jjCheckNAddStates(31, 33); - break; - case 13: - if ((0xf7ffffffffffffffL & l) == 0L) - break; - if (kind > 34) - kind = 34; - jjCheckNAddStates(31, 33); - break; - case 14: - if (curChar == 92) - jjAddStates(24, 25); - break; - case 15: - if (curChar != 123) - break; - if (kind > 34) - kind = 34; - jjCheckNAddStates(31, 33); - break; - default : break; - } - } while(i != startsAt); - } - else - { - int i2 = (curChar & 0xff) >> 6; - long l2 = 1L << (curChar & 077); - do - { - switch(jjstateSet[--i]) - { - case 10: - case 11: - case 13: - if ((jjbitVec0[i2] & l2) == 0L) - break; - if (kind > 34) - kind = 34; - jjCheckNAddStates(31, 33); - break; - case 2: - if ((jjbitVec0[i2] & l2) != 0L) - jjAddStates(34, 37); - break; - case 4: - if ((jjbitVec0[i2] & l2) != 0L) - jjAddStates(38, 39); - break; - case 7: - if ((jjbitVec0[i2] & l2) != 0L) - jjAddStates(40, 41); - break; - default : break; - } - } while(i != startsAt); - } - if (kind != 0x7fffffff) - { - jjmatchedKind = kind; - jjmatchedPos = curPos; - kind = 0x7fffffff; - } - ++curPos; - if ((i = jjnewStateCnt) == (startsAt = 18 - (jjnewStateCnt = startsAt))) - return curPos; - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { return curPos; } - } -} -private final int jjStopStringLiteralDfa_8(int pos, long active0) -{ - switch (pos) - { - case 0: - if ((active0 & 0x100000000000L) != 0L) - return 2; - return -1; - default : - return -1; - } -} -private final int jjStartNfa_8(int pos, long active0) -{ - return jjMoveNfa_8(jjStopStringLiteralDfa_8(pos, active0), pos + 1); -} -private int jjMoveStringLiteralDfa0_8() -{ - switch(curChar) - { - case 37: - return jjMoveStringLiteralDfa1_8(0x100000000000L); - default : - return jjMoveNfa_8(3, 0); - } -} -private int jjMoveStringLiteralDfa1_8(long active0) -{ - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { - jjStopStringLiteralDfa_8(0, active0); - return 1; - } - switch(curChar) - { - case 62: - if ((active0 & 0x100000000000L) != 0L) - return jjStopAtPos(1, 44); - break; - default : - break; - } - return jjStartNfa_8(0, active0); -} -private int jjMoveNfa_8(int startState, int curPos) -{ - int startsAt = 0; - jjnewStateCnt = 3; - int i = 1; - jjstateSet[0] = startState; - int kind = 0x7fffffff; - for (;;) - { - if (++jjround == 0x7fffffff) - ReInitRounds(); - if (curChar < 64) - { - long l = 1L << curChar; - do - { - switch(jjstateSet[--i]) - { - case 3: - if ((0xffffffdfffffffffL & l) != 0L) - { - if (kind > 45) - kind = 45; - jjCheckNAddTwoStates(0, 1); - } - else if (curChar == 37) - jjstateSet[jjnewStateCnt++] = 2; - break; - case 0: - if ((0xffffffdfffffffffL & l) == 0L) - break; - if (kind > 45) - kind = 45; - jjCheckNAddTwoStates(0, 1); - break; - case 1: - if (curChar == 37) - jjstateSet[jjnewStateCnt++] = 2; - break; - case 2: - if ((0xbfffffffffffffffL & l) == 0L) - break; - if (kind > 45) - kind = 45; - jjCheckNAddTwoStates(0, 1); - break; - default : break; - } - } while(i != startsAt); - } - else if (curChar < 128) - { - long l = 1L << (curChar & 077); - do - { - switch(jjstateSet[--i]) - { - case 3: - case 0: - case 2: - if (kind > 45) - kind = 45; - jjCheckNAddTwoStates(0, 1); - break; - default : break; - } - } while(i != startsAt); - } - else - { - int i2 = (curChar & 0xff) >> 6; - long l2 = 1L << (curChar & 077); - do - { - switch(jjstateSet[--i]) - { - case 3: - case 0: - case 2: - if ((jjbitVec0[i2] & l2) == 0L) - break; - if (kind > 45) - kind = 45; - jjCheckNAddTwoStates(0, 1); - break; - default : break; - } - } while(i != startsAt); - } - if (kind != 0x7fffffff) - { - jjmatchedKind = kind; - jjmatchedPos = curPos; - kind = 0x7fffffff; - } - ++curPos; - if ((i = jjnewStateCnt) == (startsAt = 3 - (jjnewStateCnt = startsAt))) - return curPos; - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { return curPos; } - } -} -private final int jjStopStringLiteralDfa_11(int pos, long active0) -{ - switch (pos) - { - default : - return -1; - } -} -private final int jjStartNfa_11(int pos, long active0) -{ - return jjMoveNfa_11(jjStopStringLiteralDfa_11(pos, active0), pos + 1); -} -private int jjMoveStringLiteralDfa0_11() -{ - switch(curChar) - { - case 47: - return jjMoveStringLiteralDfa1_11(0x2000000000000000L); - case 61: - return jjStopAtPos(0, 62); - case 62: - return jjStopAtPos(0, 59); - default : - return jjMoveNfa_11(1, 0); - } -} -private int jjMoveStringLiteralDfa1_11(long active0) -{ - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { - jjStopStringLiteralDfa_11(0, active0); - return 1; - } - switch(curChar) { case 62: if ((active0 & 0x2000000000000000L) != 0L) @@ -2077,9 +499,9 @@ private int jjMoveStringLiteralDfa1_11(long active0) default : break; } - return jjStartNfa_11(0, active0); + return jjStartNfa_12(0, active0); } -private int jjMoveNfa_11(int startState, int curPos) +private int jjMoveNfa_12(int startState, int curPos) { int startsAt = 0; jjnewStateCnt = 6; @@ -2165,6 +587,9 @@ private int jjMoveNfa_11(int startState, int curPos) } else { + int hiByte = (int)(curChar >> 8); + int i1 = hiByte >> 6; + long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); do @@ -2173,7 +598,7 @@ private int jjMoveNfa_11(int startState, int curPos) { case 1: case 2: - if ((jjbitVec1[i2] & l2) == 0L) + if (!jjCanMove_1(hiByte, i1, i2, l1, l2)) break; if (kind > 58) kind = 58; @@ -2196,11 +621,599 @@ private int jjMoveNfa_11(int startState, int curPos) catch(java.io.IOException e) { return curPos; } } } -private int jjMoveStringLiteralDfa0_15() +private final int jjStopStringLiteralDfa_13(int pos, long active0) { - return jjMoveNfa_15(1, 0); + switch (pos) + { + default : + return -1; + } } -private int jjMoveNfa_15(int startState, int curPos) +private final int jjStartNfa_13(int pos, long active0) +{ + return jjMoveNfa_13(jjStopStringLiteralDfa_13(pos, active0), pos + 1); +} +private int jjMoveStringLiteralDfa0_13() +{ + switch(curChar) + { + case 60: + jjmatchedKind = 22; + return jjMoveStringLiteralDfa1_13(0x1ff800000L); + default : + return jjMoveNfa_13(10, 0); + } +} +private int jjMoveStringLiteralDfa1_13(long active0) +{ + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { + jjStopStringLiteralDfa_13(0, active0); + return 1; + } + switch(curChar) + { + case 33: + return jjMoveStringLiteralDfa2_13(active0, 0xd000000L); + case 37: + if ((active0 & 0x80000000L) != 0L) + { + jjmatchedKind = 31; + jjmatchedPos = 1; + } + return jjMoveStringLiteralDfa2_13(active0, 0x170000000L); + case 47: + if ((active0 & 0x800000L) != 0L) + return jjStopAtPos(1, 23); + break; + case 63: + if ((active0 & 0x2000000L) != 0L) + return jjStopAtPos(1, 25); + break; + default : + break; + } + return jjStartNfa_13(0, active0); +} +private int jjMoveStringLiteralDfa2_13(long old0, long active0) +{ + if (((active0 &= old0)) == 0L) + return jjStartNfa_13(0, old0); + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { + jjStopStringLiteralDfa_13(1, active0); + return 2; + } + switch(curChar) + { + case 33: + if ((active0 & 0x20000000L) != 0L) + return jjStopAtPos(2, 29); + break; + case 45: + return jjMoveStringLiteralDfa3_13(active0, 0x11000000L); + case 61: + if ((active0 & 0x40000000L) != 0L) + return jjStopAtPos(2, 30); + break; + case 64: + if ((active0 & 0x100000000L) != 0L) + return jjStopAtPos(2, 32); + break; + case 91: + return jjMoveStringLiteralDfa3_13(active0, 0x8000000L); + case 68: + case 100: + return jjMoveStringLiteralDfa3_13(active0, 0x4000000L); + default : + break; + } + return jjStartNfa_13(1, active0); +} +private int jjMoveStringLiteralDfa3_13(long old0, long active0) +{ + if (((active0 &= old0)) == 0L) + return jjStartNfa_13(1, old0); + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { + jjStopStringLiteralDfa_13(2, active0); + return 3; + } + switch(curChar) + { + case 45: + if ((active0 & 0x1000000L) != 0L) + return jjStopAtPos(3, 24); + else if ((active0 & 0x10000000L) != 0L) + return jjStopAtPos(3, 28); + break; + case 67: + case 99: + return jjMoveStringLiteralDfa4_13(active0, 0x8000000L); + case 79: + case 111: + return jjMoveStringLiteralDfa4_13(active0, 0x4000000L); + default : + break; + } + return jjStartNfa_13(2, active0); +} +private int jjMoveStringLiteralDfa4_13(long old0, long active0) +{ + if (((active0 &= old0)) == 0L) + return jjStartNfa_13(2, old0); + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { + jjStopStringLiteralDfa_13(3, active0); + return 4; + } + switch(curChar) + { + case 67: + case 99: + return jjMoveStringLiteralDfa5_13(active0, 0x4000000L); + case 68: + case 100: + return jjMoveStringLiteralDfa5_13(active0, 0x8000000L); + default : + break; + } + return jjStartNfa_13(3, active0); +} +private int jjMoveStringLiteralDfa5_13(long old0, long active0) +{ + if (((active0 &= old0)) == 0L) + return jjStartNfa_13(3, old0); + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { + jjStopStringLiteralDfa_13(4, active0); + return 5; + } + switch(curChar) + { + case 65: + case 97: + return jjMoveStringLiteralDfa6_13(active0, 0x8000000L); + case 84: + case 116: + return jjMoveStringLiteralDfa6_13(active0, 0x4000000L); + default : + break; + } + return jjStartNfa_13(4, active0); +} +private int jjMoveStringLiteralDfa6_13(long old0, long active0) +{ + if (((active0 &= old0)) == 0L) + return jjStartNfa_13(4, old0); + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { + jjStopStringLiteralDfa_13(5, active0); + return 6; + } + switch(curChar) + { + case 84: + case 116: + return jjMoveStringLiteralDfa7_13(active0, 0x8000000L); + case 89: + case 121: + return jjMoveStringLiteralDfa7_13(active0, 0x4000000L); + default : + break; + } + return jjStartNfa_13(5, active0); +} +private int jjMoveStringLiteralDfa7_13(long old0, long active0) +{ + if (((active0 &= old0)) == 0L) + return jjStartNfa_13(5, old0); + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { + jjStopStringLiteralDfa_13(6, active0); + return 7; + } + switch(curChar) + { + case 65: + case 97: + return jjMoveStringLiteralDfa8_13(active0, 0x8000000L); + case 80: + case 112: + return jjMoveStringLiteralDfa8_13(active0, 0x4000000L); + default : + break; + } + return jjStartNfa_13(6, active0); +} +private int jjMoveStringLiteralDfa8_13(long old0, long active0) +{ + if (((active0 &= old0)) == 0L) + return jjStartNfa_13(6, old0); + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { + jjStopStringLiteralDfa_13(7, active0); + return 8; + } + switch(curChar) + { + case 91: + if ((active0 & 0x8000000L) != 0L) + return jjStopAtPos(8, 27); + break; + case 69: + case 101: + if ((active0 & 0x4000000L) != 0L) + return jjStopAtPos(8, 26); + break; + default : + break; + } + return jjStartNfa_13(7, active0); +} +private int jjMoveNfa_13(int startState, int curPos) +{ + int startsAt = 0; + jjnewStateCnt = 18; + int i = 1; + jjstateSet[0] = startState; + int kind = 0x7fffffff; + for (;;) + { + if (++jjround == 0x7fffffff) + ReInitRounds(); + if (curChar < 64) + { + long l = 1L << curChar; + do + { + switch(jjstateSet[--i]) + { + case 10: + if ((0xefffffefffffffffL & l) != 0L) + { + if (kind > 34) + kind = 34; + jjCheckNAddStates(24, 26); + } + else if (curChar == 36) + jjstateSet[jjnewStateCnt++] = 13; + if ((0x100002600L & l) != 0L) + { + if (kind > 21) + kind = 21; + jjCheckNAdd(0); + } + else if (curChar == 36) + jjstateSet[jjnewStateCnt++] = 1; + break; + case 0: + if ((0x100002600L & l) == 0L) + break; + if (kind > 21) + kind = 21; + jjCheckNAdd(0); + break; + case 2: + if ((0xffffff7bffffffffL & l) != 0L) + jjCheckNAddStates(27, 30); + break; + case 3: + if (curChar == 34) + jjCheckNAddTwoStates(4, 5); + break; + case 4: + if ((0xfffffffbffffffffL & l) != 0L) + jjCheckNAddTwoStates(4, 5); + break; + case 5: + if (curChar == 34) + jjCheckNAddStates(27, 30); + break; + case 6: + if (curChar == 39) + jjCheckNAddTwoStates(7, 8); + break; + case 7: + if ((0xffffff7fffffffffL & l) != 0L) + jjCheckNAddTwoStates(7, 8); + break; + case 8: + if (curChar == 39) + jjCheckNAddStates(27, 30); + break; + case 11: + if ((0xefffffefffffffffL & l) == 0L) + break; + if (kind > 34) + kind = 34; + jjCheckNAddStates(24, 26); + break; + case 12: + if (curChar == 36) + jjstateSet[jjnewStateCnt++] = 13; + break; + case 13: + if ((0xefffffffffffffffL & l) == 0L) + break; + if (kind > 34) + kind = 34; + jjCheckNAddStates(24, 26); + break; + case 16: + if (curChar == 35) + jjCheckNAdd(15); + break; + case 17: + if (curChar == 36) + jjCheckNAdd(15); + break; + default : break; + } + } while(i != startsAt); + } + else if (curChar < 128) + { + long l = 1L << (curChar & 077); + do + { + switch(jjstateSet[--i]) + { + case 10: + if (kind > 34) + kind = 34; + jjCheckNAddStates(24, 26); + if (curChar == 92) + jjAddStates(22, 23); + break; + case 1: + if (curChar == 123) + jjCheckNAddStates(27, 30); + break; + case 2: + if ((0xdfffffffffffffffL & l) != 0L) + jjCheckNAddStates(27, 30); + break; + case 4: + jjAddStates(31, 32); + break; + case 7: + jjAddStates(33, 34); + break; + case 9: + if (curChar == 125 && kind > 33) + kind = 33; + break; + case 11: + if (kind > 34) + kind = 34; + jjCheckNAddStates(24, 26); + break; + case 13: + if ((0xf7ffffffffffffffL & l) == 0L) + break; + if (kind > 34) + kind = 34; + jjCheckNAddStates(24, 26); + break; + case 14: + if (curChar == 92) + jjAddStates(22, 23); + break; + case 15: + if (curChar != 123) + break; + if (kind > 34) + kind = 34; + jjCheckNAddStates(24, 26); + break; + default : break; + } + } while(i != startsAt); + } + else + { + int hiByte = (int)(curChar >> 8); + int i1 = hiByte >> 6; + long l1 = 1L << (hiByte & 077); + int i2 = (curChar & 0xff) >> 6; + long l2 = 1L << (curChar & 077); + do + { + switch(jjstateSet[--i]) + { + case 10: + case 11: + case 13: + if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) + break; + if (kind > 34) + kind = 34; + jjCheckNAddStates(24, 26); + break; + case 2: + if (jjCanMove_0(hiByte, i1, i2, l1, l2)) + jjAddStates(27, 30); + break; + case 4: + if (jjCanMove_0(hiByte, i1, i2, l1, l2)) + jjAddStates(31, 32); + break; + case 7: + if (jjCanMove_0(hiByte, i1, i2, l1, l2)) + jjAddStates(33, 34); + break; + default : break; + } + } while(i != startsAt); + } + if (kind != 0x7fffffff) + { + jjmatchedKind = kind; + jjmatchedPos = curPos; + kind = 0x7fffffff; + } + ++curPos; + if ((i = jjnewStateCnt) == (startsAt = 18 - (jjnewStateCnt = startsAt))) + return curPos; + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { return curPos; } + } +} +private final int jjStopStringLiteralDfa_10(int pos, long active0) +{ + switch (pos) + { + case 0: + if ((active0 & 0x40000000000L) != 0L) + return 2; + return -1; + default : + return -1; + } +} +private final int jjStartNfa_10(int pos, long active0) +{ + return jjMoveNfa_10(jjStopStringLiteralDfa_10(pos, active0), pos + 1); +} +private int jjMoveStringLiteralDfa0_10() +{ + switch(curChar) + { + case 37: + return jjMoveStringLiteralDfa1_10(0x40000000000L); + default : + return jjMoveNfa_10(3, 0); + } +} +private int jjMoveStringLiteralDfa1_10(long active0) +{ + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { + jjStopStringLiteralDfa_10(0, active0); + return 1; + } + switch(curChar) + { + case 62: + if ((active0 & 0x40000000000L) != 0L) + return jjStopAtPos(1, 42); + break; + default : + break; + } + return jjStartNfa_10(0, active0); +} +private int jjMoveNfa_10(int startState, int curPos) +{ + int startsAt = 0; + jjnewStateCnt = 3; + int i = 1; + jjstateSet[0] = startState; + int kind = 0x7fffffff; + for (;;) + { + if (++jjround == 0x7fffffff) + ReInitRounds(); + if (curChar < 64) + { + long l = 1L << curChar; + do + { + switch(jjstateSet[--i]) + { + case 3: + if ((0xffffffdfffffffffL & l) != 0L) + { + if (kind > 43) + kind = 43; + jjCheckNAddTwoStates(0, 1); + } + else if (curChar == 37) + jjstateSet[jjnewStateCnt++] = 2; + break; + case 0: + if ((0xffffffdfffffffffL & l) == 0L) + break; + if (kind > 43) + kind = 43; + jjCheckNAddTwoStates(0, 1); + break; + case 1: + if (curChar == 37) + jjstateSet[jjnewStateCnt++] = 2; + break; + case 2: + if ((0xbfffffffffffffffL & l) == 0L) + break; + if (kind > 43) + kind = 43; + jjCheckNAddTwoStates(0, 1); + break; + default : break; + } + } while(i != startsAt); + } + else if (curChar < 128) + { + long l = 1L << (curChar & 077); + do + { + switch(jjstateSet[--i]) + { + case 3: + case 0: + case 2: + if (kind > 43) + kind = 43; + jjCheckNAddTwoStates(0, 1); + break; + default : break; + } + } while(i != startsAt); + } + else + { + int hiByte = (int)(curChar >> 8); + int i1 = hiByte >> 6; + long l1 = 1L << (hiByte & 077); + int i2 = (curChar & 0xff) >> 6; + long l2 = 1L << (curChar & 077); + do + { + switch(jjstateSet[--i]) + { + case 3: + case 0: + case 2: + if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) + break; + if (kind > 43) + kind = 43; + jjCheckNAddTwoStates(0, 1); + break; + default : break; + } + } while(i != startsAt); + } + if (kind != 0x7fffffff) + { + jjmatchedKind = kind; + jjmatchedPos = curPos; + kind = 0x7fffffff; + } + ++curPos; + if ((i = jjnewStateCnt) == (startsAt = 3 - (jjnewStateCnt = startsAt))) + return curPos; + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { return curPos; } + } +} +private int jjMoveStringLiteralDfa0_16() +{ + return jjMoveNfa_16(1, 0); +} +private int jjMoveNfa_16(int startState, int curPos) { int startsAt = 0; jjnewStateCnt = 3; @@ -2270,6 +1283,9 @@ private int jjMoveNfa_15(int startState, int curPos) } else { + int hiByte = (int)(curChar >> 8); + int i1 = hiByte >> 6; + long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); do @@ -2278,7 +1294,7 @@ private int jjMoveNfa_15(int startState, int curPos) { case 1: case 2: - if ((jjbitVec1[i2] & l2) == 0L) + if (!jjCanMove_1(hiByte, i1, i2, l1, l2)) break; if (kind > 35) kind = 35; @@ -2301,7 +1317,7 @@ private int jjMoveNfa_15(int startState, int curPos) catch(java.io.IOException e) { return curPos; } } } -private final int jjStopStringLiteralDfa_1(int pos, long active0, long active1) +private final int jjStopStringLiteralDfa_15(int pos, long active0) { switch (pos) { @@ -2309,754 +1325,27 @@ private final int jjStopStringLiteralDfa_1(int pos, long active0, long active1) return -1; } } -private final int jjStartNfa_1(int pos, long active0, long active1) +private final int jjStartNfa_15(int pos, long active0) { - return jjMoveNfa_1(jjStopStringLiteralDfa_1(pos, active0, active1), pos + 1); + return jjMoveNfa_15(jjStopStringLiteralDfa_15(pos, active0), pos + 1); } -private int jjMoveStringLiteralDfa0_1() -{ - switch(curChar) - { - case 34: - return jjStopAtPos(0, 72); - default : - return jjMoveNfa_1(9, 0); - } -} -private int jjMoveNfa_1(int startState, int curPos) -{ - int startsAt = 0; - jjnewStateCnt = 37; - int i = 1; - jjstateSet[0] = startState; - int kind = 0x7fffffff; - for (;;) - { - if (++jjround == 0x7fffffff) - ReInitRounds(); - if (curChar < 64) - { - long l = 1L << curChar; - do - { - switch(jjstateSet[--i]) - { - case 9: - if ((0xffffffe3ffffffffL & l) != 0L) - { - if (kind > 73) - kind = 73; - jjCheckNAddStates(2, 4); - } - else if ((0x1800000000L & l) != 0L) - jjCheckNAddTwoStates(30, 36); - if (curChar == 60) - jjstateSet[jjnewStateCnt++] = 26; - else if (curChar == 35) - jjstateSet[jjnewStateCnt++] = 10; - else if (curChar == 36) - jjstateSet[jjnewStateCnt++] = 0; - break; - case 1: - if ((0xffffff7bffffffffL & l) != 0L) - jjCheckNAddStates(5, 8); - break; - case 2: - if (curChar == 34) - jjCheckNAddTwoStates(3, 4); - break; - case 3: - if ((0xfffffffbffffffffL & l) != 0L) - jjCheckNAddTwoStates(3, 4); - break; - case 4: - if (curChar == 34) - jjCheckNAddStates(5, 8); - break; - case 5: - if (curChar == 39) - jjCheckNAddTwoStates(6, 7); - break; - case 6: - if ((0xffffff7fffffffffL & l) != 0L) - jjCheckNAddTwoStates(6, 7); - break; - case 7: - if (curChar == 39) - jjCheckNAddStates(5, 8); - break; - case 11: - if ((0xffffff7bffffffffL & l) != 0L) - jjCheckNAddStates(9, 12); - break; - case 12: - if (curChar == 34) - jjCheckNAddTwoStates(13, 14); - break; - case 13: - if ((0xfffffffbffffffffL & l) != 0L) - jjCheckNAddTwoStates(13, 14); - break; - case 14: - if (curChar == 34) - jjCheckNAddStates(9, 12); - break; - case 15: - if (curChar == 39) - jjCheckNAddTwoStates(16, 17); - break; - case 16: - if ((0xffffff7fffffffffL & l) != 0L) - jjCheckNAddTwoStates(16, 17); - break; - case 17: - if (curChar == 39) - jjCheckNAddStates(9, 12); - break; - case 19: - if (curChar == 35) - jjstateSet[jjnewStateCnt++] = 10; - break; - case 20: - if (curChar == 61) - jjCheckNAddTwoStates(21, 22); - break; - case 21: - if ((0xffffffdfffffffffL & l) != 0L) - jjCheckNAddStates(13, 15); - break; - case 22: - if (curChar == 37) - jjstateSet[jjnewStateCnt++] = 23; - break; - case 23: - if ((0xbfffffffffffffffL & l) != 0L) - jjCheckNAddStates(13, 15); - break; - case 24: - if (curChar == 62 && kind > 68) - kind = 68; - break; - case 25: - if (curChar == 37) - jjstateSet[jjnewStateCnt++] = 24; - break; - case 26: - if (curChar == 37) - jjstateSet[jjnewStateCnt++] = 20; - break; - case 27: - if (curChar == 60) - jjstateSet[jjnewStateCnt++] = 26; - break; - case 28: - if ((0xffffffe3ffffffffL & l) == 0L) - break; - if (kind > 73) - kind = 73; - jjCheckNAddStates(2, 4); - break; - case 29: - if ((0x1800000000L & l) != 0L) - jjCheckNAdd(30); - break; - case 30: - if ((0xfffffffbffffffffL & l) == 0L) - break; - if (kind > 73) - kind = 73; - jjCheckNAddStates(2, 4); - break; - case 33: - if (curChar == 35) - jjCheckNAdd(32); - break; - case 34: - if (curChar == 36) - jjCheckNAdd(32); - break; - case 35: - if ((0x1800000000L & l) != 0L) - jjCheckNAddTwoStates(30, 36); - break; - case 36: - if (curChar == 34 && kind > 74) - kind = 74; - break; - default : break; - } - } while(i != startsAt); - } - else if (curChar < 128) - { - long l = 1L << (curChar & 077); - do - { - switch(jjstateSet[--i]) - { - case 9: - if (kind > 73) - kind = 73; - jjCheckNAddStates(2, 4); - if (curChar == 92) - jjAddStates(16, 17); - break; - case 0: - if (curChar == 123) - jjCheckNAddStates(5, 8); - break; - case 1: - if ((0xdfffffffffffffffL & l) != 0L) - jjCheckNAddStates(5, 8); - break; - case 3: - jjAddStates(18, 19); - break; - case 6: - jjAddStates(20, 21); - break; - case 8: - if (curChar == 125 && kind > 66) - kind = 66; - break; - case 10: - if (curChar == 123) - jjCheckNAddStates(9, 12); - break; - case 11: - if ((0xdfffffffffffffffL & l) != 0L) - jjCheckNAddStates(9, 12); - break; - case 13: - jjAddStates(22, 23); - break; - case 16: - jjAddStates(24, 25); - break; - case 18: - if (curChar == 125 && kind > 67) - kind = 67; - break; - case 21: - case 23: - jjCheckNAddStates(13, 15); - break; - case 28: - if (kind > 73) - kind = 73; - jjCheckNAddStates(2, 4); - break; - case 30: - if ((0xf7ffffffffffffffL & l) == 0L) - break; - if (kind > 73) - kind = 73; - jjCheckNAddStates(2, 4); - break; - case 31: - if (curChar == 92) - jjAddStates(16, 17); - break; - case 32: - if (curChar != 123) - break; - if (kind > 73) - kind = 73; - jjCheckNAddStates(2, 4); - break; - default : break; - } - } while(i != startsAt); - } - else - { - int i2 = (curChar & 0xff) >> 6; - long l2 = 1L << (curChar & 077); - do - { - switch(jjstateSet[--i]) - { - case 9: - case 28: - case 30: - if ((jjbitVec0[i2] & l2) == 0L) - break; - if (kind > 73) - kind = 73; - jjCheckNAddStates(2, 4); - break; - case 1: - if ((jjbitVec0[i2] & l2) != 0L) - jjAddStates(5, 8); - break; - case 3: - if ((jjbitVec0[i2] & l2) != 0L) - jjAddStates(18, 19); - break; - case 6: - if ((jjbitVec0[i2] & l2) != 0L) - jjAddStates(20, 21); - break; - case 11: - if ((jjbitVec0[i2] & l2) != 0L) - jjAddStates(9, 12); - break; - case 13: - if ((jjbitVec0[i2] & l2) != 0L) - jjAddStates(22, 23); - break; - case 16: - if ((jjbitVec0[i2] & l2) != 0L) - jjAddStates(24, 25); - break; - case 21: - case 23: - if ((jjbitVec0[i2] & l2) != 0L) - jjCheckNAddStates(13, 15); - break; - default : break; - } - } while(i != startsAt); - } - if (kind != 0x7fffffff) - { - jjmatchedKind = kind; - jjmatchedPos = curPos; - kind = 0x7fffffff; - } - ++curPos; - if ((i = jjnewStateCnt) == (startsAt = 37 - (jjnewStateCnt = startsAt))) - return curPos; - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { return curPos; } - } -} -private final int jjStopStringLiteralDfa_5(int pos, long active0) -{ - switch (pos) - { - default : - return -1; - } -} -private final int jjStartNfa_5(int pos, long active0) -{ - return jjMoveNfa_5(jjStopStringLiteralDfa_5(pos, active0), pos + 1); -} -private int jjMoveStringLiteralDfa0_5() -{ - switch(curChar) - { - case 62: - return jjStopAtPos(0, 52); - case 80: - case 112: - return jjMoveStringLiteralDfa1_5(0x4000000000000L); - case 83: - case 115: - return jjMoveStringLiteralDfa1_5(0x8000000000000L); - default : - return jjMoveNfa_5(1, 0); - } -} -private int jjMoveStringLiteralDfa1_5(long active0) -{ - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { - jjStopStringLiteralDfa_5(0, active0); - return 1; - } - switch(curChar) - { - case 85: - case 117: - return jjMoveStringLiteralDfa2_5(active0, 0x4000000000000L); - case 89: - case 121: - return jjMoveStringLiteralDfa2_5(active0, 0x8000000000000L); - default : - break; - } - return jjStartNfa_5(0, active0); -} -private int jjMoveStringLiteralDfa2_5(long old0, long active0) -{ - if (((active0 &= old0)) == 0L) - return jjStartNfa_5(0, old0); - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { - jjStopStringLiteralDfa_5(1, active0); - return 2; - } - switch(curChar) - { - case 66: - case 98: - return jjMoveStringLiteralDfa3_5(active0, 0x4000000000000L); - case 83: - case 115: - return jjMoveStringLiteralDfa3_5(active0, 0x8000000000000L); - default : - break; - } - return jjStartNfa_5(1, active0); -} -private int jjMoveStringLiteralDfa3_5(long old0, long active0) -{ - if (((active0 &= old0)) == 0L) - return jjStartNfa_5(1, old0); - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { - jjStopStringLiteralDfa_5(2, active0); - return 3; - } - switch(curChar) - { - case 76: - case 108: - return jjMoveStringLiteralDfa4_5(active0, 0x4000000000000L); - case 84: - case 116: - return jjMoveStringLiteralDfa4_5(active0, 0x8000000000000L); - default : - break; - } - return jjStartNfa_5(2, active0); -} -private int jjMoveStringLiteralDfa4_5(long old0, long active0) -{ - if (((active0 &= old0)) == 0L) - return jjStartNfa_5(2, old0); - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { - jjStopStringLiteralDfa_5(3, active0); - return 4; - } - switch(curChar) - { - case 69: - case 101: - return jjMoveStringLiteralDfa5_5(active0, 0x8000000000000L); - case 73: - case 105: - return jjMoveStringLiteralDfa5_5(active0, 0x4000000000000L); - default : - break; - } - return jjStartNfa_5(3, active0); -} -private int jjMoveStringLiteralDfa5_5(long old0, long active0) -{ - if (((active0 &= old0)) == 0L) - return jjStartNfa_5(3, old0); - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { - jjStopStringLiteralDfa_5(4, active0); - return 5; - } - switch(curChar) - { - case 67: - case 99: - if ((active0 & 0x4000000000000L) != 0L) - return jjStopAtPos(5, 50); - break; - case 77: - case 109: - if ((active0 & 0x8000000000000L) != 0L) - return jjStopAtPos(5, 51); - break; - default : - break; - } - return jjStartNfa_5(4, active0); -} -private int jjMoveNfa_5(int startState, int curPos) -{ - int startsAt = 0; - jjnewStateCnt = 7; - int i = 1; - jjstateSet[0] = startState; - int kind = 0x7fffffff; - for (;;) - { - if (++jjround == 0x7fffffff) - ReInitRounds(); - if (curChar < 64) - { - long l = 1L << curChar; - do - { - switch(jjstateSet[--i]) - { - case 1: - if ((0x100002600L & l) != 0L) - { - if (kind > 48) - kind = 48; - jjCheckNAdd(0); - } - else if (curChar == 34) - jjCheckNAddTwoStates(5, 6); - else if (curChar == 39) - jjCheckNAddTwoStates(2, 3); - break; - case 0: - if ((0x100002600L & l) == 0L) - break; - if (kind > 48) - kind = 48; - jjCheckNAdd(0); - break; - case 2: - if ((0xffffff7fffffffffL & l) != 0L) - jjCheckNAddTwoStates(2, 3); - break; - case 3: - if (curChar == 39 && kind > 53) - kind = 53; - break; - case 4: - if (curChar == 34) - jjCheckNAddTwoStates(5, 6); - break; - case 5: - if ((0xfffffffbffffffffL & l) != 0L) - jjCheckNAddTwoStates(5, 6); - break; - case 6: - if (curChar == 34 && kind > 53) - kind = 53; - break; - default : break; - } - } while(i != startsAt); - } - else if (curChar < 128) - { - long l = 1L << (curChar & 077); - do - { - switch(jjstateSet[--i]) - { - case 2: - jjAddStates(42, 43); - break; - case 5: - jjAddStates(44, 45); - break; - default : break; - } - } while(i != startsAt); - } - else - { - int i2 = (curChar & 0xff) >> 6; - long l2 = 1L << (curChar & 077); - do - { - switch(jjstateSet[--i]) - { - case 2: - if ((jjbitVec0[i2] & l2) != 0L) - jjAddStates(42, 43); - break; - case 5: - if ((jjbitVec0[i2] & l2) != 0L) - jjAddStates(44, 45); - break; - default : break; - } - } while(i != startsAt); - } - if (kind != 0x7fffffff) - { - jjmatchedKind = kind; - jjmatchedPos = curPos; - kind = 0x7fffffff; - } - ++curPos; - if ((i = jjnewStateCnt) == (startsAt = 7 - (jjnewStateCnt = startsAt))) - return curPos; - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { return curPos; } - } -} -private final int jjStopStringLiteralDfa_10(int pos, long active0) -{ - switch (pos) - { - case 0: - if ((active0 & 0x10000000000L) != 0L) - return 2; - return -1; - default : - return -1; - } -} -private final int jjStartNfa_10(int pos, long active0) -{ - return jjMoveNfa_10(jjStopStringLiteralDfa_10(pos, active0), pos + 1); -} -private int jjMoveStringLiteralDfa0_10() +private int jjMoveStringLiteralDfa0_15() { switch(curChar) { case 37: - return jjMoveStringLiteralDfa1_10(0x10000000000L); - default : - return jjMoveNfa_10(3, 0); - } -} -private int jjMoveStringLiteralDfa1_10(long active0) -{ - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { - jjStopStringLiteralDfa_10(0, active0); - return 1; - } - switch(curChar) - { - case 62: - if ((active0 & 0x10000000000L) != 0L) - return jjStopAtPos(1, 40); - break; - default : - break; - } - return jjStartNfa_10(0, active0); -} -private int jjMoveNfa_10(int startState, int curPos) -{ - int startsAt = 0; - jjnewStateCnt = 3; - int i = 1; - jjstateSet[0] = startState; - int kind = 0x7fffffff; - for (;;) - { - if (++jjround == 0x7fffffff) - ReInitRounds(); - if (curChar < 64) - { - long l = 1L << curChar; - do - { - switch(jjstateSet[--i]) - { - case 3: - if ((0xffffffdfffffffffL & l) != 0L) - { - if (kind > 41) - kind = 41; - jjCheckNAddTwoStates(0, 1); - } - else if (curChar == 37) - jjstateSet[jjnewStateCnt++] = 2; - break; - case 0: - if ((0xffffffdfffffffffL & l) == 0L) - break; - if (kind > 41) - kind = 41; - jjCheckNAddTwoStates(0, 1); - break; - case 1: - if (curChar == 37) - jjstateSet[jjnewStateCnt++] = 2; - break; - case 2: - if ((0xbfffffffffffffffL & l) == 0L) - break; - if (kind > 41) - kind = 41; - jjCheckNAddTwoStates(0, 1); - break; - default : break; - } - } while(i != startsAt); - } - else if (curChar < 128) - { - long l = 1L << (curChar & 077); - do - { - switch(jjstateSet[--i]) - { - case 3: - case 0: - case 2: - if (kind > 41) - kind = 41; - jjCheckNAddTwoStates(0, 1); - break; - default : break; - } - } while(i != startsAt); - } - else - { - int i2 = (curChar & 0xff) >> 6; - long l2 = 1L << (curChar & 077); - do - { - switch(jjstateSet[--i]) - { - case 3: - case 0: - case 2: - if ((jjbitVec0[i2] & l2) == 0L) - break; - if (kind > 41) - kind = 41; - jjCheckNAddTwoStates(0, 1); - break; - default : break; - } - } while(i != startsAt); - } - if (kind != 0x7fffffff) - { - jjmatchedKind = kind; - jjmatchedPos = curPos; - kind = 0x7fffffff; - } - ++curPos; - if ((i = jjnewStateCnt) == (startsAt = 3 - (jjnewStateCnt = startsAt))) - return curPos; - try { curChar = input_stream.readChar(); } - catch(java.io.IOException e) { return curPos; } - } -} -private final int jjStopStringLiteralDfa_14(int pos, long active0) -{ - switch (pos) - { - default : - return -1; - } -} -private final int jjStartNfa_14(int pos, long active0) -{ - return jjMoveNfa_14(jjStopStringLiteralDfa_14(pos, active0), pos + 1); -} -private int jjMoveStringLiteralDfa0_14() -{ - switch(curChar) - { - case 37: - return jjMoveStringLiteralDfa1_14(0x8000000000L); + return jjMoveStringLiteralDfa1_15(0x8000000000L); case 61: return jjStopAtPos(0, 37); default : - return jjMoveNfa_14(1, 0); + return jjMoveNfa_15(1, 0); } } -private int jjMoveStringLiteralDfa1_14(long active0) +private int jjMoveStringLiteralDfa1_15(long active0) { try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { - jjStopStringLiteralDfa_14(0, active0); + jjStopStringLiteralDfa_15(0, active0); return 1; } switch(curChar) @@ -3068,9 +1357,9 @@ private int jjMoveStringLiteralDfa1_14(long active0) default : break; } - return jjStartNfa_14(0, active0); + return jjStartNfa_15(0, active0); } -private int jjMoveNfa_14(int startState, int curPos) +private int jjMoveNfa_15(int startState, int curPos) { int startsAt = 0; jjnewStateCnt = 9; @@ -3164,10 +1453,10 @@ private int jjMoveNfa_14(int startState, int curPos) jjCheckNAdd(2); break; case 4: - jjAddStates(38, 39); + jjAddStates(31, 32); break; case 7: - jjAddStates(40, 41); + jjAddStates(33, 34); break; default : break; } @@ -3175,6 +1464,9 @@ private int jjMoveNfa_14(int startState, int curPos) } else { + int hiByte = (int)(curChar >> 8); + int i1 = hiByte >> 6; + long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); do @@ -3183,19 +1475,19 @@ private int jjMoveNfa_14(int startState, int curPos) { case 1: case 2: - if ((jjbitVec1[i2] & l2) == 0L) + if (!jjCanMove_1(hiByte, i1, i2, l1, l2)) break; if (kind > 36) kind = 36; jjCheckNAdd(2); break; case 4: - if ((jjbitVec0[i2] & l2) != 0L) - jjAddStates(38, 39); + if (jjCanMove_0(hiByte, i1, i2, l1, l2)) + jjAddStates(31, 32); break; case 7: - if ((jjbitVec0[i2] & l2) != 0L) - jjAddStates(40, 41); + if (jjCanMove_0(hiByte, i1, i2, l1, l2)) + jjAddStates(33, 34); break; default : break; } @@ -3214,11 +1506,1932 @@ private int jjMoveNfa_14(int startState, int curPos) catch(java.io.IOException e) { return curPos; } } } +private final int jjStopStringLiteralDfa_6(int pos, long active0) +{ + switch (pos) + { + default : + return -1; + } +} +private final int jjStartNfa_6(int pos, long active0) +{ + return jjMoveNfa_6(jjStopStringLiteralDfa_6(pos, active0), pos + 1); +} +private int jjMoveStringLiteralDfa0_6() +{ + switch(curChar) + { + case 62: + return jjStopAtPos(0, 52); + case 80: + case 112: + return jjMoveStringLiteralDfa1_6(0x4000000000000L); + case 83: + case 115: + return jjMoveStringLiteralDfa1_6(0x8000000000000L); + default : + return jjMoveNfa_6(1, 0); + } +} +private int jjMoveStringLiteralDfa1_6(long active0) +{ + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { + jjStopStringLiteralDfa_6(0, active0); + return 1; + } + switch(curChar) + { + case 85: + case 117: + return jjMoveStringLiteralDfa2_6(active0, 0x4000000000000L); + case 89: + case 121: + return jjMoveStringLiteralDfa2_6(active0, 0x8000000000000L); + default : + break; + } + return jjStartNfa_6(0, active0); +} +private int jjMoveStringLiteralDfa2_6(long old0, long active0) +{ + if (((active0 &= old0)) == 0L) + return jjStartNfa_6(0, old0); + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { + jjStopStringLiteralDfa_6(1, active0); + return 2; + } + switch(curChar) + { + case 66: + case 98: + return jjMoveStringLiteralDfa3_6(active0, 0x4000000000000L); + case 83: + case 115: + return jjMoveStringLiteralDfa3_6(active0, 0x8000000000000L); + default : + break; + } + return jjStartNfa_6(1, active0); +} +private int jjMoveStringLiteralDfa3_6(long old0, long active0) +{ + if (((active0 &= old0)) == 0L) + return jjStartNfa_6(1, old0); + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { + jjStopStringLiteralDfa_6(2, active0); + return 3; + } + switch(curChar) + { + case 76: + case 108: + return jjMoveStringLiteralDfa4_6(active0, 0x4000000000000L); + case 84: + case 116: + return jjMoveStringLiteralDfa4_6(active0, 0x8000000000000L); + default : + break; + } + return jjStartNfa_6(2, active0); +} +private int jjMoveStringLiteralDfa4_6(long old0, long active0) +{ + if (((active0 &= old0)) == 0L) + return jjStartNfa_6(2, old0); + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { + jjStopStringLiteralDfa_6(3, active0); + return 4; + } + switch(curChar) + { + case 69: + case 101: + return jjMoveStringLiteralDfa5_6(active0, 0x8000000000000L); + case 73: + case 105: + return jjMoveStringLiteralDfa5_6(active0, 0x4000000000000L); + default : + break; + } + return jjStartNfa_6(3, active0); +} +private int jjMoveStringLiteralDfa5_6(long old0, long active0) +{ + if (((active0 &= old0)) == 0L) + return jjStartNfa_6(3, old0); + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { + jjStopStringLiteralDfa_6(4, active0); + return 5; + } + switch(curChar) + { + case 67: + case 99: + if ((active0 & 0x4000000000000L) != 0L) + return jjStopAtPos(5, 50); + break; + case 77: + case 109: + if ((active0 & 0x8000000000000L) != 0L) + return jjStopAtPos(5, 51); + break; + default : + break; + } + return jjStartNfa_6(4, active0); +} +private int jjMoveNfa_6(int startState, int curPos) +{ + int startsAt = 0; + jjnewStateCnt = 7; + int i = 1; + jjstateSet[0] = startState; + int kind = 0x7fffffff; + for (;;) + { + if (++jjround == 0x7fffffff) + ReInitRounds(); + if (curChar < 64) + { + long l = 1L << curChar; + do + { + switch(jjstateSet[--i]) + { + case 1: + if ((0x100002600L & l) != 0L) + { + if (kind > 48) + kind = 48; + jjCheckNAdd(0); + } + else if (curChar == 34) + jjCheckNAddTwoStates(5, 6); + else if (curChar == 39) + jjCheckNAddTwoStates(2, 3); + break; + case 0: + if ((0x100002600L & l) == 0L) + break; + if (kind > 48) + kind = 48; + jjCheckNAdd(0); + break; + case 2: + if ((0xffffff7fffffffffL & l) != 0L) + jjCheckNAddTwoStates(2, 3); + break; + case 3: + if (curChar == 39 && kind > 53) + kind = 53; + break; + case 4: + if (curChar == 34) + jjCheckNAddTwoStates(5, 6); + break; + case 5: + if ((0xfffffffbffffffffL & l) != 0L) + jjCheckNAddTwoStates(5, 6); + break; + case 6: + if (curChar == 34 && kind > 53) + kind = 53; + break; + default : break; + } + } while(i != startsAt); + } + else if (curChar < 128) + { + long l = 1L << (curChar & 077); + do + { + switch(jjstateSet[--i]) + { + case 2: + jjAddStates(35, 36); + break; + case 5: + jjAddStates(37, 38); + break; + default : break; + } + } while(i != startsAt); + } + else + { + int hiByte = (int)(curChar >> 8); + int i1 = hiByte >> 6; + long l1 = 1L << (hiByte & 077); + int i2 = (curChar & 0xff) >> 6; + long l2 = 1L << (curChar & 077); + do + { + switch(jjstateSet[--i]) + { + case 2: + if (jjCanMove_0(hiByte, i1, i2, l1, l2)) + jjAddStates(35, 36); + break; + case 5: + if (jjCanMove_0(hiByte, i1, i2, l1, l2)) + jjAddStates(37, 38); + break; + default : break; + } + } while(i != startsAt); + } + if (kind != 0x7fffffff) + { + jjmatchedKind = kind; + jjmatchedPos = curPos; + kind = 0x7fffffff; + } + ++curPos; + if ((i = jjnewStateCnt) == (startsAt = 7 - (jjnewStateCnt = startsAt))) + return curPos; + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { return curPos; } + } +} +private int jjMoveStringLiteralDfa0_5() +{ + switch(curChar) + { + case 93: + return jjMoveStringLiteralDfa1_5(0x80000000000000L); + default : + return 1; + } +} +private int jjMoveStringLiteralDfa1_5(long active0) +{ + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { + return 1; + } + switch(curChar) + { + case 93: + return jjMoveStringLiteralDfa2_5(active0, 0x80000000000000L); + default : + return 2; + } +} +private int jjMoveStringLiteralDfa2_5(long old0, long active0) +{ + if (((active0 &= old0)) == 0L) + return 2; + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { + return 2; + } + switch(curChar) + { + case 62: + if ((active0 & 0x80000000000000L) != 0L) + return jjStopAtPos(2, 55); + break; + default : + return 3; + } + return 3; +} +private final int jjStopStringLiteralDfa_14(int pos, long active0, long active1) +{ + switch (pos) + { + default : + return -1; + } +} +private final int jjStartNfa_14(int pos, long active0, long active1) +{ + return jjMoveNfa_14(jjStopStringLiteralDfa_14(pos, active0, active1), pos + 1); +} +private int jjMoveStringLiteralDfa0_14() +{ + switch(curChar) + { + case 34: + return jjStopAtPos(0, 65); + case 39: + return jjStopAtPos(0, 64); + default : + return jjMoveNfa_14(0, 0); + } +} +private int jjMoveNfa_14(int startState, int curPos) +{ + int startsAt = 0; + jjnewStateCnt = 1; + int i = 1; + jjstateSet[0] = startState; + int kind = 0x7fffffff; + for (;;) + { + if (++jjround == 0x7fffffff) + ReInitRounds(); + if (curChar < 64) + { + long l = 1L << curChar; + do + { + switch(jjstateSet[--i]) + { + case 0: + if ((0x100002600L & l) == 0L) + break; + kind = 21; + jjstateSet[jjnewStateCnt++] = 0; + break; + default : break; + } + } while(i != startsAt); + } + else if (curChar < 128) + { + long l = 1L << (curChar & 077); + do + { + switch(jjstateSet[--i]) + { + default : break; + } + } while(i != startsAt); + } + else + { + int hiByte = (int)(curChar >> 8); + int i1 = hiByte >> 6; + long l1 = 1L << (hiByte & 077); + int i2 = (curChar & 0xff) >> 6; + long l2 = 1L << (curChar & 077); + do + { + switch(jjstateSet[--i]) + { + default : break; + } + } while(i != startsAt); + } + if (kind != 0x7fffffff) + { + jjmatchedKind = kind; + jjmatchedPos = curPos; + kind = 0x7fffffff; + } + ++curPos; + if ((i = jjnewStateCnt) == (startsAt = 1 - (jjnewStateCnt = startsAt))) + return curPos; + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { return curPos; } + } +} +private final int jjStopStringLiteralDfa_8(int pos, long active0) +{ + switch (pos) + { + case 0: + if ((active0 & 0x400000000000L) != 0L) + return 3; + return -1; + case 1: + if ((active0 & 0x400000000000L) != 0L) + return 4; + return -1; + case 2: + if ((active0 & 0x400000000000L) != 0L) + return 6; + return -1; + default : + return -1; + } +} +private final int jjStartNfa_8(int pos, long active0) +{ + return jjMoveNfa_8(jjStopStringLiteralDfa_8(pos, active0), pos + 1); +} +private int jjMoveStringLiteralDfa0_8() +{ + switch(curChar) + { + case 45: + return jjMoveStringLiteralDfa1_8(0x400000000000L); + default : + return jjMoveNfa_8(8, 0); + } +} +private int jjMoveStringLiteralDfa1_8(long active0) +{ + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { + jjStopStringLiteralDfa_8(0, active0); + return 1; + } + switch(curChar) + { + case 45: + return jjMoveStringLiteralDfa2_8(active0, 0x400000000000L); + default : + break; + } + return jjStartNfa_8(0, active0); +} +private int jjMoveStringLiteralDfa2_8(long old0, long active0) +{ + if (((active0 &= old0)) == 0L) + return jjStartNfa_8(0, old0); + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { + jjStopStringLiteralDfa_8(1, active0); + return 2; + } + switch(curChar) + { + case 37: + return jjMoveStringLiteralDfa3_8(active0, 0x400000000000L); + default : + break; + } + return jjStartNfa_8(1, active0); +} +private int jjMoveStringLiteralDfa3_8(long old0, long active0) +{ + if (((active0 &= old0)) == 0L) + return jjStartNfa_8(1, old0); + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { + jjStopStringLiteralDfa_8(2, active0); + return 3; + } + switch(curChar) + { + case 62: + if ((active0 & 0x400000000000L) != 0L) + return jjStopAtPos(3, 46); + break; + default : + break; + } + return jjStartNfa_8(2, active0); +} +private int jjMoveNfa_8(int startState, int curPos) +{ + int startsAt = 0; + jjnewStateCnt = 8; + int i = 1; + jjstateSet[0] = startState; + int kind = 0x7fffffff; + for (;;) + { + if (++jjround == 0x7fffffff) + ReInitRounds(); + if (curChar < 64) + { + long l = 1L << curChar; + do + { + switch(jjstateSet[--i]) + { + case 4: + if ((0xffffffdfffffffffL & l) != 0L) + { + if (kind > 47) + kind = 47; + jjCheckNAddStates(39, 41); + } + else if (curChar == 37) + jjstateSet[jjnewStateCnt++] = 6; + break; + case 3: + if ((0xffffdfffffffffffL & l) != 0L) + { + if (kind > 47) + kind = 47; + jjCheckNAddStates(39, 41); + } + else if (curChar == 45) + jjstateSet[jjnewStateCnt++] = 5; + if (curChar == 45) + jjstateSet[jjnewStateCnt++] = 4; + break; + case 8: + if ((0xffffdfffffffffffL & l) != 0L) + { + if (kind > 47) + kind = 47; + jjCheckNAddStates(39, 41); + } + else if (curChar == 45) + jjAddStates(42, 43); + if (curChar == 45) + jjCheckNAdd(0); + break; + case 0: + if ((0xffffdfffffffffffL & l) == 0L) + break; + if (kind > 47) + kind = 47; + jjCheckNAddStates(39, 41); + break; + case 1: + if (curChar == 45) + jjCheckNAdd(0); + break; + case 2: + if (curChar == 45) + jjAddStates(42, 43); + break; + case 5: + if (curChar == 37) + jjstateSet[jjnewStateCnt++] = 6; + break; + case 6: + if ((0xbfffffffffffffffL & l) == 0L) + break; + if (kind > 47) + kind = 47; + jjCheckNAddStates(39, 41); + break; + case 7: + if (curChar == 45) + jjstateSet[jjnewStateCnt++] = 5; + break; + default : break; + } + } while(i != startsAt); + } + else if (curChar < 128) + { + long l = 1L << (curChar & 077); + do + { + switch(jjstateSet[--i]) + { + case 4: + case 6: + if (kind > 47) + kind = 47; + jjCheckNAddStates(39, 41); + break; + case 3: + case 0: + if (kind > 47) + kind = 47; + jjCheckNAddStates(39, 41); + break; + case 8: + if (kind > 47) + kind = 47; + jjCheckNAddStates(39, 41); + break; + default : break; + } + } while(i != startsAt); + } + else + { + int hiByte = (int)(curChar >> 8); + int i1 = hiByte >> 6; + long l1 = 1L << (hiByte & 077); + int i2 = (curChar & 0xff) >> 6; + long l2 = 1L << (curChar & 077); + do + { + switch(jjstateSet[--i]) + { + case 4: + case 6: + if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) + break; + if (kind > 47) + kind = 47; + jjCheckNAddStates(39, 41); + break; + case 3: + case 0: + if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) + break; + if (kind > 47) + kind = 47; + jjCheckNAddStates(39, 41); + break; + case 8: + if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) + break; + if (kind > 47) + kind = 47; + jjCheckNAddStates(39, 41); + break; + default : break; + } + } while(i != startsAt); + } + if (kind != 0x7fffffff) + { + jjmatchedKind = kind; + jjmatchedPos = curPos; + kind = 0x7fffffff; + } + ++curPos; + if ((i = jjnewStateCnt) == (startsAt = 8 - (jjnewStateCnt = startsAt))) + return curPos; + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { return curPos; } + } +} +private int jjMoveStringLiteralDfa0_0() +{ + return jjMoveNfa_0(0, 0); +} +private int jjMoveNfa_0(int startState, int curPos) +{ + int startsAt = 0; + jjnewStateCnt = 20; + int i = 1; + jjstateSet[0] = startState; + int kind = 0x7fffffff; + for (;;) + { + if (++jjround == 0x7fffffff) + ReInitRounds(); + if (curChar < 64) + { + long l = 1L << curChar; + do + { + switch(jjstateSet[--i]) + { + case 0: + if (curChar == 60) + jjAddStates(44, 46); + break; + case 7: + if (curChar == 47) + jjstateSet[jjnewStateCnt++] = 6; + break; + case 13: + if (curChar == 47) + jjstateSet[jjnewStateCnt++] = 12; + break; + case 19: + if (curChar == 47) + jjstateSet[jjnewStateCnt++] = 18; + break; + default : break; + } + } while(i != startsAt); + } + else if (curChar < 128) + { + long l = 1L << (curChar & 077); + do + { + switch(jjstateSet[--i]) + { + case 1: + if ((0x10000000100000L & l) != 0L) + kind = 78; + break; + case 2: + case 8: + case 14: + if ((0x1000000010000L & l) != 0L) + jjCheckNAdd(1); + break; + case 3: + if ((0x20000000200L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 2; + break; + case 4: + if ((0x4000000040000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 3; + break; + case 5: + if ((0x800000008L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 4; + break; + case 6: + if ((0x8000000080000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 5; + break; + case 9: + if ((0x20000000200L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 8; + break; + case 10: + if ((0x4000000040000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 9; + break; + case 11: + if ((0x800000008L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 10; + break; + case 12: + if ((0x8000000080000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 11; + break; + case 15: + if ((0x20000000200L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 14; + break; + case 16: + if ((0x4000000040000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 15; + break; + case 17: + if ((0x800000008L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 16; + break; + case 18: + if ((0x8000000080000L & l) != 0L) + jjstateSet[jjnewStateCnt++] = 17; + break; + default : break; + } + } while(i != startsAt); + } + else + { + int hiByte = (int)(curChar >> 8); + int i1 = hiByte >> 6; + long l1 = 1L << (hiByte & 077); + int i2 = (curChar & 0xff) >> 6; + long l2 = 1L << (curChar & 077); + do + { + switch(jjstateSet[--i]) + { + default : break; + } + } while(i != startsAt); + } + if (kind != 0x7fffffff) + { + jjmatchedKind = kind; + jjmatchedPos = curPos; + kind = 0x7fffffff; + } + ++curPos; + if ((i = jjnewStateCnt) == (startsAt = 20 - (jjnewStateCnt = startsAt))) + return curPos; + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { return curPos; } + } +} +private int jjMoveStringLiteralDfa0_1() +{ + return jjMoveNfa_1(0, 0); +} +private int jjMoveNfa_1(int startState, int curPos) +{ + int startsAt = 0; + jjnewStateCnt = 5; + int i = 1; + jjstateSet[0] = startState; + int kind = 0x7fffffff; + for (;;) + { + if (++jjround == 0x7fffffff) + ReInitRounds(); + if (curChar < 64) + { + long l = 1L << curChar; + do + { + switch(jjstateSet[--i]) + { + case 0: + if (curChar == 45) + jjAddStates(47, 48); + break; + case 1: + if (curChar == 45) + jjCheckNAddTwoStates(2, 3); + break; + case 2: + if (curChar == 32) + jjCheckNAddTwoStates(2, 3); + break; + case 3: + case 4: + if (curChar == 62 && kind > 75) + kind = 75; + break; + default : break; + } + } while(i != startsAt); + } + else if (curChar < 128) + { + long l = 1L << (curChar & 077); + do + { + switch(jjstateSet[--i]) + { + default : break; + } + } while(i != startsAt); + } + else + { + int hiByte = (int)(curChar >> 8); + int i1 = hiByte >> 6; + long l1 = 1L << (hiByte & 077); + int i2 = (curChar & 0xff) >> 6; + long l2 = 1L << (curChar & 077); + do + { + switch(jjstateSet[--i]) + { + default : break; + } + } while(i != startsAt); + } + if (kind != 0x7fffffff) + { + jjmatchedKind = kind; + jjmatchedPos = curPos; + kind = 0x7fffffff; + } + ++curPos; + if ((i = jjnewStateCnt) == (startsAt = 5 - (jjnewStateCnt = startsAt))) + return curPos; + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { return curPos; } + } +} +private int jjMoveStringLiteralDfa0_7() +{ + return jjMoveNfa_7(1, 0); +} +private int jjMoveNfa_7(int startState, int curPos) +{ + int startsAt = 0; + jjnewStateCnt = 3; + int i = 1; + jjstateSet[0] = startState; + int kind = 0x7fffffff; + for (;;) + { + if (++jjround == 0x7fffffff) + ReInitRounds(); + if (curChar < 64) + { + long l = 1L << curChar; + do + { + switch(jjstateSet[--i]) + { + case 1: + if ((0x100002600L & l) != 0L) + { + if (kind > 48) + kind = 48; + jjCheckNAdd(0); + } + else if ((0x400001000000000L & l) != 0L) + { + if (kind > 49) + kind = 49; + jjCheckNAdd(2); + } + break; + case 0: + if ((0x100002600L & l) == 0L) + break; + kind = 48; + jjCheckNAdd(0); + break; + case 2: + if ((0x7ff601000000000L & l) == 0L) + break; + if (kind > 49) + kind = 49; + jjCheckNAdd(2); + break; + default : break; + } + } while(i != startsAt); + } + else if (curChar < 128) + { + long l = 1L << (curChar & 077); + do + { + switch(jjstateSet[--i]) + { + case 1: + case 2: + if ((0x7fffffe87fffffeL & l) == 0L) + break; + if (kind > 49) + kind = 49; + jjCheckNAdd(2); + break; + default : break; + } + } while(i != startsAt); + } + else + { + int hiByte = (int)(curChar >> 8); + int i1 = hiByte >> 6; + long l1 = 1L << (hiByte & 077); + int i2 = (curChar & 0xff) >> 6; + long l2 = 1L << (curChar & 077); + do + { + switch(jjstateSet[--i]) + { + case 1: + case 2: + if (!jjCanMove_1(hiByte, i1, i2, l1, l2)) + break; + if (kind > 49) + kind = 49; + jjCheckNAdd(2); + break; + default : break; + } + } while(i != startsAt); + } + if (kind != 0x7fffffff) + { + jjmatchedKind = kind; + jjmatchedPos = curPos; + kind = 0x7fffffff; + } + ++curPos; + if ((i = jjnewStateCnt) == (startsAt = 3 - (jjnewStateCnt = startsAt))) + return curPos; + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { return curPos; } + } +} +private final int jjStopStringLiteralDfa_3(int pos, long active0, long active1) +{ + switch (pos) + { + default : + return -1; + } +} +private final int jjStartNfa_3(int pos, long active0, long active1) +{ + return jjMoveNfa_3(jjStopStringLiteralDfa_3(pos, active0, active1), pos + 1); +} +private int jjMoveStringLiteralDfa0_3() +{ + switch(curChar) + { + case 39: + return jjStopAtPos(0, 69); + default : + return jjMoveNfa_3(9, 0); + } +} +private int jjMoveNfa_3(int startState, int curPos) +{ + int startsAt = 0; + jjnewStateCnt = 37; + int i = 1; + jjstateSet[0] = startState; + int kind = 0x7fffffff; + for (;;) + { + if (++jjround == 0x7fffffff) + ReInitRounds(); + if (curChar < 64) + { + long l = 1L << curChar; + do + { + switch(jjstateSet[--i]) + { + case 9: + if ((0xffffff67ffffffffL & l) != 0L) + { + if (kind > 70) + kind = 70; + jjCheckNAddStates(0, 2); + } + else if ((0x1800000000L & l) != 0L) + jjCheckNAddTwoStates(30, 36); + if (curChar == 60) + jjstateSet[jjnewStateCnt++] = 26; + else if (curChar == 35) + jjstateSet[jjnewStateCnt++] = 10; + else if (curChar == 36) + jjstateSet[jjnewStateCnt++] = 0; + break; + case 1: + if ((0xffffff7bffffffffL & l) != 0L) + jjCheckNAddStates(3, 6); + break; + case 2: + if (curChar == 34) + jjCheckNAddTwoStates(3, 4); + break; + case 3: + if ((0xfffffffbffffffffL & l) != 0L) + jjCheckNAddTwoStates(3, 4); + break; + case 4: + if (curChar == 34) + jjCheckNAddStates(3, 6); + break; + case 5: + if (curChar == 39) + jjCheckNAddTwoStates(6, 7); + break; + case 6: + if ((0xffffff7fffffffffL & l) != 0L) + jjCheckNAddTwoStates(6, 7); + break; + case 7: + if (curChar == 39) + jjCheckNAddStates(3, 6); + break; + case 11: + if ((0xffffff7bffffffffL & l) != 0L) + jjCheckNAddStates(7, 10); + break; + case 12: + if (curChar == 34) + jjCheckNAddTwoStates(13, 14); + break; + case 13: + if ((0xfffffffbffffffffL & l) != 0L) + jjCheckNAddTwoStates(13, 14); + break; + case 14: + if (curChar == 34) + jjCheckNAddStates(7, 10); + break; + case 15: + if (curChar == 39) + jjCheckNAddTwoStates(16, 17); + break; + case 16: + if ((0xffffff7fffffffffL & l) != 0L) + jjCheckNAddTwoStates(16, 17); + break; + case 17: + if (curChar == 39) + jjCheckNAddStates(7, 10); + break; + case 19: + if (curChar == 35) + jjstateSet[jjnewStateCnt++] = 10; + break; + case 20: + if (curChar == 61) + jjCheckNAddTwoStates(21, 22); + break; + case 21: + if ((0xffffffdfffffffffL & l) != 0L) + jjCheckNAddStates(11, 13); + break; + case 22: + if (curChar == 37) + jjstateSet[jjnewStateCnt++] = 23; + break; + case 23: + if ((0xbfffffffffffffffL & l) != 0L) + jjCheckNAddStates(11, 13); + break; + case 24: + if (curChar == 62 && kind > 68) + kind = 68; + break; + case 25: + if (curChar == 37) + jjstateSet[jjnewStateCnt++] = 24; + break; + case 26: + if (curChar == 37) + jjstateSet[jjnewStateCnt++] = 20; + break; + case 27: + if (curChar == 60) + jjstateSet[jjnewStateCnt++] = 26; + break; + case 28: + if ((0xffffff67ffffffffL & l) == 0L) + break; + if (kind > 70) + kind = 70; + jjCheckNAddStates(0, 2); + break; + case 29: + if ((0x1800000000L & l) != 0L) + jjCheckNAdd(30); + break; + case 30: + if ((0xffffff7fffffffffL & l) == 0L) + break; + if (kind > 70) + kind = 70; + jjCheckNAddStates(0, 2); + break; + case 33: + if (curChar == 35) + jjCheckNAdd(32); + break; + case 34: + if (curChar == 36) + jjCheckNAdd(32); + break; + case 35: + if ((0x1800000000L & l) != 0L) + jjCheckNAddTwoStates(30, 36); + break; + case 36: + if (curChar == 39 && kind > 71) + kind = 71; + break; + default : break; + } + } while(i != startsAt); + } + else if (curChar < 128) + { + long l = 1L << (curChar & 077); + do + { + switch(jjstateSet[--i]) + { + case 9: + if (kind > 70) + kind = 70; + jjCheckNAddStates(0, 2); + if (curChar == 92) + jjAddStates(14, 15); + break; + case 0: + if (curChar == 123) + jjCheckNAddStates(3, 6); + break; + case 1: + if ((0xdfffffffffffffffL & l) != 0L) + jjCheckNAddStates(3, 6); + break; + case 3: + jjAddStates(16, 17); + break; + case 6: + jjAddStates(18, 19); + break; + case 8: + if (curChar == 125 && kind > 66) + kind = 66; + break; + case 10: + if (curChar == 123) + jjCheckNAddStates(7, 10); + break; + case 11: + if ((0xdfffffffffffffffL & l) != 0L) + jjCheckNAddStates(7, 10); + break; + case 13: + jjAddStates(20, 21); + break; + case 16: + jjAddStates(22, 23); + break; + case 18: + if (curChar == 125 && kind > 67) + kind = 67; + break; + case 21: + case 23: + jjCheckNAddStates(11, 13); + break; + case 28: + if (kind > 70) + kind = 70; + jjCheckNAddStates(0, 2); + break; + case 30: + if ((0xf7ffffffffffffffL & l) == 0L) + break; + if (kind > 70) + kind = 70; + jjCheckNAddStates(0, 2); + break; + case 31: + if (curChar == 92) + jjAddStates(14, 15); + break; + case 32: + if (curChar != 123) + break; + if (kind > 70) + kind = 70; + jjCheckNAddStates(0, 2); + break; + default : break; + } + } while(i != startsAt); + } + else + { + int hiByte = (int)(curChar >> 8); + int i1 = hiByte >> 6; + long l1 = 1L << (hiByte & 077); + int i2 = (curChar & 0xff) >> 6; + long l2 = 1L << (curChar & 077); + do + { + switch(jjstateSet[--i]) + { + case 9: + case 28: + case 30: + if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) + break; + if (kind > 70) + kind = 70; + jjCheckNAddStates(0, 2); + break; + case 1: + if (jjCanMove_0(hiByte, i1, i2, l1, l2)) + jjAddStates(3, 6); + break; + case 3: + if (jjCanMove_0(hiByte, i1, i2, l1, l2)) + jjAddStates(16, 17); + break; + case 6: + if (jjCanMove_0(hiByte, i1, i2, l1, l2)) + jjAddStates(18, 19); + break; + case 11: + if (jjCanMove_0(hiByte, i1, i2, l1, l2)) + jjAddStates(7, 10); + break; + case 13: + if (jjCanMove_0(hiByte, i1, i2, l1, l2)) + jjAddStates(20, 21); + break; + case 16: + if (jjCanMove_0(hiByte, i1, i2, l1, l2)) + jjAddStates(22, 23); + break; + case 21: + case 23: + if (jjCanMove_0(hiByte, i1, i2, l1, l2)) + jjCheckNAddStates(11, 13); + break; + default : break; + } + } while(i != startsAt); + } + if (kind != 0x7fffffff) + { + jjmatchedKind = kind; + jjmatchedPos = curPos; + kind = 0x7fffffff; + } + ++curPos; + if ((i = jjnewStateCnt) == (startsAt = 37 - (jjnewStateCnt = startsAt))) + return curPos; + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { return curPos; } + } +} +private final int jjStopStringLiteralDfa_11(int pos, long active0) +{ + switch (pos) + { + case 0: + if ((active0 & 0x10000000000L) != 0L) + return 2; + return -1; + default : + return -1; + } +} +private final int jjStartNfa_11(int pos, long active0) +{ + return jjMoveNfa_11(jjStopStringLiteralDfa_11(pos, active0), pos + 1); +} +private int jjMoveStringLiteralDfa0_11() +{ + switch(curChar) + { + case 37: + return jjMoveStringLiteralDfa1_11(0x10000000000L); + default : + return jjMoveNfa_11(3, 0); + } +} +private int jjMoveStringLiteralDfa1_11(long active0) +{ + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { + jjStopStringLiteralDfa_11(0, active0); + return 1; + } + switch(curChar) + { + case 62: + if ((active0 & 0x10000000000L) != 0L) + return jjStopAtPos(1, 40); + break; + default : + break; + } + return jjStartNfa_11(0, active0); +} +private int jjMoveNfa_11(int startState, int curPos) +{ + int startsAt = 0; + jjnewStateCnt = 3; + int i = 1; + jjstateSet[0] = startState; + int kind = 0x7fffffff; + for (;;) + { + if (++jjround == 0x7fffffff) + ReInitRounds(); + if (curChar < 64) + { + long l = 1L << curChar; + do + { + switch(jjstateSet[--i]) + { + case 3: + if ((0xffffffdfffffffffL & l) != 0L) + { + if (kind > 41) + kind = 41; + jjCheckNAddTwoStates(0, 1); + } + else if (curChar == 37) + jjstateSet[jjnewStateCnt++] = 2; + break; + case 0: + if ((0xffffffdfffffffffL & l) == 0L) + break; + if (kind > 41) + kind = 41; + jjCheckNAddTwoStates(0, 1); + break; + case 1: + if (curChar == 37) + jjstateSet[jjnewStateCnt++] = 2; + break; + case 2: + if ((0xbfffffffffffffffL & l) == 0L) + break; + if (kind > 41) + kind = 41; + jjCheckNAddTwoStates(0, 1); + break; + default : break; + } + } while(i != startsAt); + } + else if (curChar < 128) + { + long l = 1L << (curChar & 077); + do + { + switch(jjstateSet[--i]) + { + case 3: + case 0: + case 2: + if (kind > 41) + kind = 41; + jjCheckNAddTwoStates(0, 1); + break; + default : break; + } + } while(i != startsAt); + } + else + { + int hiByte = (int)(curChar >> 8); + int i1 = hiByte >> 6; + long l1 = 1L << (hiByte & 077); + int i2 = (curChar & 0xff) >> 6; + long l2 = 1L << (curChar & 077); + do + { + switch(jjstateSet[--i]) + { + case 3: + case 0: + case 2: + if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) + break; + if (kind > 41) + kind = 41; + jjCheckNAddTwoStates(0, 1); + break; + default : break; + } + } while(i != startsAt); + } + if (kind != 0x7fffffff) + { + jjmatchedKind = kind; + jjmatchedPos = curPos; + kind = 0x7fffffff; + } + ++curPos; + if ((i = jjnewStateCnt) == (startsAt = 3 - (jjnewStateCnt = startsAt))) + return curPos; + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { return curPos; } + } +} +private final int jjStopStringLiteralDfa_9(int pos, long active0) +{ + switch (pos) + { + case 0: + if ((active0 & 0x100000000000L) != 0L) + return 2; + return -1; + default : + return -1; + } +} +private final int jjStartNfa_9(int pos, long active0) +{ + return jjMoveNfa_9(jjStopStringLiteralDfa_9(pos, active0), pos + 1); +} +private int jjMoveStringLiteralDfa0_9() +{ + switch(curChar) + { + case 37: + return jjMoveStringLiteralDfa1_9(0x100000000000L); + default : + return jjMoveNfa_9(3, 0); + } +} +private int jjMoveStringLiteralDfa1_9(long active0) +{ + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { + jjStopStringLiteralDfa_9(0, active0); + return 1; + } + switch(curChar) + { + case 62: + if ((active0 & 0x100000000000L) != 0L) + return jjStopAtPos(1, 44); + break; + default : + break; + } + return jjStartNfa_9(0, active0); +} +private int jjMoveNfa_9(int startState, int curPos) +{ + int startsAt = 0; + jjnewStateCnt = 3; + int i = 1; + jjstateSet[0] = startState; + int kind = 0x7fffffff; + for (;;) + { + if (++jjround == 0x7fffffff) + ReInitRounds(); + if (curChar < 64) + { + long l = 1L << curChar; + do + { + switch(jjstateSet[--i]) + { + case 3: + if ((0xffffffdfffffffffL & l) != 0L) + { + if (kind > 45) + kind = 45; + jjCheckNAddTwoStates(0, 1); + } + else if (curChar == 37) + jjstateSet[jjnewStateCnt++] = 2; + break; + case 0: + if ((0xffffffdfffffffffL & l) == 0L) + break; + if (kind > 45) + kind = 45; + jjCheckNAddTwoStates(0, 1); + break; + case 1: + if (curChar == 37) + jjstateSet[jjnewStateCnt++] = 2; + break; + case 2: + if ((0xbfffffffffffffffL & l) == 0L) + break; + if (kind > 45) + kind = 45; + jjCheckNAddTwoStates(0, 1); + break; + default : break; + } + } while(i != startsAt); + } + else if (curChar < 128) + { + long l = 1L << (curChar & 077); + do + { + switch(jjstateSet[--i]) + { + case 3: + case 0: + case 2: + if (kind > 45) + kind = 45; + jjCheckNAddTwoStates(0, 1); + break; + default : break; + } + } while(i != startsAt); + } + else + { + int hiByte = (int)(curChar >> 8); + int i1 = hiByte >> 6; + long l1 = 1L << (hiByte & 077); + int i2 = (curChar & 0xff) >> 6; + long l2 = 1L << (curChar & 077); + do + { + switch(jjstateSet[--i]) + { + case 3: + case 0: + case 2: + if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) + break; + if (kind > 45) + kind = 45; + jjCheckNAddTwoStates(0, 1); + break; + default : break; + } + } while(i != startsAt); + } + if (kind != 0x7fffffff) + { + jjmatchedKind = kind; + jjmatchedPos = curPos; + kind = 0x7fffffff; + } + ++curPos; + if ((i = jjnewStateCnt) == (startsAt = 3 - (jjnewStateCnt = startsAt))) + return curPos; + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { return curPos; } + } +} +private final int jjStopStringLiteralDfa_17(int pos, long active0) +{ + switch (pos) + { + default : + return -1; + } +} +private final int jjStartNfa_17(int pos, long active0) +{ + return jjMoveNfa_17(jjStopStringLiteralDfa_17(pos, active0), pos + 1); +} +private int jjMoveStringLiteralDfa0_17() +{ + switch(curChar) + { + case 60: + jjmatchedKind = 22; + return jjMoveStringLiteralDfa1_17(0x1ff800000L); + default : + return jjMoveNfa_17(0, 0); + } +} +private int jjMoveStringLiteralDfa1_17(long active0) +{ + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { + jjStopStringLiteralDfa_17(0, active0); + return 1; + } + switch(curChar) + { + case 33: + return jjMoveStringLiteralDfa2_17(active0, 0xd000000L); + case 37: + if ((active0 & 0x80000000L) != 0L) + { + jjmatchedKind = 31; + jjmatchedPos = 1; + } + return jjMoveStringLiteralDfa2_17(active0, 0x170000000L); + case 47: + if ((active0 & 0x800000L) != 0L) + return jjStopAtPos(1, 23); + break; + case 63: + if ((active0 & 0x2000000L) != 0L) + return jjStopAtPos(1, 25); + break; + default : + break; + } + return jjStartNfa_17(0, active0); +} +private int jjMoveStringLiteralDfa2_17(long old0, long active0) +{ + if (((active0 &= old0)) == 0L) + return jjStartNfa_17(0, old0); + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { + jjStopStringLiteralDfa_17(1, active0); + return 2; + } + switch(curChar) + { + case 33: + if ((active0 & 0x20000000L) != 0L) + return jjStopAtPos(2, 29); + break; + case 45: + return jjMoveStringLiteralDfa3_17(active0, 0x11000000L); + case 61: + if ((active0 & 0x40000000L) != 0L) + return jjStopAtPos(2, 30); + break; + case 64: + if ((active0 & 0x100000000L) != 0L) + return jjStopAtPos(2, 32); + break; + case 91: + return jjMoveStringLiteralDfa3_17(active0, 0x8000000L); + case 68: + case 100: + return jjMoveStringLiteralDfa3_17(active0, 0x4000000L); + default : + break; + } + return jjStartNfa_17(1, active0); +} +private int jjMoveStringLiteralDfa3_17(long old0, long active0) +{ + if (((active0 &= old0)) == 0L) + return jjStartNfa_17(1, old0); + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { + jjStopStringLiteralDfa_17(2, active0); + return 3; + } + switch(curChar) + { + case 45: + if ((active0 & 0x1000000L) != 0L) + return jjStopAtPos(3, 24); + else if ((active0 & 0x10000000L) != 0L) + return jjStopAtPos(3, 28); + break; + case 67: + case 99: + return jjMoveStringLiteralDfa4_17(active0, 0x8000000L); + case 79: + case 111: + return jjMoveStringLiteralDfa4_17(active0, 0x4000000L); + default : + break; + } + return jjStartNfa_17(2, active0); +} +private int jjMoveStringLiteralDfa4_17(long old0, long active0) +{ + if (((active0 &= old0)) == 0L) + return jjStartNfa_17(2, old0); + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { + jjStopStringLiteralDfa_17(3, active0); + return 4; + } + switch(curChar) + { + case 67: + case 99: + return jjMoveStringLiteralDfa5_17(active0, 0x4000000L); + case 68: + case 100: + return jjMoveStringLiteralDfa5_17(active0, 0x8000000L); + default : + break; + } + return jjStartNfa_17(3, active0); +} +private int jjMoveStringLiteralDfa5_17(long old0, long active0) +{ + if (((active0 &= old0)) == 0L) + return jjStartNfa_17(3, old0); + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { + jjStopStringLiteralDfa_17(4, active0); + return 5; + } + switch(curChar) + { + case 65: + case 97: + return jjMoveStringLiteralDfa6_17(active0, 0x8000000L); + case 84: + case 116: + return jjMoveStringLiteralDfa6_17(active0, 0x4000000L); + default : + break; + } + return jjStartNfa_17(4, active0); +} +private int jjMoveStringLiteralDfa6_17(long old0, long active0) +{ + if (((active0 &= old0)) == 0L) + return jjStartNfa_17(4, old0); + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { + jjStopStringLiteralDfa_17(5, active0); + return 6; + } + switch(curChar) + { + case 84: + case 116: + return jjMoveStringLiteralDfa7_17(active0, 0x8000000L); + case 89: + case 121: + return jjMoveStringLiteralDfa7_17(active0, 0x4000000L); + default : + break; + } + return jjStartNfa_17(5, active0); +} +private int jjMoveStringLiteralDfa7_17(long old0, long active0) +{ + if (((active0 &= old0)) == 0L) + return jjStartNfa_17(5, old0); + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { + jjStopStringLiteralDfa_17(6, active0); + return 7; + } + switch(curChar) + { + case 65: + case 97: + return jjMoveStringLiteralDfa8_17(active0, 0x8000000L); + case 80: + case 112: + return jjMoveStringLiteralDfa8_17(active0, 0x4000000L); + default : + break; + } + return jjStartNfa_17(6, active0); +} +private int jjMoveStringLiteralDfa8_17(long old0, long active0) +{ + if (((active0 &= old0)) == 0L) + return jjStartNfa_17(6, old0); + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { + jjStopStringLiteralDfa_17(7, active0); + return 8; + } + switch(curChar) + { + case 91: + if ((active0 & 0x8000000L) != 0L) + return jjStopAtPos(8, 27); + break; + case 69: + case 101: + if ((active0 & 0x4000000L) != 0L) + return jjStopAtPos(8, 26); + break; + default : + break; + } + return jjStartNfa_17(7, active0); +} +private int jjMoveNfa_17(int startState, int curPos) +{ + int startsAt = 0; + jjnewStateCnt = 1; + int i = 1; + jjstateSet[0] = startState; + int kind = 0x7fffffff; + for (;;) + { + if (++jjround == 0x7fffffff) + ReInitRounds(); + if (curChar < 64) + { + long l = 1L << curChar; + do + { + switch(jjstateSet[--i]) + { + case 0: + if ((0x100002600L & l) == 0L) + break; + kind = 20; + jjstateSet[jjnewStateCnt++] = 0; + break; + default : break; + } + } while(i != startsAt); + } + else if (curChar < 128) + { + long l = 1L << (curChar & 077); + do + { + switch(jjstateSet[--i]) + { + default : break; + } + } while(i != startsAt); + } + else + { + int hiByte = (int)(curChar >> 8); + int i1 = hiByte >> 6; + long l1 = 1L << (hiByte & 077); + int i2 = (curChar & 0xff) >> 6; + long l2 = 1L << (curChar & 077); + do + { + switch(jjstateSet[--i]) + { + default : break; + } + } while(i != startsAt); + } + if (kind != 0x7fffffff) + { + jjmatchedKind = kind; + jjmatchedPos = curPos; + kind = 0x7fffffff; + } + ++curPos; + if ((i = jjnewStateCnt) == (startsAt = 1 - (jjnewStateCnt = startsAt))) + return curPos; + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { return curPos; } + } +} static final int[] jjnextStates = { - 1, 4, 28, 29, 31, 1, 2, 5, 8, 11, 12, 15, 18, 21, 22, 25, - 33, 34, 3, 4, 6, 7, 13, 14, 16, 17, 0, 1, 2, 3, 7, 11, - 12, 14, 2, 3, 6, 9, 4, 5, 7, 8, 2, 3, 5, 6, + 28, 29, 31, 1, 2, 5, 8, 11, 12, 15, 18, 21, 22, 25, 33, 34, + 3, 4, 6, 7, 13, 14, 16, 17, 11, 12, 14, 2, 3, 6, 9, 4, + 5, 7, 8, 2, 3, 5, 6, 0, 1, 2, 3, 7, 7, 13, 19, 1, + 4, }; +private static final boolean jjCanMove_0(int hiByte, int i1, int i2, long l1, long l2) +{ + switch(hiByte) + { + case 0: + return ((jjbitVec2[i2] & l2) != 0L); + default : + if ((jjbitVec0[i1] & l1) != 0L) + return true; + return false; + } +} +private static final boolean jjCanMove_1(int hiByte, int i1, int i2, long l1, long l2) +{ + switch(hiByte) + { + case 0: + return ((jjbitVec3[i2] & l2) != 0L); + default : + return false; + } +} /** Token literal values. */ public static final String[] jjstrLiteralImages = { @@ -3228,10 +3441,11 @@ null, null, null, null, null, null, null, null, null, "\74", "\74\57", "\74\45\100", null, null, null, null, "\75", null, "\45\76", "\45\76", null, "\45\76", null, "\45\76", null, "\55\55\45\76", null, null, null, null, null, "\76", null, null, "\135\135\76", null, null, null, "\76", null, "\57\76", "\75", null, "\47", "\42", null, null, -null, "\47", null, null, "\42", null, null, null, null, }; +null, "\47", null, null, "\42", null, null, null, null, null, null, }; /** Lexer state names. */ public static final String[] lexStateNames = { + "HtmlScriptContentState", "CommentState", "AttrValueBetweenDoubleQuotesState", "AttrValueBetweenSingleQuotesState", @@ -3253,13 +3467,13 @@ public static final String[] lexStateNames = { /** Lex State array. */ public static final int[] jjnewLexState = { - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 3, 3, 0, - 3, 6, 4, 7, 8, 9, 10, 15, -1, -1, 14, -1, -1, -1, 12, 12, -1, 12, -1, 12, -1, 12, -1, -1, 5, - -1, -1, 12, -1, -1, 12, 11, 16, -1, 12, 12, 12, 13, -1, 2, 1, -1, -1, -1, 11, -1, 11, 11, -1, 11, - 12, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 4, 4, 1, + 4, 7, 5, 8, 9, 10, 11, 16, -1, -1, 15, -1, -1, -1, 13, 13, -1, 13, -1, 13, -1, 13, -1, -1, 6, + -1, -1, 13, -1, -1, 13, 12, 17, -1, 13, 13, 13, 14, -1, 3, 2, -1, -1, -1, 12, -1, 12, 12, -1, 12, + 13, -1, -1, 13, }; static final long[] jjtoToken = { - 0xffffffffffc00001L, 0x1fffL, + 0xffffffffffc00001L, 0x7fffL, }; static final long[] jjtoSkip = { 0x300000L, 0x0L, @@ -3270,6 +3484,10 @@ static final long[] jjtoSpecial = { protected CharStream input_stream; private final int[] jjrounds = new int[37]; private final int[] jjstateSet = new int[74]; +private final StringBuffer jjimage = new StringBuffer(); +private StringBuffer image = jjimage; +private int jjimageLen; +private int lengthOfMatch; protected char curChar; /** Constructor. */ public JspParserTokenManager(CharStream stream){ @@ -3308,7 +3526,7 @@ public void ReInit(CharStream stream, int lexState) /** Switch to specified lex state. */ public void SwitchTo(int lexState) { - if (lexState >= 17 || lexState < 0) + if (lexState >= 18 || lexState < 0) throw new TokenMgrError("Error: Ignoring invalid lexical state : " + lexState + ". State unchanged.", TokenMgrError.INVALID_LEXICAL_STATE); else curLexState = lexState; @@ -3338,8 +3556,8 @@ protected Token jjFillToken() return t; } -int curLexState = 16; -int defaultLexState = 16; +int curLexState = 17; +int defaultLexState = 17; int jjnewStateCnt; int jjround; int jjmatchedPos; @@ -3366,6 +3584,9 @@ public Token getNextToken() matchedToken.specialToken = specialToken; return matchedToken; } + image = jjimage; + image.setLength(0); + jjimageLen = 0; switch(curLexState) { @@ -3373,15 +3594,19 @@ public Token getNextToken() jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_0(); - if (jjmatchedPos == 0 && jjmatchedKind > 76) + if (jjmatchedPos == 0 && jjmatchedKind > 77) { - jjmatchedKind = 76; + jjmatchedKind = 77; } break; case 1: jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_1(); + if (jjmatchedPos == 0 && jjmatchedKind > 76) + { + jjmatchedKind = 76; + } break; case 2: jjmatchedKind = 0x7fffffff; @@ -3392,24 +3617,24 @@ public Token getNextToken() jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_3(); - if (jjmatchedPos == 0 && jjmatchedKind > 57) - { - jjmatchedKind = 57; - } break; case 4: jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_4(); - if (jjmatchedPos == 0 && jjmatchedKind > 54) + if (jjmatchedPos == 0 && jjmatchedKind > 57) { - jjmatchedKind = 54; + jjmatchedKind = 57; } break; case 5: jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_5(); + if (jjmatchedPos == 0 && jjmatchedKind > 54) + { + jjmatchedKind = 54; + } break; case 6: jjmatchedKind = 0x7fffffff; @@ -3440,15 +3665,15 @@ public Token getNextToken() jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_11(); - if (jjmatchedPos == 0 && jjmatchedKind > 63) - { - jjmatchedKind = 63; - } break; case 12: jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_12(); + if (jjmatchedPos == 0 && jjmatchedKind > 63) + { + jjmatchedKind = 63; + } break; case 13: jjmatchedKind = 0x7fffffff; @@ -3470,6 +3695,11 @@ public Token getNextToken() jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_16(); break; + case 17: + jjmatchedKind = 0x7fffffff; + jjmatchedPos = 0; + curPos = jjMoveStringLiteralDfa0_17(); + break; } if (jjmatchedKind != 0x7fffffff) { @@ -3479,6 +3709,7 @@ public Token getNextToken() { matchedToken = jjFillToken(); matchedToken.specialToken = specialToken; + TokenLexicalActions(matchedToken); if (jjnewLexState[jjmatchedKind] != -1) curLexState = jjnewLexState[jjmatchedKind]; return matchedToken; @@ -3524,6 +3755,22 @@ public Token getNextToken() } } +void TokenLexicalActions(Token matchedToken) +{ + switch(jjmatchedKind) + { + case 78 : + image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))); + // We've done a custom lookahead for the closing and found it. + // Put it back into the input stream, so it can be processed normally. + input_stream.backup(8); + image.setLength(image.length() - 8); // kill the "