summaryrefslogtreecommitdiffstats
path: root/theme-compiler
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2013-04-23 14:54:48 +0300
committerArtur Signell <artur@vaadin.com>2013-04-23 14:54:48 +0300
commited79188e0dd8876496c9848ca40479256e08c6c3 (patch)
tree53ec00a284329cdf68d413cfa2c65bbb9a40e3eb /theme-compiler
parent53b5766731b678694ee83ce8dd3592185ba36105 (diff)
parentfeb9a8c3510afc76c079fafcd9e507205bde139c (diff)
downloadvaadin-framework-ed79188e0dd8876496c9848ca40479256e08c6c3.tar.gz
vaadin-framework-ed79188e0dd8876496c9848ca40479256e08c6c3.zip
Merge commit 'feb9a8c3510afc76c079fafcd9e507205bde139c'
Conflicts: WebContent/release-notes.html theme-compiler/src/com/vaadin/sass/internal/parser/Parser.java Change-Id: Iad9ee95b2f399ff93f0e426a0810b18d923f8ff6
Diffstat (limited to 'theme-compiler')
-rwxr-xr-x[-rw-r--r--]theme-compiler/src/com/vaadin/sass/internal/parser/Parser.java15250
-rw-r--r--theme-compiler/src/com/vaadin/sass/internal/parser/Parser.jj2
-rw-r--r--theme-compiler/src/com/vaadin/sass/internal/parser/ParserConstants.java758
-rw-r--r--theme-compiler/src/com/vaadin/sass/internal/parser/ParserTokenManager.java9970
-rw-r--r--theme-compiler/tests/resources/automatic/css/gradient.css17
-rw-r--r--theme-compiler/tests/resources/automatic/scss/gradient.scss17
-rw-r--r--theme-compiler/tests/resources/sasslang/css/385-test_newlines_removed_from_selectors_when_compressed.css (renamed from theme-compiler/tests/resources/sasslangbroken/css/385-test_newlines_removed_from_selectors_when_compressed.css)0
-rw-r--r--theme-compiler/tests/resources/sasslang/scss/385-test_newlines_removed_from_selectors_when_compressed.scss (renamed from theme-compiler/tests/resources/sasslangbroken/scss/385-test_newlines_removed_from_selectors_when_compressed.scss)0
-rw-r--r--theme-compiler/tests/src/com/vaadin/sass/testcases/scss/AbstractDirectoryScanningSassTests.java11
9 files changed, 13056 insertions, 12969 deletions
diff --git a/theme-compiler/src/com/vaadin/sass/internal/parser/Parser.java b/theme-compiler/src/com/vaadin/sass/internal/parser/Parser.java
index c9ff10cc6a..40ffb64200 100644..100755
--- a/theme-compiler/src/com/vaadin/sass/internal/parser/Parser.java
+++ b/theme-compiler/src/com/vaadin/sass/internal/parser/Parser.java
@@ -1,155 +1,155 @@
-/* Generated By:JavaCC: Do not edit this line. Parser.java */
-package com.vaadin.sass.internal.parser;
-
-import java.io.*;
-import java.net.*;
-import java.util.ArrayList;
-import java.util.Locale;
-import java.util.Map;
-import java.util.UUID;
-
-import org.w3c.css.sac.ConditionFactory;
-import org.w3c.css.sac.Condition;
-import org.w3c.css.sac.SelectorFactory;
-import org.w3c.css.sac.SelectorList;
-import org.w3c.css.sac.Selector;
-import org.w3c.css.sac.SimpleSelector;
-import org.w3c.css.sac.DocumentHandler;
-import org.w3c.css.sac.InputSource;
-import org.w3c.css.sac.ErrorHandler;
-import org.w3c.css.sac.CSSException;
-import org.w3c.css.sac.CSSParseException;
-import org.w3c.css.sac.Locator;
-import org.w3c.css.sac.LexicalUnit;
-
-import org.w3c.flute.parser.selectors.SelectorFactoryImpl;
-import org.w3c.flute.parser.selectors.ConditionFactoryImpl;
-
-import org.w3c.flute.util.Encoding;
-
-import com.vaadin.sass.internal.handler.*;
-
-import com.vaadin.sass.internal.tree.*;
-
+/* Generated By:JavaCC: Do not edit this line. Parser.java */
+package com.vaadin.sass.internal.parser;
+
+import java.io.*;
+import java.net.*;
+import java.util.ArrayList;
+import java.util.Locale;
+import java.util.Map;
+import java.util.UUID;
+
+import org.w3c.css.sac.ConditionFactory;
+import org.w3c.css.sac.Condition;
+import org.w3c.css.sac.SelectorFactory;
+import org.w3c.css.sac.SelectorList;
+import org.w3c.css.sac.Selector;
+import org.w3c.css.sac.SimpleSelector;
+import org.w3c.css.sac.DocumentHandler;
+import org.w3c.css.sac.InputSource;
+import org.w3c.css.sac.ErrorHandler;
+import org.w3c.css.sac.CSSException;
+import org.w3c.css.sac.CSSParseException;
+import org.w3c.css.sac.Locator;
+import org.w3c.css.sac.LexicalUnit;
+
+import org.w3c.flute.parser.selectors.SelectorFactoryImpl;
+import org.w3c.flute.parser.selectors.ConditionFactoryImpl;
+
+import org.w3c.flute.util.Encoding;
+
+import com.vaadin.sass.internal.handler.*;
+
+import com.vaadin.sass.internal.tree.*;
+
/**
* A CSS2 parser
*
* @author Philippe Le H�garet
* @version $Revision: 1.15 $
- */
-public class Parser implements org.w3c.css.sac.Parser, ParserConstants {
-
+ */
+public class Parser implements org.w3c.css.sac.Parser, ParserConstants {
+
// replaces all \t, \n, etc with this StringBuffer.
- static final StringBuilder SPACE = new StringBuilder(" ");
-
+ static final StringBuilder SPACE = new StringBuilder(" ");
+
// the document handler for the parser
- protected SCSSDocumentHandlerImpl documentHandler;
+ protected SCSSDocumentHandlerImpl documentHandler;
// the error handler for the parser
- protected ErrorHandler errorHandler;
+ protected ErrorHandler errorHandler;
// the input source for the parser
- protected InputSource source;
-
- protected ConditionFactory conditionFactory;
- protected SelectorFactory selectorFactory;
-
+ protected InputSource source;
+
+ protected ConditionFactory conditionFactory;
+ protected SelectorFactory selectorFactory;
+
// temporary place holder for pseudo-element ...
- private String pseudoElt;
-
+ private String pseudoElt;
+
/**
* Creates a new Parser
- */
- public Parser() {
- this((CharStream) null);
- }
-
+ */
+ public Parser() {
+ this((CharStream) null);
+ }
+
/**
* @@TODO
* @exception CSSException Not yet implemented
- */
- public void setLocale(Locale locale) throws CSSException {
- throw new CSSException(CSSException.SAC_NOT_SUPPORTED_ERR);
- }
-
- public InputSource getInputSource(){
- return source;
- }
-
+ */
+ public void setLocale(Locale locale) throws CSSException {
+ throw new CSSException(CSSException.SAC_NOT_SUPPORTED_ERR);
+ }
+
+ public InputSource getInputSource(){
+ return source;
+ }
+
/**
* Set the document handler for this parser
- */
- public void setDocumentHandler(DocumentHandler handler) {
- this.documentHandler = (SCSSDocumentHandlerImpl) handler;
- }
-
- public void setSelectorFactory(SelectorFactory selectorFactory) {
- this.selectorFactory = selectorFactory;
- }
-
- public void setConditionFactory(ConditionFactory conditionFactory) {
- this.conditionFactory = conditionFactory;
- }
-
+ */
+ public void setDocumentHandler(DocumentHandler handler) {
+ this.documentHandler = (SCSSDocumentHandlerImpl) handler;
+ }
+
+ public void setSelectorFactory(SelectorFactory selectorFactory) {
+ this.selectorFactory = selectorFactory;
+ }
+
+ public void setConditionFactory(ConditionFactory conditionFactory) {
+ this.conditionFactory = conditionFactory;
+ }
+
/**
* Set the error handler for this parser
- */
- public void setErrorHandler(ErrorHandler error) {
- this.errorHandler = error;
- }
-
+ */
+ public void setErrorHandler(ErrorHandler error) {
+ this.errorHandler = error;
+ }
+
/**
* Main parse methods
*
* @param source the source of the style sheet.
* @exception IOException the source can't be parsed.
* @exception CSSException the source is not CSS valid.
- */
- public void parseStyleSheet(InputSource source)
- throws CSSException, IOException {
- this.source = source;
- ReInit(getCharStreamWithLurk(source));
- if (selectorFactory == null) {
- selectorFactory = new SelectorFactoryImpl();
- }
- if (conditionFactory == null) {
- conditionFactory = new ConditionFactoryImpl();
- }
-
- parserUnit();
- }
-
+ */
+ public void parseStyleSheet(InputSource source)
+ throws CSSException, IOException {
+ this.source = source;
+ ReInit(getCharStreamWithLurk(source));
+ if (selectorFactory == null) {
+ selectorFactory = new SelectorFactoryImpl();
+ }
+ if (conditionFactory == null) {
+ conditionFactory = new ConditionFactoryImpl();
+ }
+
+ parserUnit();
+ }
+
/**
* Convenient method for URIs.
*
* @param systemId the fully resolved URI of the style sheet.
* @exception IOException the source can't be parsed.
* @exception CSSException the source is not CSS valid.
- */
- public void parseStyleSheet(String systemId)
- throws CSSException, IOException {
- parseStyleSheet(new InputSource(systemId));
- }
-
+ */
+ public void parseStyleSheet(String systemId)
+ throws CSSException, IOException {
+ parseStyleSheet(new InputSource(systemId));
+ }
+
/**
* This method parses only one rule (style rule or at-rule, except @charset).
*
* @param source the source of the rule.
* @exception IOException the source can't be parsed.
* @exception CSSException the source is not CSS valid.
- */
- public void parseRule(InputSource source)
- throws CSSException, IOException {
- this.source = source;
- ReInit(getCharStreamWithLurk(source));
-
- if (selectorFactory == null) {
- selectorFactory = new SelectorFactoryImpl();
- }
- if (conditionFactory == null) {
- conditionFactory = new ConditionFactoryImpl();
- }
- _parseRule();
- }
-
+ */
+ public void parseRule(InputSource source)
+ throws CSSException, IOException {
+ this.source = source;
+ ReInit(getCharStreamWithLurk(source));
+
+ if (selectorFactory == null) {
+ selectorFactory = new SelectorFactoryImpl();
+ }
+ if (conditionFactory == null) {
+ conditionFactory = new ConditionFactoryImpl();
+ }
+ _parseRule();
+ }
+
/**
* This method parses a style declaration (including the surrounding curly
* braces).
@@ -157,7598 +157,7646 @@ public class Parser implements org.w3c.css.sac.Parser, ParserConstants {
* @param source the source of the style declaration.
* @exception IOException the source can't be parsed.
* @exception CSSException the source is not CSS valid.
- */
- public void parseStyleDeclaration(InputSource source)
- throws CSSException, IOException {
- this.source = source;
- ReInit(getCharStreamWithLurk(source));
-
- if (selectorFactory == null) {
- selectorFactory = new SelectorFactoryImpl();
- }
- if (conditionFactory == null) {
- conditionFactory = new ConditionFactoryImpl();
- }
- _parseDeclarationBlock();
- }
-
+ */
+ public void parseStyleDeclaration(InputSource source)
+ throws CSSException, IOException {
+ this.source = source;
+ ReInit(getCharStreamWithLurk(source));
+
+ if (selectorFactory == null) {
+ selectorFactory = new SelectorFactoryImpl();
+ }
+ if (conditionFactory == null) {
+ conditionFactory = new ConditionFactoryImpl();
+ }
+ _parseDeclarationBlock();
+ }
+
/**
* This methods returns "http://www.w3.org/TR/REC-CSS2".
* @return the string "http://www.w3.org/TR/REC-CSS2".
- */
- public String getParserVersion() {
- return "http://www.w3.org/TR/REC-CSS2";
- }
-
+ */
+ public String getParserVersion() {
+ return "http://www.w3.org/TR/REC-CSS2";
+ }
+
/**
* Parse methods used by DOM Level 2 implementation.
- */
- public void parseImportRule(InputSource source)
- throws CSSException, IOException {
- this.source = source;
- ReInit(getCharStreamWithLurk(source));
-
- if (selectorFactory == null) {
- selectorFactory = new SelectorFactoryImpl();
- }
- if (conditionFactory == null) {
- conditionFactory = new ConditionFactoryImpl();
- }
- _parseImportRule();
- }
-
- public void parseMediaRule(InputSource source)
- throws CSSException, IOException {
- this.source = source;
- ReInit(getCharStreamWithLurk(source));
-
- if (selectorFactory == null) {
- selectorFactory = new SelectorFactoryImpl();
- }
- if (conditionFactory == null) {
- conditionFactory = new ConditionFactoryImpl();
- }
- _parseMediaRule();
- }
-
- public SelectorList parseSelectors(InputSource source)
- throws CSSException, IOException {
- this.source = source;
- ReInit(getCharStreamWithLurk(source));
-
- return null;
- }
-
- public LexicalUnit parsePropertyValue(InputSource source)
- throws CSSException, IOException {
- this.source = source;
- ReInit(getCharStreamWithLurk(source));
-
- return expr();
- }
-
- public boolean parsePriority(InputSource source)
- throws CSSException, IOException {
- this.source = source;
- ReInit(getCharStreamWithLurk(source));
-
- return prio();
- }
-
+ */
+ public void parseImportRule(InputSource source)
+ throws CSSException, IOException {
+ this.source = source;
+ ReInit(getCharStreamWithLurk(source));
+
+ if (selectorFactory == null) {
+ selectorFactory = new SelectorFactoryImpl();
+ }
+ if (conditionFactory == null) {
+ conditionFactory = new ConditionFactoryImpl();
+ }
+ _parseImportRule();
+ }
+
+ public void parseMediaRule(InputSource source)
+ throws CSSException, IOException {
+ this.source = source;
+ ReInit(getCharStreamWithLurk(source));
+
+ if (selectorFactory == null) {
+ selectorFactory = new SelectorFactoryImpl();
+ }
+ if (conditionFactory == null) {
+ conditionFactory = new ConditionFactoryImpl();
+ }
+ _parseMediaRule();
+ }
+
+ public SelectorList parseSelectors(InputSource source)
+ throws CSSException, IOException {
+ this.source = source;
+ ReInit(getCharStreamWithLurk(source));
+
+ return null;
+ }
+
+ public LexicalUnit parsePropertyValue(InputSource source)
+ throws CSSException, IOException {
+ this.source = source;
+ ReInit(getCharStreamWithLurk(source));
+
+ return expr();
+ }
+
+ public boolean parsePriority(InputSource source)
+ throws CSSException, IOException {
+ this.source = source;
+ ReInit(getCharStreamWithLurk(source));
+
+ return prio();
+ }
+
/**
* Convert the source into a Reader. Used only by DOM Level 2 parser methods.
- */
- private Reader getReader(InputSource source) throws IOException {
- if (source.getCharacterStream() != null) {
- return source.getCharacterStream();
- } else if (source.getByteStream() != null) {
+ */
+ private Reader getReader(InputSource source) throws IOException {
+ if (source.getCharacterStream() != null) {
+ return source.getCharacterStream();
+ } else if (source.getByteStream() != null) {
// My DOM level 2 implementation doesn't use this case.
- if (source.getEncoding() == null) {
+ if (source.getEncoding() == null) {
// unknown encoding, use ASCII as default.
- return new InputStreamReader(source.getByteStream(), "ASCII");
- } else {
- return new InputStreamReader(source.getByteStream(),
- source.getEncoding());
- }
- } else {
+ return new InputStreamReader(source.getByteStream(), "ASCII");
+ } else {
+ return new InputStreamReader(source.getByteStream(),
+ source.getEncoding());
+ }
+ } else {
// systemId
// @@TODO
- throw new CSSException("not yet implemented");
- }
- }
-
+ throw new CSSException("not yet implemented");
+ }
+ }
+
/**
* Convert the source into a CharStream with encoding informations.
* The encoding can be found in the InputSource or in the CSS document.
* Since this method marks the reader and make a reset after looking for
* the charset declaration, you'll find the charset declaration into the
* stream.
- */
- private CharStream getCharStreamWithLurk(InputSource source)
- throws CSSException, IOException {
- if (source.getCharacterStream() != null) {
+ */
+ private CharStream getCharStreamWithLurk(InputSource source)
+ throws CSSException, IOException {
+ if (source.getCharacterStream() != null) {
// all encoding are supposed to be resolved by the user
// return the reader
- return new Generic_CharStream(source.getCharacterStream(), 1, 1);
- } else if (source.getByteStream() == null) {
+ return new Generic_CharStream(source.getCharacterStream(), 1, 1);
+ } else if (source.getByteStream() == null) {
// @@CONTINUE ME. see also getReader() with systemId
- try {
- source.setByteStream(new URL(source.getURI()).openStream());
- } catch (Exception e) {
- try {
- source.setByteStream(new FileInputStream(source.getURI()));
- } catch (IOException ex) {
- throw new CSSException("invalid url ?");
- }
- }
- }
+ try {
+ source.setByteStream(new URL(source.getURI()).openStream());
+ } catch (Exception e) {
+ try {
+ source.setByteStream(new FileInputStream(source.getURI()));
+ } catch (IOException ex) {
+ throw new CSSException("invalid url ?");
+ }
+ }
+ }
//use UTF-8 as the default encoding.
- String encoding = source.getEncoding();
- InputStream input = source.getByteStream();
- if (!input.markSupported()) {
+ String encoding = source.getEncoding();
+ InputStream input = source.getByteStream();
+ if (!input.markSupported()) {
// If mark is not supported, wrap it in a stream which supports mark
- input = new BufferedInputStream(input);
- source.setByteStream(input);
- }
+ input = new BufferedInputStream(input);
+ source.setByteStream(input);
+ }
// Mark either the original stream or the wrapped stream
- input.mark(100);
- if(encoding == null){
- encoding = "ASCII";
-
- char c = ' ';
-
- c = (char) input.read();
-
- if (c == '@') {
+ input.mark(100);
+ if(encoding == null){
+ encoding = "ASCII";
+
+ char c = ' ';
+
+ c = (char) input.read();
+
+ if (c == '@') {
// hum, is it a charset ?
- int size = 100;
- byte[] buf = new byte[size];
- input.read(buf, 0, 7);
- String keyword = new String(buf, 0, 7);
- if (keyword.equals("charset")) {
+ int size = 100;
+ byte[] buf = new byte[size];
+ input.read(buf, 0, 7);
+ String keyword = new String(buf, 0, 7);
+ if (keyword.equals("charset")) {
// Yes, this is the charset declaration !
-
+
// here I don't use the right declaration : white space are ' '.
- while ((c = (char) input.read()) == ' ') {
+ while ((c = (char) input.read()) == ' ') {
// find the first quote
- }
- char endChar = c;
- int i = 0;
-
- if ((endChar != '"') && (endChar != '\u005c'')) {
+ }
+ char endChar = c;
+ int i = 0;
+
+ if ((endChar != '"') && (endChar != '\u005c'')) {
// hum this is not a quote.
- throw new CSSException("invalid charset declaration");
- }
-
- while ((c = (char) input.read()) != endChar) {
- buf[i++] = (byte) c;
- if (i == size) {
- byte[] old = buf;
- buf = new byte[size + 100];
- System.arraycopy(old, 0, buf, 0, size);
- size += 100;
- }
- }
- while ((c = (char) input.read()) == ' ') {
+ throw new CSSException("invalid charset declaration");
+ }
+
+ while ((c = (char) input.read()) != endChar) {
+ buf[i++] = (byte) c;
+ if (i == size) {
+ byte[] old = buf;
+ buf = new byte[size + 100];
+ System.arraycopy(old, 0, buf, 0, size);
+ size += 100;
+ }
+ }
+ while ((c = (char) input.read()) == ' ') {
// find the next relevant character
- }
- if (c != ';') {
+ }
+ if (c != ';') {
// no semi colon at the end ?
- throw new CSSException("invalid charset declaration: "
- + "missing semi colon");
- }
- encoding = new String(buf, 0, i);
- if (source.getEncoding() != null) {
+ throw new CSSException("invalid charset declaration: "
+ + "missing semi colon");
+ }
+ encoding = new String(buf, 0, i);
+ if (source.getEncoding() != null) {
// compare the two encoding informations.
// For example, I don't accept to have ASCII and after UTF-8.
// Is it really good ? That is the question.
- if (!encoding.equals(source.getEncoding())) {
- throw new CSSException("invalid encoding information.");
- }
- }
+ if (!encoding.equals(source.getEncoding())) {
+ throw new CSSException("invalid encoding information.");
+ }
+ }
} // else no charset declaration available
- }
- }
+ }
+ }
// ok set the real encoding of this source.
- source.setEncoding(encoding);
+ source.setEncoding(encoding);
// set the real reader of this source.
- source.setCharacterStream(new InputStreamReader(source.getByteStream(),
- Encoding.getJavaEncoding(encoding)));
+ source.setCharacterStream(new InputStreamReader(source.getByteStream(),
+ Encoding.getJavaEncoding(encoding)));
// reset the stream (leave the charset declaration in the stream).
- input.reset();
-
- return new Generic_CharStream(source.getCharacterStream(), 1, 1);
- }
-
- private LocatorImpl currentLocator;
- private Locator getLocator() {
- if (currentLocator == null) {
- currentLocator = new LocatorImpl(this);
- return currentLocator;
- }
- return currentLocator.reInit(this);
- }
- private LocatorImpl getLocator(Token save) {
- if (currentLocator == null) {
- currentLocator = new LocatorImpl(this, save);
- return currentLocator;
- }
- return currentLocator.reInit(this, save);
- }
-
- private void reportError(Locator l, Exception e) {
- if (errorHandler != null) {
- if (e instanceof ParseException) {
+ input.reset();
+
+ return new Generic_CharStream(source.getCharacterStream(), 1, 1);
+ }
+
+ private LocatorImpl currentLocator;
+ private Locator getLocator() {
+ if (currentLocator == null) {
+ currentLocator = new LocatorImpl(this);
+ return currentLocator;
+ }
+ return currentLocator.reInit(this);
+ }
+ private LocatorImpl getLocator(Token save) {
+ if (currentLocator == null) {
+ currentLocator = new LocatorImpl(this, save);
+ return currentLocator;
+ }
+ return currentLocator.reInit(this, save);
+ }
+
+ private void reportError(Locator l, Exception e) {
+ if (errorHandler != null) {
+ if (e instanceof ParseException) {
// construct a clean error message.
- ParseException pe = (ParseException) e;
- if (pe.specialConstructor) {
- StringBuffer errorM = new StringBuffer();
- if (pe.currentToken != null) {
- errorM.append("encountered \u005c"")
- .append(pe.currentToken.next);
- }
- errorM.append('"');
- if (pe.expectedTokenSequences.length != 0) {
- errorM.append(". Was expecting one of: ");
- for (int i = 0; i < pe.expectedTokenSequences.length; i++) {
- for (int j = 0; j < pe.expectedTokenSequences[i].length; j++) {
- int kind = pe.expectedTokenSequences[i][j];
- if (kind != S) {
- errorM.append(pe.tokenImage[kind]);
- errorM.append(' ');
- }
- }
- }
- }
- errorHandler.error(new CSSParseException(errorM.toString(),
- l, e));
- } else {
- errorHandler.error(new CSSParseException(e.getMessage(),
- l, e));
- }
- } else if (e == null) {
- errorHandler.error(new CSSParseException("error", l, null));
- } else {
- errorHandler.error(new CSSParseException(e.getMessage(), l, e));
- }
- }
- }
-
- private void reportWarningSkipText(Locator l, String text) {
- if (errorHandler != null && text != null) {
- errorHandler.warning(new CSSParseException("Skipping: " + text, l));
- }
- }
-
+ ParseException pe = (ParseException) e;
+ if (pe.specialConstructor) {
+ StringBuffer errorM = new StringBuffer();
+ if (pe.currentToken != null) {
+ errorM.append("encountered \u005c"")
+ .append(pe.currentToken.next);
+ }
+ errorM.append('"');
+ if (pe.expectedTokenSequences.length != 0) {
+ errorM.append(". Was expecting one of: ");
+ for (int i = 0; i < pe.expectedTokenSequences.length; i++) {
+ for (int j = 0; j < pe.expectedTokenSequences[i].length; j++) {
+ int kind = pe.expectedTokenSequences[i][j];
+ if (kind != S) {
+ errorM.append(pe.tokenImage[kind]);
+ errorM.append(' ');
+ }
+ }
+ }
+ }
+ errorHandler.error(new CSSParseException(errorM.toString(),
+ l, e));
+ } else {
+ errorHandler.error(new CSSParseException(e.getMessage(),
+ l, e));
+ }
+ } else if (e == null) {
+ errorHandler.error(new CSSParseException("error", l, null));
+ } else {
+ errorHandler.error(new CSSParseException(e.getMessage(), l, e));
+ }
+ }
+ }
+
+ private void reportWarningSkipText(Locator l, String text) {
+ if (errorHandler != null && text != null) {
+ errorHandler.warning(new CSSParseException("Skipping: " + text, l));
+ }
+ }
+
/*
* The grammar of CSS2
- */
-
+ */
+
/**
* The main entry for the parser.
*
* @exception ParseException exception during the parse
- */
- final public void parserUnit() throws ParseException {
- try {
- documentHandler.startDocument(source);
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case CHARSET_SYM:
- charset();
- break;
- default:
- jj_la1[0] = jj_gen;
- ;
- }
- label_1:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- case CDO:
- case CDC:
- case ATKEYWORD:
- ;
- break;
- default:
- jj_la1[1] = jj_gen;
- break label_1;
- }
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- jj_consume_token(S);
- comments();
- break;
- case CDO:
- case CDC:
- case ATKEYWORD:
- ignoreStatement();
- break;
- default:
- jj_la1[2] = jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
- label_2:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case IMPORT_SYM:
- ;
- break;
- default:
- jj_la1[3] = jj_gen;
- break label_2;
- }
- importDeclaration();
- label_3:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case CDO:
- case CDC:
- case ATKEYWORD:
- ;
- break;
- default:
- jj_la1[4] = jj_gen;
- break label_3;
- }
- ignoreStatement();
- label_4:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[5] = jj_gen;
- break label_4;
- }
- jj_consume_token(S);
- }
- }
- }
- afterImportDeclaration();
- jj_consume_token(0);
- } finally {
- documentHandler.endDocument(source);
- }
- }
-
- final public void charset() throws ParseException {
- Token n;
- try {
- jj_consume_token(CHARSET_SYM);
- label_5:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[6] = jj_gen;
- break label_5;
- }
- jj_consume_token(S);
- }
- n = jj_consume_token(STRING);
- label_6:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[7] = jj_gen;
- break label_6;
- }
- jj_consume_token(S);
- }
- jj_consume_token(SEMICOLON);
- } catch (ParseException e) {
- reportError(getLocator(e.currentToken.next), e);
- skipStatement();
- // reportWarningSkipText(getLocator(), skipStatement());
-
- } catch (Exception e) {
- reportError(getLocator(), e);
- skipStatement();
- // reportWarningSkipText(getLocator(), skipStatement());
-
- }
- }
-
- final public void afterImportDeclaration() throws ParseException {
- String ret;
- Locator l;
- label_7:
- while (true) {
- ;
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case DEBUG_SYM:
- case WARN_SYM:
- debuggingDirective();
- break;
- case MIXIN_SYM:
- mixinDirective();
- break;
- case EACH_SYM:
- case IF_SYM:
- controlDirective();
- break;
- case INCLUDE_SYM:
- includeDirective();
- break;
- case PLUS:
- case PRECEDES:
- case SIBLING:
- case LBRACKET:
- case ANY:
- case PARENT:
- case DOT:
- case COLON:
- case INTERPOLATION:
- case IDENT:
- case HASH:
- styleRule();
- break;
- case MEDIA_SYM:
- media();
- break;
- case PAGE_SYM:
- page();
- break;
- case FONT_FACE_SYM:
- fontFace();
- break;
- case KEY_FRAME_SYM:
- keyframes();
- break;
- default:
- jj_la1[8] = jj_gen;
- if (jj_2_1(2147483647)) {
- variable();
- } else {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case VARIABLE:
- listModifyDirective();
- break;
- default:
- jj_la1[9] = jj_gen;
- l = getLocator();
- ret = skipStatement();
- if ((ret == null) || (ret.length() == 0)) {
- {if (true) return;}
- }
- if (ret.charAt(0) == '@') {
- documentHandler.unrecognizedRule(ret);
- } else {
- reportWarningSkipText(l, ret);
- }
- }
- }
- }
- label_8:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case CDO:
- case CDC:
- case ATKEYWORD:
- ;
- break;
- default:
- jj_la1[10] = jj_gen;
- break label_8;
- }
- ignoreStatement();
- label_9:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[11] = jj_gen;
- break label_9;
- }
- jj_consume_token(S);
- }
- }
- }
- }
-
- final public void ignoreStatement() throws ParseException {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case CDO:
- jj_consume_token(CDO);
- break;
- case CDC:
- jj_consume_token(CDC);
- break;
- case ATKEYWORD:
- atRuleDeclaration();
- break;
- default:
- jj_la1[12] = jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
-
+ */
+ final public void parserUnit() throws ParseException {
+ try {
+ documentHandler.startDocument(source);
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case CHARSET_SYM:
+ charset();
+ break;
+ default:
+ jj_la1[0] = jj_gen;
+ ;
+ }
+ label_1:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ case CDO:
+ case CDC:
+ case ATKEYWORD:
+ ;
+ break;
+ default:
+ jj_la1[1] = jj_gen;
+ break label_1;
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ jj_consume_token(S);
+ comments();
+ break;
+ case CDO:
+ case CDC:
+ case ATKEYWORD:
+ ignoreStatement();
+ break;
+ default:
+ jj_la1[2] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ }
+ label_2:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case IMPORT_SYM:
+ ;
+ break;
+ default:
+ jj_la1[3] = jj_gen;
+ break label_2;
+ }
+ importDeclaration();
+ label_3:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case CDO:
+ case CDC:
+ case ATKEYWORD:
+ ;
+ break;
+ default:
+ jj_la1[4] = jj_gen;
+ break label_3;
+ }
+ ignoreStatement();
+ label_4:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[5] = jj_gen;
+ break label_4;
+ }
+ jj_consume_token(S);
+ }
+ }
+ }
+ afterImportDeclaration();
+ jj_consume_token(0);
+ } finally {
+ documentHandler.endDocument(source);
+ }
+ }
+
+ final public void charset() throws ParseException {
+ Token n;
+ try {
+ jj_consume_token(CHARSET_SYM);
+ label_5:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[6] = jj_gen;
+ break label_5;
+ }
+ jj_consume_token(S);
+ }
+ n = jj_consume_token(STRING);
+ label_6:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[7] = jj_gen;
+ break label_6;
+ }
+ jj_consume_token(S);
+ }
+ jj_consume_token(SEMICOLON);
+ } catch (ParseException e) {
+ reportError(getLocator(e.currentToken.next), e);
+ skipStatement();
+ // reportWarningSkipText(getLocator(), skipStatement());
+
+ } catch (Exception e) {
+ reportError(getLocator(), e);
+ skipStatement();
+ // reportWarningSkipText(getLocator(), skipStatement());
+
+ }
+ }
+
+ final public void afterImportDeclaration() throws ParseException {
+ String ret;
+ Locator l;
+ label_7:
+ while (true) {
+ ;
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case DEBUG_SYM:
+ case WARN_SYM:
+ debuggingDirective();
+ break;
+ case MIXIN_SYM:
+ mixinDirective();
+ break;
+ case EACH_SYM:
+ case IF_SYM:
+ controlDirective();
+ break;
+ case INCLUDE_SYM:
+ includeDirective();
+ break;
+ case PLUS:
+ case PRECEDES:
+ case SIBLING:
+ case LBRACKET:
+ case ANY:
+ case PARENT:
+ case DOT:
+ case COLON:
+ case INTERPOLATION:
+ case IDENT:
+ case HASH:
+ styleRule();
+ break;
+ case MEDIA_SYM:
+ media();
+ break;
+ case PAGE_SYM:
+ page();
+ break;
+ case FONT_FACE_SYM:
+ fontFace();
+ break;
+ case KEY_FRAME_SYM:
+ keyframes();
+ break;
+ default:
+ jj_la1[8] = jj_gen;
+ if (jj_2_1(2147483647)) {
+ variable();
+ } else {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case VARIABLE:
+ listModifyDirective();
+ break;
+ default:
+ jj_la1[9] = jj_gen;
+ l = getLocator();
+ ret = skipStatement();
+ if ((ret == null) || (ret.length() == 0)) {
+ {if (true) return;}
+ }
+ if (ret.charAt(0) == '@') {
+ documentHandler.unrecognizedRule(ret);
+ } else {
+ reportWarningSkipText(l, ret);
+ }
+ }
+ }
+ }
+ label_8:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case CDO:
+ case CDC:
+ case ATKEYWORD:
+ ;
+ break;
+ default:
+ jj_la1[10] = jj_gen;
+ break label_8;
+ }
+ ignoreStatement();
+ label_9:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[11] = jj_gen;
+ break label_9;
+ }
+ jj_consume_token(S);
+ }
+ }
+ }
+ }
+
+ final public void ignoreStatement() throws ParseException {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case CDO:
+ jj_consume_token(CDO);
+ break;
+ case CDC:
+ jj_consume_token(CDC);
+ break;
+ case ATKEYWORD:
+ atRuleDeclaration();
+ break;
+ default:
+ jj_la1[12] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ }
+
/**
* The import statement
*
* @exception ParseException exception during the parse
- */
- final public void importDeclaration() throws ParseException {
- Token n;
- String uri;
- MediaListImpl ml = new MediaListImpl();
- boolean isURL = false;
- try {
- jj_consume_token(IMPORT_SYM);
- label_10:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[13] = jj_gen;
- break label_10;
- }
- jj_consume_token(S);
- }
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case STRING:
- n = jj_consume_token(STRING);
- uri = convertStringIndex(n.image, 1,
- n.image.length() -1);
- break;
- case URL:
- n = jj_consume_token(URL);
- isURL=true;
- uri = n.image.substring(4, n.image.length()-1).trim();
- if ((uri.charAt(0) == '"')
- || (uri.charAt(0) == '\u005c'')) {
- uri = uri.substring(1, uri.length()-1);
- }
- break;
- default:
- jj_la1[14] = jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- label_11:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[15] = jj_gen;
- break label_11;
- }
- jj_consume_token(S);
- }
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case IDENT:
- mediaStatement(ml);
- break;
- default:
- jj_la1[16] = jj_gen;
- ;
- }
- jj_consume_token(SEMICOLON);
- label_12:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[17] = jj_gen;
- break label_12;
- }
- jj_consume_token(S);
- }
- if (ml.getLength() == 0) {
- // see section 6.3 of the CSS2 recommandation.
- ml.addItem("all");
- }
- documentHandler.importStyle(uri, ml, isURL);
- } catch (ParseException e) {
- reportError(getLocator(), e);
- skipStatement();
- // reportWarningSkipText(getLocator(), skipStatement());
-
- }
- }
-
+ */
+ final public void importDeclaration() throws ParseException {
+ Token n;
+ String uri;
+ MediaListImpl ml = new MediaListImpl();
+ boolean isURL = false;
+ try {
+ jj_consume_token(IMPORT_SYM);
+ label_10:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[13] = jj_gen;
+ break label_10;
+ }
+ jj_consume_token(S);
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case STRING:
+ n = jj_consume_token(STRING);
+ uri = convertStringIndex(n.image, 1,
+ n.image.length() -1);
+ break;
+ case URL:
+ n = jj_consume_token(URL);
+ isURL=true;
+ uri = n.image.substring(4, n.image.length()-1).trim();
+ if ((uri.charAt(0) == '"')
+ || (uri.charAt(0) == '\u005c'')) {
+ uri = uri.substring(1, uri.length()-1);
+ }
+ break;
+ default:
+ jj_la1[14] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ label_11:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[15] = jj_gen;
+ break label_11;
+ }
+ jj_consume_token(S);
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case IDENT:
+ mediaStatement(ml);
+ break;
+ default:
+ jj_la1[16] = jj_gen;
+ ;
+ }
+ jj_consume_token(SEMICOLON);
+ label_12:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[17] = jj_gen;
+ break label_12;
+ }
+ jj_consume_token(S);
+ }
+ if (ml.getLength() == 0) {
+ // see section 6.3 of the CSS2 recommandation.
+ ml.addItem("all");
+ }
+ documentHandler.importStyle(uri, ml, isURL);
+ } catch (ParseException e) {
+ reportError(getLocator(), e);
+ skipStatement();
+ // reportWarningSkipText(getLocator(), skipStatement());
+
+ }
+ }
+
/**
* @exception ParseException exception during the parse
- */
- final public void keyframes() throws ParseException {
- Token n;
- boolean start = false;
- String keyframeName = null;
- String animationname = "";
- try {
- n = jj_consume_token(KEY_FRAME_SYM);
- label_13:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[18] = jj_gen;
- break label_13;
- }
- jj_consume_token(S);
- }
- keyframeName = n.image;
- label_14:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case IDENT:
- n = jj_consume_token(IDENT);
- animationname += n.image;
- break;
- case INTERPOLATION:
- n = jj_consume_token(INTERPOLATION);
- animationname += n.image;
- break;
- default:
- jj_la1[19] = jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case INTERPOLATION:
- case IDENT:
- ;
- break;
- default:
- jj_la1[20] = jj_gen;
- break label_14;
- }
- }
- label_15:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[21] = jj_gen;
- break label_15;
- }
- jj_consume_token(S);
- }
- start = true; documentHandler.startKeyFrames(keyframeName, animationname);
- jj_consume_token(LBRACE);
- label_16:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[22] = jj_gen;
- break label_16;
- }
- jj_consume_token(S);
- }
- label_17:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case TO:
- case FROM:
- case PERCENTAGE:
- ;
- break;
- default:
- jj_la1[23] = jj_gen;
- break label_17;
- }
- keyframeSelector();
- }
- jj_consume_token(RBRACE);
- label_18:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[24] = jj_gen;
- break label_18;
- }
- jj_consume_token(S);
- }
- } catch (ParseException e) {
- reportError(getLocator(), e);
- skipStatement();
- } finally {
- if (start) {
- documentHandler.endKeyFrames();
- }
- }
- }
-
- final public void keyframeSelector() throws ParseException {
- Token n;
- boolean start = false;
- try {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case FROM:
- n = jj_consume_token(FROM);
- break;
- case TO:
- n = jj_consume_token(TO);
- break;
- case PERCENTAGE:
- n = jj_consume_token(PERCENTAGE);
- break;
- default:
- jj_la1[25] = jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- label_19:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[26] = jj_gen;
- break label_19;
- }
- jj_consume_token(S);
- }
- jj_consume_token(LBRACE);
- label_20:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[27] = jj_gen;
- break label_20;
- }
- jj_consume_token(S);
- }
- start = true;
- documentHandler.startKeyframeSelector(n.image);
- label_21:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case PLUS:
- case PRECEDES:
- case SIBLING:
- case LBRACKET:
- case ANY:
- case PARENT:
- case DOT:
- case COLON:
- case INTERPOLATION:
- case INCLUDE_SYM:
- case DEBUG_SYM:
- case WARN_SYM:
- case EACH_SYM:
- case IF_SYM:
- case EXTEND_SYM:
- case CONTENT_SYM:
- case MICROSOFT_RULE:
- case IDENT:
- case VARIABLE:
- case HASH:
- case MEDIA_SYM:
- case KEY_FRAME_SYM:
- ;
- break;
- default:
- jj_la1[28] = jj_gen;
- break label_21;
- }
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case PLUS:
- case PRECEDES:
- case SIBLING:
- case LBRACKET:
- case ANY:
- case PARENT:
- case DOT:
- case COLON:
- case INTERPOLATION:
- case INCLUDE_SYM:
- case DEBUG_SYM:
- case WARN_SYM:
- case EXTEND_SYM:
- case CONTENT_SYM:
- case IDENT:
- case VARIABLE:
- case HASH:
- case MEDIA_SYM:
- case KEY_FRAME_SYM:
- ifContentStatement();
- break;
- case EACH_SYM:
- case IF_SYM:
- controlDirective();
- break;
- case MICROSOFT_RULE:
- microsoftExtension();
- break;
- default:
- jj_la1[29] = jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
- jj_consume_token(RBRACE);
- label_22:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[30] = jj_gen;
- break label_22;
- }
- jj_consume_token(S);
- }
- } catch (ThrowedParseException e) {
- if (errorHandler != null) {
- LocatorImpl li = new LocatorImpl(this,
- e.e.currentToken.next.beginLine,
- e.e.currentToken.next.beginColumn-1);
- reportError(li, e.e);
- }
- } catch (ParseException e) {
- reportError(getLocator(), e);
- skipStatement();
- // reportWarningSkipText(getLocator(), skipStatement());
-
- } catch (TokenMgrError e) {
- reportWarningSkipText(getLocator(), skipStatement());
- } finally {
- if (start) {
- documentHandler.endKeyframeSelector();
- }
- }
- }
-
+ */
+ final public void keyframes() throws ParseException {
+ Token n;
+ boolean start = false;
+ String keyframeName = null;
+ String animationname = "";
+ try {
+ n = jj_consume_token(KEY_FRAME_SYM);
+ label_13:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[18] = jj_gen;
+ break label_13;
+ }
+ jj_consume_token(S);
+ }
+ keyframeName = n.image;
+ label_14:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case IDENT:
+ n = jj_consume_token(IDENT);
+ animationname += n.image;
+ break;
+ case INTERPOLATION:
+ n = jj_consume_token(INTERPOLATION);
+ animationname += n.image;
+ break;
+ default:
+ jj_la1[19] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case INTERPOLATION:
+ case IDENT:
+ ;
+ break;
+ default:
+ jj_la1[20] = jj_gen;
+ break label_14;
+ }
+ }
+ label_15:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[21] = jj_gen;
+ break label_15;
+ }
+ jj_consume_token(S);
+ }
+ start = true; documentHandler.startKeyFrames(keyframeName, animationname);
+ jj_consume_token(LBRACE);
+ label_16:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[22] = jj_gen;
+ break label_16;
+ }
+ jj_consume_token(S);
+ }
+ label_17:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case TO:
+ case FROM:
+ case PERCENTAGE:
+ ;
+ break;
+ default:
+ jj_la1[23] = jj_gen;
+ break label_17;
+ }
+ keyframeSelector();
+ }
+ jj_consume_token(RBRACE);
+ label_18:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[24] = jj_gen;
+ break label_18;
+ }
+ jj_consume_token(S);
+ }
+ } catch (ParseException e) {
+ reportError(getLocator(), e);
+ skipStatement();
+ } finally {
+ if (start) {
+ documentHandler.endKeyFrames();
+ }
+ }
+ }
+
+ final public void keyframeSelector() throws ParseException {
+ Token n;
+ boolean start = false;
+ try {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case FROM:
+ n = jj_consume_token(FROM);
+ break;
+ case TO:
+ n = jj_consume_token(TO);
+ break;
+ case PERCENTAGE:
+ n = jj_consume_token(PERCENTAGE);
+ break;
+ default:
+ jj_la1[25] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ label_19:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[26] = jj_gen;
+ break label_19;
+ }
+ jj_consume_token(S);
+ }
+ jj_consume_token(LBRACE);
+ label_20:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[27] = jj_gen;
+ break label_20;
+ }
+ jj_consume_token(S);
+ }
+ start = true;
+ documentHandler.startKeyframeSelector(n.image);
+ label_21:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case PLUS:
+ case PRECEDES:
+ case SIBLING:
+ case LBRACKET:
+ case ANY:
+ case PARENT:
+ case DOT:
+ case COLON:
+ case INTERPOLATION:
+ case INCLUDE_SYM:
+ case DEBUG_SYM:
+ case WARN_SYM:
+ case EACH_SYM:
+ case IF_SYM:
+ case EXTEND_SYM:
+ case CONTENT_SYM:
+ case MICROSOFT_RULE:
+ case IDENT:
+ case VARIABLE:
+ case HASH:
+ case MEDIA_SYM:
+ case KEY_FRAME_SYM:
+ ;
+ break;
+ default:
+ jj_la1[28] = jj_gen;
+ break label_21;
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case PLUS:
+ case PRECEDES:
+ case SIBLING:
+ case LBRACKET:
+ case ANY:
+ case PARENT:
+ case DOT:
+ case COLON:
+ case INTERPOLATION:
+ case INCLUDE_SYM:
+ case DEBUG_SYM:
+ case WARN_SYM:
+ case EXTEND_SYM:
+ case CONTENT_SYM:
+ case IDENT:
+ case VARIABLE:
+ case HASH:
+ case MEDIA_SYM:
+ case KEY_FRAME_SYM:
+ ifContentStatement();
+ break;
+ case EACH_SYM:
+ case IF_SYM:
+ controlDirective();
+ break;
+ case MICROSOFT_RULE:
+ microsoftExtension();
+ break;
+ default:
+ jj_la1[29] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ }
+ jj_consume_token(RBRACE);
+ label_22:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[30] = jj_gen;
+ break label_22;
+ }
+ jj_consume_token(S);
+ }
+ } catch (ThrowedParseException e) {
+ if (errorHandler != null) {
+ LocatorImpl li = new LocatorImpl(this,
+ e.e.currentToken.next.beginLine,
+ e.e.currentToken.next.beginColumn-1);
+ reportError(li, e.e);
+ }
+ } catch (ParseException e) {
+ reportError(getLocator(), e);
+ skipStatement();
+ // reportWarningSkipText(getLocator(), skipStatement());
+
+ } catch (TokenMgrError e) {
+ reportWarningSkipText(getLocator(), skipStatement());
+ } finally {
+ if (start) {
+ documentHandler.endKeyframeSelector();
+ }
+ }
+ }
+
/**
* @exception ParseException exception during the parse
- */
- final public void media() throws ParseException {
- boolean start = false;
- String ret;
- MediaListImpl ml = new MediaListImpl();
- try {
- jj_consume_token(MEDIA_SYM);
- label_23:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[31] = jj_gen;
- break label_23;
- }
- jj_consume_token(S);
- }
- mediaStatement(ml);
- start = true; documentHandler.startMedia(ml);
- jj_consume_token(LBRACE);
- label_24:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[32] = jj_gen;
- break label_24;
- }
- jj_consume_token(S);
- }
- label_25:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case CDO:
- case LBRACE:
- case DASHMATCH:
- case INCLUDES:
- case PLUS:
- case MINUS:
- case COMMA:
- case SEMICOLON:
- case PRECEDES:
- case SIBLING:
- case LBRACKET:
- case ANY:
- case PARENT:
- case DOT:
- case COLON:
- case INTERPOLATION:
- case NONASCII:
- case DEBUG_SYM:
- case WARN_SYM:
- case STRING:
- case IDENT:
- case NUMBER:
- case URL:
- case PERCENTAGE:
- case HASH:
- case IMPORT_SYM:
- case MEDIA_SYM:
- case CHARSET_SYM:
- case PAGE_SYM:
- case FONT_FACE_SYM:
- case ATKEYWORD:
- case IMPORTANT_SYM:
- case UNICODERANGE:
- case FUNCTION:
- case UNKNOWN:
- ;
- break;
- default:
- jj_la1[33] = jj_gen;
- break label_25;
- }
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case DEBUG_SYM:
- case WARN_SYM:
- debuggingDirective();
- break;
- case PLUS:
- case PRECEDES:
- case SIBLING:
- case LBRACKET:
- case ANY:
- case PARENT:
- case DOT:
- case COLON:
- case INTERPOLATION:
- case IDENT:
- case HASH:
- styleRule();
- break;
- case CDO:
- case LBRACE:
- case DASHMATCH:
- case INCLUDES:
- case MINUS:
- case COMMA:
- case SEMICOLON:
- case NONASCII:
- case STRING:
- case NUMBER:
- case URL:
- case PERCENTAGE:
- case IMPORT_SYM:
- case MEDIA_SYM:
- case CHARSET_SYM:
- case PAGE_SYM:
- case FONT_FACE_SYM:
- case ATKEYWORD:
- case IMPORTANT_SYM:
- case UNICODERANGE:
- case FUNCTION:
- case UNKNOWN:
- skipUnknownRule();
- break;
- default:
- jj_la1[34] = jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
- jj_consume_token(RBRACE);
- label_26:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[35] = jj_gen;
- break label_26;
- }
- jj_consume_token(S);
- }
- } catch (ParseException e) {
- reportError(getLocator(), e);
- skipStatement();
- // reportWarningSkipText(getLocator(), skipStatement());
-
- } finally {
- if (start) {
- documentHandler.endMedia(ml);
- }
- }
- }
-
- final public void mediaStatement(MediaListImpl ml) throws ParseException {
- String m;
- m = medium();
- label_27:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case COMMA:
- ;
- break;
- default:
- jj_la1[36] = jj_gen;
- break label_27;
- }
- jj_consume_token(COMMA);
- label_28:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[37] = jj_gen;
- break label_28;
- }
- jj_consume_token(S);
- }
- ml.addItem(m);
- m = medium();
- }
- ml.addItem(m);
- }
-
+ */
+ final public void media() throws ParseException {
+ boolean start = false;
+ String ret;
+ MediaListImpl ml = new MediaListImpl();
+ try {
+ jj_consume_token(MEDIA_SYM);
+ label_23:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[31] = jj_gen;
+ break label_23;
+ }
+ jj_consume_token(S);
+ }
+ mediaStatement(ml);
+ start = true; documentHandler.startMedia(ml);
+ jj_consume_token(LBRACE);
+ label_24:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[32] = jj_gen;
+ break label_24;
+ }
+ jj_consume_token(S);
+ }
+ label_25:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case CDO:
+ case LBRACE:
+ case DASHMATCH:
+ case INCLUDES:
+ case PLUS:
+ case MINUS:
+ case COMMA:
+ case SEMICOLON:
+ case PRECEDES:
+ case SIBLING:
+ case LBRACKET:
+ case ANY:
+ case PARENT:
+ case DOT:
+ case COLON:
+ case INTERPOLATION:
+ case NONASCII:
+ case DEBUG_SYM:
+ case WARN_SYM:
+ case STRING:
+ case IDENT:
+ case NUMBER:
+ case URL:
+ case PERCENTAGE:
+ case HASH:
+ case IMPORT_SYM:
+ case MEDIA_SYM:
+ case CHARSET_SYM:
+ case PAGE_SYM:
+ case FONT_FACE_SYM:
+ case ATKEYWORD:
+ case IMPORTANT_SYM:
+ case UNICODERANGE:
+ case FUNCTION:
+ case UNKNOWN:
+ ;
+ break;
+ default:
+ jj_la1[33] = jj_gen;
+ break label_25;
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case DEBUG_SYM:
+ case WARN_SYM:
+ debuggingDirective();
+ break;
+ case PLUS:
+ case PRECEDES:
+ case SIBLING:
+ case LBRACKET:
+ case ANY:
+ case PARENT:
+ case DOT:
+ case COLON:
+ case INTERPOLATION:
+ case IDENT:
+ case HASH:
+ styleRule();
+ break;
+ case CDO:
+ case LBRACE:
+ case DASHMATCH:
+ case INCLUDES:
+ case MINUS:
+ case COMMA:
+ case SEMICOLON:
+ case NONASCII:
+ case STRING:
+ case NUMBER:
+ case URL:
+ case PERCENTAGE:
+ case IMPORT_SYM:
+ case MEDIA_SYM:
+ case CHARSET_SYM:
+ case PAGE_SYM:
+ case FONT_FACE_SYM:
+ case ATKEYWORD:
+ case IMPORTANT_SYM:
+ case UNICODERANGE:
+ case FUNCTION:
+ case UNKNOWN:
+ skipUnknownRule();
+ break;
+ default:
+ jj_la1[34] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ }
+ jj_consume_token(RBRACE);
+ label_26:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[35] = jj_gen;
+ break label_26;
+ }
+ jj_consume_token(S);
+ }
+ } catch (ParseException e) {
+ reportError(getLocator(), e);
+ skipStatement();
+ // reportWarningSkipText(getLocator(), skipStatement());
+
+ } finally {
+ if (start) {
+ documentHandler.endMedia(ml);
+ }
+ }
+ }
+
+ final public void mediaStatement(MediaListImpl ml) throws ParseException {
+ String m;
+ m = medium();
+ label_27:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case COMMA:
+ ;
+ break;
+ default:
+ jj_la1[36] = jj_gen;
+ break label_27;
+ }
+ jj_consume_token(COMMA);
+ label_28:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[37] = jj_gen;
+ break label_28;
+ }
+ jj_consume_token(S);
+ }
+ ml.addItem(m);
+ m = medium();
+ }
+ ml.addItem(m);
+ }
+
/**
* @exception ParseException exception during the parse
- */
- final public String medium() throws ParseException {
- Token n;
- n = jj_consume_token(IDENT);
- label_29:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[38] = jj_gen;
- break label_29;
- }
- jj_consume_token(S);
- }
- {if (true) return convertIdent(n.image);}
- throw new Error("Missing return statement in function");
- }
-
+ */
+ final public String medium() throws ParseException {
+ Token n;
+ n = jj_consume_token(IDENT);
+ label_29:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[38] = jj_gen;
+ break label_29;
+ }
+ jj_consume_token(S);
+ }
+ {if (true) return convertIdent(n.image);}
+ throw new Error("Missing return statement in function");
+ }
+
/**
* @exception ParseException exception during the parse
- */
- final public void page() throws ParseException {
- boolean start = false;
- Token n = null;
- String page = null;
- String pseudo = null;
- try {
- jj_consume_token(PAGE_SYM);
- label_30:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[39] = jj_gen;
- break label_30;
- }
- jj_consume_token(S);
- }
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case IDENT:
- n = jj_consume_token(IDENT);
- label_31:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[40] = jj_gen;
- break label_31;
- }
- jj_consume_token(S);
- }
- break;
- default:
- jj_la1[41] = jj_gen;
- ;
- }
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case COLON:
- pseudo = pseudo_page();
- break;
- default:
- jj_la1[42] = jj_gen;
- ;
- }
- if (n != null) {
- page = convertIdent(n.image);
- }
- jj_consume_token(LBRACE);
- label_32:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[43] = jj_gen;
- break label_32;
- }
- jj_consume_token(S);
- }
- start = true;
- documentHandler.startPage(page, pseudo);
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case INTERPOLATION:
- case IDENT:
- declaration();
- break;
- default:
- jj_la1[44] = jj_gen;
- ;
- }
- label_33:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case SEMICOLON:
- ;
- break;
- default:
- jj_la1[45] = jj_gen;
- break label_33;
- }
- jj_consume_token(SEMICOLON);
- label_34:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[46] = jj_gen;
- break label_34;
- }
- jj_consume_token(S);
- }
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case INTERPOLATION:
- case IDENT:
- declaration();
- break;
- default:
- jj_la1[47] = jj_gen;
- ;
- }
- }
- jj_consume_token(RBRACE);
- label_35:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[48] = jj_gen;
- break label_35;
- }
- jj_consume_token(S);
- }
- } catch (ParseException e) {
- if (errorHandler != null) {
- LocatorImpl li = new LocatorImpl(this,
- e.currentToken.next.beginLine,
- e.currentToken.next.beginColumn-1);
- reportError(li, e);
- skipStatement();
- // reportWarningSkipText(li, skipStatement());
- } else {
- skipStatement();
- }
- } finally {
- if (start) {
- documentHandler.endPage(page, pseudo);
- }
- }
- }
-
- final public String pseudo_page() throws ParseException {
- Token n;
- jj_consume_token(COLON);
- n = jj_consume_token(IDENT);
- label_36:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[49] = jj_gen;
- break label_36;
- }
- jj_consume_token(S);
- }
- {if (true) return convertIdent(n.image);}
- throw new Error("Missing return statement in function");
- }
-
- final public void fontFace() throws ParseException {
- boolean start = false;
- try {
- jj_consume_token(FONT_FACE_SYM);
- label_37:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[50] = jj_gen;
- break label_37;
- }
- jj_consume_token(S);
- }
- jj_consume_token(LBRACE);
- label_38:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[51] = jj_gen;
- break label_38;
- }
- jj_consume_token(S);
- }
- start = true; documentHandler.startFontFace();
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case INTERPOLATION:
- case IDENT:
- declaration();
- break;
- default:
- jj_la1[52] = jj_gen;
- ;
- }
- label_39:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case SEMICOLON:
- ;
- break;
- default:
- jj_la1[53] = jj_gen;
- break label_39;
- }
- jj_consume_token(SEMICOLON);
- label_40:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[54] = jj_gen;
- break label_40;
- }
- jj_consume_token(S);
- }
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case INTERPOLATION:
- case IDENT:
- declaration();
- break;
- default:
- jj_la1[55] = jj_gen;
- ;
- }
- }
- jj_consume_token(RBRACE);
- label_41:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[56] = jj_gen;
- break label_41;
- }
- jj_consume_token(S);
- }
- } catch (ParseException e) {
- reportError(getLocator(), e);
- skipStatement();
- // reportWarningSkipText(getLocator(), skipStatement());
-
- } finally {
- if (start) {
- documentHandler.endFontFace();
- }
- }
- }
-
+ */
+ final public void page() throws ParseException {
+ boolean start = false;
+ Token n = null;
+ String page = null;
+ String pseudo = null;
+ try {
+ jj_consume_token(PAGE_SYM);
+ label_30:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[39] = jj_gen;
+ break label_30;
+ }
+ jj_consume_token(S);
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case IDENT:
+ n = jj_consume_token(IDENT);
+ label_31:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[40] = jj_gen;
+ break label_31;
+ }
+ jj_consume_token(S);
+ }
+ break;
+ default:
+ jj_la1[41] = jj_gen;
+ ;
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case COLON:
+ pseudo = pseudo_page();
+ break;
+ default:
+ jj_la1[42] = jj_gen;
+ ;
+ }
+ if (n != null) {
+ page = convertIdent(n.image);
+ }
+ jj_consume_token(LBRACE);
+ label_32:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[43] = jj_gen;
+ break label_32;
+ }
+ jj_consume_token(S);
+ }
+ start = true;
+ documentHandler.startPage(page, pseudo);
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case INTERPOLATION:
+ case IDENT:
+ declaration();
+ break;
+ default:
+ jj_la1[44] = jj_gen;
+ ;
+ }
+ label_33:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case SEMICOLON:
+ ;
+ break;
+ default:
+ jj_la1[45] = jj_gen;
+ break label_33;
+ }
+ jj_consume_token(SEMICOLON);
+ label_34:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[46] = jj_gen;
+ break label_34;
+ }
+ jj_consume_token(S);
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case INTERPOLATION:
+ case IDENT:
+ declaration();
+ break;
+ default:
+ jj_la1[47] = jj_gen;
+ ;
+ }
+ }
+ jj_consume_token(RBRACE);
+ label_35:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[48] = jj_gen;
+ break label_35;
+ }
+ jj_consume_token(S);
+ }
+ } catch (ParseException e) {
+ if (errorHandler != null) {
+ LocatorImpl li = new LocatorImpl(this,
+ e.currentToken.next.beginLine,
+ e.currentToken.next.beginColumn-1);
+ reportError(li, e);
+ skipStatement();
+ // reportWarningSkipText(li, skipStatement());
+ } else {
+ skipStatement();
+ }
+ } finally {
+ if (start) {
+ documentHandler.endPage(page, pseudo);
+ }
+ }
+ }
+
+ final public String pseudo_page() throws ParseException {
+ Token n;
+ jj_consume_token(COLON);
+ n = jj_consume_token(IDENT);
+ label_36:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[49] = jj_gen;
+ break label_36;
+ }
+ jj_consume_token(S);
+ }
+ {if (true) return convertIdent(n.image);}
+ throw new Error("Missing return statement in function");
+ }
+
+ final public void fontFace() throws ParseException {
+ boolean start = false;
+ try {
+ jj_consume_token(FONT_FACE_SYM);
+ label_37:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[50] = jj_gen;
+ break label_37;
+ }
+ jj_consume_token(S);
+ }
+ jj_consume_token(LBRACE);
+ label_38:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[51] = jj_gen;
+ break label_38;
+ }
+ jj_consume_token(S);
+ }
+ start = true; documentHandler.startFontFace();
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case INTERPOLATION:
+ case IDENT:
+ declaration();
+ break;
+ default:
+ jj_la1[52] = jj_gen;
+ ;
+ }
+ label_39:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case SEMICOLON:
+ ;
+ break;
+ default:
+ jj_la1[53] = jj_gen;
+ break label_39;
+ }
+ jj_consume_token(SEMICOLON);
+ label_40:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[54] = jj_gen;
+ break label_40;
+ }
+ jj_consume_token(S);
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case INTERPOLATION:
+ case IDENT:
+ declaration();
+ break;
+ default:
+ jj_la1[55] = jj_gen;
+ ;
+ }
+ }
+ jj_consume_token(RBRACE);
+ label_41:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[56] = jj_gen;
+ break label_41;
+ }
+ jj_consume_token(S);
+ }
+ } catch (ParseException e) {
+ reportError(getLocator(), e);
+ skipStatement();
+ // reportWarningSkipText(getLocator(), skipStatement());
+
+ } finally {
+ if (start) {
+ documentHandler.endFontFace();
+ }
+ }
+ }
+
/**
* @exception ParseException exception during the parse
- */
- final public void atRuleDeclaration() throws ParseException {
- Token n;
- String ret;
- n = jj_consume_token(ATKEYWORD);
- ret=skipStatement();
- if ((ret != null) && (ret.charAt(0) == '@')) {
- documentHandler.unrecognizedRule(ret);
- } else {
- reportWarningSkipText(getLocator(), ret);
- }
- }
-
- final public void skipUnknownRule() throws ParseException {
- Token n;
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case ATKEYWORD:
- n = jj_consume_token(ATKEYWORD);
- break;
- case CDO:
- n = jj_consume_token(CDO);
- break;
- case CHARSET_SYM:
- n = jj_consume_token(CHARSET_SYM);
- break;
- case COMMA:
- n = jj_consume_token(COMMA);
- break;
- case DASHMATCH:
- n = jj_consume_token(DASHMATCH);
- break;
- case FONT_FACE_SYM:
- n = jj_consume_token(FONT_FACE_SYM);
- break;
- case FUNCTION:
- n = jj_consume_token(FUNCTION);
- break;
- case IMPORTANT_SYM:
- n = jj_consume_token(IMPORTANT_SYM);
- break;
- case IMPORT_SYM:
- n = jj_consume_token(IMPORT_SYM);
- break;
- case INCLUDES:
- n = jj_consume_token(INCLUDES);
- break;
- case LBRACE:
- n = jj_consume_token(LBRACE);
- break;
- case MEDIA_SYM:
- n = jj_consume_token(MEDIA_SYM);
- break;
- case NONASCII:
- n = jj_consume_token(NONASCII);
- break;
- case NUMBER:
- n = jj_consume_token(NUMBER);
- break;
- case PAGE_SYM:
- n = jj_consume_token(PAGE_SYM);
- break;
- case PERCENTAGE:
- n = jj_consume_token(PERCENTAGE);
- break;
- case STRING:
- n = jj_consume_token(STRING);
- break;
- case UNICODERANGE:
- n = jj_consume_token(UNICODERANGE);
- break;
- case URL:
- n = jj_consume_token(URL);
- break;
- case SEMICOLON:
- n = jj_consume_token(SEMICOLON);
- break;
- case MINUS:
- n = jj_consume_token(MINUS);
- break;
- case UNKNOWN:
- n = jj_consume_token(UNKNOWN);
- break;
- default:
- jj_la1[57] = jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- String ret;
- Locator loc = getLocator();
- ret=skipStatement();
- if ((ret != null) && (n.image.charAt(0) == '@')) {
- documentHandler.unrecognizedRule(ret);
- } else {
- reportWarningSkipText(loc, ret);
- }
- }
-
+ */
+ final public void atRuleDeclaration() throws ParseException {
+ Token n;
+ String ret;
+ n = jj_consume_token(ATKEYWORD);
+ ret=skipStatement();
+ if ((ret != null) && (ret.charAt(0) == '@')) {
+ documentHandler.unrecognizedRule(ret);
+ } else {
+ reportWarningSkipText(getLocator(), ret);
+ }
+ }
+
+ final public void skipUnknownRule() throws ParseException {
+ Token n;
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case ATKEYWORD:
+ n = jj_consume_token(ATKEYWORD);
+ break;
+ case CDO:
+ n = jj_consume_token(CDO);
+ break;
+ case CHARSET_SYM:
+ n = jj_consume_token(CHARSET_SYM);
+ break;
+ case COMMA:
+ n = jj_consume_token(COMMA);
+ break;
+ case DASHMATCH:
+ n = jj_consume_token(DASHMATCH);
+ break;
+ case FONT_FACE_SYM:
+ n = jj_consume_token(FONT_FACE_SYM);
+ break;
+ case FUNCTION:
+ n = jj_consume_token(FUNCTION);
+ break;
+ case IMPORTANT_SYM:
+ n = jj_consume_token(IMPORTANT_SYM);
+ break;
+ case IMPORT_SYM:
+ n = jj_consume_token(IMPORT_SYM);
+ break;
+ case INCLUDES:
+ n = jj_consume_token(INCLUDES);
+ break;
+ case LBRACE:
+ n = jj_consume_token(LBRACE);
+ break;
+ case MEDIA_SYM:
+ n = jj_consume_token(MEDIA_SYM);
+ break;
+ case NONASCII:
+ n = jj_consume_token(NONASCII);
+ break;
+ case NUMBER:
+ n = jj_consume_token(NUMBER);
+ break;
+ case PAGE_SYM:
+ n = jj_consume_token(PAGE_SYM);
+ break;
+ case PERCENTAGE:
+ n = jj_consume_token(PERCENTAGE);
+ break;
+ case STRING:
+ n = jj_consume_token(STRING);
+ break;
+ case UNICODERANGE:
+ n = jj_consume_token(UNICODERANGE);
+ break;
+ case URL:
+ n = jj_consume_token(URL);
+ break;
+ case SEMICOLON:
+ n = jj_consume_token(SEMICOLON);
+ break;
+ case MINUS:
+ n = jj_consume_token(MINUS);
+ break;
+ case UNKNOWN:
+ n = jj_consume_token(UNKNOWN);
+ break;
+ default:
+ jj_la1[57] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ String ret;
+ Locator loc = getLocator();
+ ret=skipStatement();
+ if ((ret != null) && (n.image.charAt(0) == '@')) {
+ documentHandler.unrecognizedRule(ret);
+ } else {
+ reportWarningSkipText(loc, ret);
+ }
+ }
+
/**
* @exception ParseException exception during the parse
- */
- final public char combinator() throws ParseException {
-char connector = ' ';
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case PLUS:
- case PRECEDES:
- case SIBLING:
- connector = combinatorChar();
- break;
- case S:
- jj_consume_token(S);
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case PLUS:
- case PRECEDES:
- case SIBLING:
- connector = combinatorChar();
- break;
- default:
- jj_la1[58] = jj_gen;
- ;
- }
- break;
- default:
- jj_la1[59] = jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- {if (true) return connector;}
- throw new Error("Missing return statement in function");
- }
-
-/**to refactor combinator and reuse in selector().*/
- final public char combinatorChar() throws ParseException {
- Token t;
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case PLUS:
- t = jj_consume_token(PLUS);
- break;
- case PRECEDES:
- t = jj_consume_token(PRECEDES);
- break;
- case SIBLING:
- t = jj_consume_token(SIBLING);
- break;
- default:
- jj_la1[60] = jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- label_42:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[61] = jj_gen;
- break label_42;
- }
- jj_consume_token(S);
- }
- {if (true) return t.image.charAt(0);}
- throw new Error("Missing return statement in function");
- }
-
- final public void microsoftExtension() throws ParseException {
- Token n;
- String name = "";
- String value = "";
- // This is not really taking the syntax of filter rules into account
- n = jj_consume_token(MICROSOFT_RULE);
- label_43:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[62] = jj_gen;
- break label_43;
- }
- jj_consume_token(S);
- }
- name = n.image;
- jj_consume_token(COLON);
- label_44:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case IDENT:
- n = jj_consume_token(IDENT);
- value += n.image;
- break;
- case NUMBER:
- n = jj_consume_token(NUMBER);
- value += n.image;
- break;
- case STRING:
- n = jj_consume_token(STRING);
- value += n.image;
- break;
- case COMMA:
- n = jj_consume_token(COMMA);
- value += n.image;
- break;
- case INTERPOLATION:
- n = jj_consume_token(INTERPOLATION);
- value += n.image;
- break;
- case COLON:
- n = jj_consume_token(COLON);
- value += n.image;
- break;
- case FUNCTION:
- n = jj_consume_token(FUNCTION);
- value += n.image;
- break;
- case RPARAN:
- n = jj_consume_token(RPARAN);
- value += n.image;
- break;
- case EQ:
- n = jj_consume_token(EQ);
- value += n.image;
- break;
- case DOT:
- n = jj_consume_token(DOT);
- value += n.image;
- break;
- case S:
- n = jj_consume_token(S);
- if(value.lastIndexOf(' ') != value.length()-1)
- { value += n.image; }
- break;
- default:
- jj_la1[63] = jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- case EQ:
- case COMMA:
- case DOT:
- case RPARAN:
- case COLON:
- case INTERPOLATION:
- case STRING:
- case IDENT:
- case NUMBER:
- case FUNCTION:
- ;
- break;
- default:
- jj_la1[64] = jj_gen;
- break label_44;
- }
- }
- jj_consume_token(SEMICOLON);
- label_45:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[65] = jj_gen;
- break label_45;
- }
- jj_consume_token(S);
- }
- documentHandler.microsoftDirective(name, value);
- }
-
+ */
+ final public char combinator() throws ParseException {
+char connector = ' ';
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case PLUS:
+ case PRECEDES:
+ case SIBLING:
+ connector = combinatorChar();
+ break;
+ case S:
+ jj_consume_token(S);
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case PLUS:
+ case PRECEDES:
+ case SIBLING:
+ connector = combinatorChar();
+ break;
+ default:
+ jj_la1[58] = jj_gen;
+ ;
+ }
+ break;
+ default:
+ jj_la1[59] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ {if (true) return connector;}
+ throw new Error("Missing return statement in function");
+ }
+
+/**to refactor combinator and reuse in selector().*/
+ final public char combinatorChar() throws ParseException {
+ Token t;
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case PLUS:
+ t = jj_consume_token(PLUS);
+ break;
+ case PRECEDES:
+ t = jj_consume_token(PRECEDES);
+ break;
+ case SIBLING:
+ t = jj_consume_token(SIBLING);
+ break;
+ default:
+ jj_la1[60] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ label_42:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[61] = jj_gen;
+ break label_42;
+ }
+ jj_consume_token(S);
+ }
+ {if (true) return t.image.charAt(0);}
+ throw new Error("Missing return statement in function");
+ }
+
+ final public void microsoftExtension() throws ParseException {
+ Token n;
+ String name = "";
+ String value = "";
+ // This is not really taking the syntax of filter rules into account
+ n = jj_consume_token(MICROSOFT_RULE);
+ label_43:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[62] = jj_gen;
+ break label_43;
+ }
+ jj_consume_token(S);
+ }
+ name = n.image;
+ jj_consume_token(COLON);
+ label_44:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case IDENT:
+ n = jj_consume_token(IDENT);
+ value += n.image;
+ break;
+ case NUMBER:
+ n = jj_consume_token(NUMBER);
+ value += n.image;
+ break;
+ case STRING:
+ n = jj_consume_token(STRING);
+ value += n.image;
+ break;
+ case COMMA:
+ n = jj_consume_token(COMMA);
+ value += n.image;
+ break;
+ case INTERPOLATION:
+ n = jj_consume_token(INTERPOLATION);
+ value += n.image;
+ break;
+ case COLON:
+ n = jj_consume_token(COLON);
+ value += n.image;
+ break;
+ case FUNCTION:
+ n = jj_consume_token(FUNCTION);
+ value += n.image;
+ break;
+ case RPARAN:
+ n = jj_consume_token(RPARAN);
+ value += n.image;
+ break;
+ case EQ:
+ n = jj_consume_token(EQ);
+ value += n.image;
+ break;
+ case DOT:
+ n = jj_consume_token(DOT);
+ value += n.image;
+ break;
+ case S:
+ n = jj_consume_token(S);
+ if(value.lastIndexOf(' ') != value.length()-1)
+ { value += n.image; }
+ break;
+ default:
+ jj_la1[63] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ case EQ:
+ case COMMA:
+ case DOT:
+ case RPARAN:
+ case COLON:
+ case INTERPOLATION:
+ case STRING:
+ case IDENT:
+ case NUMBER:
+ case FUNCTION:
+ ;
+ break;
+ default:
+ jj_la1[64] = jj_gen;
+ break label_44;
+ }
+ }
+ jj_consume_token(SEMICOLON);
+ label_45:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[65] = jj_gen;
+ break label_45;
+ }
+ jj_consume_token(S);
+ }
+ documentHandler.microsoftDirective(name, value);
+ }
+
/**
* @exception ParseException exception during the parse
- */
- final public String property() throws ParseException {
- Token t;String s = "";
- label_46:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case IDENT:
- t = jj_consume_token(IDENT);
- s += t.image;
- break;
- case INTERPOLATION:
- t = jj_consume_token(INTERPOLATION);
- s += t.image;
- break;
- default:
- jj_la1[66] = jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case INTERPOLATION:
- case IDENT:
- ;
- break;
- default:
- jj_la1[67] = jj_gen;
- break label_46;
- }
- }
- label_47:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[68] = jj_gen;
- break label_47;
- }
- jj_consume_token(S);
- }
- {if (true) return s;}
- throw new Error("Missing return statement in function");
- }
-
- final public String variableName() throws ParseException {
- Token n;
- n = jj_consume_token(VARIABLE);
- label_48:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[69] = jj_gen;
- break label_48;
- }
- jj_consume_token(S);
- }
- {if (true) return convertIdent(n.image.substring(1));}
- throw new Error("Missing return statement in function");
- }
-
- final public String functionName() throws ParseException {
- Token n;
- n = jj_consume_token(FUNCTION);
- label_49:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[70] = jj_gen;
- break label_49;
- }
- jj_consume_token(S);
- }
- {if (true) return convertIdent(n.image.substring(0, n.image.length()-1));}
- throw new Error("Missing return statement in function");
- }
-
+ */
+ final public String property() throws ParseException {
+ Token t;String s = "";
+ label_46:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case IDENT:
+ t = jj_consume_token(IDENT);
+ s += t.image;
+ break;
+ case INTERPOLATION:
+ t = jj_consume_token(INTERPOLATION);
+ s += t.image;
+ break;
+ default:
+ jj_la1[66] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case INTERPOLATION:
+ case IDENT:
+ ;
+ break;
+ default:
+ jj_la1[67] = jj_gen;
+ break label_46;
+ }
+ }
+ label_47:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[68] = jj_gen;
+ break label_47;
+ }
+ jj_consume_token(S);
+ }
+ {if (true) return s;}
+ throw new Error("Missing return statement in function");
+ }
+
+ final public String variableName() throws ParseException {
+ Token n;
+ n = jj_consume_token(VARIABLE);
+ label_48:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[69] = jj_gen;
+ break label_48;
+ }
+ jj_consume_token(S);
+ }
+ {if (true) return convertIdent(n.image.substring(1));}
+ throw new Error("Missing return statement in function");
+ }
+
+ final public String functionName() throws ParseException {
+ Token n;
+ n = jj_consume_token(FUNCTION);
+ label_49:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[70] = jj_gen;
+ break label_49;
+ }
+ jj_consume_token(S);
+ }
+ {if (true) return convertIdent(n.image.substring(0, n.image.length()-1));}
+ throw new Error("Missing return statement in function");
+ }
+
/**
* @exception ParseException exception during the parse
- */
- final public void styleRule() throws ParseException {
- boolean start = false;
- ArrayList<String> l = null;
- Token save;
- Locator loc;
- try {
- l = selectorList();
- save = token;
- jj_consume_token(LBRACE);
- label_50:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[71] = jj_gen;
- break label_50;
- }
- jj_consume_token(S);
- }
- start = true;
- documentHandler.startSelector(l);
- label_51:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case PLUS:
- case PRECEDES:
- case SIBLING:
- case LBRACKET:
- case ANY:
- case PARENT:
- case DOT:
- case COLON:
- case INTERPOLATION:
- case INCLUDE_SYM:
- case DEBUG_SYM:
- case WARN_SYM:
- case EACH_SYM:
- case IF_SYM:
- case EXTEND_SYM:
- case CONTENT_SYM:
- case MICROSOFT_RULE:
- case IDENT:
- case VARIABLE:
- case HASH:
- case MEDIA_SYM:
- case KEY_FRAME_SYM:
- ;
- break;
- default:
- jj_la1[72] = jj_gen;
- break label_51;
- }
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case PLUS:
- case PRECEDES:
- case SIBLING:
- case LBRACKET:
- case ANY:
- case PARENT:
- case DOT:
- case COLON:
- case INTERPOLATION:
- case INCLUDE_SYM:
- case DEBUG_SYM:
- case WARN_SYM:
- case EXTEND_SYM:
- case CONTENT_SYM:
- case IDENT:
- case VARIABLE:
- case HASH:
- case MEDIA_SYM:
- case KEY_FRAME_SYM:
- ifContentStatement();
- break;
- case EACH_SYM:
- case IF_SYM:
- controlDirective();
- break;
- case MICROSOFT_RULE:
- microsoftExtension();
- break;
- default:
- jj_la1[73] = jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
- jj_consume_token(RBRACE);
- label_52:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[74] = jj_gen;
- break label_52;
- }
- jj_consume_token(S);
- }
- } catch (ThrowedParseException e) {
- if (errorHandler != null) {
- LocatorImpl li = new LocatorImpl(this,
- e.e.currentToken.next.beginLine,
- e.e.currentToken.next.beginColumn-1);
- reportError(li, e.e);
- }
- } catch (ParseException e) {
- reportError(getLocator(), e);
- skipStatement();
- // reportWarningSkipText(getLocator(), skipStatement());
-
- } catch (TokenMgrError e) {
- reportWarningSkipText(getLocator(), skipStatement());
- } finally {
- if (start) {
- documentHandler.endSelector();
- }
- }
- }
-
- final public ArrayList<String> selectorList() throws ParseException {
- ArrayList<String> selectors = new ArrayList<String>();
- String selector;
- selector = selector();
- label_53:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case COMMA:
- ;
- break;
- default:
- jj_la1[75] = jj_gen;
- break label_53;
- }
- jj_consume_token(COMMA);
- label_54:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[76] = jj_gen;
- break label_54;
- }
- jj_consume_token(S);
- }
- selectors.add(selector);
- selector = selector();
- }
- selectors.add(selector);
- {if (true) return selectors;}
- throw new Error("Missing return statement in function");
- }
-
+ */
+ final public void styleRule() throws ParseException {
+ boolean start = false;
+ ArrayList<String> l = null;
+ Token save;
+ Locator loc;
+ try {
+ l = selectorList();
+ save = token;
+ jj_consume_token(LBRACE);
+ label_50:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[71] = jj_gen;
+ break label_50;
+ }
+ jj_consume_token(S);
+ }
+ start = true;
+ documentHandler.startSelector(l);
+ label_51:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case PLUS:
+ case PRECEDES:
+ case SIBLING:
+ case LBRACKET:
+ case ANY:
+ case PARENT:
+ case DOT:
+ case COLON:
+ case INTERPOLATION:
+ case INCLUDE_SYM:
+ case DEBUG_SYM:
+ case WARN_SYM:
+ case EACH_SYM:
+ case IF_SYM:
+ case EXTEND_SYM:
+ case CONTENT_SYM:
+ case MICROSOFT_RULE:
+ case IDENT:
+ case VARIABLE:
+ case HASH:
+ case MEDIA_SYM:
+ case KEY_FRAME_SYM:
+ ;
+ break;
+ default:
+ jj_la1[72] = jj_gen;
+ break label_51;
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case PLUS:
+ case PRECEDES:
+ case SIBLING:
+ case LBRACKET:
+ case ANY:
+ case PARENT:
+ case DOT:
+ case COLON:
+ case INTERPOLATION:
+ case INCLUDE_SYM:
+ case DEBUG_SYM:
+ case WARN_SYM:
+ case EXTEND_SYM:
+ case CONTENT_SYM:
+ case IDENT:
+ case VARIABLE:
+ case HASH:
+ case MEDIA_SYM:
+ case KEY_FRAME_SYM:
+ ifContentStatement();
+ break;
+ case EACH_SYM:
+ case IF_SYM:
+ controlDirective();
+ break;
+ case MICROSOFT_RULE:
+ microsoftExtension();
+ break;
+ default:
+ jj_la1[73] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ }
+ jj_consume_token(RBRACE);
+ label_52:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[74] = jj_gen;
+ break label_52;
+ }
+ jj_consume_token(S);
+ }
+ } catch (ThrowedParseException e) {
+ if (errorHandler != null) {
+ LocatorImpl li = new LocatorImpl(this,
+ e.e.currentToken.next.beginLine,
+ e.e.currentToken.next.beginColumn-1);
+ reportError(li, e.e);
+ }
+ } catch (ParseException e) {
+ reportError(getLocator(), e);
+ skipStatement();
+ // reportWarningSkipText(getLocator(), skipStatement());
+
+ } catch (TokenMgrError e) {
+ reportWarningSkipText(getLocator(), skipStatement());
+ } finally {
+ if (start) {
+ documentHandler.endSelector();
+ }
+ }
+ }
+
+ final public ArrayList<String> selectorList() throws ParseException {
+ ArrayList<String> selectors = new ArrayList<String>();
+ String selector;
+ selector = selector();
+ label_53:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case COMMA:
+ ;
+ break;
+ default:
+ jj_la1[75] = jj_gen;
+ break label_53;
+ }
+ jj_consume_token(COMMA);
+ label_54:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[76] = jj_gen;
+ break label_54;
+ }
+ jj_consume_token(S);
+ }
+ selectors.add(selector);
+ selector = selector();
+ }
+ selectors.add(selector);
+ {if (true) return selectors;}
+ throw new Error("Missing return statement in function");
+ }
+
/**
* @exception ParseException exception during the parse
- */
- final public String selector() throws ParseException {
- String selector = null;
- char comb;
- try {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case LBRACKET:
- case ANY:
- case PARENT:
- case DOT:
- case COLON:
- case INTERPOLATION:
- case IDENT:
- case HASH:
- selector = simple_selector(null, ' ');
- break;
- case PLUS:
- case PRECEDES:
- case SIBLING:
- comb = combinatorChar();
- selector = simple_selector(selector, comb);
- break;
- default:
- jj_la1[77] = jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- label_55:
- while (true) {
- if (jj_2_2(2)) {
- ;
- } else {
- break label_55;
- }
- comb = combinator();
- selector = simple_selector(selector, comb);
- }
- label_56:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[78] = jj_gen;
- break label_56;
- }
- jj_consume_token(S);
- }
- {if (true) return selector;}
- } catch (ParseException e) {
- /*
- Token t = getToken(1);
- StringBuffer s = new StringBuffer();
- s.append(getToken(0).image);
- while ((t.kind != COMMA) && (t.kind != SEMICOLON)
- && (t.kind != LBRACE) && (t.kind != EOF)) {
- s.append(t.image);
- getNextToken();
- t = getToken(1);
- }
- reportWarningSkipText(getLocator(), s.toString());
- */
- Token t = getToken(1);
- while ((t.kind != COMMA) && (t.kind != SEMICOLON)
- && (t.kind != LBRACE) && (t.kind != EOF)) {
- getNextToken();
- t = getToken(1);
- }
-
- {if (true) throw new ThrowedParseException(e);}
- }
- throw new Error("Missing return statement in function");
- }
-
+ */
+ final public String selector() throws ParseException {
+ String selector = null;
+ char comb;
+ try {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case LBRACKET:
+ case ANY:
+ case PARENT:
+ case DOT:
+ case COLON:
+ case INTERPOLATION:
+ case IDENT:
+ case HASH:
+ selector = simple_selector(null, ' ');
+ break;
+ case PLUS:
+ case PRECEDES:
+ case SIBLING:
+ comb = combinatorChar();
+ selector = simple_selector(selector, comb);
+ break;
+ default:
+ jj_la1[77] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ label_55:
+ while (true) {
+ if (jj_2_2(2)) {
+ ;
+ } else {
+ break label_55;
+ }
+ comb = combinator();
+ selector = simple_selector(selector, comb);
+ }
+ label_56:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[78] = jj_gen;
+ break label_56;
+ }
+ jj_consume_token(S);
+ }
+ {if (true) return selector;}
+ } catch (ParseException e) {
+ /*
+ Token t = getToken(1);
+ StringBuffer s = new StringBuffer();
+ s.append(getToken(0).image);
+ while ((t.kind != COMMA) && (t.kind != SEMICOLON)
+ && (t.kind != LBRACE) && (t.kind != EOF)) {
+ s.append(t.image);
+ getNextToken();
+ t = getToken(1);
+ }
+ reportWarningSkipText(getLocator(), s.toString());
+ */
+ Token t = getToken(1);
+ while ((t.kind != COMMA) && (t.kind != SEMICOLON)
+ && (t.kind != LBRACE) && (t.kind != EOF)) {
+ getNextToken();
+ t = getToken(1);
+ }
+
+ {if (true) throw new ThrowedParseException(e);}
+ }
+ throw new Error("Missing return statement in function");
+ }
+
/**
* @exception ParseException exception during the parse
- */
- final public String simple_selector(String selector, char comb) throws ParseException {
- String simple_current = null;
- String cond = null;
-
- pseudoElt = null;
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case ANY:
- case PARENT:
- case INTERPOLATION:
- case IDENT:
- simple_current = element_name();
- label_57:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case LBRACKET:
- case DOT:
- case COLON:
- case HASH:
- ;
- break;
- default:
- jj_la1[79] = jj_gen;
- break label_57;
- }
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case HASH:
- cond = hash(cond);
- break;
- case DOT:
- cond = _class(cond);
- break;
- case LBRACKET:
- cond = attrib(cond);
- break;
- case COLON:
- cond = pseudo(cond);
- break;
- default:
- jj_la1[80] = jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
- break;
- case HASH:
- cond = hash(cond);
- label_58:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case LBRACKET:
- case DOT:
- case COLON:
- ;
- break;
- default:
- jj_la1[81] = jj_gen;
- break label_58;
- }
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case DOT:
- cond = _class(cond);
- break;
- case LBRACKET:
- cond = attrib(cond);
- break;
- case COLON:
- cond = pseudo(cond);
- break;
- default:
- jj_la1[82] = jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
- break;
- case DOT:
- cond = _class(cond);
- label_59:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case LBRACKET:
- case DOT:
- case COLON:
- case HASH:
- ;
- break;
- default:
- jj_la1[83] = jj_gen;
- break label_59;
- }
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case HASH:
- cond = hash(cond);
- break;
- case DOT:
- cond = _class(cond);
- break;
- case LBRACKET:
- cond = attrib(cond);
- break;
- case COLON:
- cond = pseudo(cond);
- break;
- default:
- jj_la1[84] = jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
- break;
- case COLON:
- cond = pseudo(cond);
- label_60:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case LBRACKET:
- case DOT:
- case COLON:
- case HASH:
- ;
- break;
- default:
- jj_la1[85] = jj_gen;
- break label_60;
- }
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case HASH:
- cond = hash(cond);
- break;
- case DOT:
- cond = _class(cond);
- break;
- case LBRACKET:
- cond = attrib(cond);
- break;
- case COLON:
- cond = pseudo(cond);
- break;
- default:
- jj_la1[86] = jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
- break;
- case LBRACKET:
- cond = attrib(cond);
- label_61:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case LBRACKET:
- case DOT:
- case COLON:
- case HASH:
- ;
- break;
- default:
- jj_la1[87] = jj_gen;
- break label_61;
- }
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case HASH:
- cond = hash(cond);
- break;
- case DOT:
- cond = _class(cond);
- break;
- case LBRACKET:
- cond = attrib(cond);
- break;
- case COLON:
- cond = pseudo(cond);
- break;
- default:
- jj_la1[88] = jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
- break;
- default:
- jj_la1[89] = jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- if (simple_current == null) {
- simple_current = "";
- }
- if (cond != null) {
- simple_current = simple_current + cond;
- }
- StringBuilder builder = new StringBuilder();
- switch (comb) {
- case ' ':
- if(selector!=null){
- builder.append(selector).append(" ");
- }
- break;
- case '+':
- case '>':
- case '~':
- if(selector!=null){
- builder.append(selector).append(" ");
- }
- builder.append(comb).append(" ");
- break;
- default:
- {if (true) throw new ParseException("invalid state. send a bug report");}
- }
- builder.append(simple_current);
- selector = builder.toString();
-
- if (pseudoElt != null) {
- selector = selector + pseudoElt;
- }
- {if (true) return selector;}
- throw new Error("Missing return statement in function");
- }
-
+ */
+ final public String simple_selector(String selector, char comb) throws ParseException {
+ String simple_current = null;
+ String cond = null;
+
+ pseudoElt = null;
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case ANY:
+ case PARENT:
+ case INTERPOLATION:
+ case IDENT:
+ simple_current = element_name();
+ label_57:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case LBRACKET:
+ case DOT:
+ case COLON:
+ case HASH:
+ ;
+ break;
+ default:
+ jj_la1[79] = jj_gen;
+ break label_57;
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case HASH:
+ cond = hash(cond);
+ break;
+ case DOT:
+ cond = _class(cond);
+ break;
+ case LBRACKET:
+ cond = attrib(cond);
+ break;
+ case COLON:
+ cond = pseudo(cond);
+ break;
+ default:
+ jj_la1[80] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ }
+ break;
+ case HASH:
+ cond = hash(cond);
+ label_58:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case LBRACKET:
+ case DOT:
+ case COLON:
+ ;
+ break;
+ default:
+ jj_la1[81] = jj_gen;
+ break label_58;
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case DOT:
+ cond = _class(cond);
+ break;
+ case LBRACKET:
+ cond = attrib(cond);
+ break;
+ case COLON:
+ cond = pseudo(cond);
+ break;
+ default:
+ jj_la1[82] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ }
+ break;
+ case DOT:
+ cond = _class(cond);
+ label_59:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case LBRACKET:
+ case DOT:
+ case COLON:
+ case HASH:
+ ;
+ break;
+ default:
+ jj_la1[83] = jj_gen;
+ break label_59;
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case HASH:
+ cond = hash(cond);
+ break;
+ case DOT:
+ cond = _class(cond);
+ break;
+ case LBRACKET:
+ cond = attrib(cond);
+ break;
+ case COLON:
+ cond = pseudo(cond);
+ break;
+ default:
+ jj_la1[84] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ }
+ break;
+ case COLON:
+ cond = pseudo(cond);
+ label_60:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case LBRACKET:
+ case DOT:
+ case COLON:
+ case HASH:
+ ;
+ break;
+ default:
+ jj_la1[85] = jj_gen;
+ break label_60;
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case HASH:
+ cond = hash(cond);
+ break;
+ case DOT:
+ cond = _class(cond);
+ break;
+ case LBRACKET:
+ cond = attrib(cond);
+ break;
+ case COLON:
+ cond = pseudo(cond);
+ break;
+ default:
+ jj_la1[86] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ }
+ break;
+ case LBRACKET:
+ cond = attrib(cond);
+ label_61:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case LBRACKET:
+ case DOT:
+ case COLON:
+ case HASH:
+ ;
+ break;
+ default:
+ jj_la1[87] = jj_gen;
+ break label_61;
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case HASH:
+ cond = hash(cond);
+ break;
+ case DOT:
+ cond = _class(cond);
+ break;
+ case LBRACKET:
+ cond = attrib(cond);
+ break;
+ case COLON:
+ cond = pseudo(cond);
+ break;
+ default:
+ jj_la1[88] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ }
+ break;
+ default:
+ jj_la1[89] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ if (simple_current == null) {
+ simple_current = "";
+ }
+ if (cond != null) {
+ simple_current = simple_current + cond;
+ }
+ StringBuilder builder = new StringBuilder();
+ switch (comb) {
+ case ' ':
+ if(selector!=null){
+ builder.append(selector).append(" ");
+ }
+ break;
+ case '+':
+ case '>':
+ case '~':
+ if(selector!=null){
+ builder.append(selector).append(" ");
+ }
+ builder.append(comb).append(" ");
+ break;
+ default:
+ {if (true) throw new ParseException("invalid state. send a bug report");}
+ }
+ builder.append(simple_current);
+ selector = builder.toString();
+
+ if (pseudoElt != null) {
+ selector = selector + pseudoElt;
+ }
+ {if (true) return selector;}
+ throw new Error("Missing return statement in function");
+ }
+
/**
* @exception ParseException exception during the parse
- */
- final public String _class(String pred) throws ParseException {
- Token t;
-String s = ".";
- jj_consume_token(DOT);
- label_62:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case IDENT:
- t = jj_consume_token(IDENT);
- s += t.image;
- break;
- case INTERPOLATION:
- t = jj_consume_token(INTERPOLATION);
- s += t.image;
- break;
- default:
- jj_la1[90] = jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case INTERPOLATION:
- case IDENT:
- ;
- break;
- default:
- jj_la1[91] = jj_gen;
- break label_62;
- }
- }
- if (pred == null) {
- {if (true) return s;}
- } else {
- {if (true) return pred + s;}
- }
- throw new Error("Missing return statement in function");
- }
-
+ */
+ final public String _class(String pred) throws ParseException {
+ Token t;
+String s = ".";
+ jj_consume_token(DOT);
+ label_62:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case IDENT:
+ t = jj_consume_token(IDENT);
+ s += t.image;
+ break;
+ case INTERPOLATION:
+ t = jj_consume_token(INTERPOLATION);
+ s += t.image;
+ break;
+ default:
+ jj_la1[90] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case INTERPOLATION:
+ case IDENT:
+ ;
+ break;
+ default:
+ jj_la1[91] = jj_gen;
+ break label_62;
+ }
+ }
+ if (pred == null) {
+ {if (true) return s;}
+ } else {
+ {if (true) return pred + s;}
+ }
+ throw new Error("Missing return statement in function");
+ }
+
/**
* @exception ParseException exception during the parse
- */
- final public String element_name() throws ParseException {
- Token t; String s = "";
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case INTERPOLATION:
- case IDENT:
- label_63:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case IDENT:
- t = jj_consume_token(IDENT);
- s += t.image;
- break;
- case INTERPOLATION:
- t = jj_consume_token(INTERPOLATION);
- s += t.image;
- break;
- default:
- jj_la1[92] = jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case INTERPOLATION:
- case IDENT:
- ;
- break;
- default:
- jj_la1[93] = jj_gen;
- break label_63;
- }
- }
- {if (true) return s;}
- break;
- case ANY:
- jj_consume_token(ANY);
- {if (true) return "*";}
- break;
- case PARENT:
- jj_consume_token(PARENT);
- {if (true) return "&";}
- break;
- default:
- jj_la1[94] = jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- throw new Error("Missing return statement in function");
- }
-
+ */
+ final public String element_name() throws ParseException {
+ Token t; String s = "";
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case INTERPOLATION:
+ case IDENT:
+ label_63:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case IDENT:
+ t = jj_consume_token(IDENT);
+ s += t.image;
+ break;
+ case INTERPOLATION:
+ t = jj_consume_token(INTERPOLATION);
+ s += t.image;
+ break;
+ default:
+ jj_la1[92] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case INTERPOLATION:
+ case IDENT:
+ ;
+ break;
+ default:
+ jj_la1[93] = jj_gen;
+ break label_63;
+ }
+ }
+ {if (true) return s;}
+ break;
+ case ANY:
+ jj_consume_token(ANY);
+ {if (true) return "*";}
+ break;
+ case PARENT:
+ jj_consume_token(PARENT);
+ {if (true) return "&";}
+ break;
+ default:
+ jj_la1[94] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ throw new Error("Missing return statement in function");
+ }
+
/**
* @exception ParseException exception during the parse
- */
- final public String attrib(String pred) throws ParseException {
- int cases = 0;
- Token att = null;
- Token val = null;
- String attValue = null;
- jj_consume_token(LBRACKET);
- label_64:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[95] = jj_gen;
- break label_64;
- }
- jj_consume_token(S);
- }
- att = jj_consume_token(IDENT);
- label_65:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[96] = jj_gen;
- break label_65;
- }
- jj_consume_token(S);
- }
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case DASHMATCH:
- case CARETMATCH:
- case DOLLARMATCH:
- case STARMATCH:
- case INCLUDES:
- case EQ:
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case EQ:
- jj_consume_token(EQ);
- cases = 1;
- break;
- case INCLUDES:
- jj_consume_token(INCLUDES);
- cases = 2;
- break;
- case DASHMATCH:
- jj_consume_token(DASHMATCH);
- cases = 3;
- break;
- case CARETMATCH:
- jj_consume_token(CARETMATCH);
- cases = 4;
- break;
- case DOLLARMATCH:
- jj_consume_token(DOLLARMATCH);
- cases = 5;
- break;
- case STARMATCH:
- jj_consume_token(STARMATCH);
- cases = 6;
- break;
- default:
- jj_la1[97] = jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- label_66:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[98] = jj_gen;
- break label_66;
- }
- jj_consume_token(S);
- }
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case IDENT:
- val = jj_consume_token(IDENT);
- attValue = val.image;
- break;
- case STRING:
- val = jj_consume_token(STRING);
- attValue = val.image;
- break;
- default:
- jj_la1[99] = jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- label_67:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[100] = jj_gen;
- break label_67;
- }
- jj_consume_token(S);
- }
- break;
- default:
- jj_la1[101] = jj_gen;
- ;
- }
- jj_consume_token(RBRACKET);
- String name = convertIdent(att.image);
- String c;
- switch (cases) {
- case 0:
- c = name;
- break;
- case 1:
- c = name + "=" + attValue;
- break;
- case 2:
- c = name + "~=" + attValue;
- break;
- case 3:
- c = name + "|=" +attValue;
- break;
- case 4:
- c = name + "^=" +attValue;
- break;
- case 5:
- c = name + "$=" +attValue;
- break;
- case 6:
- c = name + "*=" +attValue;
- break;
- default:
- // never reached.
- c = null;
- }
- c = "[" + c + "]";
- if (pred == null) {
- {if (true) return c;}
- } else {
- {if (true) return pred + c;}
- }
- throw new Error("Missing return statement in function");
- }
-
+ */
+ final public String attrib(String pred) throws ParseException {
+ int cases = 0;
+ Token att = null;
+ Token val = null;
+ String attValue = null;
+ jj_consume_token(LBRACKET);
+ label_64:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[95] = jj_gen;
+ break label_64;
+ }
+ jj_consume_token(S);
+ }
+ att = jj_consume_token(IDENT);
+ label_65:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[96] = jj_gen;
+ break label_65;
+ }
+ jj_consume_token(S);
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case DASHMATCH:
+ case CARETMATCH:
+ case DOLLARMATCH:
+ case STARMATCH:
+ case INCLUDES:
+ case EQ:
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case EQ:
+ jj_consume_token(EQ);
+ cases = 1;
+ break;
+ case INCLUDES:
+ jj_consume_token(INCLUDES);
+ cases = 2;
+ break;
+ case DASHMATCH:
+ jj_consume_token(DASHMATCH);
+ cases = 3;
+ break;
+ case CARETMATCH:
+ jj_consume_token(CARETMATCH);
+ cases = 4;
+ break;
+ case DOLLARMATCH:
+ jj_consume_token(DOLLARMATCH);
+ cases = 5;
+ break;
+ case STARMATCH:
+ jj_consume_token(STARMATCH);
+ cases = 6;
+ break;
+ default:
+ jj_la1[97] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ label_66:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[98] = jj_gen;
+ break label_66;
+ }
+ jj_consume_token(S);
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case IDENT:
+ val = jj_consume_token(IDENT);
+ attValue = val.image;
+ break;
+ case STRING:
+ val = jj_consume_token(STRING);
+ attValue = val.image;
+ break;
+ default:
+ jj_la1[99] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ label_67:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[100] = jj_gen;
+ break label_67;
+ }
+ jj_consume_token(S);
+ }
+ break;
+ default:
+ jj_la1[101] = jj_gen;
+ ;
+ }
+ jj_consume_token(RBRACKET);
+ String name = convertIdent(att.image);
+ String c;
+ switch (cases) {
+ case 0:
+ c = name;
+ break;
+ case 1:
+ c = name + "=" + attValue;
+ break;
+ case 2:
+ c = name + "~=" + attValue;
+ break;
+ case 3:
+ c = name + "|=" +attValue;
+ break;
+ case 4:
+ c = name + "^=" +attValue;
+ break;
+ case 5:
+ c = name + "$=" +attValue;
+ break;
+ case 6:
+ c = name + "*=" +attValue;
+ break;
+ default:
+ // never reached.
+ c = null;
+ }
+ c = "[" + c + "]";
+ if (pred == null) {
+ {if (true) return c;}
+ } else {
+ {if (true) return pred + c;}
+ }
+ throw new Error("Missing return statement in function");
+ }
+
/**
* @exception ParseException exception during the parse
- */
- final public String pseudo(String pred) throws ParseException {
- Token n;
-Token param;
-String d;
-boolean isPseudoElement = false;
- jj_consume_token(COLON);
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case COLON:
- jj_consume_token(COLON);
- isPseudoElement=true;
- break;
- default:
- jj_la1[102] = jj_gen;
- ;
- }
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case IDENT:
- n = jj_consume_token(IDENT);
- String s = ":" + convertIdent(n.image);
- if (isPseudoElement) {
- if (pseudoElt != null) {
- {if (true) throw new CSSParseException("duplicate pseudo element definition "
- + s, getLocator());}
- } else {
- pseudoElt = ":"+s;
- {if (true) return pred;}
- }
- } else {
- String c = s;
- if (pred == null) {
- {if (true) return c;}
- } else {
- {if (true) return pred + c;}
- }
- }
- break;
- case FUNCTION:
- n = jj_consume_token(FUNCTION);
- label_68:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[103] = jj_gen;
- break label_68;
- }
- jj_consume_token(S);
- }
- d = skipStatementUntilRightParan();
- jj_consume_token(RPARAN);
- // accept anything between function and a right parenthesis
- String f = convertIdent(n.image);
- String colons = isPseudoElement ? "::" : ":";
- String pseudofn = colons + f + d + ")";
- if (pred == null) {
- {if (true) return pseudofn;}
- } else {
- {if (true) return pred + pseudofn;}
- }
- break;
- default:
- jj_la1[104] = jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- throw new Error("Missing return statement in function");
- }
-
+ */
+ final public String pseudo(String pred) throws ParseException {
+ Token n;
+Token param;
+String d;
+boolean isPseudoElement = false;
+ jj_consume_token(COLON);
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case COLON:
+ jj_consume_token(COLON);
+ isPseudoElement=true;
+ break;
+ default:
+ jj_la1[102] = jj_gen;
+ ;
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case IDENT:
+ n = jj_consume_token(IDENT);
+ String s = ":" + convertIdent(n.image);
+ if (isPseudoElement) {
+ if (pseudoElt != null) {
+ {if (true) throw new CSSParseException("duplicate pseudo element definition "
+ + s, getLocator());}
+ } else {
+ pseudoElt = ":"+s;
+ {if (true) return pred;}
+ }
+ } else {
+ String c = s;
+ if (pred == null) {
+ {if (true) return c;}
+ } else {
+ {if (true) return pred + c;}
+ }
+ }
+ break;
+ case FUNCTION:
+ n = jj_consume_token(FUNCTION);
+ label_68:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[103] = jj_gen;
+ break label_68;
+ }
+ jj_consume_token(S);
+ }
+ d = skipStatementUntilRightParan();
+ jj_consume_token(RPARAN);
+ // accept anything between function and a right parenthesis
+ String f = convertIdent(n.image);
+ String colons = isPseudoElement ? "::" : ":";
+ String pseudofn = colons + f + d + ")";
+ if (pred == null) {
+ {if (true) return pseudofn;}
+ } else {
+ {if (true) return pred + pseudofn;}
+ }
+ break;
+ default:
+ jj_la1[104] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ throw new Error("Missing return statement in function");
+ }
+
/**
* @exception ParseException exception during the parse
- */
- final public String hash(String pred) throws ParseException {
- Token n;
- n = jj_consume_token(HASH);
- String d = n.image;
- if (pred == null) {
- {if (true) return d;}
- } else {
- {if (true) return pred + d;}
- }
- throw new Error("Missing return statement in function");
- }
-
- final public void variable() throws ParseException {
- String name;
- LexicalUnitImpl exp = null;
- boolean guarded = false;
- String raw;
- try {
- name = variableName();
- jj_consume_token(COLON);
- label_69:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[105] = jj_gen;
- break label_69;
- }
- jj_consume_token(S);
- }
- exp = expr();
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case GUARDED_SYM:
- guarded = guarded();
- break;
- default:
- jj_la1[106] = jj_gen;
- ;
- }
- label_70:
- while (true) {
- jj_consume_token(SEMICOLON);
- label_71:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[107] = jj_gen;
- break label_71;
- }
- jj_consume_token(S);
- }
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case SEMICOLON:
- ;
- break;
- default:
- jj_la1[108] = jj_gen;
- break label_70;
- }
- }
- documentHandler.variable(name, exp, guarded);
- } catch (JumpException e) {
- skipAfterExpression();
- } catch (NumberFormatException e) {
- if (errorHandler != null) {
- errorHandler.error(new CSSParseException("Invalid number "
- + e.getMessage(),
- getLocator(),
- e));
- }
- reportWarningSkipText(getLocator(), skipAfterExpression());
- } catch (ParseException e) {
- if (errorHandler != null) {
- if (e.currentToken != null) {
- LocatorImpl li = new LocatorImpl(this,
- e.currentToken.next.beginLine,
- e.currentToken.next.beginColumn-1);
- reportError(li, e);
- } else {
- reportError(getLocator(), e);
- }
- skipAfterExpression();
- } else {
- skipAfterExpression();
- }
- }
- }
-
- final public void controlDirective() throws ParseException {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case IF_SYM:
- ifDirective();
- break;
- case EACH_SYM:
- eachDirective();
- break;
- default:
- jj_la1[109] = jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
-
- final public void ifContentStatement() throws ParseException {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case CONTENT_SYM:
- contentDirective();
- break;
- case INCLUDE_SYM:
- includeDirective();
- break;
- case MEDIA_SYM:
- media();
- break;
- case EXTEND_SYM:
- extendDirective();
- break;
- case PLUS:
- case PRECEDES:
- case SIBLING:
- case LBRACKET:
- case ANY:
- case PARENT:
- case DOT:
- case COLON:
- case INTERPOLATION:
- case DEBUG_SYM:
- case WARN_SYM:
- case IDENT:
- case HASH:
- styleRuleOrDeclarationOrNestedProperties();
- break;
- case KEY_FRAME_SYM:
- keyframes();
- break;
- default:
- jj_la1[110] = jj_gen;
- if (jj_2_3(2147483647)) {
- variable();
- } else {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case VARIABLE:
- listModifyDirective();
- break;
- default:
- jj_la1[111] = jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
- }
- }
-
- final public void ifDirective() throws ParseException {
- Token n = null;
- String s = null;
- String evaluator = "";
- jj_consume_token(IF_SYM);
- label_72:
- while (true) {
- s = booleanExpressionToken();
- evaluator += s;
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- case EQ:
- case PLUS:
- case MINUS:
- case PRECEDES:
- case SUCCEEDS:
- case DIV:
- case ANY:
- case LPARAN:
- case RPARAN:
- case COMPARE:
- case OR:
- case AND:
- case NOT_EQ:
- case IDENT:
- case NUMBER:
- case VARIABLE:
- case CONTAINS:
- ;
- break;
- default:
- jj_la1[112] = jj_gen;
- break label_72;
- }
- }
- jj_consume_token(LBRACE);
- label_73:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[113] = jj_gen;
- break label_73;
- }
- jj_consume_token(S);
- }
- documentHandler.startIfElseDirective();
- documentHandler.ifDirective(evaluator);
- label_74:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case PLUS:
- case PRECEDES:
- case SIBLING:
- case LBRACKET:
- case ANY:
- case PARENT:
- case DOT:
- case COLON:
- case INTERPOLATION:
- case INCLUDE_SYM:
- case DEBUG_SYM:
- case WARN_SYM:
- case EXTEND_SYM:
- case CONTENT_SYM:
- case IDENT:
- case VARIABLE:
- case HASH:
- case MEDIA_SYM:
- case KEY_FRAME_SYM:
- ;
- break;
- default:
- jj_la1[114] = jj_gen;
- break label_74;
- }
- ifContentStatement();
- }
- jj_consume_token(RBRACE);
- label_75:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[115] = jj_gen;
- break label_75;
- }
- jj_consume_token(S);
- }
- label_76:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case ELSE_SYM:
- ;
- break;
- default:
- jj_la1[116] = jj_gen;
- break label_76;
- }
- elseDirective();
- }
- documentHandler.endIfElseDirective();
- }
-
- final public void elseDirective() throws ParseException {
- String evaluator = "";
- Token n = null;
- String s = null;
- jj_consume_token(ELSE_SYM);
- label_77:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[117] = jj_gen;
- break label_77;
- }
- jj_consume_token(S);
- }
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case IF:
- jj_consume_token(IF);
- label_78:
- while (true) {
- s = booleanExpressionToken();
- evaluator += s;
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- case EQ:
- case PLUS:
- case MINUS:
- case PRECEDES:
- case SUCCEEDS:
- case DIV:
- case ANY:
- case LPARAN:
- case RPARAN:
- case COMPARE:
- case OR:
- case AND:
- case NOT_EQ:
- case IDENT:
- case NUMBER:
- case VARIABLE:
- case CONTAINS:
- ;
- break;
- default:
- jj_la1[118] = jj_gen;
- break label_78;
- }
- }
- break;
- default:
- jj_la1[119] = jj_gen;
- ;
- }
- jj_consume_token(LBRACE);
- label_79:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[120] = jj_gen;
- break label_79;
- }
- jj_consume_token(S);
- }
- if(!evaluator.trim().equals("")){ documentHandler.ifDirective(evaluator); }
- else{ documentHandler.elseDirective(); }
- label_80:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case PLUS:
- case PRECEDES:
- case SIBLING:
- case LBRACKET:
- case ANY:
- case PARENT:
- case DOT:
- case COLON:
- case INTERPOLATION:
- case INCLUDE_SYM:
- case DEBUG_SYM:
- case WARN_SYM:
- case EXTEND_SYM:
- case CONTENT_SYM:
- case IDENT:
- case VARIABLE:
- case HASH:
- case MEDIA_SYM:
- case KEY_FRAME_SYM:
- ;
- break;
- default:
- jj_la1[121] = jj_gen;
- break label_80;
- }
- ifContentStatement();
- }
- jj_consume_token(RBRACE);
- label_81:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[122] = jj_gen;
- break label_81;
- }
- jj_consume_token(S);
- }
- }
-
- final public String booleanExpressionToken() throws ParseException {
- Token n = null;
- String s = null;
- if (jj_2_4(2147483647)) {
- s = containsDirective();
- } else {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case VARIABLE:
- n = jj_consume_token(VARIABLE);
- break;
- case IDENT:
- n = jj_consume_token(IDENT);
- break;
- case NUMBER:
- n = jj_consume_token(NUMBER);
- break;
- case LPARAN:
- n = jj_consume_token(LPARAN);
- break;
- case RPARAN:
- n = jj_consume_token(RPARAN);
- break;
- case PLUS:
- n = jj_consume_token(PLUS);
- break;
- case MINUS:
- n = jj_consume_token(MINUS);
- break;
- case DIV:
- n = jj_consume_token(DIV);
- break;
- case ANY:
- n = jj_consume_token(ANY);
- break;
- case COMPARE:
- n = jj_consume_token(COMPARE);
- break;
- case EQ:
- n = jj_consume_token(EQ);
- break;
- case PRECEDES:
- n = jj_consume_token(PRECEDES);
- break;
- case SUCCEEDS:
- n = jj_consume_token(SUCCEEDS);
- break;
- case OR:
- n = jj_consume_token(OR);
- break;
- case AND:
- n = jj_consume_token(AND);
- break;
- case S:
- n = jj_consume_token(S);
- break;
- case NOT_EQ:
- n = jj_consume_token(NOT_EQ);
- break;
- default:
- jj_la1[123] = jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
- if(n!=null){{if (true) return n.image;}}
- else{{if (true) return s;}}
- throw new Error("Missing return statement in function");
- }
-
- final public void eachDirective() throws ParseException {
- Token var;
- ArrayList<String> list = null;
- String listVariable = null;
- jj_consume_token(EACH_SYM);
- label_82:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[124] = jj_gen;
- break label_82;
- }
- jj_consume_token(S);
- }
- var = jj_consume_token(VARIABLE);
- label_83:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[125] = jj_gen;
- break label_83;
- }
- jj_consume_token(S);
- }
- jj_consume_token(EACH_IN);
- label_84:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[126] = jj_gen;
- break label_84;
- }
- jj_consume_token(S);
- }
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case IDENT:
- list = stringList();
- documentHandler.startEachDirective(var.image, list);
- break;
- case VARIABLE:
- listVariable = variableName();
- documentHandler.startEachDirective(var.image, listVariable);
- break;
- default:
- jj_la1[127] = jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- jj_consume_token(LBRACE);
- label_85:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[128] = jj_gen;
- break label_85;
- }
- jj_consume_token(S);
- }
- label_86:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case PLUS:
- case PRECEDES:
- case SIBLING:
- case LBRACKET:
- case ANY:
- case PARENT:
- case DOT:
- case COLON:
- case INTERPOLATION:
- case INCLUDE_SYM:
- case DEBUG_SYM:
- case WARN_SYM:
- case EXTEND_SYM:
- case CONTENT_SYM:
- case IDENT:
- case VARIABLE:
- case HASH:
- case MEDIA_SYM:
- case KEY_FRAME_SYM:
- ;
- break;
- default:
- jj_la1[129] = jj_gen;
- break label_86;
- }
- ifContentStatement();
- }
- jj_consume_token(RBRACE);
- label_87:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[130] = jj_gen;
- break label_87;
- }
- jj_consume_token(S);
- }
- documentHandler.endEachDirective();
- }
-
- final public ArrayList<String > stringList() throws ParseException {
- ArrayList<String > strings = new ArrayList<String >();
- Token input;
- input = jj_consume_token(IDENT);
- label_88:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[131] = jj_gen;
- break label_88;
- }
- jj_consume_token(S);
- }
- strings.add(input.image);
- label_89:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case COMMA:
- ;
- break;
- default:
- jj_la1[132] = jj_gen;
- break label_89;
- }
- jj_consume_token(COMMA);
- label_90:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[133] = jj_gen;
- break label_90;
- }
- jj_consume_token(S);
- }
- input = jj_consume_token(IDENT);
- strings.add(input.image);
- label_91:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[134] = jj_gen;
- break label_91;
- }
- jj_consume_token(S);
- }
- }
- {if (true) return strings;}
- throw new Error("Missing return statement in function");
- }
-
- final public void mixinDirective() throws ParseException {
- String name;
- ArrayList<VariableNode> args = null;
- String body;
- jj_consume_token(MIXIN_SYM);
- label_92:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[135] = jj_gen;
- break label_92;
- }
- jj_consume_token(S);
- }
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case INTERPOLATION:
- case IDENT:
- name = property();
- break;
- case FUNCTION:
- name = functionName();
- args = arglist();
- jj_consume_token(RPARAN);
- label_93:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[136] = jj_gen;
- break label_93;
- }
- jj_consume_token(S);
- }
- break;
- default:
- jj_la1[137] = jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- jj_consume_token(LBRACE);
- label_94:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[138] = jj_gen;
- break label_94;
- }
- jj_consume_token(S);
- }
- documentHandler.startMixinDirective(name, args);
- label_95:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case PLUS:
- case PRECEDES:
- case SIBLING:
- case LBRACKET:
- case ANY:
- case PARENT:
- case DOT:
- case COLON:
- case INTERPOLATION:
- case INCLUDE_SYM:
- case DEBUG_SYM:
- case WARN_SYM:
- case EACH_SYM:
- case IF_SYM:
- case EXTEND_SYM:
- case CONTENT_SYM:
- case IDENT:
- case VARIABLE:
- case HASH:
- case MEDIA_SYM:
- case PAGE_SYM:
- case FONT_FACE_SYM:
- case KEY_FRAME_SYM:
- ;
- break;
- default:
- jj_la1[139] = jj_gen;
- break label_95;
- }
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case PLUS:
- case PRECEDES:
- case SIBLING:
- case LBRACKET:
- case ANY:
- case PARENT:
- case DOT:
- case COLON:
- case INTERPOLATION:
- case INCLUDE_SYM:
- case DEBUG_SYM:
- case WARN_SYM:
- case EXTEND_SYM:
- case CONTENT_SYM:
- case IDENT:
- case VARIABLE:
- case HASH:
- case MEDIA_SYM:
- case KEY_FRAME_SYM:
- ifContentStatement();
- break;
- case EACH_SYM:
- case IF_SYM:
- controlDirective();
- break;
- case FONT_FACE_SYM:
- fontFace();
- break;
- case PAGE_SYM:
- page();
- break;
- default:
- jj_la1[140] = jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
- jj_consume_token(RBRACE);
- label_96:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[141] = jj_gen;
- break label_96;
- }
- jj_consume_token(S);
- }
- documentHandler.endMixinDirective(name, args);
- }
-
- final public ArrayList<VariableNode> arglist() throws ParseException {
- ArrayList<VariableNode> args = new ArrayList<VariableNode>();
- VariableNode arg;
- boolean hasNonOptionalArgument = false;
- arg = mixinArg();
- label_97:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case COMMA:
- ;
- break;
- default:
- jj_la1[142] = jj_gen;
- break label_97;
- }
- jj_consume_token(COMMA);
- label_98:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[143] = jj_gen;
- break label_98;
- }
- jj_consume_token(S);
- }
- hasNonOptionalArgument = checkMixinForNonOptionalArguments(arg, hasNonOptionalArgument); args.add(arg);
- arg = mixinArg();
- }
- hasNonOptionalArgument = checkMixinForNonOptionalArguments(arg, hasNonOptionalArgument); args.add(arg);
- {if (true) return args;}
- throw new Error("Missing return statement in function");
- }
-
- boolean checkMixinForNonOptionalArguments(VariableNode arg, boolean hasNonOptionalArguments) throws ParseException {
- boolean currentArgHasArguments = arg.getExpr() != null && arg.getExpr().getLexicalUnitType() == LexicalUnitImpl.SCSS_VARIABLE && arg.getExpr().getNextLexicalUnit() != null;
-
- if(currentArgHasArguments)
- {
- if(hasNonOptionalArguments)
- {
- throw new ParseException("Sass Error: Required argument $"+ arg.getName() +" must come before any optional arguments.");
- }
- return hasNonOptionalArguments;
- }else
- {
- return true;
- }
- }
-
- final public VariableNode mixinArg() throws ParseException {
- String name;
- Token variable = null;
- LexicalUnitImpl first = null;
- LexicalUnitImpl prev = null;
- LexicalUnitImpl next = null;
- name = variableName();
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case COLON:
- case VARIABLE:
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case COLON:
- jj_consume_token(COLON);
- label_99:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[144] = jj_gen;
- break label_99;
- }
- jj_consume_token(S);
- }
- first = nonVariableTerm(null);
- prev = first;
- label_100:
- while (true) {
- if (jj_2_5(3)) {
- ;
- } else {
- break label_100;
- }
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case COMMA:
- jj_consume_token(COMMA);
- label_101:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[145] = jj_gen;
- break label_101;
- }
- jj_consume_token(S);
- }
- break;
- default:
- jj_la1[146] = jj_gen;
- ;
- }
- prev = nonVariableTerm(prev);
- }
- break;
- case VARIABLE:
- variable = jj_consume_token(VARIABLE);
- first = LexicalUnitImpl.createVariable(token.beginLine, token.beginColumn,
- prev, variable.image);
- break;
- default:
- jj_la1[147] = jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- break;
- default:
- jj_la1[148] = jj_gen;
- ;
- }
- VariableNode arg = new VariableNode(name, first, false);
- {if (true) return arg;}
- throw new Error("Missing return statement in function");
- }
-
- final public ArrayList<LexicalUnitImpl> argValuelist() throws ParseException {
- ArrayList<LexicalUnitImpl> args = new ArrayList<LexicalUnitImpl>();
- LexicalUnitImpl first = null;
- LexicalUnitImpl next = null;
- LexicalUnitImpl prev = null;
- first = term(null);
- args.add(first); prev = first;
- label_102:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case PLUS:
- case MINUS:
- case DOT:
- case COLON:
- case STRING:
- case IDENT:
- case NUMBER:
- case URL:
- case VARIABLE:
- case PERCENTAGE:
- case PT:
- case MM:
- case CM:
- case PC:
- case IN:
- case PX:
- case EMS:
- case LEM:
- case REM:
- case EXS:
- case DEG:
- case RAD:
- case GRAD:
- case MS:
- case SECOND:
- case HZ:
- case KHZ:
- case DIMEN:
- case HASH:
- case UNICODERANGE:
- case FUNCTION:
- ;
- break;
- default:
- jj_la1[149] = jj_gen;
- break label_102;
- }
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case COLON:
- jj_consume_token(COLON);
- label_103:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[150] = jj_gen;
- break label_103;
- }
- jj_consume_token(S);
- }
- break;
- default:
- jj_la1[151] = jj_gen;
- ;
- }
- next = term(prev);
- prev.setNextLexicalUnit(next); prev = next;
- }
- label_104:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case COMMA:
- ;
- break;
- default:
- jj_la1[152] = jj_gen;
- break label_104;
- }
- jj_consume_token(COMMA);
- label_105:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[153] = jj_gen;
- break label_105;
- }
- jj_consume_token(S);
- }
- first = term(null);
- args.add(first); prev = first;
- label_106:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case PLUS:
- case MINUS:
- case DOT:
- case COLON:
- case STRING:
- case IDENT:
- case NUMBER:
- case URL:
- case VARIABLE:
- case PERCENTAGE:
- case PT:
- case MM:
- case CM:
- case PC:
- case IN:
- case PX:
- case EMS:
- case LEM:
- case REM:
- case EXS:
- case DEG:
- case RAD:
- case GRAD:
- case MS:
- case SECOND:
- case HZ:
- case KHZ:
- case DIMEN:
- case HASH:
- case UNICODERANGE:
- case FUNCTION:
- ;
- break;
- default:
- jj_la1[154] = jj_gen;
- break label_106;
- }
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case COLON:
- jj_consume_token(COLON);
- label_107:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[155] = jj_gen;
- break label_107;
- }
- jj_consume_token(S);
- }
- break;
- default:
- jj_la1[156] = jj_gen;
- ;
- }
- next = term(prev);
- prev.setNextLexicalUnit(next); prev = next;
- }
- }
- {if (true) return args;}
- throw new Error("Missing return statement in function");
- }
-
- final public void includeDirective() throws ParseException {
- String name;
- ArrayList<LexicalUnitImpl> args=null;
- jj_consume_token(INCLUDE_SYM);
- label_108:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[157] = jj_gen;
- break label_108;
- }
- jj_consume_token(S);
- }
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case INTERPOLATION:
- case IDENT:
- name = property();
- break;
- case VARIABLE:
- name = variableName();
- name = "$"+name;
- break;
- case FUNCTION:
- name = functionName();
- args = argValuelist();
- jj_consume_token(RPARAN);
- break;
- default:
- jj_la1[158] = jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case SEMICOLON:
- label_109:
- while (true) {
- jj_consume_token(SEMICOLON);
- label_110:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[159] = jj_gen;
- break label_110;
- }
- jj_consume_token(S);
- }
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case SEMICOLON:
- ;
- break;
- default:
- jj_la1[160] = jj_gen;
- break label_109;
- }
- }
- documentHandler.includeDirective(name, args);
- break;
- case LBRACE:
- jj_consume_token(LBRACE);
- label_111:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[161] = jj_gen;
- break label_111;
- }
- jj_consume_token(S);
- }
- documentHandler.startIncludeContentBlock(name);
- label_112:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case PLUS:
- case PRECEDES:
- case SIBLING:
- case LBRACKET:
- case ANY:
- case PARENT:
- case DOT:
- case COLON:
- case INTERPOLATION:
- case DEBUG_SYM:
- case WARN_SYM:
- case IDENT:
- case HASH:
- ;
- break;
- default:
- jj_la1[162] = jj_gen;
- break label_112;
- }
- styleRuleOrDeclarationOrNestedProperties();
- }
- jj_consume_token(RBRACE);
- label_113:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[163] = jj_gen;
- break label_113;
- }
- jj_consume_token(S);
- }
- documentHandler.endIncludeContentBlock();
- break;
- default:
- jj_la1[164] = jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
-
- final public String interpolation() throws ParseException {
- Token n;
- n = jj_consume_token(INTERPOLATION);
- {if (true) return n.image;}
- throw new Error("Missing return statement in function");
- }
-
- final public void listModifyDirective() throws ParseException {
- String list = null;
- String remove = null;
- String separator = null;
- String variable = null;
- Token n = null;
- Token type = null;
- //refactor, remove those 3 LOOKAHEAD(5).
- n = jj_consume_token(VARIABLE);
- variable = n.image;
- label_114:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[165] = jj_gen;
- break label_114;
- }
- jj_consume_token(S);
- }
- jj_consume_token(COLON);
- label_115:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[166] = jj_gen;
- break label_115;
- }
- jj_consume_token(S);
- }
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case APPEND:
- type = jj_consume_token(APPEND);
- break;
- case REMOVE:
- type = jj_consume_token(REMOVE);
- break;
- case CONTAINS:
- type = jj_consume_token(CONTAINS);
- break;
- default:
- jj_la1[167] = jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- label_116:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[168] = jj_gen;
- break label_116;
- }
- jj_consume_token(S);
- }
- list = listModifyDirectiveArgs(0);
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case RPARAN:
- jj_consume_token(RPARAN);
- break;
- default:
- jj_la1[169] = jj_gen;
- ;
- }
- jj_consume_token(COMMA);
- label_117:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[170] = jj_gen;
- break label_117;
- }
- jj_consume_token(S);
- }
- remove = listModifyDirectiveArgs(1);
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case COMMA:
- jj_consume_token(COMMA);
- label_118:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[171] = jj_gen;
- break label_118;
- }
- jj_consume_token(S);
- }
- n = jj_consume_token(IDENT);
- separator = n.image;
- label_119:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[172] = jj_gen;
- break label_119;
- }
- jj_consume_token(S);
- }
- break;
- default:
- jj_la1[173] = jj_gen;
- ;
- }
- jj_consume_token(RPARAN);
- switch (type.kind) {
- case APPEND:
- documentHandler.appendDirective(variable,list,remove,separator);
- break;
- case REMOVE:
- documentHandler.removeDirective(variable,list,remove,separator);
- break;
- case CONTAINS:
- if(variable == null){
- variable = "$var_"+UUID.randomUUID();
- }
- documentHandler.containsDirective(variable,list,remove,separator);
- break;
- default:
- break;
- }
- label_120:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[174] = jj_gen;
- break label_120;
- }
- jj_consume_token(S);
- }
- jj_consume_token(SEMICOLON);
- label_121:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[175] = jj_gen;
- break label_121;
- }
- jj_consume_token(S);
- }
- }
-
+ */
+ final public String hash(String pred) throws ParseException {
+ Token n;
+ n = jj_consume_token(HASH);
+ String d = n.image;
+ if (pred == null) {
+ {if (true) return d;}
+ } else {
+ {if (true) return pred + d;}
+ }
+ throw new Error("Missing return statement in function");
+ }
+
+ final public void variable() throws ParseException {
+ String name;
+ LexicalUnitImpl exp = null;
+ boolean guarded = false;
+ String raw;
+ try {
+ name = variableName();
+ jj_consume_token(COLON);
+ label_69:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[105] = jj_gen;
+ break label_69;
+ }
+ jj_consume_token(S);
+ }
+ exp = expr();
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case GUARDED_SYM:
+ guarded = guarded();
+ break;
+ default:
+ jj_la1[106] = jj_gen;
+ ;
+ }
+ label_70:
+ while (true) {
+ jj_consume_token(SEMICOLON);
+ label_71:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[107] = jj_gen;
+ break label_71;
+ }
+ jj_consume_token(S);
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case SEMICOLON:
+ ;
+ break;
+ default:
+ jj_la1[108] = jj_gen;
+ break label_70;
+ }
+ }
+ documentHandler.variable(name, exp, guarded);
+ } catch (JumpException e) {
+ skipAfterExpression();
+ } catch (NumberFormatException e) {
+ if (errorHandler != null) {
+ errorHandler.error(new CSSParseException("Invalid number "
+ + e.getMessage(),
+ getLocator(),
+ e));
+ }
+ reportWarningSkipText(getLocator(), skipAfterExpression());
+ } catch (ParseException e) {
+ if (errorHandler != null) {
+ if (e.currentToken != null) {
+ LocatorImpl li = new LocatorImpl(this,
+ e.currentToken.next.beginLine,
+ e.currentToken.next.beginColumn-1);
+ reportError(li, e);
+ } else {
+ reportError(getLocator(), e);
+ }
+ skipAfterExpression();
+ } else {
+ skipAfterExpression();
+ }
+ }
+ }
+
+ final public void controlDirective() throws ParseException {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case IF_SYM:
+ ifDirective();
+ break;
+ case EACH_SYM:
+ eachDirective();
+ break;
+ default:
+ jj_la1[109] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ }
+
+ final public void ifContentStatement() throws ParseException {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case CONTENT_SYM:
+ contentDirective();
+ break;
+ case INCLUDE_SYM:
+ includeDirective();
+ break;
+ case MEDIA_SYM:
+ media();
+ break;
+ case EXTEND_SYM:
+ extendDirective();
+ break;
+ case PLUS:
+ case PRECEDES:
+ case SIBLING:
+ case LBRACKET:
+ case ANY:
+ case PARENT:
+ case DOT:
+ case COLON:
+ case INTERPOLATION:
+ case DEBUG_SYM:
+ case WARN_SYM:
+ case IDENT:
+ case HASH:
+ styleRuleOrDeclarationOrNestedProperties();
+ break;
+ case KEY_FRAME_SYM:
+ keyframes();
+ break;
+ default:
+ jj_la1[110] = jj_gen;
+ if (jj_2_3(2147483647)) {
+ variable();
+ } else {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case VARIABLE:
+ listModifyDirective();
+ break;
+ default:
+ jj_la1[111] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ }
+ }
+ }
+
+ final public void ifDirective() throws ParseException {
+ Token n = null;
+ String s = null;
+ String evaluator = "";
+ jj_consume_token(IF_SYM);
+ label_72:
+ while (true) {
+ s = booleanExpressionToken();
+ evaluator += s;
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ case EQ:
+ case PLUS:
+ case MINUS:
+ case PRECEDES:
+ case SUCCEEDS:
+ case DIV:
+ case ANY:
+ case LPARAN:
+ case RPARAN:
+ case COMPARE:
+ case OR:
+ case AND:
+ case NOT_EQ:
+ case IDENT:
+ case NUMBER:
+ case VARIABLE:
+ case CONTAINS:
+ ;
+ break;
+ default:
+ jj_la1[112] = jj_gen;
+ break label_72;
+ }
+ }
+ jj_consume_token(LBRACE);
+ label_73:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[113] = jj_gen;
+ break label_73;
+ }
+ jj_consume_token(S);
+ }
+ documentHandler.startIfElseDirective();
+ documentHandler.ifDirective(evaluator);
+ label_74:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case PLUS:
+ case PRECEDES:
+ case SIBLING:
+ case LBRACKET:
+ case ANY:
+ case PARENT:
+ case DOT:
+ case COLON:
+ case INTERPOLATION:
+ case INCLUDE_SYM:
+ case DEBUG_SYM:
+ case WARN_SYM:
+ case EXTEND_SYM:
+ case CONTENT_SYM:
+ case IDENT:
+ case VARIABLE:
+ case HASH:
+ case MEDIA_SYM:
+ case KEY_FRAME_SYM:
+ ;
+ break;
+ default:
+ jj_la1[114] = jj_gen;
+ break label_74;
+ }
+ ifContentStatement();
+ }
+ jj_consume_token(RBRACE);
+ label_75:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[115] = jj_gen;
+ break label_75;
+ }
+ jj_consume_token(S);
+ }
+ label_76:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case ELSE_SYM:
+ ;
+ break;
+ default:
+ jj_la1[116] = jj_gen;
+ break label_76;
+ }
+ elseDirective();
+ }
+ documentHandler.endIfElseDirective();
+ }
+
+ final public void elseDirective() throws ParseException {
+ String evaluator = "";
+ Token n = null;
+ String s = null;
+ jj_consume_token(ELSE_SYM);
+ label_77:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[117] = jj_gen;
+ break label_77;
+ }
+ jj_consume_token(S);
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case IF:
+ jj_consume_token(IF);
+ label_78:
+ while (true) {
+ s = booleanExpressionToken();
+ evaluator += s;
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ case EQ:
+ case PLUS:
+ case MINUS:
+ case PRECEDES:
+ case SUCCEEDS:
+ case DIV:
+ case ANY:
+ case LPARAN:
+ case RPARAN:
+ case COMPARE:
+ case OR:
+ case AND:
+ case NOT_EQ:
+ case IDENT:
+ case NUMBER:
+ case VARIABLE:
+ case CONTAINS:
+ ;
+ break;
+ default:
+ jj_la1[118] = jj_gen;
+ break label_78;
+ }
+ }
+ break;
+ default:
+ jj_la1[119] = jj_gen;
+ ;
+ }
+ jj_consume_token(LBRACE);
+ label_79:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[120] = jj_gen;
+ break label_79;
+ }
+ jj_consume_token(S);
+ }
+ if(!evaluator.trim().equals("")){ documentHandler.ifDirective(evaluator); }
+ else{ documentHandler.elseDirective(); }
+ label_80:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case PLUS:
+ case PRECEDES:
+ case SIBLING:
+ case LBRACKET:
+ case ANY:
+ case PARENT:
+ case DOT:
+ case COLON:
+ case INTERPOLATION:
+ case INCLUDE_SYM:
+ case DEBUG_SYM:
+ case WARN_SYM:
+ case EXTEND_SYM:
+ case CONTENT_SYM:
+ case IDENT:
+ case VARIABLE:
+ case HASH:
+ case MEDIA_SYM:
+ case KEY_FRAME_SYM:
+ ;
+ break;
+ default:
+ jj_la1[121] = jj_gen;
+ break label_80;
+ }
+ ifContentStatement();
+ }
+ jj_consume_token(RBRACE);
+ label_81:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[122] = jj_gen;
+ break label_81;
+ }
+ jj_consume_token(S);
+ }
+ }
+
+ final public String booleanExpressionToken() throws ParseException {
+ Token n = null;
+ String s = null;
+ if (jj_2_4(2147483647)) {
+ s = containsDirective();
+ } else {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case VARIABLE:
+ n = jj_consume_token(VARIABLE);
+ break;
+ case IDENT:
+ n = jj_consume_token(IDENT);
+ break;
+ case NUMBER:
+ n = jj_consume_token(NUMBER);
+ break;
+ case LPARAN:
+ n = jj_consume_token(LPARAN);
+ break;
+ case RPARAN:
+ n = jj_consume_token(RPARAN);
+ break;
+ case PLUS:
+ n = jj_consume_token(PLUS);
+ break;
+ case MINUS:
+ n = jj_consume_token(MINUS);
+ break;
+ case DIV:
+ n = jj_consume_token(DIV);
+ break;
+ case ANY:
+ n = jj_consume_token(ANY);
+ break;
+ case COMPARE:
+ n = jj_consume_token(COMPARE);
+ break;
+ case EQ:
+ n = jj_consume_token(EQ);
+ break;
+ case PRECEDES:
+ n = jj_consume_token(PRECEDES);
+ break;
+ case SUCCEEDS:
+ n = jj_consume_token(SUCCEEDS);
+ break;
+ case OR:
+ n = jj_consume_token(OR);
+ break;
+ case AND:
+ n = jj_consume_token(AND);
+ break;
+ case S:
+ n = jj_consume_token(S);
+ break;
+ case NOT_EQ:
+ n = jj_consume_token(NOT_EQ);
+ break;
+ default:
+ jj_la1[123] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ }
+ if(n!=null){{if (true) return n.image;}}
+ else{{if (true) return s;}}
+ throw new Error("Missing return statement in function");
+ }
+
+ final public void eachDirective() throws ParseException {
+ Token var;
+ ArrayList<String> list = null;
+ String listVariable = null;
+ jj_consume_token(EACH_SYM);
+ label_82:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[124] = jj_gen;
+ break label_82;
+ }
+ jj_consume_token(S);
+ }
+ var = jj_consume_token(VARIABLE);
+ label_83:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[125] = jj_gen;
+ break label_83;
+ }
+ jj_consume_token(S);
+ }
+ jj_consume_token(EACH_IN);
+ label_84:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[126] = jj_gen;
+ break label_84;
+ }
+ jj_consume_token(S);
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case IDENT:
+ list = stringList();
+ documentHandler.startEachDirective(var.image, list);
+ break;
+ case VARIABLE:
+ listVariable = variableName();
+ documentHandler.startEachDirective(var.image, listVariable);
+ break;
+ default:
+ jj_la1[127] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ jj_consume_token(LBRACE);
+ label_85:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[128] = jj_gen;
+ break label_85;
+ }
+ jj_consume_token(S);
+ }
+ label_86:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case PLUS:
+ case PRECEDES:
+ case SIBLING:
+ case LBRACKET:
+ case ANY:
+ case PARENT:
+ case DOT:
+ case COLON:
+ case INTERPOLATION:
+ case INCLUDE_SYM:
+ case DEBUG_SYM:
+ case WARN_SYM:
+ case EXTEND_SYM:
+ case CONTENT_SYM:
+ case IDENT:
+ case VARIABLE:
+ case HASH:
+ case MEDIA_SYM:
+ case KEY_FRAME_SYM:
+ ;
+ break;
+ default:
+ jj_la1[129] = jj_gen;
+ break label_86;
+ }
+ ifContentStatement();
+ }
+ jj_consume_token(RBRACE);
+ label_87:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[130] = jj_gen;
+ break label_87;
+ }
+ jj_consume_token(S);
+ }
+ documentHandler.endEachDirective();
+ }
+
+ final public ArrayList<String > stringList() throws ParseException {
+ ArrayList<String > strings = new ArrayList<String >();
+ Token input;
+ input = jj_consume_token(IDENT);
+ label_88:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[131] = jj_gen;
+ break label_88;
+ }
+ jj_consume_token(S);
+ }
+ strings.add(input.image);
+ label_89:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case COMMA:
+ ;
+ break;
+ default:
+ jj_la1[132] = jj_gen;
+ break label_89;
+ }
+ jj_consume_token(COMMA);
+ label_90:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[133] = jj_gen;
+ break label_90;
+ }
+ jj_consume_token(S);
+ }
+ input = jj_consume_token(IDENT);
+ strings.add(input.image);
+ label_91:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[134] = jj_gen;
+ break label_91;
+ }
+ jj_consume_token(S);
+ }
+ }
+ {if (true) return strings;}
+ throw new Error("Missing return statement in function");
+ }
+
+ final public void mixinDirective() throws ParseException {
+ String name;
+ ArrayList<VariableNode> args = null;
+ String body;
+ jj_consume_token(MIXIN_SYM);
+ label_92:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[135] = jj_gen;
+ break label_92;
+ }
+ jj_consume_token(S);
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case INTERPOLATION:
+ case IDENT:
+ name = property();
+ break;
+ case FUNCTION:
+ name = functionName();
+ args = arglist();
+ jj_consume_token(RPARAN);
+ label_93:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[136] = jj_gen;
+ break label_93;
+ }
+ jj_consume_token(S);
+ }
+ break;
+ default:
+ jj_la1[137] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ jj_consume_token(LBRACE);
+ label_94:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[138] = jj_gen;
+ break label_94;
+ }
+ jj_consume_token(S);
+ }
+ documentHandler.startMixinDirective(name, args);
+ label_95:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case PLUS:
+ case PRECEDES:
+ case SIBLING:
+ case LBRACKET:
+ case ANY:
+ case PARENT:
+ case DOT:
+ case COLON:
+ case INTERPOLATION:
+ case INCLUDE_SYM:
+ case DEBUG_SYM:
+ case WARN_SYM:
+ case EACH_SYM:
+ case IF_SYM:
+ case EXTEND_SYM:
+ case CONTENT_SYM:
+ case IDENT:
+ case VARIABLE:
+ case HASH:
+ case MEDIA_SYM:
+ case PAGE_SYM:
+ case FONT_FACE_SYM:
+ case KEY_FRAME_SYM:
+ ;
+ break;
+ default:
+ jj_la1[139] = jj_gen;
+ break label_95;
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case PLUS:
+ case PRECEDES:
+ case SIBLING:
+ case LBRACKET:
+ case ANY:
+ case PARENT:
+ case DOT:
+ case COLON:
+ case INTERPOLATION:
+ case INCLUDE_SYM:
+ case DEBUG_SYM:
+ case WARN_SYM:
+ case EXTEND_SYM:
+ case CONTENT_SYM:
+ case IDENT:
+ case VARIABLE:
+ case HASH:
+ case MEDIA_SYM:
+ case KEY_FRAME_SYM:
+ ifContentStatement();
+ break;
+ case EACH_SYM:
+ case IF_SYM:
+ controlDirective();
+ break;
+ case FONT_FACE_SYM:
+ fontFace();
+ break;
+ case PAGE_SYM:
+ page();
+ break;
+ default:
+ jj_la1[140] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ }
+ jj_consume_token(RBRACE);
+ label_96:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[141] = jj_gen;
+ break label_96;
+ }
+ jj_consume_token(S);
+ }
+ documentHandler.endMixinDirective(name, args);
+ }
+
+ final public ArrayList<VariableNode> arglist() throws ParseException {
+ ArrayList<VariableNode> args = new ArrayList<VariableNode>();
+ VariableNode arg;
+ boolean hasNonOptionalArgument = false;
+ arg = mixinArg();
+ label_97:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case COMMA:
+ ;
+ break;
+ default:
+ jj_la1[142] = jj_gen;
+ break label_97;
+ }
+ jj_consume_token(COMMA);
+ label_98:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[143] = jj_gen;
+ break label_98;
+ }
+ jj_consume_token(S);
+ }
+ hasNonOptionalArgument = checkMixinForNonOptionalArguments(arg, hasNonOptionalArgument); args.add(arg);
+ arg = mixinArg();
+ }
+ hasNonOptionalArgument = checkMixinForNonOptionalArguments(arg, hasNonOptionalArgument); args.add(arg);
+ {if (true) return args;}
+ throw new Error("Missing return statement in function");
+ }
+
+ boolean checkMixinForNonOptionalArguments(VariableNode arg, boolean hasNonOptionalArguments) throws ParseException {
+ boolean currentArgHasArguments = arg.getExpr() != null && arg.getExpr().getLexicalUnitType() == LexicalUnitImpl.SCSS_VARIABLE && arg.getExpr().getNextLexicalUnit() != null;
+
+ if(currentArgHasArguments)
+ {
+ if(hasNonOptionalArguments)
+ {
+ throw new ParseException("Sass Error: Required argument $"+ arg.getName() +" must come before any optional arguments.");
+ }
+ return hasNonOptionalArguments;
+ }else
+ {
+ return true;
+ }
+ }
+
+ final public VariableNode mixinArg() throws ParseException {
+ String name;
+ Token variable = null;
+ LexicalUnitImpl first = null;
+ LexicalUnitImpl prev = null;
+ LexicalUnitImpl next = null;
+ name = variableName();
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case COLON:
+ case VARIABLE:
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case COLON:
+ jj_consume_token(COLON);
+ label_99:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[144] = jj_gen;
+ break label_99;
+ }
+ jj_consume_token(S);
+ }
+ first = nonVariableTerm(null);
+ prev = first;
+ label_100:
+ while (true) {
+ if (jj_2_5(3)) {
+ ;
+ } else {
+ break label_100;
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case COMMA:
+ jj_consume_token(COMMA);
+ label_101:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[145] = jj_gen;
+ break label_101;
+ }
+ jj_consume_token(S);
+ }
+ break;
+ default:
+ jj_la1[146] = jj_gen;
+ ;
+ }
+ prev = nonVariableTerm(prev);
+ }
+ break;
+ case VARIABLE:
+ variable = jj_consume_token(VARIABLE);
+ first = LexicalUnitImpl.createVariable(token.beginLine, token.beginColumn,
+ prev, variable.image);
+ break;
+ default:
+ jj_la1[147] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ break;
+ default:
+ jj_la1[148] = jj_gen;
+ ;
+ }
+ VariableNode arg = new VariableNode(name, first, false);
+ {if (true) return arg;}
+ throw new Error("Missing return statement in function");
+ }
+
+ final public ArrayList<LexicalUnitImpl> argValuelist() throws ParseException {
+ ArrayList<LexicalUnitImpl> args = new ArrayList<LexicalUnitImpl>();
+ LexicalUnitImpl first = null;
+ LexicalUnitImpl next = null;
+ LexicalUnitImpl prev = null;
+ first = term(null);
+ args.add(first); prev = first;
+ label_102:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case PLUS:
+ case MINUS:
+ case DOT:
+ case COLON:
+ case TO:
+ case THROUGH:
+ case FROM:
+ case STRING:
+ case IDENT:
+ case NUMBER:
+ case URL:
+ case VARIABLE:
+ case PERCENTAGE:
+ case PT:
+ case MM:
+ case CM:
+ case PC:
+ case IN:
+ case PX:
+ case EMS:
+ case LEM:
+ case REM:
+ case EXS:
+ case DEG:
+ case RAD:
+ case GRAD:
+ case MS:
+ case SECOND:
+ case HZ:
+ case KHZ:
+ case DIMEN:
+ case HASH:
+ case UNICODERANGE:
+ case FUNCTION:
+ ;
+ break;
+ default:
+ jj_la1[149] = jj_gen;
+ break label_102;
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case COLON:
+ jj_consume_token(COLON);
+ label_103:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[150] = jj_gen;
+ break label_103;
+ }
+ jj_consume_token(S);
+ }
+ break;
+ default:
+ jj_la1[151] = jj_gen;
+ ;
+ }
+ next = term(prev);
+ prev.setNextLexicalUnit(next); prev = next;
+ }
+ label_104:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case COMMA:
+ ;
+ break;
+ default:
+ jj_la1[152] = jj_gen;
+ break label_104;
+ }
+ jj_consume_token(COMMA);
+ label_105:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[153] = jj_gen;
+ break label_105;
+ }
+ jj_consume_token(S);
+ }
+ first = term(null);
+ args.add(first); prev = first;
+ label_106:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case PLUS:
+ case MINUS:
+ case DOT:
+ case COLON:
+ case TO:
+ case THROUGH:
+ case FROM:
+ case STRING:
+ case IDENT:
+ case NUMBER:
+ case URL:
+ case VARIABLE:
+ case PERCENTAGE:
+ case PT:
+ case MM:
+ case CM:
+ case PC:
+ case IN:
+ case PX:
+ case EMS:
+ case LEM:
+ case REM:
+ case EXS:
+ case DEG:
+ case RAD:
+ case GRAD:
+ case MS:
+ case SECOND:
+ case HZ:
+ case KHZ:
+ case DIMEN:
+ case HASH:
+ case UNICODERANGE:
+ case FUNCTION:
+ ;
+ break;
+ default:
+ jj_la1[154] = jj_gen;
+ break label_106;
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case COLON:
+ jj_consume_token(COLON);
+ label_107:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[155] = jj_gen;
+ break label_107;
+ }
+ jj_consume_token(S);
+ }
+ break;
+ default:
+ jj_la1[156] = jj_gen;
+ ;
+ }
+ next = term(prev);
+ prev.setNextLexicalUnit(next); prev = next;
+ }
+ }
+ {if (true) return args;}
+ throw new Error("Missing return statement in function");
+ }
+
+ final public void includeDirective() throws ParseException {
+ String name;
+ ArrayList<LexicalUnitImpl> args=null;
+ jj_consume_token(INCLUDE_SYM);
+ label_108:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[157] = jj_gen;
+ break label_108;
+ }
+ jj_consume_token(S);
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case INTERPOLATION:
+ case IDENT:
+ name = property();
+ break;
+ case VARIABLE:
+ name = variableName();
+ name = "$"+name;
+ break;
+ case FUNCTION:
+ name = functionName();
+ args = argValuelist();
+ jj_consume_token(RPARAN);
+ break;
+ default:
+ jj_la1[158] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case SEMICOLON:
+ label_109:
+ while (true) {
+ jj_consume_token(SEMICOLON);
+ label_110:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[159] = jj_gen;
+ break label_110;
+ }
+ jj_consume_token(S);
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case SEMICOLON:
+ ;
+ break;
+ default:
+ jj_la1[160] = jj_gen;
+ break label_109;
+ }
+ }
+ documentHandler.includeDirective(name, args);
+ break;
+ case LBRACE:
+ jj_consume_token(LBRACE);
+ label_111:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[161] = jj_gen;
+ break label_111;
+ }
+ jj_consume_token(S);
+ }
+ documentHandler.startIncludeContentBlock(name);
+ label_112:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case PLUS:
+ case PRECEDES:
+ case SIBLING:
+ case LBRACKET:
+ case ANY:
+ case PARENT:
+ case DOT:
+ case COLON:
+ case INTERPOLATION:
+ case DEBUG_SYM:
+ case WARN_SYM:
+ case IDENT:
+ case HASH:
+ ;
+ break;
+ default:
+ jj_la1[162] = jj_gen;
+ break label_112;
+ }
+ styleRuleOrDeclarationOrNestedProperties();
+ }
+ jj_consume_token(RBRACE);
+ label_113:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[163] = jj_gen;
+ break label_113;
+ }
+ jj_consume_token(S);
+ }
+ documentHandler.endIncludeContentBlock();
+ break;
+ default:
+ jj_la1[164] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ }
+
+ final public String interpolation() throws ParseException {
+ Token n;
+ n = jj_consume_token(INTERPOLATION);
+ {if (true) return n.image;}
+ throw new Error("Missing return statement in function");
+ }
+
+ final public void listModifyDirective() throws ParseException {
+ String list = null;
+ String remove = null;
+ String separator = null;
+ String variable = null;
+ Token n = null;
+ Token type = null;
+ //refactor, remove those 3 LOOKAHEAD(5).
+ n = jj_consume_token(VARIABLE);
+ variable = n.image;
+ label_114:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[165] = jj_gen;
+ break label_114;
+ }
+ jj_consume_token(S);
+ }
+ jj_consume_token(COLON);
+ label_115:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[166] = jj_gen;
+ break label_115;
+ }
+ jj_consume_token(S);
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case APPEND:
+ type = jj_consume_token(APPEND);
+ break;
+ case REMOVE:
+ type = jj_consume_token(REMOVE);
+ break;
+ case CONTAINS:
+ type = jj_consume_token(CONTAINS);
+ break;
+ default:
+ jj_la1[167] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ label_116:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[168] = jj_gen;
+ break label_116;
+ }
+ jj_consume_token(S);
+ }
+ list = listModifyDirectiveArgs(0);
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case RPARAN:
+ jj_consume_token(RPARAN);
+ break;
+ default:
+ jj_la1[169] = jj_gen;
+ ;
+ }
+ jj_consume_token(COMMA);
+ label_117:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[170] = jj_gen;
+ break label_117;
+ }
+ jj_consume_token(S);
+ }
+ remove = listModifyDirectiveArgs(1);
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case COMMA:
+ jj_consume_token(COMMA);
+ label_118:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[171] = jj_gen;
+ break label_118;
+ }
+ jj_consume_token(S);
+ }
+ n = jj_consume_token(IDENT);
+ separator = n.image;
+ label_119:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[172] = jj_gen;
+ break label_119;
+ }
+ jj_consume_token(S);
+ }
+ break;
+ default:
+ jj_la1[173] = jj_gen;
+ ;
+ }
+ jj_consume_token(RPARAN);
+ switch (type.kind) {
+ case APPEND:
+ documentHandler.appendDirective(variable,list,remove,separator);
+ break;
+ case REMOVE:
+ documentHandler.removeDirective(variable,list,remove,separator);
+ break;
+ case CONTAINS:
+ if(variable == null){
+ variable = "$var_"+UUID.randomUUID();
+ }
+ documentHandler.containsDirective(variable,list,remove,separator);
+ break;
+ default:
+ break;
+ }
+ label_120:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[174] = jj_gen;
+ break label_120;
+ }
+ jj_consume_token(S);
+ }
+ jj_consume_token(SEMICOLON);
+ label_121:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[175] = jj_gen;
+ break label_121;
+ }
+ jj_consume_token(S);
+ }
+ }
+
/**
* @exception ParseException exception during the parse
- */
- final public void appendDirective() throws ParseException {
- String list = null;
- String remove = null;
- String separator = null;
- String variable = null;
- Token n = null;
- n = jj_consume_token(VARIABLE);
- variable = n.image;
- label_122:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[176] = jj_gen;
- break label_122;
- }
- jj_consume_token(S);
- }
- jj_consume_token(COLON);
- label_123:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[177] = jj_gen;
- break label_123;
- }
- jj_consume_token(S);
- }
- jj_consume_token(APPEND);
- label_124:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[178] = jj_gen;
- break label_124;
- }
- jj_consume_token(S);
- }
- list = listModifyDirectiveArgs(0);
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case RPARAN:
- jj_consume_token(RPARAN);
- break;
- default:
- jj_la1[179] = jj_gen;
- ;
- }
- jj_consume_token(COMMA);
- label_125:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[180] = jj_gen;
- break label_125;
- }
- jj_consume_token(S);
- }
- remove = listModifyDirectiveArgs(1);
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case COMMA:
- jj_consume_token(COMMA);
- label_126:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[181] = jj_gen;
- break label_126;
- }
- jj_consume_token(S);
- }
- n = jj_consume_token(IDENT);
- separator = n.image;
- label_127:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[182] = jj_gen;
- break label_127;
- }
- jj_consume_token(S);
- }
- break;
- default:
- jj_la1[183] = jj_gen;
- ;
- }
- jj_consume_token(RPARAN);
- documentHandler.appendDirective(variable,list,remove,separator);
- }
-
+ */
+ final public void appendDirective() throws ParseException {
+ String list = null;
+ String remove = null;
+ String separator = null;
+ String variable = null;
+ Token n = null;
+ n = jj_consume_token(VARIABLE);
+ variable = n.image;
+ label_122:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[176] = jj_gen;
+ break label_122;
+ }
+ jj_consume_token(S);
+ }
+ jj_consume_token(COLON);
+ label_123:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[177] = jj_gen;
+ break label_123;
+ }
+ jj_consume_token(S);
+ }
+ jj_consume_token(APPEND);
+ label_124:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[178] = jj_gen;
+ break label_124;
+ }
+ jj_consume_token(S);
+ }
+ list = listModifyDirectiveArgs(0);
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case RPARAN:
+ jj_consume_token(RPARAN);
+ break;
+ default:
+ jj_la1[179] = jj_gen;
+ ;
+ }
+ jj_consume_token(COMMA);
+ label_125:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[180] = jj_gen;
+ break label_125;
+ }
+ jj_consume_token(S);
+ }
+ remove = listModifyDirectiveArgs(1);
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case COMMA:
+ jj_consume_token(COMMA);
+ label_126:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[181] = jj_gen;
+ break label_126;
+ }
+ jj_consume_token(S);
+ }
+ n = jj_consume_token(IDENT);
+ separator = n.image;
+ label_127:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[182] = jj_gen;
+ break label_127;
+ }
+ jj_consume_token(S);
+ }
+ break;
+ default:
+ jj_la1[183] = jj_gen;
+ ;
+ }
+ jj_consume_token(RPARAN);
+ documentHandler.appendDirective(variable,list,remove,separator);
+ }
+
/**
* @exception ParseException exception during the parse
- */
- final public void removeDirective() throws ParseException {
- String list = null;
- String remove = null;
- String separator = null;
- String variable = null;
- Token n = null;
- n = jj_consume_token(VARIABLE);
- variable = n.image;
- label_128:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[184] = jj_gen;
- break label_128;
- }
- jj_consume_token(S);
- }
- jj_consume_token(COLON);
- label_129:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[185] = jj_gen;
- break label_129;
- }
- jj_consume_token(S);
- }
- jj_consume_token(REMOVE);
- label_130:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[186] = jj_gen;
- break label_130;
- }
- jj_consume_token(S);
- }
- list = listModifyDirectiveArgs(0);
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case RPARAN:
- jj_consume_token(RPARAN);
- break;
- default:
- jj_la1[187] = jj_gen;
- ;
- }
- jj_consume_token(COMMA);
- label_131:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[188] = jj_gen;
- break label_131;
- }
- jj_consume_token(S);
- }
- remove = listModifyDirectiveArgs(1);
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case COMMA:
- jj_consume_token(COMMA);
- label_132:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[189] = jj_gen;
- break label_132;
- }
- jj_consume_token(S);
- }
- n = jj_consume_token(IDENT);
- separator = n.image;
- label_133:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[190] = jj_gen;
- break label_133;
- }
- jj_consume_token(S);
- }
- break;
- default:
- jj_la1[191] = jj_gen;
- ;
- }
- jj_consume_token(RPARAN);
- documentHandler.removeDirective(variable,list,remove,separator);
- }
-
+ */
+ final public void removeDirective() throws ParseException {
+ String list = null;
+ String remove = null;
+ String separator = null;
+ String variable = null;
+ Token n = null;
+ n = jj_consume_token(VARIABLE);
+ variable = n.image;
+ label_128:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[184] = jj_gen;
+ break label_128;
+ }
+ jj_consume_token(S);
+ }
+ jj_consume_token(COLON);
+ label_129:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[185] = jj_gen;
+ break label_129;
+ }
+ jj_consume_token(S);
+ }
+ jj_consume_token(REMOVE);
+ label_130:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[186] = jj_gen;
+ break label_130;
+ }
+ jj_consume_token(S);
+ }
+ list = listModifyDirectiveArgs(0);
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case RPARAN:
+ jj_consume_token(RPARAN);
+ break;
+ default:
+ jj_la1[187] = jj_gen;
+ ;
+ }
+ jj_consume_token(COMMA);
+ label_131:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[188] = jj_gen;
+ break label_131;
+ }
+ jj_consume_token(S);
+ }
+ remove = listModifyDirectiveArgs(1);
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case COMMA:
+ jj_consume_token(COMMA);
+ label_132:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[189] = jj_gen;
+ break label_132;
+ }
+ jj_consume_token(S);
+ }
+ n = jj_consume_token(IDENT);
+ separator = n.image;
+ label_133:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[190] = jj_gen;
+ break label_133;
+ }
+ jj_consume_token(S);
+ }
+ break;
+ default:
+ jj_la1[191] = jj_gen;
+ ;
+ }
+ jj_consume_token(RPARAN);
+ documentHandler.removeDirective(variable,list,remove,separator);
+ }
+
/**
* @exception ParseException exception during the parse
- */
- final public String containsDirective() throws ParseException {
- String list = null;
- String remove = null;
- String separator = null;
- String variable = null;
- Token n = null;
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case VARIABLE:
- n = jj_consume_token(VARIABLE);
- variable = n.image;
- label_134:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[192] = jj_gen;
- break label_134;
- }
- jj_consume_token(S);
- }
- jj_consume_token(COLON);
- label_135:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[193] = jj_gen;
- break label_135;
- }
- jj_consume_token(S);
- }
- break;
- default:
- jj_la1[194] = jj_gen;
- ;
- }
- jj_consume_token(CONTAINS);
- label_136:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[195] = jj_gen;
- break label_136;
- }
- jj_consume_token(S);
- }
- list = listModifyDirectiveArgs(0);
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case RPARAN:
- jj_consume_token(RPARAN);
- break;
- default:
- jj_la1[196] = jj_gen;
- ;
- }
- jj_consume_token(COMMA);
- label_137:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[197] = jj_gen;
- break label_137;
- }
- jj_consume_token(S);
- }
- remove = listModifyDirectiveArgs(1);
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case COMMA:
- jj_consume_token(COMMA);
- label_138:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[198] = jj_gen;
- break label_138;
- }
- jj_consume_token(S);
- }
- n = jj_consume_token(IDENT);
- separator = n.image;
- label_139:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[199] = jj_gen;
- break label_139;
- }
- jj_consume_token(S);
- }
- break;
- default:
- jj_la1[200] = jj_gen;
- ;
- }
- jj_consume_token(RPARAN);
- /*
- *if it is not in the form like "$contains : contains($items, .v-button);"
- *for example in @if, like "@if (contains(a b c, b))", then create a temp
- *variable for contains(a b c, b);
- */
- if(variable == null){
- variable = "$var_"+UUID.randomUUID();
- }
- documentHandler.containsDirective(variable,list,remove,separator);
- {if (true) return variable;}
- throw new Error("Missing return statement in function");
- }
-
- String listModifyDirectiveArgs(int nest) throws ParseException {
- String list = "";
- int nesting = nest;
- Token t = null;
-
- while(true)
- {
- t = getToken(1);
- String s = t.image;
- if(t.kind == VARIABLE||t.kind == IDENT)
- {
- list += s;
- }else if(s.toLowerCase().equals("auto")||s.toLowerCase().equals("space")||s.toLowerCase().equals("comma"))
- {
- int i = 2;
- Token temp = getToken(i);
- boolean isLast = true;
- while(temp.kind != SEMICOLON)
- {
- if(temp.kind != RPARAN || temp.kind != S)
- {
- isLast = false;
- }
- i++;
- temp = getToken(i);
- }
-
- if(isLast)
- {
- return list;
- }
- }
- else if(t.kind == STRING)
- {
- list += s.substring(1,s.length()).substring(0,s.length()-2);
-
- }else if(t.kind == LPARAN)
- {
- nesting++;
- if(nesting > nest+1)
- {
- throw new CSSParseException("Only one ( ) pair per parameter allowed", getLocator());
- }
- }else if(t.kind == RPARAN)
- {
- nesting--;
- if(nesting == 0)
- {
- return list;
- }
- } else if(t.kind == COMMA)
- {
- if(nesting == nest)
- {
- return list;
- }else
- {
- list += ",";
- }
-
- }else if(t.kind == S)
- {
- list += " ";
- } else if(t.kind == LBRACE)
- {
- throw new CSSParseException("Invalid token,'{' found", getLocator());
- }
-
- getNextToken();
- }
- }
-
- final public Node returnDirective() throws ParseException {
- String raw;
- raw = skipStatement();
- {if (true) return null;}
- throw new Error("Missing return statement in function");
- }
-
- final public void debuggingDirective() throws ParseException {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case DEBUG_SYM:
- debugDirective();
- break;
- case WARN_SYM:
- warnDirective();
- break;
- default:
- jj_la1[201] = jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
-
- final public void debugDirective() throws ParseException {
- jj_consume_token(DEBUG_SYM);
- String content = skipStatementUntilSemiColon();
- // TODO should evaluate the content expression, call documentHandler.debugDirective() etc.
- System.out.println(content);
- label_140:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[202] = jj_gen;
- break label_140;
- }
- jj_consume_token(S);
- }
- }
-
- final public void warnDirective() throws ParseException {
- jj_consume_token(WARN_SYM);
- String content = skipStatementUntilSemiColon();
- // TODO should evaluate the content expression, call documentHandler.warnDirective() etc.
- System.err.println(content);
- label_141:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[203] = jj_gen;
- break label_141;
- }
- jj_consume_token(S);
- }
- }
-
- final public Node forDirective() throws ParseException {
- String var;
- String from;
- String to;
- boolean exclusive;
- String body;
- Token tok;
- var = variableName();
- int[] toThrough = {TO, THROUGH};
- from = skipStatementUntil(toThrough);
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case TO:
- tok = jj_consume_token(TO);
- exclusive = true;
- break;
- case THROUGH:
- tok = jj_consume_token(THROUGH);
- exclusive = false;
- break;
- default:
- jj_la1[204] = jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- to = skipStatementUntilLeftBrace();
- label_142:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[205] = jj_gen;
- break label_142;
- }
- jj_consume_token(S);
- }
- body = skipStatement();
- {if (true) return documentHandler.forDirective(var, from, to, exclusive, body);}
- throw new Error("Missing return statement in function");
- }
-
- final public Node whileDirective() throws ParseException {
- String condition;
- String body;
- condition = skipStatementUntilLeftBrace();
- body = skipStatement();
- {if (true) return documentHandler.whileDirective(condition, body);}
- throw new Error("Missing return statement in function");
- }
-
- final public void extendDirective() throws ParseException {
- ArrayList<String> list;
- jj_consume_token(EXTEND_SYM);
- label_143:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[206] = jj_gen;
- break label_143;
- }
- jj_consume_token(S);
- }
- list = selectorList();
- label_144:
- while (true) {
- jj_consume_token(SEMICOLON);
- label_145:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[207] = jj_gen;
- break label_145;
- }
- jj_consume_token(S);
- }
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case SEMICOLON:
- ;
- break;
- default:
- jj_la1[208] = jj_gen;
- break label_144;
- }
- }
- documentHandler.extendDirective(list);
- }
-
- final public void contentDirective() throws ParseException {
- jj_consume_token(CONTENT_SYM);
- label_146:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[209] = jj_gen;
- break label_146;
- }
- jj_consume_token(S);
- }
- label_147:
- while (true) {
- jj_consume_token(SEMICOLON);
- label_148:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[210] = jj_gen;
- break label_148;
- }
- jj_consume_token(S);
- }
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case SEMICOLON:
- ;
- break;
- default:
- jj_la1[211] = jj_gen;
- break label_147;
- }
- }
- documentHandler.contentDirective();
- }
-
- Node importDirective() throws ParseException {
- return null;
- }
-
- Node charsetDirective() throws ParseException {
- return null;
- }
-
- Node mozDocumentDirective() throws ParseException {
- return null;
- }
-
- Node supportsDirective() throws ParseException {
- return null;
- }
-
- final public void nestedProperties() throws ParseException {
- String name;
-LexicalUnit exp;
- name = property();
- jj_consume_token(COLON);
- label_149:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[212] = jj_gen;
- break label_149;
- }
- jj_consume_token(S);
- }
- jj_consume_token(LBRACE);
- label_150:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[213] = jj_gen;
- break label_150;
- }
- jj_consume_token(S);
- }
- documentHandler.startNestedProperties(name);
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case INTERPOLATION:
- case IDENT:
- declaration();
- break;
- default:
- jj_la1[214] = jj_gen;
- ;
- }
- label_151:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case SEMICOLON:
- ;
- break;
- default:
- jj_la1[215] = jj_gen;
- break label_151;
- }
- jj_consume_token(SEMICOLON);
- label_152:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[216] = jj_gen;
- break label_152;
- }
- jj_consume_token(S);
- }
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case INTERPOLATION:
- case IDENT:
- declaration();
- break;
- default:
- jj_la1[217] = jj_gen;
- ;
- }
- }
- jj_consume_token(RBRACE);
- documentHandler.endNestedProperties(name);
- label_153:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[218] = jj_gen;
- break label_153;
- }
- jj_consume_token(S);
- }
- }
-
+ */
+ final public String containsDirective() throws ParseException {
+ String list = null;
+ String remove = null;
+ String separator = null;
+ String variable = null;
+ Token n = null;
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case VARIABLE:
+ n = jj_consume_token(VARIABLE);
+ variable = n.image;
+ label_134:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[192] = jj_gen;
+ break label_134;
+ }
+ jj_consume_token(S);
+ }
+ jj_consume_token(COLON);
+ label_135:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[193] = jj_gen;
+ break label_135;
+ }
+ jj_consume_token(S);
+ }
+ break;
+ default:
+ jj_la1[194] = jj_gen;
+ ;
+ }
+ jj_consume_token(CONTAINS);
+ label_136:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[195] = jj_gen;
+ break label_136;
+ }
+ jj_consume_token(S);
+ }
+ list = listModifyDirectiveArgs(0);
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case RPARAN:
+ jj_consume_token(RPARAN);
+ break;
+ default:
+ jj_la1[196] = jj_gen;
+ ;
+ }
+ jj_consume_token(COMMA);
+ label_137:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[197] = jj_gen;
+ break label_137;
+ }
+ jj_consume_token(S);
+ }
+ remove = listModifyDirectiveArgs(1);
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case COMMA:
+ jj_consume_token(COMMA);
+ label_138:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[198] = jj_gen;
+ break label_138;
+ }
+ jj_consume_token(S);
+ }
+ n = jj_consume_token(IDENT);
+ separator = n.image;
+ label_139:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[199] = jj_gen;
+ break label_139;
+ }
+ jj_consume_token(S);
+ }
+ break;
+ default:
+ jj_la1[200] = jj_gen;
+ ;
+ }
+ jj_consume_token(RPARAN);
+ /*
+ *if it is not in the form like "$contains : contains($items, .v-button);"
+ *for example in @if, like "@if (contains(a b c, b))", then create a temp
+ *variable for contains(a b c, b);
+ */
+ if(variable == null){
+ variable = "$var_"+UUID.randomUUID();
+ }
+ documentHandler.containsDirective(variable,list,remove,separator);
+ {if (true) return variable;}
+ throw new Error("Missing return statement in function");
+ }
+
+ String listModifyDirectiveArgs(int nest) throws ParseException {
+ String list = "";
+ int nesting = nest;
+ Token t = null;
+
+ while(true)
+ {
+ t = getToken(1);
+ String s = t.image;
+ if(t.kind == VARIABLE||t.kind == IDENT)
+ {
+ list += s;
+ }else if(s.toLowerCase().equals("auto")||s.toLowerCase().equals("space")||s.toLowerCase().equals("comma"))
+ {
+ int i = 2;
+ Token temp = getToken(i);
+ boolean isLast = true;
+ while(temp.kind != SEMICOLON)
+ {
+ if(temp.kind != RPARAN || temp.kind != S)
+ {
+ isLast = false;
+ }
+ i++;
+ temp = getToken(i);
+ }
+
+ if(isLast)
+ {
+ return list;
+ }
+ }
+ else if(t.kind == STRING)
+ {
+ list += s.substring(1,s.length()).substring(0,s.length()-2);
+
+ }else if(t.kind == LPARAN)
+ {
+ nesting++;
+ if(nesting > nest+1)
+ {
+ throw new CSSParseException("Only one ( ) pair per parameter allowed", getLocator());
+ }
+ }else if(t.kind == RPARAN)
+ {
+ nesting--;
+ if(nesting == 0)
+ {
+ return list;
+ }
+ } else if(t.kind == COMMA)
+ {
+ if(nesting == nest)
+ {
+ return list;
+ }else
+ {
+ list += ",";
+ }
+
+ }else if(t.kind == S)
+ {
+ list += " ";
+ } else if(t.kind == LBRACE)
+ {
+ throw new CSSParseException("Invalid token,'{' found", getLocator());
+ }
+
+ getNextToken();
+ }
+ }
+
+ final public Node returnDirective() throws ParseException {
+ String raw;
+ raw = skipStatement();
+ {if (true) return null;}
+ throw new Error("Missing return statement in function");
+ }
+
+ final public void debuggingDirective() throws ParseException {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case DEBUG_SYM:
+ debugDirective();
+ break;
+ case WARN_SYM:
+ warnDirective();
+ break;
+ default:
+ jj_la1[201] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ }
+
+ final public void debugDirective() throws ParseException {
+ jj_consume_token(DEBUG_SYM);
+ String content = skipStatementUntilSemiColon();
+ // TODO should evaluate the content expression, call documentHandler.debugDirective() etc.
+ System.out.println(content);
+ label_140:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[202] = jj_gen;
+ break label_140;
+ }
+ jj_consume_token(S);
+ }
+ }
+
+ final public void warnDirective() throws ParseException {
+ jj_consume_token(WARN_SYM);
+ String content = skipStatementUntilSemiColon();
+ // TODO should evaluate the content expression, call documentHandler.warnDirective() etc.
+ System.err.println(content);
+ label_141:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[203] = jj_gen;
+ break label_141;
+ }
+ jj_consume_token(S);
+ }
+ }
+
+ final public Node forDirective() throws ParseException {
+ String var;
+ String from;
+ String to;
+ boolean exclusive;
+ String body;
+ Token tok;
+ var = variableName();
+ int[] toThrough = {TO, THROUGH};
+ from = skipStatementUntil(toThrough);
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case TO:
+ tok = jj_consume_token(TO);
+ exclusive = true;
+ break;
+ case THROUGH:
+ tok = jj_consume_token(THROUGH);
+ exclusive = false;
+ break;
+ default:
+ jj_la1[204] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ to = skipStatementUntilLeftBrace();
+ label_142:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[205] = jj_gen;
+ break label_142;
+ }
+ jj_consume_token(S);
+ }
+ body = skipStatement();
+ {if (true) return documentHandler.forDirective(var, from, to, exclusive, body);}
+ throw new Error("Missing return statement in function");
+ }
+
+ final public Node whileDirective() throws ParseException {
+ String condition;
+ String body;
+ condition = skipStatementUntilLeftBrace();
+ body = skipStatement();
+ {if (true) return documentHandler.whileDirective(condition, body);}
+ throw new Error("Missing return statement in function");
+ }
+
+ final public void extendDirective() throws ParseException {
+ ArrayList<String> list;
+ jj_consume_token(EXTEND_SYM);
+ label_143:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[206] = jj_gen;
+ break label_143;
+ }
+ jj_consume_token(S);
+ }
+ list = selectorList();
+ label_144:
+ while (true) {
+ jj_consume_token(SEMICOLON);
+ label_145:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[207] = jj_gen;
+ break label_145;
+ }
+ jj_consume_token(S);
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case SEMICOLON:
+ ;
+ break;
+ default:
+ jj_la1[208] = jj_gen;
+ break label_144;
+ }
+ }
+ documentHandler.extendDirective(list);
+ }
+
+ final public void contentDirective() throws ParseException {
+ jj_consume_token(CONTENT_SYM);
+ label_146:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[209] = jj_gen;
+ break label_146;
+ }
+ jj_consume_token(S);
+ }
+ label_147:
+ while (true) {
+ jj_consume_token(SEMICOLON);
+ label_148:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[210] = jj_gen;
+ break label_148;
+ }
+ jj_consume_token(S);
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case SEMICOLON:
+ ;
+ break;
+ default:
+ jj_la1[211] = jj_gen;
+ break label_147;
+ }
+ }
+ documentHandler.contentDirective();
+ }
+
+ Node importDirective() throws ParseException {
+ return null;
+ }
+
+ Node charsetDirective() throws ParseException {
+ return null;
+ }
+
+ Node mozDocumentDirective() throws ParseException {
+ return null;
+ }
+
+ Node supportsDirective() throws ParseException {
+ return null;
+ }
+
+ final public void nestedProperties() throws ParseException {
+ String name;
+LexicalUnit exp;
+ name = property();
+ jj_consume_token(COLON);
+ label_149:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[212] = jj_gen;
+ break label_149;
+ }
+ jj_consume_token(S);
+ }
+ jj_consume_token(LBRACE);
+ label_150:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[213] = jj_gen;
+ break label_150;
+ }
+ jj_consume_token(S);
+ }
+ documentHandler.startNestedProperties(name);
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case INTERPOLATION:
+ case IDENT:
+ declaration();
+ break;
+ default:
+ jj_la1[214] = jj_gen;
+ ;
+ }
+ label_151:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case SEMICOLON:
+ ;
+ break;
+ default:
+ jj_la1[215] = jj_gen;
+ break label_151;
+ }
+ jj_consume_token(SEMICOLON);
+ label_152:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[216] = jj_gen;
+ break label_152;
+ }
+ jj_consume_token(S);
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case INTERPOLATION:
+ case IDENT:
+ declaration();
+ break;
+ default:
+ jj_la1[217] = jj_gen;
+ ;
+ }
+ }
+ jj_consume_token(RBRACE);
+ documentHandler.endNestedProperties(name);
+ label_153:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[218] = jj_gen;
+ break label_153;
+ }
+ jj_consume_token(S);
+ }
+ }
+
/**
* @exception ParseException exception during the parse
- */
- final public void styleRuleOrDeclarationOrNestedProperties() throws ParseException {
- try {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case DEBUG_SYM:
- case WARN_SYM:
- debuggingDirective();
- break;
- default:
- jj_la1[219] = jj_gen;
- if (jj_2_6(2147483647)) {
- styleRule();
- } else if (jj_2_7(3)) {
- declarationOrNestedProperties();
- } else {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case PLUS:
- case PRECEDES:
- case SIBLING:
- case LBRACKET:
- case ANY:
- case PARENT:
- case DOT:
- case COLON:
- case INTERPOLATION:
- case IDENT:
- case HASH:
- styleRule();
- break;
- default:
- jj_la1[220] = jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- }
- }
- } catch (JumpException e) {
- skipAfterExpression();
- // reportWarningSkipText(getLocator(), skipAfterExpression());
-
- } catch (ParseException e) {
- if (errorHandler != null) {
- if (e.currentToken != null) {
- LocatorImpl li = new LocatorImpl(this,
- e.currentToken.next.beginLine,
- e.currentToken.next.beginColumn-1);
- reportError(li, e);
- } else {
- reportError(getLocator(), e);
- }
- skipAfterExpression();
- /*
- LocatorImpl loc = (LocatorImpl) getLocator();
- loc.column--;
- reportWarningSkipText(loc, skipAfterExpression());
- */
- } else {
- skipAfterExpression();
- }
- }
- }
-
+ */
+ final public void styleRuleOrDeclarationOrNestedProperties() throws ParseException {
+ try {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case DEBUG_SYM:
+ case WARN_SYM:
+ debuggingDirective();
+ break;
+ default:
+ jj_la1[219] = jj_gen;
+ if (jj_2_6(2147483647)) {
+ styleRule();
+ } else if (jj_2_7(3)) {
+ declarationOrNestedProperties();
+ } else {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case PLUS:
+ case PRECEDES:
+ case SIBLING:
+ case LBRACKET:
+ case ANY:
+ case PARENT:
+ case DOT:
+ case COLON:
+ case INTERPOLATION:
+ case IDENT:
+ case HASH:
+ styleRule();
+ break;
+ default:
+ jj_la1[220] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ }
+ }
+ } catch (JumpException e) {
+ skipAfterExpression();
+ // reportWarningSkipText(getLocator(), skipAfterExpression());
+
+ } catch (ParseException e) {
+ if (errorHandler != null) {
+ if (e.currentToken != null) {
+ LocatorImpl li = new LocatorImpl(this,
+ e.currentToken.next.beginLine,
+ e.currentToken.next.beginColumn-1);
+ reportError(li, e);
+ } else {
+ reportError(getLocator(), e);
+ }
+ skipAfterExpression();
+ /*
+ LocatorImpl loc = (LocatorImpl) getLocator();
+ loc.column--;
+ reportWarningSkipText(loc, skipAfterExpression());
+ */
+ } else {
+ skipAfterExpression();
+ }
+ }
+ }
+
/**
* @exception ParseException exception during the parse
- */
- final public void declarationOrNestedProperties() throws ParseException {
- boolean important = false;
- String name;
- LexicalUnitImpl exp;
- Token save;
- String comment = null;
- try {
- name = property();
- save = token;
- jj_consume_token(COLON);
- label_154:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[221] = jj_gen;
- break label_154;
- }
- jj_consume_token(S);
- }
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case PLUS:
- case MINUS:
- case DOT:
- case STRING:
- case IDENT:
- case NUMBER:
- case URL:
- case VARIABLE:
- case PERCENTAGE:
- case PT:
- case MM:
- case CM:
- case PC:
- case IN:
- case PX:
- case EMS:
- case LEM:
- case REM:
- case EXS:
- case DEG:
- case RAD:
- case GRAD:
- case MS:
- case SECOND:
- case HZ:
- case KHZ:
- case DIMEN:
- case HASH:
- case UNICODERANGE:
- case FUNCTION:
- exp = expr();
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case IMPORTANT_SYM:
- important = prio();
- break;
- default:
- jj_la1[222] = jj_gen;
- ;
- }
- Token next = getToken(1);
- if(next.kind == SEMICOLON || next.kind == RBRACE){
- while(next.kind == SEMICOLON){
- skipStatement();
- next = getToken(1);
- }
- if(token.specialToken!=null){
- documentHandler.property(name, exp, important, token.specialToken.image);
- }else{
- documentHandler.property(name, exp, important, null);
- }
- }
- break;
- case LBRACE:
- jj_consume_token(LBRACE);
- label_155:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[223] = jj_gen;
- break label_155;
- }
- jj_consume_token(S);
- }
- documentHandler.startNestedProperties(name);
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case INTERPOLATION:
- case IDENT:
- declaration();
- break;
- default:
- jj_la1[224] = jj_gen;
- ;
- }
- label_156:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case SEMICOLON:
- ;
- break;
- default:
- jj_la1[225] = jj_gen;
- break label_156;
- }
- jj_consume_token(SEMICOLON);
- label_157:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[226] = jj_gen;
- break label_157;
- }
- jj_consume_token(S);
- }
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case INTERPOLATION:
- case IDENT:
- declaration();
- break;
- default:
- jj_la1[227] = jj_gen;
- ;
- }
- }
- jj_consume_token(RBRACE);
- label_158:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[228] = jj_gen;
- break label_158;
- }
- jj_consume_token(S);
- }
- documentHandler.endNestedProperties(name);
- break;
- default:
- jj_la1[229] = jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- } catch (JumpException e) {
- skipAfterExpression();
- // reportWarningSkipText(getLocator(), skipAfterExpression());
-
- } catch (NumberFormatException e) {
- if (errorHandler != null) {
- errorHandler.error(new CSSParseException("Invalid number "
- + e.getMessage(),
- getLocator(),
- e));
- }
- reportWarningSkipText(getLocator(), skipAfterExpression());
- } catch (ParseException e) {
- if (errorHandler != null) {
- if (e.currentToken != null) {
- LocatorImpl li = new LocatorImpl(this,
- e.currentToken.next.beginLine,
- e.currentToken.next.beginColumn-1);
- reportError(li, e);
- } else {
- reportError(getLocator(), e);
- }
- skipAfterExpression();
- /*
- LocatorImpl loc = (LocatorImpl) getLocator();
- loc.column--;
- reportWarningSkipText(loc, skipAfterExpression());
- */
- } else {
- skipAfterExpression();
- }
- }
- }
-
+ */
+ final public void declarationOrNestedProperties() throws ParseException {
+ boolean important = false;
+ String name;
+ LexicalUnitImpl exp;
+ Token save;
+ String comment = null;
+ try {
+ name = property();
+ save = token;
+ jj_consume_token(COLON);
+ label_154:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[221] = jj_gen;
+ break label_154;
+ }
+ jj_consume_token(S);
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case PLUS:
+ case MINUS:
+ case DOT:
+ case TO:
+ case THROUGH:
+ case FROM:
+ case STRING:
+ case IDENT:
+ case NUMBER:
+ case URL:
+ case VARIABLE:
+ case PERCENTAGE:
+ case PT:
+ case MM:
+ case CM:
+ case PC:
+ case IN:
+ case PX:
+ case EMS:
+ case LEM:
+ case REM:
+ case EXS:
+ case DEG:
+ case RAD:
+ case GRAD:
+ case MS:
+ case SECOND:
+ case HZ:
+ case KHZ:
+ case DIMEN:
+ case HASH:
+ case UNICODERANGE:
+ case FUNCTION:
+ exp = expr();
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case IMPORTANT_SYM:
+ important = prio();
+ break;
+ default:
+ jj_la1[222] = jj_gen;
+ ;
+ }
+ Token next = getToken(1);
+ if(next.kind == SEMICOLON || next.kind == RBRACE){
+ while(next.kind == SEMICOLON){
+ skipStatement();
+ next = getToken(1);
+ }
+ if(token.specialToken!=null){
+ documentHandler.property(name, exp, important, token.specialToken.image);
+ }else{
+ documentHandler.property(name, exp, important, null);
+ }
+ }
+ break;
+ case LBRACE:
+ jj_consume_token(LBRACE);
+ label_155:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[223] = jj_gen;
+ break label_155;
+ }
+ jj_consume_token(S);
+ }
+ documentHandler.startNestedProperties(name);
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case INTERPOLATION:
+ case IDENT:
+ declaration();
+ break;
+ default:
+ jj_la1[224] = jj_gen;
+ ;
+ }
+ label_156:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case SEMICOLON:
+ ;
+ break;
+ default:
+ jj_la1[225] = jj_gen;
+ break label_156;
+ }
+ jj_consume_token(SEMICOLON);
+ label_157:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[226] = jj_gen;
+ break label_157;
+ }
+ jj_consume_token(S);
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case INTERPOLATION:
+ case IDENT:
+ declaration();
+ break;
+ default:
+ jj_la1[227] = jj_gen;
+ ;
+ }
+ }
+ jj_consume_token(RBRACE);
+ label_158:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[228] = jj_gen;
+ break label_158;
+ }
+ jj_consume_token(S);
+ }
+ documentHandler.endNestedProperties(name);
+ break;
+ default:
+ jj_la1[229] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ } catch (JumpException e) {
+ skipAfterExpression();
+ // reportWarningSkipText(getLocator(), skipAfterExpression());
+
+ } catch (NumberFormatException e) {
+ if (errorHandler != null) {
+ errorHandler.error(new CSSParseException("Invalid number "
+ + e.getMessage(),
+ getLocator(),
+ e));
+ }
+ reportWarningSkipText(getLocator(), skipAfterExpression());
+ } catch (ParseException e) {
+ if (errorHandler != null) {
+ if (e.currentToken != null) {
+ LocatorImpl li = new LocatorImpl(this,
+ e.currentToken.next.beginLine,
+ e.currentToken.next.beginColumn-1);
+ reportError(li, e);
+ } else {
+ reportError(getLocator(), e);
+ }
+ skipAfterExpression();
+ /*
+ LocatorImpl loc = (LocatorImpl) getLocator();
+ loc.column--;
+ reportWarningSkipText(loc, skipAfterExpression());
+ */
+ } else {
+ skipAfterExpression();
+ }
+ }
+ }
+
/**
* @exception ParseException exception during the parse
- */
- final public void declaration() throws ParseException {
- boolean important = false;
- String name;
- LexicalUnit exp;
- Token save;
- try {
- name = property();
- save = token;
- jj_consume_token(COLON);
- label_159:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[230] = jj_gen;
- break label_159;
- }
- jj_consume_token(S);
- }
- exp = expr();
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case IMPORTANT_SYM:
- important = prio();
- break;
- default:
- jj_la1[231] = jj_gen;
- ;
- }
- documentHandler.property(name, exp, important);
- } catch (JumpException e) {
- skipAfterExpression();
- // reportWarningSkipText(getLocator(), skipAfterExpression());
-
- } catch (NumberFormatException e) {
- if (errorHandler != null) {
- errorHandler.error(new CSSParseException("Invalid number "
- + e.getMessage(),
- getLocator(),
- e));
- }
- reportWarningSkipText(getLocator(), skipAfterExpression());
- } catch (ParseException e) {
- if (errorHandler != null) {
- if (e.currentToken != null) {
- LocatorImpl li = new LocatorImpl(this,
- e.currentToken.next.beginLine,
- e.currentToken.next.beginColumn-1);
- reportError(li, e);
- } else {
- reportError(getLocator(), e);
- }
- skipAfterExpression();
- /*
- LocatorImpl loc = (LocatorImpl) getLocator();
- loc.column--;
- reportWarningSkipText(loc, skipAfterExpression());
- */
- } else {
- skipAfterExpression();
- }
- }
- }
-
+ */
+ final public void declaration() throws ParseException {
+ boolean important = false;
+ String name;
+ LexicalUnit exp;
+ Token save;
+ try {
+ name = property();
+ save = token;
+ jj_consume_token(COLON);
+ label_159:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[230] = jj_gen;
+ break label_159;
+ }
+ jj_consume_token(S);
+ }
+ exp = expr();
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case IMPORTANT_SYM:
+ important = prio();
+ break;
+ default:
+ jj_la1[231] = jj_gen;
+ ;
+ }
+ documentHandler.property(name, exp, important);
+ } catch (JumpException e) {
+ skipAfterExpression();
+ // reportWarningSkipText(getLocator(), skipAfterExpression());
+
+ } catch (NumberFormatException e) {
+ if (errorHandler != null) {
+ errorHandler.error(new CSSParseException("Invalid number "
+ + e.getMessage(),
+ getLocator(),
+ e));
+ }
+ reportWarningSkipText(getLocator(), skipAfterExpression());
+ } catch (ParseException e) {
+ if (errorHandler != null) {
+ if (e.currentToken != null) {
+ LocatorImpl li = new LocatorImpl(this,
+ e.currentToken.next.beginLine,
+ e.currentToken.next.beginColumn-1);
+ reportError(li, e);
+ } else {
+ reportError(getLocator(), e);
+ }
+ skipAfterExpression();
+ /*
+ LocatorImpl loc = (LocatorImpl) getLocator();
+ loc.column--;
+ reportWarningSkipText(loc, skipAfterExpression());
+ */
+ } else {
+ skipAfterExpression();
+ }
+ }
+ }
+
/**
* @exception ParseException exception during the parse
- */
- final public boolean prio() throws ParseException {
- jj_consume_token(IMPORTANT_SYM);
- label_160:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[232] = jj_gen;
- break label_160;
- }
- jj_consume_token(S);
- }
- {if (true) return true;}
- throw new Error("Missing return statement in function");
- }
-
- final public boolean guarded() throws ParseException {
- jj_consume_token(GUARDED_SYM);
- label_161:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[233] = jj_gen;
- break label_161;
- }
- jj_consume_token(S);
- }
- {if (true) return true;}
- throw new Error("Missing return statement in function");
- }
-
+ */
+ final public boolean prio() throws ParseException {
+ jj_consume_token(IMPORTANT_SYM);
+ label_160:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[232] = jj_gen;
+ break label_160;
+ }
+ jj_consume_token(S);
+ }
+ {if (true) return true;}
+ throw new Error("Missing return statement in function");
+ }
+
+ final public boolean guarded() throws ParseException {
+ jj_consume_token(GUARDED_SYM);
+ label_161:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[233] = jj_gen;
+ break label_161;
+ }
+ jj_consume_token(S);
+ }
+ {if (true) return true;}
+ throw new Error("Missing return statement in function");
+ }
+
/**
* @exception ParseException exception during the parse
- */
- final public LexicalUnitImpl operator(LexicalUnitImpl prev) throws ParseException {
- Token n;
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case COMMA:
- /* (comments copied from basic_arithmetics.scss)
- *supports:
- * 1. standard arithmetic operations (+, -, *, /, %)
- * 2. / is treated as css operator, unless one of its operands is variable or there is another binary arithmetic operator
- *limits:
- * 1. cannot mix arithmetic and css operations, e.g. "margin: 1px + 3px 2px" will fail
- * 2. space between add and minus operator and their following operand is mandatory. e.g. "1 + 2" is valid, "1+2" is not
- * 3. parenthesis is not supported now.
- */
- n = jj_consume_token(COMMA);
- label_162:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[234] = jj_gen;
- break label_162;
- }
- jj_consume_token(S);
- }
- {if (true) return LexicalUnitImpl.createComma(n.beginLine,
- n.beginColumn,
- prev);}
- break;
- case DIV:
- n = jj_consume_token(DIV);
- label_163:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[235] = jj_gen;
- break label_163;
- }
- jj_consume_token(S);
- }
- {if (true) return LexicalUnitImpl.createSlash(n.beginLine,
- n.beginColumn,
- prev);}
- break;
- case ANY:
- n = jj_consume_token(ANY);
- label_164:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[236] = jj_gen;
- break label_164;
- }
- jj_consume_token(S);
- }
- {if (true) return LexicalUnitImpl.createMultiply(n.beginLine,
- n.beginColumn,
- prev);}
- break;
- case MOD:
- n = jj_consume_token(MOD);
- label_165:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[237] = jj_gen;
- break label_165;
- }
- jj_consume_token(S);
- }
- {if (true) return LexicalUnitImpl.createModulo(n.beginLine,
- n.beginColumn,
- prev);}
- break;
- case PLUS:
- n = jj_consume_token(PLUS);
- label_166:
- while (true) {
- jj_consume_token(S);
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[238] = jj_gen;
- break label_166;
- }
- }
- {if (true) return LexicalUnitImpl.createAdd(n.beginLine,
- n.beginColumn,
- prev);}
- break;
- case MINUS:
- n = jj_consume_token(MINUS);
- label_167:
- while (true) {
- jj_consume_token(S);
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[239] = jj_gen;
- break label_167;
- }
- }
- {if (true) return LexicalUnitImpl.createMinus(n.beginLine,
- n.beginColumn,
- prev);}
- break;
- default:
- jj_la1[240] = jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- throw new Error("Missing return statement in function");
- }
-
+ */
+ final public LexicalUnitImpl operator(LexicalUnitImpl prev) throws ParseException {
+ Token n;
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case COMMA:
+ /* (comments copied from basic_arithmetics.scss)
+ *supports:
+ * 1. standard arithmetic operations (+, -, *, /, %)
+ * 2. / is treated as css operator, unless one of its operands is variable or there is another binary arithmetic operator
+ *limits:
+ * 1. cannot mix arithmetic and css operations, e.g. "margin: 1px + 3px 2px" will fail
+ * 2. space between add and minus operator and their following operand is mandatory. e.g. "1 + 2" is valid, "1+2" is not
+ * 3. parenthesis is not supported now.
+ */
+ n = jj_consume_token(COMMA);
+ label_162:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[234] = jj_gen;
+ break label_162;
+ }
+ jj_consume_token(S);
+ }
+ {if (true) return LexicalUnitImpl.createComma(n.beginLine,
+ n.beginColumn,
+ prev);}
+ break;
+ case DIV:
+ n = jj_consume_token(DIV);
+ label_163:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[235] = jj_gen;
+ break label_163;
+ }
+ jj_consume_token(S);
+ }
+ {if (true) return LexicalUnitImpl.createSlash(n.beginLine,
+ n.beginColumn,
+ prev);}
+ break;
+ case ANY:
+ n = jj_consume_token(ANY);
+ label_164:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[236] = jj_gen;
+ break label_164;
+ }
+ jj_consume_token(S);
+ }
+ {if (true) return LexicalUnitImpl.createMultiply(n.beginLine,
+ n.beginColumn,
+ prev);}
+ break;
+ case MOD:
+ n = jj_consume_token(MOD);
+ label_165:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[237] = jj_gen;
+ break label_165;
+ }
+ jj_consume_token(S);
+ }
+ {if (true) return LexicalUnitImpl.createModulo(n.beginLine,
+ n.beginColumn,
+ prev);}
+ break;
+ case PLUS:
+ n = jj_consume_token(PLUS);
+ label_166:
+ while (true) {
+ jj_consume_token(S);
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[238] = jj_gen;
+ break label_166;
+ }
+ }
+ {if (true) return LexicalUnitImpl.createAdd(n.beginLine,
+ n.beginColumn,
+ prev);}
+ break;
+ case MINUS:
+ n = jj_consume_token(MINUS);
+ label_167:
+ while (true) {
+ jj_consume_token(S);
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[239] = jj_gen;
+ break label_167;
+ }
+ }
+ {if (true) return LexicalUnitImpl.createMinus(n.beginLine,
+ n.beginColumn,
+ prev);}
+ break;
+ default:
+ jj_la1[240] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ throw new Error("Missing return statement in function");
+ }
+
/**
* @exception ParseException exception during the parse
- */
- final public LexicalUnitImpl expr() throws ParseException {
- LexicalUnitImpl first, res;
- char op;
- first = term(null);
- res = first;
- label_168:
- while (true) {
- if (jj_2_8(2)) {
- ;
- } else {
- break label_168;
- }
- if (jj_2_9(2)) {
- res = operator(res);
- } else {
- ;
- }
- res = term(res);
- }
- {if (true) return first;}
- throw new Error("Missing return statement in function");
- }
-
+ */
+ final public LexicalUnitImpl expr() throws ParseException {
+ LexicalUnitImpl first, res;
+ char op;
+ first = term(null);
+ res = first;
+ label_168:
+ while (true) {
+ if (jj_2_8(2)) {
+ ;
+ } else {
+ break label_168;
+ }
+ if (jj_2_9(2)) {
+ res = operator(res);
+ } else {
+ ;
+ }
+ res = term(res);
+ }
+ {if (true) return first;}
+ throw new Error("Missing return statement in function");
+ }
+
/**
* @exception ParseException exception during the parse
- */
- final public char unaryOperator() throws ParseException {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case MINUS:
- jj_consume_token(MINUS);
- {if (true) return '-';}
- break;
- case PLUS:
- jj_consume_token(PLUS);
- {if (true) return '+';}
- break;
- default:
- jj_la1[241] = jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- throw new Error("Missing return statement in function");
- }
-
+ */
+ final public char unaryOperator() throws ParseException {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case MINUS:
+ jj_consume_token(MINUS);
+ {if (true) return '-';}
+ break;
+ case PLUS:
+ jj_consume_token(PLUS);
+ {if (true) return '+';}
+ break;
+ default:
+ jj_la1[241] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ throw new Error("Missing return statement in function");
+ }
+
/**
* @exception ParseException exception during the parse
- */
- final public LexicalUnitImpl term(LexicalUnitImpl prev) throws ParseException {
- LexicalUnitImpl result = null;
- Token n = null;
- char op = ' ';
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case PLUS:
- case MINUS:
- case DOT:
- case STRING:
- case IDENT:
- case NUMBER:
- case URL:
- case PERCENTAGE:
- case PT:
- case MM:
- case CM:
- case PC:
- case IN:
- case PX:
- case EMS:
- case LEM:
- case REM:
- case EXS:
- case DEG:
- case RAD:
- case GRAD:
- case MS:
- case SECOND:
- case HZ:
- case KHZ:
- case DIMEN:
- case HASH:
- case UNICODERANGE:
- case FUNCTION:
- result = nonVariableTerm(prev);
- break;
- case VARIABLE:
- result = variableTerm(prev);
- break;
- default:
- jj_la1[242] = jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- {if (true) return result;}
- throw new Error("Missing return statement in function");
- }
-
- final public LexicalUnitImpl variableTerm(LexicalUnitImpl prev) throws ParseException {
- LexicalUnitImpl result = null;
- String varName = "";
- varName = variableName();
- result = LexicalUnitImpl.createVariable(token.beginLine, token.beginColumn,
- prev, varName); {if (true) return result;}
- throw new Error("Missing return statement in function");
- }
-
- final public LexicalUnitImpl nonVariableTerm(LexicalUnitImpl prev) throws ParseException {
-LexicalUnitImpl result = null;
- Token n = null;
- char op = ' ';
- String varName;
- String s = "";
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case PLUS:
- case MINUS:
- case NUMBER:
- case PERCENTAGE:
- case PT:
- case MM:
- case CM:
- case PC:
- case IN:
- case PX:
- case EMS:
- case LEM:
- case REM:
- case EXS:
- case DEG:
- case RAD:
- case GRAD:
- case MS:
- case SECOND:
- case HZ:
- case KHZ:
- case DIMEN:
- case FUNCTION:
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case PLUS:
- case MINUS:
- op = unaryOperator();
- break;
- default:
- jj_la1[243] = jj_gen;
- ;
- }
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case NUMBER:
- n = jj_consume_token(NUMBER);
- result = LexicalUnitImpl.createNumber(n.beginLine, n.beginColumn,
- prev, number(op, n, 0));
- break;
- case PERCENTAGE:
- n = jj_consume_token(PERCENTAGE);
- result = LexicalUnitImpl.createPercentage(n.beginLine, n.beginColumn,
- prev, number(op, n, 1));
- break;
- case PT:
- n = jj_consume_token(PT);
- result = LexicalUnitImpl.createPT(n.beginLine, n.beginColumn,
- prev, number(op, n, 2));
- break;
- case CM:
- n = jj_consume_token(CM);
- result = LexicalUnitImpl.createCM(n.beginLine, n.beginColumn,
- prev, number(op, n, 2));
- break;
- case MM:
- n = jj_consume_token(MM);
- result = LexicalUnitImpl.createMM(n.beginLine, n.beginColumn,
- prev, number(op, n, 2));
- break;
- case PC:
- n = jj_consume_token(PC);
- result = LexicalUnitImpl.createPC(n.beginLine, n.beginColumn,
- prev, number(op, n, 2));
- break;
- case IN:
- n = jj_consume_token(IN);
- result = LexicalUnitImpl.createIN(n.beginLine, n.beginColumn,
- prev, number(op, n, 2));
- break;
- case PX:
- n = jj_consume_token(PX);
- result = LexicalUnitImpl.createPX(n.beginLine, n.beginColumn,
- prev, number(op, n, 2));
- break;
- case EMS:
- n = jj_consume_token(EMS);
- result = LexicalUnitImpl.createEMS(n.beginLine, n.beginColumn,
- prev, number(op, n, 2));
- break;
- case LEM:
- n = jj_consume_token(LEM);
- result = LexicalUnitImpl.createLEM(n.beginLine, n.beginColumn,
- prev, number(op, n, 3));
- break;
- case REM:
- n = jj_consume_token(REM);
- result = LexicalUnitImpl.createREM(n.beginLine, n.beginColumn,
- prev, number(op, n, 3));
- break;
- case EXS:
- n = jj_consume_token(EXS);
- result = LexicalUnitImpl.createEXS(n.beginLine, n.beginColumn,
- prev, number(op, n, 2));
- break;
- case DEG:
- n = jj_consume_token(DEG);
- result = LexicalUnitImpl.createDEG(n.beginLine, n.beginColumn,
- prev, number(op, n, 3));
- break;
- case RAD:
- n = jj_consume_token(RAD);
- result = LexicalUnitImpl.createRAD(n.beginLine, n.beginColumn,
- prev, number(op, n, 3));
- break;
- case GRAD:
- n = jj_consume_token(GRAD);
- result = LexicalUnitImpl.createGRAD(n.beginLine, n.beginColumn,
- prev, number(op, n, 3));
- break;
- case SECOND:
- n = jj_consume_token(SECOND);
- result = LexicalUnitImpl.createS(n.beginLine, n.beginColumn,
- prev, number(op, n, 1));
- break;
- case MS:
- n = jj_consume_token(MS);
- result = LexicalUnitImpl.createMS(n.beginLine, n.beginColumn,
- prev, number(op, n, 2));
- break;
- case HZ:
- n = jj_consume_token(HZ);
- result = LexicalUnitImpl.createHZ(n.beginLine, n.beginColumn,
- prev, number(op, n, 2));
- break;
- case KHZ:
- n = jj_consume_token(KHZ);
- result = LexicalUnitImpl.createKHZ(n.beginLine, n.beginColumn,
- prev, number(op, n, 3));
- break;
- case DIMEN:
- n = jj_consume_token(DIMEN);
- s = n.image;
- int i = 0;
- while (i < s.length()
- && (Character.isDigit(s.charAt(i)) || (s.charAt(i) == '.'))) {
- i++;
- }
- result = LexicalUnitImpl.createDimen(n.beginLine, n.beginColumn, prev,
- Float.valueOf(s.substring(0, i)).floatValue(),
- s.substring(i));
- break;
- case FUNCTION:
- result = function(op, prev);
- break;
- default:
- jj_la1[244] = jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- break;
- case DOT:
- case STRING:
- case IDENT:
- case URL:
- case HASH:
- case UNICODERANGE:
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case STRING:
- n = jj_consume_token(STRING);
- result =
- LexicalUnitImpl.createString(n.beginLine, n.beginColumn, prev,
- convertStringIndex(n.image, 1,
- n.image.length() -1));
- break;
- case DOT:
- case IDENT:
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case DOT:
- jj_consume_token(DOT);
- s+=".";
- break;
- default:
- jj_la1[245] = jj_gen;
- ;
- }
- n = jj_consume_token(IDENT);
- s += convertIdent(n.image);
- if ("inherit".equals(s)) {
- result = LexicalUnitImpl.createInherit(n.beginLine, n.beginColumn,
- prev);
- } else {
- result = LexicalUnitImpl.createIdent(n.beginLine, n.beginColumn,
- prev, convertIdent(n.image));
- }
-
- /* /
- Auto correction code used in the CSS Validator but must not
- be used by a conformant CSS2 parser.
- * Common error :
- * H1 {
- * color : black
- * background : white
- * }
- *
- Token t = getToken(1);
- Token semicolon = new Token();
- semicolon.kind = SEMICOLON;
- semicolon.image = ";";
- if (t.kind == COLON) {
- // @@SEEME. (generate a warning?)
- // @@SEEME if expression is a single ident,
- generate an error ?
- rejectToken(semicolon);
-
- result = prev;
- }
- / */
-
- break;
- case HASH:
- result = hexcolor(prev);
- break;
- case URL:
- result = url(prev);
- break;
- case UNICODERANGE:
- result = unicode(prev);
- break;
- default:
- jj_la1[246] = jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- break;
- default:
- jj_la1[247] = jj_gen;
- jj_consume_token(-1);
- throw new ParseException();
- }
- label_169:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[248] = jj_gen;
- break label_169;
- }
- jj_consume_token(S);
- }
- {if (true) return result;}
- throw new Error("Missing return statement in function");
- }
-
+ */
+ final public LexicalUnitImpl term(LexicalUnitImpl prev) throws ParseException {
+ LexicalUnitImpl result = null;
+ Token n = null;
+ char op = ' ';
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case PLUS:
+ case MINUS:
+ case DOT:
+ case TO:
+ case THROUGH:
+ case FROM:
+ case STRING:
+ case IDENT:
+ case NUMBER:
+ case URL:
+ case PERCENTAGE:
+ case PT:
+ case MM:
+ case CM:
+ case PC:
+ case IN:
+ case PX:
+ case EMS:
+ case LEM:
+ case REM:
+ case EXS:
+ case DEG:
+ case RAD:
+ case GRAD:
+ case MS:
+ case SECOND:
+ case HZ:
+ case KHZ:
+ case DIMEN:
+ case HASH:
+ case UNICODERANGE:
+ case FUNCTION:
+ result = nonVariableTerm(prev);
+ break;
+ case VARIABLE:
+ result = variableTerm(prev);
+ break;
+ default:
+ jj_la1[242] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ {if (true) return result;}
+ throw new Error("Missing return statement in function");
+ }
+
+ final public LexicalUnitImpl variableTerm(LexicalUnitImpl prev) throws ParseException {
+ LexicalUnitImpl result = null;
+ String varName = "";
+ varName = variableName();
+ result = LexicalUnitImpl.createVariable(token.beginLine, token.beginColumn,
+ prev, varName); {if (true) return result;}
+ throw new Error("Missing return statement in function");
+ }
+
+ final public LexicalUnitImpl nonVariableTerm(LexicalUnitImpl prev) throws ParseException {
+LexicalUnitImpl result = null;
+ Token n = null;
+ char op = ' ';
+ String varName;
+ String s = "";
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case PLUS:
+ case MINUS:
+ case NUMBER:
+ case PERCENTAGE:
+ case PT:
+ case MM:
+ case CM:
+ case PC:
+ case IN:
+ case PX:
+ case EMS:
+ case LEM:
+ case REM:
+ case EXS:
+ case DEG:
+ case RAD:
+ case GRAD:
+ case MS:
+ case SECOND:
+ case HZ:
+ case KHZ:
+ case DIMEN:
+ case FUNCTION:
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case PLUS:
+ case MINUS:
+ op = unaryOperator();
+ break;
+ default:
+ jj_la1[243] = jj_gen;
+ ;
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case NUMBER:
+ n = jj_consume_token(NUMBER);
+ result = LexicalUnitImpl.createNumber(n.beginLine, n.beginColumn,
+ prev, number(op, n, 0));
+ break;
+ case PERCENTAGE:
+ n = jj_consume_token(PERCENTAGE);
+ result = LexicalUnitImpl.createPercentage(n.beginLine, n.beginColumn,
+ prev, number(op, n, 1));
+ break;
+ case PT:
+ n = jj_consume_token(PT);
+ result = LexicalUnitImpl.createPT(n.beginLine, n.beginColumn,
+ prev, number(op, n, 2));
+ break;
+ case CM:
+ n = jj_consume_token(CM);
+ result = LexicalUnitImpl.createCM(n.beginLine, n.beginColumn,
+ prev, number(op, n, 2));
+ break;
+ case MM:
+ n = jj_consume_token(MM);
+ result = LexicalUnitImpl.createMM(n.beginLine, n.beginColumn,
+ prev, number(op, n, 2));
+ break;
+ case PC:
+ n = jj_consume_token(PC);
+ result = LexicalUnitImpl.createPC(n.beginLine, n.beginColumn,
+ prev, number(op, n, 2));
+ break;
+ case IN:
+ n = jj_consume_token(IN);
+ result = LexicalUnitImpl.createIN(n.beginLine, n.beginColumn,
+ prev, number(op, n, 2));
+ break;
+ case PX:
+ n = jj_consume_token(PX);
+ result = LexicalUnitImpl.createPX(n.beginLine, n.beginColumn,
+ prev, number(op, n, 2));
+ break;
+ case EMS:
+ n = jj_consume_token(EMS);
+ result = LexicalUnitImpl.createEMS(n.beginLine, n.beginColumn,
+ prev, number(op, n, 2));
+ break;
+ case LEM:
+ n = jj_consume_token(LEM);
+ result = LexicalUnitImpl.createLEM(n.beginLine, n.beginColumn,
+ prev, number(op, n, 3));
+ break;
+ case REM:
+ n = jj_consume_token(REM);
+ result = LexicalUnitImpl.createREM(n.beginLine, n.beginColumn,
+ prev, number(op, n, 3));
+ break;
+ case EXS:
+ n = jj_consume_token(EXS);
+ result = LexicalUnitImpl.createEXS(n.beginLine, n.beginColumn,
+ prev, number(op, n, 2));
+ break;
+ case DEG:
+ n = jj_consume_token(DEG);
+ result = LexicalUnitImpl.createDEG(n.beginLine, n.beginColumn,
+ prev, number(op, n, 3));
+ break;
+ case RAD:
+ n = jj_consume_token(RAD);
+ result = LexicalUnitImpl.createRAD(n.beginLine, n.beginColumn,
+ prev, number(op, n, 3));
+ break;
+ case GRAD:
+ n = jj_consume_token(GRAD);
+ result = LexicalUnitImpl.createGRAD(n.beginLine, n.beginColumn,
+ prev, number(op, n, 3));
+ break;
+ case SECOND:
+ n = jj_consume_token(SECOND);
+ result = LexicalUnitImpl.createS(n.beginLine, n.beginColumn,
+ prev, number(op, n, 1));
+ break;
+ case MS:
+ n = jj_consume_token(MS);
+ result = LexicalUnitImpl.createMS(n.beginLine, n.beginColumn,
+ prev, number(op, n, 2));
+ break;
+ case HZ:
+ n = jj_consume_token(HZ);
+ result = LexicalUnitImpl.createHZ(n.beginLine, n.beginColumn,
+ prev, number(op, n, 2));
+ break;
+ case KHZ:
+ n = jj_consume_token(KHZ);
+ result = LexicalUnitImpl.createKHZ(n.beginLine, n.beginColumn,
+ prev, number(op, n, 3));
+ break;
+ case DIMEN:
+ n = jj_consume_token(DIMEN);
+ s = n.image;
+ int i = 0;
+ while (i < s.length()
+ && (Character.isDigit(s.charAt(i)) || (s.charAt(i) == '.'))) {
+ i++;
+ }
+ result = LexicalUnitImpl.createDimen(n.beginLine, n.beginColumn, prev,
+ Float.valueOf(s.substring(0, i)).floatValue(),
+ s.substring(i));
+ break;
+ case FUNCTION:
+ result = function(op, prev);
+ break;
+ default:
+ jj_la1[244] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ break;
+ case DOT:
+ case TO:
+ case THROUGH:
+ case FROM:
+ case STRING:
+ case IDENT:
+ case URL:
+ case HASH:
+ case UNICODERANGE:
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case STRING:
+ n = jj_consume_token(STRING);
+ result =
+ LexicalUnitImpl.createString(n.beginLine, n.beginColumn, prev,
+ convertStringIndex(n.image, 1,
+ n.image.length() -1));
+ break;
+ case DOT:
+ case TO:
+ case THROUGH:
+ case FROM:
+ case IDENT:
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case DOT:
+ jj_consume_token(DOT);
+ s+=".";
+ break;
+ default:
+ jj_la1[245] = jj_gen;
+ ;
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case IDENT:
+ n = jj_consume_token(IDENT);
+ break;
+ case TO:
+ n = jj_consume_token(TO);
+ break;
+ case THROUGH:
+ n = jj_consume_token(THROUGH);
+ break;
+ case FROM:
+ n = jj_consume_token(FROM);
+ break;
+ default:
+ jj_la1[246] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ s += convertIdent(n.image);
+ if ("inherit".equals(s)) {
+ result = LexicalUnitImpl.createInherit(n.beginLine, n.beginColumn,
+ prev);
+ } else {
+ result = LexicalUnitImpl.createIdent(n.beginLine, n.beginColumn,
+ prev, convertIdent(n.image));
+ }
+
+ /* /
+ Auto correction code used in the CSS Validator but must not
+ be used by a conformant CSS2 parser.
+ * Common error :
+ * H1 {
+ * color : black
+ * background : white
+ * }
+ *
+ Token t = getToken(1);
+ Token semicolon = new Token();
+ semicolon.kind = SEMICOLON;
+ semicolon.image = ";";
+ if (t.kind == COLON) {
+ // @@SEEME. (generate a warning?)
+ // @@SEEME if expression is a single ident,
+ generate an error ?
+ rejectToken(semicolon);
+
+ result = prev;
+ }
+ / */
+
+ break;
+ case HASH:
+ result = hexcolor(prev);
+ break;
+ case URL:
+ result = url(prev);
+ break;
+ case UNICODERANGE:
+ result = unicode(prev);
+ break;
+ default:
+ jj_la1[247] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ break;
+ default:
+ jj_la1[248] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ label_169:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[249] = jj_gen;
+ break label_169;
+ }
+ jj_consume_token(S);
+ }
+ {if (true) return result;}
+ throw new Error("Missing return statement in function");
+ }
+
/**
* Handle all CSS2 functions.
* @exception ParseException exception during the parse
- */
- final public LexicalUnitImpl function(char operator, LexicalUnitImpl prev) throws ParseException {
- Token n;
- LexicalUnit params = null;
- n = jj_consume_token(FUNCTION);
- label_170:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[249] = jj_gen;
- break label_170;
- }
- jj_consume_token(S);
- }
- String fname = convertIdent(n.image);
- if("alpha(".equals(fname)){
- String body = skipStatementUntilSemiColon();
- {if (true) return LexicalUnitImpl.createIdent(n.beginLine, n.beginColumn,
- null, "alpha("+body);}
- }else if("expression(".equals(fname)){
- String body = skipStatementUntilSemiColon();
- {if (true) return LexicalUnitImpl.createIdent(n.beginLine, n.beginColumn,
- null, "expression("+body);}
- }
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case PLUS:
- case MINUS:
- case DOT:
- case STRING:
- case IDENT:
- case NUMBER:
- case URL:
- case VARIABLE:
- case PERCENTAGE:
- case PT:
- case MM:
- case CM:
- case PC:
- case IN:
- case PX:
- case EMS:
- case LEM:
- case REM:
- case EXS:
- case DEG:
- case RAD:
- case GRAD:
- case MS:
- case SECOND:
- case HZ:
- case KHZ:
- case DIMEN:
- case HASH:
- case UNICODERANGE:
- case FUNCTION:
- params = expr();
- break;
- default:
- jj_la1[250] = jj_gen;
- ;
- }
- jj_consume_token(RPARAN);
- if (operator != ' ') {
- {if (true) throw new CSSParseException("invalid operator before a function.",
- getLocator());}
- }
- String f = convertIdent(n.image);
- LexicalUnitImpl l = (LexicalUnitImpl) params;
- boolean loop = true;
- if ("rgb(".equals(f)) {
- // this is a RGB declaration (e.g. rgb(255, 50%, 0) )
- int i = 0;
- while (loop && l != null && i < 5) {
- switch (i) {
- case 0:
- case 2:
- case 4:
- if ((l.getLexicalUnitType() != LexicalUnit.SAC_INTEGER)
- && (l.getLexicalUnitType() != LexicalUnit.SAC_PERCENTAGE)) {
- loop = false;
- }
- break;
- case 1:
- case 3:
- if (l.getLexicalUnitType() != LexicalUnit.SAC_OPERATOR_COMMA) {
- loop = false;
- }
- break;
- default:
- {if (true) throw new ParseException("implementation error");}
- }
- if (loop) {
- l = (LexicalUnitImpl) l.getNextLexicalUnit();
- i ++;
- }
- }
- if ((i == 5) && loop && (l == null)) {
- {if (true) return LexicalUnitImpl.createRGBColor(n.beginLine,
- n.beginColumn,
- prev, params);}
- } else {
- if (errorHandler != null) {
- String errorText;
- Locator loc;
- if (i < 5) {
- if (params == null) {
- loc = new LocatorImpl(this, n.beginLine,
- n.beginColumn-1);
- errorText = "not enough parameters.";
- } else if (l == null) {
- loc = new LocatorImpl(this, n.beginLine,
- n.beginColumn-1);
- errorText = "not enough parameters: "
- + params.toString();
- } else {
- loc = new LocatorImpl(this, l.getLineNumber(),
- l.getColumnNumber());
- errorText = "invalid parameter: "
- + l.toString();
- }
- } else {
- loc = new LocatorImpl(this, l.getLineNumber(),
- l.getColumnNumber());
- errorText = "too many parameters: "
- + l.toString();
- }
- errorHandler.error(new CSSParseException(errorText, loc));
- }
-
- {if (true) throw new JumpException();}
- }
- } else if ("counter".equals(f)) {
- int i = 0;
- while (loop && l != null && i < 3) {
- switch (i) {
- case 0:
- case 2:
- if (l.getLexicalUnitType() != LexicalUnit.SAC_IDENT) {
- loop = false;
- }
- break;
- case 1:
- if (l.getLexicalUnitType() != LexicalUnit.SAC_OPERATOR_COMMA) {
- loop = false;
- }
- break;
- default:
- {if (true) throw new ParseException("implementation error");}
- }
- l = (LexicalUnitImpl) l.getNextLexicalUnit();
- i ++;
- }
- if (((i == 1) || (i == 3)) && loop && (l == null)) {
- {if (true) return LexicalUnitImpl.createCounter(n.beginLine, n.beginColumn,
- prev, params);}
- }
-
- } else if ("counters(".equals(f)) {
-
- int i = 0;
- while (loop && l != null && i < 5) {
- switch (i) {
- case 0:
- case 4:
- if (l.getLexicalUnitType() != LexicalUnit.SAC_IDENT) {
- loop = false;
- }
- break;
- case 2:
- if (l.getLexicalUnitType() != LexicalUnit.SAC_STRING_VALUE) {
- loop = false;
- }
- break;
- case 1:
- case 3:
- if (l.getLexicalUnitType() != LexicalUnit.SAC_OPERATOR_COMMA) {
- loop = false;
- }
- break;
- default:
- {if (true) throw new ParseException("implementation error");}
- }
- l = (LexicalUnitImpl) l.getNextLexicalUnit();
- i ++;
- }
- if (((i == 3) || (i == 5)) && loop && (l == null)) {
- {if (true) return LexicalUnitImpl.createCounters(n.beginLine, n.beginColumn,
- prev, params);}
- }
- } else if ("attr(".equals(f)) {
- if ((l != null)
- && (l.getNextLexicalUnit() == null)
- && (l.getLexicalUnitType() == LexicalUnit.SAC_IDENT)) {
- {if (true) return LexicalUnitImpl.createAttr(l.getLineNumber(),
- l.getColumnNumber(),
- prev, l.getStringValue());}
- }
- } else if ("rect(".equals(f)) {
- int i = 0;
- while (loop && l != null && i < 7) {
- switch (i) {
- case 0:
- case 2:
- case 4:
- case 6:
- switch (l.getLexicalUnitType()) {
- case LexicalUnit.SAC_INTEGER:
- if (l.getIntegerValue() != 0) {
- loop = false;
- }
- break;
- case LexicalUnit.SAC_IDENT:
- if (!l.getStringValue().equals("auto")) {
- loop = false;
- }
- break;
- case LexicalUnit.SAC_EM:
- case LexicalUnit.SAC_EX:
- case LexicalUnit.SAC_PIXEL:
- case LexicalUnit.SAC_CENTIMETER:
- case LexicalUnit.SAC_MILLIMETER:
- case LexicalUnit.SAC_INCH:
- case LexicalUnit.SAC_POINT:
- case LexicalUnit.SAC_PICA:
- // nothing
- break;
- default:
- loop = false;
- }
- break;
- case 1:
- case 3:
- case 5:
- if (l.getLexicalUnitType() != LexicalUnit.SAC_OPERATOR_COMMA) {
- loop = false;
- }
- break;
- default:
- {if (true) throw new ParseException("implementation error");}
- }
- l = (LexicalUnitImpl) l.getNextLexicalUnit();
- i ++;
- }
- if ((i == 7) && loop && (l == null)) {
- {if (true) return LexicalUnitImpl.createRect(n.beginLine, n.beginColumn,
- prev, params);}
- }
- }
- {if (true) return LexicalUnitImpl.createFunction(n.beginLine, n.beginColumn, prev,
- f.substring(0,
- f.length() -1),
- params);}
- throw new Error("Missing return statement in function");
- }
-
- final public LexicalUnitImpl unicode(LexicalUnitImpl prev) throws ParseException {
- Token n;
- n = jj_consume_token(UNICODERANGE);
- LexicalUnitImpl params = null;
- String s = n.image.substring(2);
- int index = s.indexOf('-');
- if (index == -1) {
- params = LexicalUnitImpl.createInteger(n.beginLine, n.beginColumn,
- params, Integer.parseInt(s, 16));
- } else {
- String s1 = s.substring(0, index);
- String s2 = s.substring(index);
-
- params = LexicalUnitImpl.createInteger(n.beginLine, n.beginColumn,
- params, Integer.parseInt(s1, 16));
- params = LexicalUnitImpl.createInteger(n.beginLine, n.beginColumn,
- params, Integer.parseInt(s2, 16));
- }
-
- {if (true) return LexicalUnitImpl.createUnicodeRange(n.beginLine, n.beginColumn,
- prev, params);}
- throw new Error("Missing return statement in function");
- }
-
- final public LexicalUnitImpl url(LexicalUnitImpl prev) throws ParseException {
- Token n;
- n = jj_consume_token(URL);
- String urlname = n.image.substring(4, n.image.length()-1).trim();
- {if (true) return LexicalUnitImpl.createURL(n.beginLine, n.beginColumn, prev, urlname);}
- throw new Error("Missing return statement in function");
- }
-
+ */
+ final public LexicalUnitImpl function(char operator, LexicalUnitImpl prev) throws ParseException {
+ Token n;
+ LexicalUnit params = null;
+ n = jj_consume_token(FUNCTION);
+ label_170:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[250] = jj_gen;
+ break label_170;
+ }
+ jj_consume_token(S);
+ }
+ String fname = convertIdent(n.image);
+ if("alpha(".equals(fname)){
+ String body = skipStatementUntilSemiColon();
+ {if (true) return LexicalUnitImpl.createIdent(n.beginLine, n.beginColumn,
+ null, "alpha("+body);}
+ }else if("expression(".equals(fname)){
+ String body = skipStatementUntilSemiColon();
+ {if (true) return LexicalUnitImpl.createIdent(n.beginLine, n.beginColumn,
+ null, "expression("+body);}
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case PLUS:
+ case MINUS:
+ case DOT:
+ case TO:
+ case THROUGH:
+ case FROM:
+ case STRING:
+ case IDENT:
+ case NUMBER:
+ case URL:
+ case VARIABLE:
+ case PERCENTAGE:
+ case PT:
+ case MM:
+ case CM:
+ case PC:
+ case IN:
+ case PX:
+ case EMS:
+ case LEM:
+ case REM:
+ case EXS:
+ case DEG:
+ case RAD:
+ case GRAD:
+ case MS:
+ case SECOND:
+ case HZ:
+ case KHZ:
+ case DIMEN:
+ case HASH:
+ case UNICODERANGE:
+ case FUNCTION:
+ params = expr();
+ break;
+ default:
+ jj_la1[251] = jj_gen;
+ ;
+ }
+ jj_consume_token(RPARAN);
+ if (operator != ' ') {
+ {if (true) throw new CSSParseException("invalid operator before a function.",
+ getLocator());}
+ }
+ String f = convertIdent(n.image);
+ LexicalUnitImpl l = (LexicalUnitImpl) params;
+ boolean loop = true;
+ if ("rgb(".equals(f)) {
+ // this is a RGB declaration (e.g. rgb(255, 50%, 0) )
+ int i = 0;
+ while (loop && l != null && i < 5) {
+ switch (i) {
+ case 0:
+ case 2:
+ case 4:
+ if ((l.getLexicalUnitType() != LexicalUnit.SAC_INTEGER)
+ && (l.getLexicalUnitType() != LexicalUnit.SAC_PERCENTAGE)) {
+ loop = false;
+ }
+ break;
+ case 1:
+ case 3:
+ if (l.getLexicalUnitType() != LexicalUnit.SAC_OPERATOR_COMMA) {
+ loop = false;
+ }
+ break;
+ default:
+ {if (true) throw new ParseException("implementation error");}
+ }
+ if (loop) {
+ l = (LexicalUnitImpl) l.getNextLexicalUnit();
+ i ++;
+ }
+ }
+ if ((i == 5) && loop && (l == null)) {
+ {if (true) return LexicalUnitImpl.createRGBColor(n.beginLine,
+ n.beginColumn,
+ prev, params);}
+ } else {
+ if (errorHandler != null) {
+ String errorText;
+ Locator loc;
+ if (i < 5) {
+ if (params == null) {
+ loc = new LocatorImpl(this, n.beginLine,
+ n.beginColumn-1);
+ errorText = "not enough parameters.";
+ } else if (l == null) {
+ loc = new LocatorImpl(this, n.beginLine,
+ n.beginColumn-1);
+ errorText = "not enough parameters: "
+ + params.toString();
+ } else {
+ loc = new LocatorImpl(this, l.getLineNumber(),
+ l.getColumnNumber());
+ errorText = "invalid parameter: "
+ + l.toString();
+ }
+ } else {
+ loc = new LocatorImpl(this, l.getLineNumber(),
+ l.getColumnNumber());
+ errorText = "too many parameters: "
+ + l.toString();
+ }
+ errorHandler.error(new CSSParseException(errorText, loc));
+ }
+
+ {if (true) throw new JumpException();}
+ }
+ } else if ("counter".equals(f)) {
+ int i = 0;
+ while (loop && l != null && i < 3) {
+ switch (i) {
+ case 0:
+ case 2:
+ if (l.getLexicalUnitType() != LexicalUnit.SAC_IDENT) {
+ loop = false;
+ }
+ break;
+ case 1:
+ if (l.getLexicalUnitType() != LexicalUnit.SAC_OPERATOR_COMMA) {
+ loop = false;
+ }
+ break;
+ default:
+ {if (true) throw new ParseException("implementation error");}
+ }
+ l = (LexicalUnitImpl) l.getNextLexicalUnit();
+ i ++;
+ }
+ if (((i == 1) || (i == 3)) && loop && (l == null)) {
+ {if (true) return LexicalUnitImpl.createCounter(n.beginLine, n.beginColumn,
+ prev, params);}
+ }
+
+ } else if ("counters(".equals(f)) {
+
+ int i = 0;
+ while (loop && l != null && i < 5) {
+ switch (i) {
+ case 0:
+ case 4:
+ if (l.getLexicalUnitType() != LexicalUnit.SAC_IDENT) {
+ loop = false;
+ }
+ break;
+ case 2:
+ if (l.getLexicalUnitType() != LexicalUnit.SAC_STRING_VALUE) {
+ loop = false;
+ }
+ break;
+ case 1:
+ case 3:
+ if (l.getLexicalUnitType() != LexicalUnit.SAC_OPERATOR_COMMA) {
+ loop = false;
+ }
+ break;
+ default:
+ {if (true) throw new ParseException("implementation error");}
+ }
+ l = (LexicalUnitImpl) l.getNextLexicalUnit();
+ i ++;
+ }
+ if (((i == 3) || (i == 5)) && loop && (l == null)) {
+ {if (true) return LexicalUnitImpl.createCounters(n.beginLine, n.beginColumn,
+ prev, params);}
+ }
+ } else if ("attr(".equals(f)) {
+ if ((l != null)
+ && (l.getNextLexicalUnit() == null)
+ && (l.getLexicalUnitType() == LexicalUnit.SAC_IDENT)) {
+ {if (true) return LexicalUnitImpl.createAttr(l.getLineNumber(),
+ l.getColumnNumber(),
+ prev, l.getStringValue());}
+ }
+ } else if ("rect(".equals(f)) {
+ int i = 0;
+ while (loop && l != null && i < 7) {
+ switch (i) {
+ case 0:
+ case 2:
+ case 4:
+ case 6:
+ switch (l.getLexicalUnitType()) {
+ case LexicalUnit.SAC_INTEGER:
+ if (l.getIntegerValue() != 0) {
+ loop = false;
+ }
+ break;
+ case LexicalUnit.SAC_IDENT:
+ if (!l.getStringValue().equals("auto")) {
+ loop = false;
+ }
+ break;
+ case LexicalUnit.SAC_EM:
+ case LexicalUnit.SAC_EX:
+ case LexicalUnit.SAC_PIXEL:
+ case LexicalUnit.SAC_CENTIMETER:
+ case LexicalUnit.SAC_MILLIMETER:
+ case LexicalUnit.SAC_INCH:
+ case LexicalUnit.SAC_POINT:
+ case LexicalUnit.SAC_PICA:
+ // nothing
+ break;
+ default:
+ loop = false;
+ }
+ break;
+ case 1:
+ case 3:
+ case 5:
+ if (l.getLexicalUnitType() != LexicalUnit.SAC_OPERATOR_COMMA) {
+ loop = false;
+ }
+ break;
+ default:
+ {if (true) throw new ParseException("implementation error");}
+ }
+ l = (LexicalUnitImpl) l.getNextLexicalUnit();
+ i ++;
+ }
+ if ((i == 7) && loop && (l == null)) {
+ {if (true) return LexicalUnitImpl.createRect(n.beginLine, n.beginColumn,
+ prev, params);}
+ }
+ }
+ {if (true) return LexicalUnitImpl.createFunction(n.beginLine, n.beginColumn, prev,
+ f.substring(0,
+ f.length() -1),
+ params);}
+ throw new Error("Missing return statement in function");
+ }
+
+ final public LexicalUnitImpl unicode(LexicalUnitImpl prev) throws ParseException {
+ Token n;
+ n = jj_consume_token(UNICODERANGE);
+ LexicalUnitImpl params = null;
+ String s = n.image.substring(2);
+ int index = s.indexOf('-');
+ if (index == -1) {
+ params = LexicalUnitImpl.createInteger(n.beginLine, n.beginColumn,
+ params, Integer.parseInt(s, 16));
+ } else {
+ String s1 = s.substring(0, index);
+ String s2 = s.substring(index);
+
+ params = LexicalUnitImpl.createInteger(n.beginLine, n.beginColumn,
+ params, Integer.parseInt(s1, 16));
+ params = LexicalUnitImpl.createInteger(n.beginLine, n.beginColumn,
+ params, Integer.parseInt(s2, 16));
+ }
+
+ {if (true) return LexicalUnitImpl.createUnicodeRange(n.beginLine, n.beginColumn,
+ prev, params);}
+ throw new Error("Missing return statement in function");
+ }
+
+ final public LexicalUnitImpl url(LexicalUnitImpl prev) throws ParseException {
+ Token n;
+ n = jj_consume_token(URL);
+ String urlname = n.image.substring(4, n.image.length()-1).trim();
+ {if (true) return LexicalUnitImpl.createURL(n.beginLine, n.beginColumn, prev, urlname);}
+ throw new Error("Missing return statement in function");
+ }
+
/**
* @exception ParseException exception during the parse
- */
- final public LexicalUnitImpl hexcolor(LexicalUnitImpl prev) throws ParseException {
- Token n;
- n = jj_consume_token(HASH);
- int r;
- LexicalUnitImpl first, params = null;
- String s = n.image.substring(1);
-
- if(s.length()!=3 && s.length()!=6) {
- first = null;
- {if (true) throw new CSSParseException("invalid hexadecimal notation for RGB: " + s,
- getLocator());}
- }
- {if (true) return LexicalUnitImpl.createIdent(n.beginLine, n.beginColumn,
- prev, n.image);}
- throw new Error("Missing return statement in function");
- }
-
- float number(char operator, Token n, int lengthUnit) throws ParseException {
- String image = n.image;
- float f = 0;
-
- if (lengthUnit != 0) {
- image = image.substring(0, image.length() - lengthUnit);
- }
- f = Float.valueOf(image).floatValue();
- return (operator == '-')? -f: f;
- }
-
- String skipStatementUntilSemiColon() throws ParseException {
- int[] semicolon = {SEMICOLON};
- return skipStatementUntil(semicolon);
- }
-
- String skipStatementUntilLeftBrace() throws ParseException {
- int[] lBrace = {LBRACE};
- return skipStatementUntil(lBrace);
- }
-
- String skipStatementUntilRightParan() throws ParseException {
- int[] rParan = {RPARAN};
- return skipStatementUntil(rParan);
- }
-
- String skipStatementUntil(int[] symbols) throws ParseException {
- StringBuffer s = new StringBuffer();
- boolean stop = false;
- Token tok;
- while(!stop){
- tok = getToken(1);
- if(tok.kind == EOF) {
- return null;
- }
- for(int sym : symbols){
- if(tok.kind == sym){
- stop = true;
- break;
- }
- }
- if(!stop){
- if (tok.image != null) {
- s.append(tok.image);
- }
- getNextToken();
- }
- }
- return s.toString().trim();
- }
-
- String skipStatement() throws ParseException {
- StringBuffer s = new StringBuffer();
- Token tok = getToken(0);
- if (tok.image != null) {
- s.append(tok.image);
- }
- while (true) {
- tok = getToken(1);
- if (tok.kind == EOF) {
- return null;
- }
- s.append(tok.image);
- if (tok.kind == LBRACE) {
- getNextToken();
- s.append(skip_to_matching_brace());
- getNextToken();
- tok = getToken(1);
- break;
- } else if (tok.kind == RBRACE) {
- getNextToken();
- tok = getToken(1);
- break;
- } else if (tok.kind == SEMICOLON) {
- getNextToken();
- tok = getToken(1);
- break;
- }
- getNextToken();
- }
-
+ */
+ final public LexicalUnitImpl hexcolor(LexicalUnitImpl prev) throws ParseException {
+ Token n;
+ n = jj_consume_token(HASH);
+ int r;
+ LexicalUnitImpl first, params = null;
+ String s = n.image.substring(1);
+
+ if(s.length()!=3 && s.length()!=6) {
+ first = null;
+ {if (true) throw new CSSParseException("invalid hexadecimal notation for RGB: " + s,
+ getLocator());}
+ }
+ {if (true) return LexicalUnitImpl.createIdent(n.beginLine, n.beginColumn,
+ prev, n.image);}
+ throw new Error("Missing return statement in function");
+ }
+
+ float number(char operator, Token n, int lengthUnit) throws ParseException {
+ String image = n.image;
+ float f = 0;
+
+ if (lengthUnit != 0) {
+ image = image.substring(0, image.length() - lengthUnit);
+ }
+ f = Float.valueOf(image).floatValue();
+ return (operator == '-')? -f: f;
+ }
+
+ String skipStatementUntilSemiColon() throws ParseException {
+ int[] semicolon = {SEMICOLON};
+ return skipStatementUntil(semicolon);
+ }
+
+ String skipStatementUntilLeftBrace() throws ParseException {
+ int[] lBrace = {LBRACE};
+ return skipStatementUntil(lBrace);
+ }
+
+ String skipStatementUntilRightParan() throws ParseException {
+ int[] rParan = {RPARAN};
+ return skipStatementUntil(rParan);
+ }
+
+ String skipStatementUntil(int[] symbols) throws ParseException {
+ StringBuffer s = new StringBuffer();
+ boolean stop = false;
+ Token tok;
+ while(!stop){
+ tok = getToken(1);
+ if(tok.kind == EOF) {
+ return null;
+ }
+ for(int sym : symbols){
+ if(tok.kind == sym){
+ stop = true;
+ break;
+ }
+ }
+ if(!stop){
+ if (tok.image != null) {
+ s.append(tok.image);
+ }
+ getNextToken();
+ }
+ }
+ return s.toString().trim();
+ }
+
+ String skipStatement() throws ParseException {
+ StringBuffer s = new StringBuffer();
+ Token tok = getToken(0);
+ if (tok.image != null) {
+ s.append(tok.image);
+ }
+ while (true) {
+ tok = getToken(1);
+ if (tok.kind == EOF) {
+ return null;
+ }
+ s.append(tok.image);
+ if (tok.kind == LBRACE) {
+ getNextToken();
+ s.append(skip_to_matching_brace());
+ getNextToken();
+ tok = getToken(1);
+ break;
+ } else if (tok.kind == RBRACE) {
+ getNextToken();
+ tok = getToken(1);
+ break;
+ } else if (tok.kind == SEMICOLON) {
+ getNextToken();
+ tok = getToken(1);
+ break;
+ }
+ getNextToken();
+ }
+
// skip white space
- while (true) {
- if (tok.kind != S) {
- break;
- }
- tok = getNextToken();
- tok = getToken(1);
- }
-
- return s.toString().trim();
- }
-
- String skip_to_matching_brace() throws ParseException {
- StringBuffer s = new StringBuffer();
- Token tok;
- int nesting = 1;
- while (true) {
- tok = getToken(1);
- if (tok.kind == EOF) {
- break;
- }
- s.append(tok.image);
- if (tok.kind == LBRACE) {
- nesting++;
- } else if (tok.kind == RBRACE) {
- nesting--;
- if (nesting == 0) {
- break;
- }
- }
- getNextToken();
- }
- return s.toString();
- }
-
- String convertStringIndex(String s, int start, int len) throws ParseException {
- StringBuffer buf = new StringBuffer(len);
- int index = start;
-
- while (index < len) {
- char c = s.charAt(index);
- if (c == '\u005c\u005c') {
- if (++index < len) {
- c = s.charAt(index);
- switch (c) {
- case '0': case '1': case '2': case '3': case '4':
- case '5': case '6': case '7': case '8': case '9':
- case 'a': case 'b': case 'c': case 'd': case 'e': case 'f':
- case 'A': case 'B': case 'C': case 'D': case 'E': case 'F':
- buf.append('\u005c\u005c');
- while (index < len) {
- buf.append(s.charAt(index++));
- }
- break;
- case '\u005cn':
- case '\u005cf':
- break;
- case '\u005cr':
- if (index + 1 < len) {
- if (s.charAt(index + 1) == '\u005cn') {
- index ++;
- }
- }
- break;
- default:
- buf.append(c);
- }
- } else {
- throw new CSSParseException("invalid string " + s, getLocator());
- }
- } else {
- buf.append(c);
- }
- index++;
- }
-
- return buf.toString();
- }
-
- String convertIdent(String s) throws ParseException {
- return convertStringIndex(s, 0, s.length());
- }
-
- String convertString(String s) throws ParseException {
- return convertStringIndex(s, 0, s.length());
- }
-
- void comments() throws ParseException {
- if (token.specialToken != null){
- Token tmp_t = token.specialToken;
- while (tmp_t.specialToken != null) tmp_t = tmp_t.specialToken;
- while (tmp_t != null) {
- documentHandler.comment(tmp_t.image);
- tmp_t = tmp_t.next;
- }
- }
- }
-
- void rejectToken(Token t) throws ParseException {
- Token fakeToken = new Token();
- t.next = token;
- fakeToken.next = t;
- token = fakeToken;
- }
-
- String skipAfterExpression() throws ParseException {
- Token t = getToken(1);
- StringBuffer s = new StringBuffer();
- s.append(getToken(0).image);
-
- while ((t.kind != RBRACE) && (t.kind != SEMICOLON) && (t.kind != EOF)) {
- s.append(t.image);
- getNextToken();
- t = getToken(1);
- }
-
- return s.toString();
- }
-
+ while (true) {
+ if (tok.kind != S) {
+ break;
+ }
+ tok = getNextToken();
+ tok = getToken(1);
+ }
+
+ return s.toString().trim();
+ }
+
+ String skip_to_matching_brace() throws ParseException {
+ StringBuffer s = new StringBuffer();
+ Token tok;
+ int nesting = 1;
+ while (true) {
+ tok = getToken(1);
+ if (tok.kind == EOF) {
+ break;
+ }
+ s.append(tok.image);
+ if (tok.kind == LBRACE) {
+ nesting++;
+ } else if (tok.kind == RBRACE) {
+ nesting--;
+ if (nesting == 0) {
+ break;
+ }
+ }
+ getNextToken();
+ }
+ return s.toString();
+ }
+
+ String convertStringIndex(String s, int start, int len) throws ParseException {
+ StringBuffer buf = new StringBuffer(len);
+ int index = start;
+
+ while (index < len) {
+ char c = s.charAt(index);
+ if (c == '\u005c\u005c') {
+ if (++index < len) {
+ c = s.charAt(index);
+ switch (c) {
+ case '0': case '1': case '2': case '3': case '4':
+ case '5': case '6': case '7': case '8': case '9':
+ case 'a': case 'b': case 'c': case 'd': case 'e': case 'f':
+ case 'A': case 'B': case 'C': case 'D': case 'E': case 'F':
+ buf.append('\u005c\u005c');
+ while (index < len) {
+ buf.append(s.charAt(index++));
+ }
+ break;
+ case '\u005cn':
+ case '\u005cf':
+ break;
+ case '\u005cr':
+ if (index + 1 < len) {
+ if (s.charAt(index + 1) == '\u005cn') {
+ index ++;
+ }
+ }
+ break;
+ default:
+ buf.append(c);
+ }
+ } else {
+ throw new CSSParseException("invalid string " + s, getLocator());
+ }
+ } else {
+ buf.append(c);
+ }
+ index++;
+ }
+
+ return buf.toString();
+ }
+
+ String convertIdent(String s) throws ParseException {
+ return convertStringIndex(s, 0, s.length());
+ }
+
+ String convertString(String s) throws ParseException {
+ return convertStringIndex(s, 0, s.length());
+ }
+
+ void comments() throws ParseException {
+ if (token.specialToken != null){
+ Token tmp_t = token.specialToken;
+ while (tmp_t.specialToken != null) tmp_t = tmp_t.specialToken;
+ while (tmp_t != null) {
+ documentHandler.comment(tmp_t.image);
+ tmp_t = tmp_t.next;
+ }
+ }
+ }
+
+ void rejectToken(Token t) throws ParseException {
+ Token fakeToken = new Token();
+ t.next = token;
+ fakeToken.next = t;
+ token = fakeToken;
+ }
+
+ String skipAfterExpression() throws ParseException {
+ Token t = getToken(1);
+ StringBuffer s = new StringBuffer();
+ s.append(getToken(0).image);
+
+ while ((t.kind != RBRACE) && (t.kind != SEMICOLON) && (t.kind != EOF)) {
+ s.append(t.image);
+ getNextToken();
+ t = getToken(1);
+ }
+
+ return s.toString();
+ }
+
/**
* The following functions are useful for a DOM CSS implementation only and are
* not part of the general CSS2 parser.
- */
- final public void _parseRule() throws ParseException {
- String ret = null;
- label_171:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[251] = jj_gen;
- break label_171;
- }
- jj_consume_token(S);
- }
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case IMPORT_SYM:
- importDeclaration();
- break;
- case DEBUG_SYM:
- case WARN_SYM:
- debuggingDirective();
- break;
- case PLUS:
- case PRECEDES:
- case SIBLING:
- case LBRACKET:
- case ANY:
- case PARENT:
- case DOT:
- case COLON:
- case INTERPOLATION:
- case IDENT:
- case HASH:
- styleRule();
- break;
- case MEDIA_SYM:
- media();
- break;
- case PAGE_SYM:
- page();
- break;
- case FONT_FACE_SYM:
- fontFace();
- break;
- default:
- jj_la1[252] = jj_gen;
- ret = skipStatement();
- if ((ret == null) || (ret.length() == 0)) {
- {if (true) return;}
- }
- if (ret.charAt(0) == '@') {
- documentHandler.unrecognizedRule(ret);
- } else {
- {if (true) throw new CSSParseException("unrecognize rule: " + ret,
- getLocator());}
- }
- }
- }
-
- final public void _parseImportRule() throws ParseException {
- label_172:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[253] = jj_gen;
- break label_172;
- }
- jj_consume_token(S);
- }
- importDeclaration();
- }
-
- final public void _parseMediaRule() throws ParseException {
- label_173:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[254] = jj_gen;
- break label_173;
- }
- jj_consume_token(S);
- }
- media();
- }
-
- final public void _parseDeclarationBlock() throws ParseException {
- label_174:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[255] = jj_gen;
- break label_174;
- }
- jj_consume_token(S);
- }
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case INTERPOLATION:
- case IDENT:
- declaration();
- break;
- default:
- jj_la1[256] = jj_gen;
- ;
- }
- label_175:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case SEMICOLON:
- ;
- break;
- default:
- jj_la1[257] = jj_gen;
- break label_175;
- }
- jj_consume_token(SEMICOLON);
- label_176:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[258] = jj_gen;
- break label_176;
- }
- jj_consume_token(S);
- }
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case INTERPOLATION:
- case IDENT:
- declaration();
- break;
- default:
- jj_la1[259] = jj_gen;
- ;
- }
- }
- }
-
- final public ArrayList<String> _parseSelectors() throws ParseException {
- ArrayList<String> p = null;
- try {
- label_177:
- while (true) {
- switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
- case S:
- ;
- break;
- default:
- jj_la1[260] = jj_gen;
- break label_177;
- }
- jj_consume_token(S);
- }
- p = selectorList();
- {if (true) return p;}
- } catch (ThrowedParseException e) {
- {if (true) throw (ParseException) e.e.fillInStackTrace();}
- }
- throw new Error("Missing return statement in function");
- }
-
- private boolean jj_2_1(int xla) {
- jj_la = xla; jj_lastpos = jj_scanpos = token;
- try { return !jj_3_1(); }
- catch(LookaheadSuccess ls) { return true; }
- finally { jj_save(0, xla); }
- }
-
- private boolean jj_2_2(int xla) {
- jj_la = xla; jj_lastpos = jj_scanpos = token;
- try { return !jj_3_2(); }
- catch(LookaheadSuccess ls) { return true; }
- finally { jj_save(1, xla); }
- }
-
- private boolean jj_2_3(int xla) {
- jj_la = xla; jj_lastpos = jj_scanpos = token;
- try { return !jj_3_3(); }
- catch(LookaheadSuccess ls) { return true; }
- finally { jj_save(2, xla); }
- }
-
- private boolean jj_2_4(int xla) {
- jj_la = xla; jj_lastpos = jj_scanpos = token;
- try { return !jj_3_4(); }
- catch(LookaheadSuccess ls) { return true; }
- finally { jj_save(3, xla); }
- }
-
- private boolean jj_2_5(int xla) {
- jj_la = xla; jj_lastpos = jj_scanpos = token;
- try { return !jj_3_5(); }
- catch(LookaheadSuccess ls) { return true; }
- finally { jj_save(4, xla); }
- }
-
- private boolean jj_2_6(int xla) {
- jj_la = xla; jj_lastpos = jj_scanpos = token;
- try { return !jj_3_6(); }
- catch(LookaheadSuccess ls) { return true; }
- finally { jj_save(5, xla); }
- }
-
- private boolean jj_2_7(int xla) {
- jj_la = xla; jj_lastpos = jj_scanpos = token;
- try { return !jj_3_7(); }
- catch(LookaheadSuccess ls) { return true; }
- finally { jj_save(6, xla); }
- }
-
- private boolean jj_2_8(int xla) {
- jj_la = xla; jj_lastpos = jj_scanpos = token;
- try { return !jj_3_8(); }
- catch(LookaheadSuccess ls) { return true; }
- finally { jj_save(7, xla); }
- }
-
- private boolean jj_2_9(int xla) {
- jj_la = xla; jj_lastpos = jj_scanpos = token;
- try { return !jj_3_9(); }
- catch(LookaheadSuccess ls) { return true; }
- finally { jj_save(8, xla); }
- }
-
- private boolean jj_3R_252() {
- Token xsp;
- xsp = jj_scanpos;
- if (jj_3R_263()) {
- jj_scanpos = xsp;
- if (jj_3R_264()) return true;
- }
- return false;
- }
-
- private boolean jj_3R_263() {
- if (jj_scan_token(IDENT)) return true;
- return false;
- }
-
- private boolean jj_3R_204() {
- Token xsp;
- if (jj_3R_252()) return true;
- while (true) {
- xsp = jj_scanpos;
- if (jj_3R_252()) { jj_scanpos = xsp; break; }
- }
- while (true) {
- xsp = jj_scanpos;
- if (jj_scan_token(1)) { jj_scanpos = xsp; break; }
- }
- return false;
- }
-
- private boolean jj_3R_214() {
- if (jj_scan_token(MINUS)) return true;
- Token xsp;
- if (jj_scan_token(1)) return true;
- while (true) {
- xsp = jj_scanpos;
- if (jj_scan_token(1)) { jj_scanpos = xsp; break; }
- }
- return false;
- }
-
- private boolean jj_3R_190() {
- if (jj_3R_215()) return true;
- return false;
- }
-
- private boolean jj_3R_213() {
- if (jj_scan_token(PLUS)) return true;
- Token xsp;
- if (jj_scan_token(1)) return true;
- while (true) {
- xsp = jj_scanpos;
- if (jj_scan_token(1)) { jj_scanpos = xsp; break; }
- }
- return false;
- }
-
- private boolean jj_3R_212() {
- if (jj_scan_token(MOD)) return true;
- Token xsp;
- while (true) {
- xsp = jj_scanpos;
- if (jj_scan_token(1)) { jj_scanpos = xsp; break; }
- }
- return false;
- }
-
- private boolean jj_3R_211() {
- if (jj_scan_token(ANY)) return true;
- Token xsp;
- while (true) {
- xsp = jj_scanpos;
- if (jj_scan_token(1)) { jj_scanpos = xsp; break; }
- }
- return false;
- }
-
- private boolean jj_3R_210() {
- if (jj_scan_token(DIV)) return true;
- Token xsp;
- while (true) {
- xsp = jj_scanpos;
- if (jj_scan_token(1)) { jj_scanpos = xsp; break; }
- }
- return false;
- }
-
- private boolean jj_3R_209() {
- if (jj_scan_token(COMMA)) return true;
- Token xsp;
- while (true) {
- xsp = jj_scanpos;
- if (jj_scan_token(1)) { jj_scanpos = xsp; break; }
- }
- return false;
- }
-
- private boolean jj_3R_187() {
- Token xsp;
- xsp = jj_scanpos;
- if (jj_3R_209()) {
- jj_scanpos = xsp;
- if (jj_3R_210()) {
- jj_scanpos = xsp;
- if (jj_3R_211()) {
- jj_scanpos = xsp;
- if (jj_3R_212()) {
- jj_scanpos = xsp;
- if (jj_3R_213()) {
- jj_scanpos = xsp;
- if (jj_3R_214()) return true;
- }
- }
- }
- }
- }
- return false;
- }
-
- private boolean jj_3R_217() {
- if (jj_3R_216()) return true;
- return false;
- }
-
- private boolean jj_3R_216() {
- Token xsp;
- xsp = jj_scanpos;
- if (jj_scan_token(20)) {
- jj_scanpos = xsp;
- if (jj_scan_token(24)) {
- jj_scanpos = xsp;
- if (jj_scan_token(25)) return true;
- }
- }
- while (true) {
- xsp = jj_scanpos;
- if (jj_scan_token(1)) { jj_scanpos = xsp; break; }
- }
- return false;
- }
-
- private boolean jj_3R_178() {
- if (jj_3R_188()) return true;
- if (jj_scan_token(COLON)) return true;
- Token xsp;
- while (true) {
- xsp = jj_scanpos;
- if (jj_scan_token(1)) { jj_scanpos = xsp; break; }
- }
- if (jj_3R_189()) return true;
- xsp = jj_scanpos;
- if (jj_3R_190()) jj_scanpos = xsp;
- if (jj_3R_191()) return true;
- while (true) {
- xsp = jj_scanpos;
- if (jj_3R_191()) { jj_scanpos = xsp; break; }
- }
- return false;
- }
-
- private boolean jj_3R_215() {
- if (jj_scan_token(GUARDED_SYM)) return true;
- Token xsp;
- while (true) {
- xsp = jj_scanpos;
- if (jj_scan_token(1)) { jj_scanpos = xsp; break; }
- }
- return false;
- }
-
- private boolean jj_3R_193() {
- if (jj_scan_token(S)) return true;
- Token xsp;
- xsp = jj_scanpos;
- if (jj_3R_217()) jj_scanpos = xsp;
- return false;
- }
-
- private boolean jj_3R_192() {
- if (jj_3R_216()) return true;
- return false;
- }
-
- private boolean jj_3R_179() {
- Token xsp;
- xsp = jj_scanpos;
- if (jj_3R_192()) {
- jj_scanpos = xsp;
- if (jj_3R_193()) return true;
- }
- return false;
- }
-
- private boolean jj_3R_199() {
- if (jj_scan_token(VARIABLE)) return true;
- Token xsp;
- while (true) {
- xsp = jj_scanpos;
- if (jj_scan_token(1)) { jj_scanpos = xsp; break; }
- }
- if (jj_scan_token(COLON)) return true;
- while (true) {
- xsp = jj_scanpos;
- if (jj_scan_token(1)) { jj_scanpos = xsp; break; }
- }
- return false;
- }
-
- private boolean jj_3R_181() {
- Token xsp;
- xsp = jj_scanpos;
- if (jj_3R_199()) jj_scanpos = xsp;
- if (jj_scan_token(CONTAINS)) return true;
- while (true) {
- xsp = jj_scanpos;
- if (jj_scan_token(1)) { jj_scanpos = xsp; break; }
- }
- if (true) { jj_la = 0; jj_scanpos = jj_lastpos; return false;}
- return false;
- }
-
- private boolean jj_3R_219() {
- if (jj_scan_token(HASH)) return true;
- return false;
- }
-
- private boolean jj_3R_289() {
- if (jj_scan_token(IDENT)) return true;
- return false;
- }
-
- private boolean jj_3R_290() {
- if (jj_scan_token(FUNCTION)) return true;
- Token xsp;
- while (true) {
- xsp = jj_scanpos;
- if (jj_scan_token(1)) { jj_scanpos = xsp; break; }
- }
- if (true) { jj_la = 0; jj_scanpos = jj_lastpos; return false;}
- return false;
- }
-
- private boolean jj_3R_288() {
- if (jj_scan_token(COLON)) return true;
- return false;
- }
-
- private boolean jj_3R_221() {
- if (jj_scan_token(COLON)) return true;
- Token xsp;
- xsp = jj_scanpos;
- if (jj_3R_288()) jj_scanpos = xsp;
- xsp = jj_scanpos;
- if (jj_3R_289()) {
- jj_scanpos = xsp;
- if (jj_3R_290()) return true;
- }
- return false;
- }
-
- private boolean jj_3_7() {
- if (jj_3R_185()) return true;
- return false;
- }
-
- private boolean jj_3R_206() {
- if (jj_scan_token(LBRACE)) return true;
- return false;
- }
-
- private boolean jj_3R_309() {
- if (jj_scan_token(STRING)) return true;
- return false;
- }
-
- private boolean jj_3R_307() {
- if (jj_scan_token(STARMATCH)) return true;
- return false;
- }
-
- private boolean jj_3R_308() {
- if (jj_scan_token(IDENT)) return true;
- return false;
- }
-
- private boolean jj_3R_306() {
- if (jj_scan_token(DOLLARMATCH)) return true;
- return false;
- }
-
- private boolean jj_3R_305() {
- if (jj_scan_token(CARETMATCH)) return true;
- return false;
- }
-
- private boolean jj_3R_304() {
- if (jj_scan_token(DASHMATCH)) return true;
- return false;
- }
-
- private boolean jj_3R_303() {
- if (jj_scan_token(INCLUDES)) return true;
- return false;
- }
-
- private boolean jj_3R_270() {
- if (jj_scan_token(INTERPOLATION)) return true;
- return false;
- }
-
- private boolean jj_3R_302() {
- if (jj_scan_token(EQ)) return true;
- return false;
- }
-
- private boolean jj_3R_205() {
- if (jj_3R_189()) return true;
- return false;
- }
-
- private boolean jj_3R_295() {
- Token xsp;
- xsp = jj_scanpos;
- if (jj_3R_302()) {
- jj_scanpos = xsp;
- if (jj_3R_303()) {
- jj_scanpos = xsp;
- if (jj_3R_304()) {
- jj_scanpos = xsp;
- if (jj_3R_305()) {
- jj_scanpos = xsp;
- if (jj_3R_306()) {
- jj_scanpos = xsp;
- if (jj_3R_307()) return true;
- }
- }
- }
- }
- }
- while (true) {
- xsp = jj_scanpos;
- if (jj_scan_token(1)) { jj_scanpos = xsp; break; }
- }
- xsp = jj_scanpos;
- if (jj_3R_308()) {
- jj_scanpos = xsp;
- if (jj_3R_309()) return true;
- }
- while (true) {
- xsp = jj_scanpos;
- if (jj_scan_token(1)) { jj_scanpos = xsp; break; }
- }
- return false;
- }
-
- private boolean jj_3_6() {
- if (jj_3R_184()) return true;
- if (jj_scan_token(LBRACE)) return true;
- return false;
- }
-
- private boolean jj_3R_222() {
- if (jj_scan_token(LBRACKET)) return true;
- Token xsp;
- while (true) {
- xsp = jj_scanpos;
- if (jj_scan_token(1)) { jj_scanpos = xsp; break; }
- }
- if (jj_scan_token(IDENT)) return true;
- while (true) {
- xsp = jj_scanpos;
- if (jj_scan_token(1)) { jj_scanpos = xsp; break; }
- }
- xsp = jj_scanpos;
- if (jj_3R_295()) jj_scanpos = xsp;
- if (jj_scan_token(RBRACKET)) return true;
- return false;
- }
-
- private boolean jj_3R_185() {
- if (jj_3R_204()) return true;
- if (jj_scan_token(COLON)) return true;
- Token xsp;
- while (true) {
- xsp = jj_scanpos;
- if (jj_scan_token(1)) { jj_scanpos = xsp; break; }
- }
- xsp = jj_scanpos;
- if (jj_3R_205()) {
- jj_scanpos = xsp;
- if (jj_3R_206()) return true;
- }
- return false;
- }
-
- private boolean jj_3R_301() {
- if (jj_scan_token(INTERPOLATION)) return true;
- return false;
- }
-
- private boolean jj_3R_256() {
- if (jj_scan_token(PARENT)) return true;
- return false;
- }
-
- private boolean jj_3R_268() {
- if (jj_3R_189()) return true;
- return false;
- }
-
- private boolean jj_3R_255() {
- if (jj_scan_token(ANY)) return true;
- return false;
- }
-
- private boolean jj_3R_265() {
- Token xsp;
- xsp = jj_scanpos;
- if (jj_3R_269()) {
- jj_scanpos = xsp;
- if (jj_3R_270()) return true;
- }
- return false;
- }
-
- private boolean jj_3R_269() {
- if (jj_scan_token(IDENT)) return true;
- return false;
- }
-
- private boolean jj_3R_218() {
- Token xsp;
- xsp = jj_scanpos;
- if (jj_3R_254()) {
- jj_scanpos = xsp;
- if (jj_3R_255()) {
- jj_scanpos = xsp;
- if (jj_3R_256()) return true;
- }
- }
- return false;
- }
-
- private boolean jj_3R_254() {
- Token xsp;
- if (jj_3R_265()) return true;
- while (true) {
- xsp = jj_scanpos;
- if (jj_3R_265()) { jj_scanpos = xsp; break; }
- }
- return false;
- }
-
- private boolean jj_3R_182() {
- if (jj_scan_token(COMMA)) return true;
- Token xsp;
- while (true) {
- xsp = jj_scanpos;
- if (jj_scan_token(1)) { jj_scanpos = xsp; break; }
- }
- return false;
- }
-
- private boolean jj_3R_258() {
- if (jj_scan_token(FUNCTION)) return true;
- Token xsp;
- while (true) {
- xsp = jj_scanpos;
- if (jj_scan_token(1)) { jj_scanpos = xsp; break; }
- }
- xsp = jj_scanpos;
- if (jj_3R_268()) jj_scanpos = xsp;
- if (jj_scan_token(RPARAN)) return true;
- return false;
- }
-
- private boolean jj_3R_283() {
- Token xsp;
- xsp = jj_scanpos;
- if (jj_3R_300()) {
- jj_scanpos = xsp;
- if (jj_3R_301()) return true;
- }
- return false;
- }
-
- private boolean jj_3R_300() {
- if (jj_scan_token(IDENT)) return true;
- return false;
- }
-
- private boolean jj_3R_249() {
- if (jj_3R_262()) return true;
- return false;
- }
-
- private boolean jj_3R_299() {
- if (jj_3R_221()) return true;
- return false;
- }
-
- private boolean jj_3R_248() {
- if (jj_3R_261()) return true;
- return false;
- }
-
- private boolean jj_3R_247() {
- if (jj_3R_260()) return true;
- return false;
- }
-
- private boolean jj_3_5() {
- Token xsp;
- xsp = jj_scanpos;
- if (jj_3R_182()) jj_scanpos = xsp;
- if (jj_3R_183()) return true;
- return false;
- }
-
- private boolean jj_3R_220() {
- if (jj_scan_token(DOT)) return true;
- Token xsp;
- if (jj_3R_283()) return true;
- while (true) {
- xsp = jj_scanpos;
- if (jj_3R_283()) { jj_scanpos = xsp; break; }
- }
- return false;
- }
-
- private boolean jj_3R_297() {
- if (jj_3R_220()) return true;
- return false;
- }
-
- private boolean jj_3R_292() {
- if (jj_3R_220()) return true;
- return false;
- }
-
- private boolean jj_3R_294() {
- if (jj_3R_221()) return true;
- return false;
- }
-
- private boolean jj_3R_282() {
- if (jj_3R_221()) return true;
- return false;
- }
-
- private boolean jj_3R_285() {
- if (jj_3R_220()) return true;
- return false;
- }
-
- private boolean jj_3R_287() {
- if (jj_3R_221()) return true;
- return false;
- }
-
- private boolean jj_3R_298() {
- if (jj_3R_222()) return true;
- return false;
- }
-
- private boolean jj_3R_275() {
- Token xsp;
- xsp = jj_scanpos;
- if (jj_3R_296()) {
- jj_scanpos = xsp;
- if (jj_3R_297()) {
- jj_scanpos = xsp;
- if (jj_3R_298()) {
- jj_scanpos = xsp;
- if (jj_3R_299()) return true;
- }
- }
- }
- return false;
- }
-
- private boolean jj_3R_296() {
- if (jj_3R_219()) return true;
- return false;
- }
-
- private boolean jj_3R_274() {
- Token xsp;
- xsp = jj_scanpos;
- if (jj_3R_291()) {
- jj_scanpos = xsp;
- if (jj_3R_292()) {
- jj_scanpos = xsp;
- if (jj_3R_293()) {
- jj_scanpos = xsp;
- if (jj_3R_294()) return true;
- }
- }
- }
- return false;
- }
-
- private boolean jj_3R_291() {
- if (jj_3R_219()) return true;
- return false;
- }
-
- private boolean jj_3R_279() {
- if (jj_3R_221()) return true;
- return false;
- }
-
- private boolean jj_3R_273() {
- Token xsp;
- xsp = jj_scanpos;
- if (jj_3R_284()) {
- jj_scanpos = xsp;
- if (jj_3R_285()) {
- jj_scanpos = xsp;
- if (jj_3R_286()) {
- jj_scanpos = xsp;
- if (jj_3R_287()) return true;
- }
- }
- }
- return false;
- }
-
- private boolean jj_3R_284() {
- if (jj_3R_219()) return true;
- return false;
- }
-
- private boolean jj_3R_293() {
- if (jj_3R_222()) return true;
- return false;
- }
-
- private boolean jj_3R_281() {
- if (jj_3R_222()) return true;
- return false;
- }
-
- private boolean jj_3R_286() {
- if (jj_3R_222()) return true;
- return false;
- }
-
- private boolean jj_3R_272() {
- Token xsp;
- xsp = jj_scanpos;
- if (jj_3R_280()) {
- jj_scanpos = xsp;
- if (jj_3R_281()) {
- jj_scanpos = xsp;
- if (jj_3R_282()) return true;
- }
- }
- return false;
- }
-
- private boolean jj_3R_277() {
- if (jj_3R_220()) return true;
- return false;
- }
-
- private boolean jj_3R_280() {
- if (jj_3R_220()) return true;
- return false;
- }
-
- private boolean jj_3R_259() {
- if (jj_scan_token(DOT)) return true;
- return false;
- }
-
- private boolean jj_3R_246() {
- Token xsp;
- xsp = jj_scanpos;
- if (jj_3R_259()) jj_scanpos = xsp;
- if (jj_scan_token(IDENT)) return true;
- return false;
- }
-
- private boolean jj_3R_198() {
- if (jj_3R_222()) return true;
- Token xsp;
- while (true) {
- xsp = jj_scanpos;
- if (jj_3R_275()) { jj_scanpos = xsp; break; }
- }
- return false;
- }
-
- private boolean jj_3R_245() {
- if (jj_scan_token(STRING)) return true;
- return false;
- }
-
- private boolean jj_3R_244() {
- if (jj_3R_258()) return true;
- return false;
- }
-
- private boolean jj_3R_197() {
- if (jj_3R_221()) return true;
- Token xsp;
- while (true) {
- xsp = jj_scanpos;
- if (jj_3R_274()) { jj_scanpos = xsp; break; }
- }
- return false;
- }
-
- private boolean jj_3R_201() {
- Token xsp;
- xsp = jj_scanpos;
- if (jj_3R_245()) {
- jj_scanpos = xsp;
- if (jj_3R_246()) {
- jj_scanpos = xsp;
- if (jj_3R_247()) {
- jj_scanpos = xsp;
- if (jj_3R_248()) {
- jj_scanpos = xsp;
- if (jj_3R_249()) return true;
- }
- }
- }
- }
- return false;
- }
-
- private boolean jj_3R_278() {
- if (jj_3R_222()) return true;
- return false;
- }
-
- private boolean jj_3R_196() {
- if (jj_3R_220()) return true;
- Token xsp;
- while (true) {
- xsp = jj_scanpos;
- if (jj_3R_273()) { jj_scanpos = xsp; break; }
- }
- return false;
- }
-
- private boolean jj_3R_195() {
- if (jj_3R_219()) return true;
- Token xsp;
- while (true) {
- xsp = jj_scanpos;
- if (jj_3R_272()) { jj_scanpos = xsp; break; }
- }
- return false;
- }
-
- private boolean jj_3R_271() {
- Token xsp;
- xsp = jj_scanpos;
- if (jj_3R_276()) {
- jj_scanpos = xsp;
- if (jj_3R_277()) {
- jj_scanpos = xsp;
- if (jj_3R_278()) {
- jj_scanpos = xsp;
- if (jj_3R_279()) return true;
- }
- }
- }
- return false;
- }
-
- private boolean jj_3R_276() {
- if (jj_3R_219()) return true;
- return false;
- }
-
- private boolean jj_3R_194() {
- if (jj_3R_218()) return true;
- Token xsp;
- while (true) {
- xsp = jj_scanpos;
- if (jj_3R_271()) { jj_scanpos = xsp; break; }
- }
- return false;
- }
-
- private boolean jj_3R_180() {
- Token xsp;
- xsp = jj_scanpos;
- if (jj_3R_194()) {
- jj_scanpos = xsp;
- if (jj_3R_195()) {
- jj_scanpos = xsp;
- if (jj_3R_196()) {
- jj_scanpos = xsp;
- if (jj_3R_197()) {
- jj_scanpos = xsp;
- if (jj_3R_198()) return true;
- }
- }
- }
- }
- return false;
- }
-
- private boolean jj_3R_243() {
- if (jj_scan_token(DIMEN)) return true;
- return false;
- }
-
- private boolean jj_3R_251() {
- if (jj_3R_216()) return true;
- if (jj_3R_180()) return true;
- return false;
- }
-
- private boolean jj_3R_242() {
- if (jj_scan_token(KHZ)) return true;
- return false;
- }
-
- private boolean jj_3R_241() {
- if (jj_scan_token(HZ)) return true;
- return false;
- }
-
- private boolean jj_3R_240() {
- if (jj_scan_token(MS)) return true;
- return false;
- }
-
- private boolean jj_3R_239() {
- if (jj_scan_token(SECOND)) return true;
- return false;
- }
-
- private boolean jj_3R_238() {
- if (jj_scan_token(GRAD)) return true;
- return false;
- }
-
- private boolean jj_3R_237() {
- if (jj_scan_token(RAD)) return true;
- return false;
- }
-
- private boolean jj_3R_236() {
- if (jj_scan_token(DEG)) return true;
- return false;
- }
-
- private boolean jj_3R_235() {
- if (jj_scan_token(EXS)) return true;
- return false;
- }
-
- private boolean jj_3R_234() {
- if (jj_scan_token(REM)) return true;
- return false;
- }
-
- private boolean jj_3R_233() {
- if (jj_scan_token(LEM)) return true;
- return false;
- }
-
- private boolean jj_3R_232() {
- if (jj_scan_token(EMS)) return true;
- return false;
- }
-
- private boolean jj_3_2() {
- if (jj_3R_179()) return true;
- if (jj_3R_180()) return true;
- return false;
- }
-
- private boolean jj_3R_231() {
- if (jj_scan_token(PX)) return true;
- return false;
- }
-
- private boolean jj_3_1() {
- if (jj_3R_178()) return true;
- return false;
- }
-
- private boolean jj_3R_230() {
- if (jj_scan_token(IN)) return true;
- return false;
- }
-
- private boolean jj_3R_203() {
- if (jj_scan_token(COMMA)) return true;
- Token xsp;
- while (true) {
- xsp = jj_scanpos;
- if (jj_scan_token(1)) { jj_scanpos = xsp; break; }
- }
- if (jj_3R_202()) return true;
- return false;
- }
-
- private boolean jj_3R_250() {
- if (jj_3R_180()) return true;
- return false;
- }
-
- private boolean jj_3R_229() {
- if (jj_scan_token(PC)) return true;
- return false;
- }
-
- private boolean jj_3R_228() {
- if (jj_scan_token(MM)) return true;
- return false;
- }
-
- private boolean jj_3R_202() {
- Token xsp;
- xsp = jj_scanpos;
- if (jj_3R_250()) {
- jj_scanpos = xsp;
- if (jj_3R_251()) return true;
- }
- while (true) {
- xsp = jj_scanpos;
- if (jj_3_2()) { jj_scanpos = xsp; break; }
- }
- while (true) {
- xsp = jj_scanpos;
- if (jj_scan_token(1)) { jj_scanpos = xsp; break; }
- }
- return false;
- }
-
- private boolean jj_3R_227() {
- if (jj_scan_token(CM)) return true;
- return false;
- }
-
- private boolean jj_3R_226() {
- if (jj_scan_token(PT)) return true;
- return false;
- }
-
- private boolean jj_3R_225() {
- if (jj_scan_token(PERCENTAGE)) return true;
- return false;
- }
-
- private boolean jj_3R_208() {
- if (jj_3R_253()) return true;
- return false;
- }
-
- private boolean jj_3R_224() {
- if (jj_scan_token(NUMBER)) return true;
- return false;
- }
-
- private boolean jj_3R_223() {
- if (jj_3R_257()) return true;
- return false;
- }
-
- private boolean jj_3R_184() {
- if (jj_3R_202()) return true;
- Token xsp;
- while (true) {
- xsp = jj_scanpos;
- if (jj_3R_203()) { jj_scanpos = xsp; break; }
- }
- return false;
- }
-
- private boolean jj_3R_200() {
- Token xsp;
- xsp = jj_scanpos;
- if (jj_3R_223()) jj_scanpos = xsp;
- xsp = jj_scanpos;
- if (jj_3R_224()) {
- jj_scanpos = xsp;
- if (jj_3R_225()) {
- jj_scanpos = xsp;
- if (jj_3R_226()) {
- jj_scanpos = xsp;
- if (jj_3R_227()) {
- jj_scanpos = xsp;
- if (jj_3R_228()) {
- jj_scanpos = xsp;
- if (jj_3R_229()) {
- jj_scanpos = xsp;
- if (jj_3R_230()) {
- jj_scanpos = xsp;
- if (jj_3R_231()) {
- jj_scanpos = xsp;
- if (jj_3R_232()) {
- jj_scanpos = xsp;
- if (jj_3R_233()) {
- jj_scanpos = xsp;
- if (jj_3R_234()) {
- jj_scanpos = xsp;
- if (jj_3R_235()) {
- jj_scanpos = xsp;
- if (jj_3R_236()) {
- jj_scanpos = xsp;
- if (jj_3R_237()) {
- jj_scanpos = xsp;
- if (jj_3R_238()) {
- jj_scanpos = xsp;
- if (jj_3R_239()) {
- jj_scanpos = xsp;
- if (jj_3R_240()) {
- jj_scanpos = xsp;
- if (jj_3R_241()) {
- jj_scanpos = xsp;
- if (jj_3R_242()) {
- jj_scanpos = xsp;
- if (jj_3R_243()) {
- jj_scanpos = xsp;
- if (jj_3R_244()) return true;
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- return false;
- }
-
- private boolean jj_3R_183() {
- Token xsp;
- xsp = jj_scanpos;
- if (jj_3R_200()) {
- jj_scanpos = xsp;
- if (jj_3R_201()) return true;
- }
- while (true) {
- xsp = jj_scanpos;
- if (jj_scan_token(1)) { jj_scanpos = xsp; break; }
- }
- return false;
- }
-
- private boolean jj_3R_260() {
- if (jj_scan_token(HASH)) return true;
- return false;
- }
-
- private boolean jj_3_4() {
- if (jj_3R_181()) return true;
- return false;
- }
-
- private boolean jj_3R_253() {
- if (jj_3R_188()) return true;
- return false;
- }
-
- private boolean jj_3R_261() {
- if (jj_scan_token(URL)) return true;
- return false;
- }
-
- private boolean jj_3R_207() {
- if (jj_3R_183()) return true;
- return false;
- }
-
- private boolean jj_3R_186() {
- Token xsp;
- xsp = jj_scanpos;
- if (jj_3R_207()) {
- jj_scanpos = xsp;
- if (jj_3R_208()) return true;
- }
- return false;
- }
-
- private boolean jj_3R_264() {
- if (jj_scan_token(INTERPOLATION)) return true;
- return false;
- }
-
- private boolean jj_3_9() {
- if (jj_3R_187()) return true;
- return false;
- }
-
- private boolean jj_3_3() {
- if (jj_3R_178()) return true;
- return false;
- }
-
- private boolean jj_3R_267() {
- if (jj_scan_token(PLUS)) return true;
- return false;
- }
-
- private boolean jj_3R_257() {
- Token xsp;
- xsp = jj_scanpos;
- if (jj_3R_266()) {
- jj_scanpos = xsp;
- if (jj_3R_267()) return true;
- }
- return false;
- }
-
- private boolean jj_3R_266() {
- if (jj_scan_token(MINUS)) return true;
- return false;
- }
-
- private boolean jj_3R_262() {
- if (jj_scan_token(UNICODERANGE)) return true;
- return false;
- }
-
- private boolean jj_3R_191() {
- if (jj_scan_token(SEMICOLON)) return true;
- Token xsp;
- while (true) {
- xsp = jj_scanpos;
- if (jj_scan_token(1)) { jj_scanpos = xsp; break; }
- }
- return false;
- }
-
- private boolean jj_3_8() {
- Token xsp;
- xsp = jj_scanpos;
- if (jj_3_9()) jj_scanpos = xsp;
- if (jj_3R_186()) return true;
- return false;
- }
-
- private boolean jj_3R_189() {
- if (jj_3R_186()) return true;
- Token xsp;
- while (true) {
- xsp = jj_scanpos;
- if (jj_3_8()) { jj_scanpos = xsp; break; }
- }
- return false;
- }
-
- private boolean jj_3R_188() {
- if (jj_scan_token(VARIABLE)) return true;
- Token xsp;
- while (true) {
- xsp = jj_scanpos;
- if (jj_scan_token(1)) { jj_scanpos = xsp; break; }
- }
- return false;
- }
-
- /** Generated Token Manager. */
- public ParserTokenManager token_source;
- /** Current token. */
- public Token token;
- /** Next token. */
- public Token jj_nt;
- private int jj_ntk;
- private Token jj_scanpos, jj_lastpos;
- private int jj_la;
- private int jj_gen;
- final private int[] jj_la1 = new int[261];
- static private int[] jj_la1_0;
- static private int[] jj_la1_1;
- static private int[] jj_la1_2;
- static private int[] jj_la1_3;
- static {
- jj_la1_init_0();
- jj_la1_init_1();
- jj_la1_init_2();
- jj_la1_init_3();
- }
- private static void jj_la1_init_0() {
- jj_la1_0 = new int[] {0x0,0xc02,0xc02,0x0,0xc00,0x2,0x2,0x2,0x53100000,0x0,0xc00,0x2,0xc00,0x2,0x0,0x2,0x0,0x2,0x2,0x0,0x0,0x2,0x2,0x0,0x2,0x0,0x2,0x2,0x53100000,0x53100000,0x2,0x2,0x2,0x53f45400,0x53f45400,0x2,0x400000,0x2,0x2,0x2,0x2,0x0,0x0,0x2,0x0,0x800000,0x2,0x0,0x2,0x2,0x2,0x2,0x0,0x800000,0x2,0x0,0x2,0xe45400,0x3100000,0x3100002,0x3100000,0x2,0x2,0x480002,0x480002,0x2,0x0,0x0,0x2,0x2,0x2,0x2,0x53100000,0x53100000,0x2,0x400000,0x2,0x53100000,0x2,0x10000000,0x10000000,0x10000000,0x10000000,0x10000000,0x10000000,0x10000000,0x10000000,0x10000000,0x10000000,0x50000000,0x0,0x0,0x0,0x0,0x40000000,0x2,0x2,0xfc000,0x2,0x0,0x2,0xfc000,0x0,0x2,0x0,0x2,0x0,0x2,0x800000,0x0,0x53100000,0x0,0x4d380002,0x2,0x53100000,0x2,0x0,0x2,0x4d380002,0x0,0x2,0x53100000,0x2,0x4d380002,0x2,0x2,0x2,0x0,0x2,0x53100000,0x2,0x2,0x400000,0x2,0x2,0x2,0x2,0x0,0x2,0x53100000,0x53100000,0x2,0x400000,0x2,0x2,0x2,0x400000,0x0,0x0,0x300000,0x2,0x0,0x400000,0x2,0x300000,0x2,0x0,0x2,0x0,0x2,0x800000,0x2,0x53100000,0x2,0x801000,0x2,0x2,0x0,0x2,0x0,0x2,0x2,0x2,0x400000,0x2,0x2,0x2,0x2,0x2,0x0,0x2,0x2,0x2,0x400000,0x2,0x2,0x2,0x0,0x2,0x2,0x2,0x400000,0x2,0x2,0x0,0x2,0x0,0x2,0x2,0x2,0x400000,0x0,0x2,0x2,0x0,0x2,0x2,0x2,0x800000,0x2,0x2,0x800000,0x2,0x2,0x0,0x800000,0x2,0x0,0x2,0x0,0x53100000,0x2,0x0,0x2,0x0,0x800000,0x2,0x0,0x2,0x301000,0x2,0x0,0x2,0x2,0x2,0x2,0x2,0x2,0x2,0x2,0xc8700000,0x300000,0x300000,0x300000,0x0,0x0,0x0,0x300000,0x2,0x2,0x300000,0x2,0x53100000,0x2,0x2,0x2,0x0,0x800000,0x2,0x0,0x2,};
- }
- private static void jj_la1_init_1() {
- jj_la1_1 = new int[] {0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x59800303,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x200,0x200,0x0,0x0,0x480000,0x0,0x480000,0x0,0x0,0x59000303,0x59000303,0x0,0x0,0x0,0x18000703,0x18000703,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x100,0x0,0x200,0x0,0x0,0x200,0x0,0x0,0x0,0x0,0x200,0x0,0x0,0x200,0x0,0x400,0x0,0x0,0x0,0x0,0x0,0x30a,0x30a,0x0,0x200,0x200,0x0,0x0,0x0,0x0,0x59000303,0x59000303,0x0,0x0,0x0,0x303,0x0,0x102,0x102,0x102,0x102,0x102,0x102,0x102,0x102,0x102,0x102,0x303,0x200,0x200,0x200,0x200,0x201,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x100,0x0,0x0,0x0,0x0,0x0,0x0,0x40000000,0x19000303,0x0,0xfc,0x0,0x19000303,0x0,0x0,0x0,0xfc,0x0,0x0,0x19000303,0x0,0xfc,0x0,0x0,0x0,0x0,0x0,0x19000303,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x200,0x0,0x59000303,0x59000303,0x0,0x0,0x0,0x0,0x0,0x0,0x100,0x100,0x102,0x0,0x100,0x0,0x0,0x102,0x0,0x100,0x0,0x200,0x0,0x0,0x0,0x18000303,0x0,0x0,0x0,0x0,0x0,0x0,0x8,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x8,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x8,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x8,0x0,0x0,0x0,0x0,0x18000000,0x0,0x0,0x180000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x200,0x0,0x0,0x200,0x0,0x18000000,0x303,0x0,0x0,0x0,0x200,0x0,0x0,0x200,0x0,0x2,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x2,0x0,0x0,0x2,0x2,0x2,0x0,0x0,0x2,0x0,0x18000303,0x0,0x0,0x0,0x200,0x0,0x0,0x200,0x0,};
- }
- private static void jj_la1_init_2() {
- jj_la1_2 = new int[] {0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x401,0x4000,0x0,0x0,0x0,0x0,0x2200,0x0,0x400,0x0,0x0,0x400,0x400,0x0,0x0,0x8000,0x0,0x8000,0x0,0x0,0x4465,0x4465,0x0,0x0,0x0,0xae00,0xae00,0x0,0x0,0x0,0x0,0x0,0x0,0x400,0x0,0x0,0x400,0x0,0x0,0x400,0x0,0x0,0x0,0x0,0x400,0x0,0x0,0x400,0x0,0xaa00,0x0,0x0,0x0,0x0,0x0,0xe00,0xe00,0x0,0x400,0x400,0x0,0x0,0x0,0x0,0x4465,0x4465,0x0,0x0,0x0,0x400,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x400,0x400,0x400,0x400,0x400,0x400,0x0,0x0,0x0,0x0,0x600,0x0,0x0,0x0,0x0,0x400,0x0,0x100,0x0,0x0,0x1,0x424,0x4000,0x4c00,0x0,0x4424,0x0,0x2,0x0,0x4c00,0x80,0x0,0x4424,0x0,0x4c00,0x0,0x0,0x0,0x4400,0x0,0x4424,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x400,0x0,0x4425,0x4425,0x0,0x0,0x0,0x0,0x0,0x0,0x4000,0x4000,0xffffee00,0x0,0x0,0x0,0x0,0xffffee00,0x0,0x0,0x0,0x4400,0x0,0x0,0x0,0x400,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x4000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x400,0x0,0x0,0x400,0x0,0x0,0x400,0x0,0x0,0x0,0x400,0x0,0x0,0x400,0x0,0xffffee00,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xffffee00,0x0,0xffff8800,0x0,0x2600,0xffffae00,0x0,0x0,0xffffee00,0x0,0x400,0x0,0x0,0x0,0x400,0x0,0x0,0x400,0x0,};
- }
- private static void jj_la1_init_3() {
- jj_la1_3 = new int[] {0x20,0x200,0x200,0x8,0x200,0x0,0x0,0x0,0x1d4,0x0,0x200,0x0,0x200,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x114,0x114,0x0,0x0,0x0,0x31006fc,0x31006fc,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x31006f8,0x0,0x0,0x0,0x0,0x0,0x1000000,0x1000000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x114,0x114,0x0,0x0,0x0,0x4,0x0,0x4,0x4,0x0,0x0,0x4,0x4,0x4,0x4,0x4,0x4,0x4,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1000000,0x0,0x0,0x0,0x0,0x0,0x114,0x0,0x800000,0x0,0x114,0x0,0x0,0x0,0x800000,0x0,0x0,0x114,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x114,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1000000,0x0,0x1d4,0x1d4,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1100007,0x0,0x0,0x0,0x0,0x1100007,0x0,0x0,0x0,0x1000000,0x0,0x0,0x0,0x4,0x0,0x0,0x0,0x0,0xe00000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x4,0x0,0x400,0x0,0x0,0x0,0x0,0x0,0x0,0x1100007,0x0,0x400,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1100007,0x0,0x1000003,0x0,0x100004,0x1100007,0x0,0x0,0x1100007,0x0,0xdc,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,};
- }
- final private JJCalls[] jj_2_rtns = new JJCalls[9];
- private boolean jj_rescan = false;
- private int jj_gc = 0;
-
- /** Constructor with user supplied CharStream. */
- public Parser(CharStream stream) {
- token_source = new ParserTokenManager(stream);
- token = new Token();
- jj_ntk = -1;
- jj_gen = 0;
- for (int i = 0; i < 261; i++) jj_la1[i] = -1;
- for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
- }
-
- /** Reinitialise. */
- public void ReInit(CharStream stream) {
- token_source.ReInit(stream);
- token = new Token();
- jj_ntk = -1;
- jj_gen = 0;
- for (int i = 0; i < 261; i++) jj_la1[i] = -1;
- for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
- }
-
- /** Constructor with generated Token Manager. */
- public Parser(ParserTokenManager tm) {
- token_source = tm;
- token = new Token();
- jj_ntk = -1;
- jj_gen = 0;
- for (int i = 0; i < 261; i++) jj_la1[i] = -1;
- for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
- }
-
- /** Reinitialise. */
- public void ReInit(ParserTokenManager tm) {
- token_source = tm;
- token = new Token();
- jj_ntk = -1;
- jj_gen = 0;
- for (int i = 0; i < 261; i++) jj_la1[i] = -1;
- for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
- }
-
- private Token jj_consume_token(int kind) throws ParseException {
- Token oldToken;
- if ((oldToken = token).next != null) token = token.next;
- else token = token.next = token_source.getNextToken();
- jj_ntk = -1;
- if (token.kind == kind) {
- jj_gen++;
- if (++jj_gc > 100) {
- jj_gc = 0;
- for (int i = 0; i < jj_2_rtns.length; i++) {
- JJCalls c = jj_2_rtns[i];
- while (c != null) {
- if (c.gen < jj_gen) c.first = null;
- c = c.next;
- }
- }
- }
- return token;
- }
- token = oldToken;
- jj_kind = kind;
- throw generateParseException();
- }
-
- static private final class LookaheadSuccess extends java.lang.Error { }
- final private LookaheadSuccess jj_ls = new LookaheadSuccess();
- private boolean jj_scan_token(int kind) {
- if (jj_scanpos == jj_lastpos) {
- jj_la--;
- if (jj_scanpos.next == null) {
- jj_lastpos = jj_scanpos = jj_scanpos.next = token_source.getNextToken();
- } else {
- jj_lastpos = jj_scanpos = jj_scanpos.next;
- }
- } else {
- jj_scanpos = jj_scanpos.next;
- }
- if (jj_rescan) {
- int i = 0; Token tok = token;
- while (tok != null && tok != jj_scanpos) { i++; tok = tok.next; }
- if (tok != null) jj_add_error_token(kind, i);
- }
- if (jj_scanpos.kind != kind) return true;
- if (jj_la == 0 && jj_scanpos == jj_lastpos) throw jj_ls;
- return false;
- }
-
-
-/** Get the next Token. */
- final public Token getNextToken() {
- if (token.next != null) token = token.next;
- else token = token.next = token_source.getNextToken();
- jj_ntk = -1;
- jj_gen++;
- return token;
- }
-
-/** Get the specific Token. */
- final public Token getToken(int index) {
- Token t = token;
- for (int i = 0; i < index; i++) {
- if (t.next != null) t = t.next;
- else t = t.next = token_source.getNextToken();
- }
- return t;
- }
-
- private int jj_ntk() {
- if ((jj_nt=token.next) == null)
- return (jj_ntk = (token.next=token_source.getNextToken()).kind);
- else
- return (jj_ntk = jj_nt.kind);
- }
-
- private java.util.List<int[]> jj_expentries = new java.util.ArrayList<int[]>();
- private int[] jj_expentry;
- private int jj_kind = -1;
- private int[] jj_lasttokens = new int[100];
- private int jj_endpos;
-
- private void jj_add_error_token(int kind, int pos) {
- if (pos >= 100) return;
- if (pos == jj_endpos + 1) {
- jj_lasttokens[jj_endpos++] = kind;
- } else if (jj_endpos != 0) {
- jj_expentry = new int[jj_endpos];
- for (int i = 0; i < jj_endpos; i++) {
- jj_expentry[i] = jj_lasttokens[i];
- }
- jj_entries_loop: for (java.util.Iterator<?> it = jj_expentries.iterator(); it.hasNext();) {
- int[] oldentry = (int[])(it.next());
- if (oldentry.length == jj_expentry.length) {
- for (int i = 0; i < jj_expentry.length; i++) {
- if (oldentry[i] != jj_expentry[i]) {
- continue jj_entries_loop;
- }
- }
- jj_expentries.add(jj_expentry);
- break jj_entries_loop;
- }
- }
- if (pos != 0) jj_lasttokens[(jj_endpos = pos) - 1] = kind;
- }
- }
-
- /** Generate ParseException. */
- public ParseException generateParseException() {
- jj_expentries.clear();
- boolean[] la1tokens = new boolean[122];
- if (jj_kind >= 0) {
- la1tokens[jj_kind] = true;
- jj_kind = -1;
- }
- for (int i = 0; i < 261; i++) {
- if (jj_la1[i] == jj_gen) {
- for (int j = 0; j < 32; j++) {
- if ((jj_la1_0[i] & (1<<j)) != 0) {
- la1tokens[j] = true;
- }
- if ((jj_la1_1[i] & (1<<j)) != 0) {
- la1tokens[32+j] = true;
- }
- if ((jj_la1_2[i] & (1<<j)) != 0) {
- la1tokens[64+j] = true;
- }
- if ((jj_la1_3[i] & (1<<j)) != 0) {
- la1tokens[96+j] = true;
- }
- }
- }
- }
- for (int i = 0; i < 122; i++) {
- if (la1tokens[i]) {
- jj_expentry = new int[1];
- jj_expentry[0] = i;
- jj_expentries.add(jj_expentry);
- }
- }
- jj_endpos = 0;
- jj_rescan_token();
- jj_add_error_token(0, 0);
- int[][] exptokseq = new int[jj_expentries.size()][];
- for (int i = 0; i < jj_expentries.size(); i++) {
- exptokseq[i] = jj_expentries.get(i);
- }
- return new ParseException(token, exptokseq, tokenImage);
- }
-
- /** Enable tracing. */
- final public void enable_tracing() {
- }
-
- /** Disable tracing. */
- final public void disable_tracing() {
- }
-
- private void jj_rescan_token() {
- jj_rescan = true;
- for (int i = 0; i < 9; i++) {
- try {
- JJCalls p = jj_2_rtns[i];
- do {
- if (p.gen > jj_gen) {
- jj_la = p.arg; jj_lastpos = jj_scanpos = p.first;
- switch (i) {
- case 0: jj_3_1(); break;
- case 1: jj_3_2(); break;
- case 2: jj_3_3(); break;
- case 3: jj_3_4(); break;
- case 4: jj_3_5(); break;
- case 5: jj_3_6(); break;
- case 6: jj_3_7(); break;
- case 7: jj_3_8(); break;
- case 8: jj_3_9(); break;
- }
- }
- p = p.next;
- } while (p != null);
- } catch(LookaheadSuccess ls) { }
- }
- jj_rescan = false;
- }
-
- private void jj_save(int index, int xla) {
- JJCalls p = jj_2_rtns[index];
- while (p.gen > jj_gen) {
- if (p.next == null) { p = p.next = new JJCalls(); break; }
- p = p.next;
- }
- p.gen = jj_gen + xla - jj_la; p.first = token; p.arg = xla;
- }
-
- static final class JJCalls {
- int gen;
- Token first;
- int arg;
- JJCalls next;
- }
-
-}
+ */
+ final public void _parseRule() throws ParseException {
+ String ret = null;
+ label_171:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[252] = jj_gen;
+ break label_171;
+ }
+ jj_consume_token(S);
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case IMPORT_SYM:
+ importDeclaration();
+ break;
+ case DEBUG_SYM:
+ case WARN_SYM:
+ debuggingDirective();
+ break;
+ case PLUS:
+ case PRECEDES:
+ case SIBLING:
+ case LBRACKET:
+ case ANY:
+ case PARENT:
+ case DOT:
+ case COLON:
+ case INTERPOLATION:
+ case IDENT:
+ case HASH:
+ styleRule();
+ break;
+ case MEDIA_SYM:
+ media();
+ break;
+ case PAGE_SYM:
+ page();
+ break;
+ case FONT_FACE_SYM:
+ fontFace();
+ break;
+ default:
+ jj_la1[253] = jj_gen;
+ ret = skipStatement();
+ if ((ret == null) || (ret.length() == 0)) {
+ {if (true) return;}
+ }
+ if (ret.charAt(0) == '@') {
+ documentHandler.unrecognizedRule(ret);
+ } else {
+ {if (true) throw new CSSParseException("unrecognize rule: " + ret,
+ getLocator());}
+ }
+ }
+ }
+
+ final public void _parseImportRule() throws ParseException {
+ label_172:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[254] = jj_gen;
+ break label_172;
+ }
+ jj_consume_token(S);
+ }
+ importDeclaration();
+ }
+
+ final public void _parseMediaRule() throws ParseException {
+ label_173:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[255] = jj_gen;
+ break label_173;
+ }
+ jj_consume_token(S);
+ }
+ media();
+ }
+
+ final public void _parseDeclarationBlock() throws ParseException {
+ label_174:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[256] = jj_gen;
+ break label_174;
+ }
+ jj_consume_token(S);
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case INTERPOLATION:
+ case IDENT:
+ declaration();
+ break;
+ default:
+ jj_la1[257] = jj_gen;
+ ;
+ }
+ label_175:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case SEMICOLON:
+ ;
+ break;
+ default:
+ jj_la1[258] = jj_gen;
+ break label_175;
+ }
+ jj_consume_token(SEMICOLON);
+ label_176:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[259] = jj_gen;
+ break label_176;
+ }
+ jj_consume_token(S);
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case INTERPOLATION:
+ case IDENT:
+ declaration();
+ break;
+ default:
+ jj_la1[260] = jj_gen;
+ ;
+ }
+ }
+ }
+
+ final public ArrayList<String> _parseSelectors() throws ParseException {
+ ArrayList<String> p = null;
+ try {
+ label_177:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case S:
+ ;
+ break;
+ default:
+ jj_la1[261] = jj_gen;
+ break label_177;
+ }
+ jj_consume_token(S);
+ }
+ p = selectorList();
+ {if (true) return p;}
+ } catch (ThrowedParseException e) {
+ {if (true) throw (ParseException) e.e.fillInStackTrace();}
+ }
+ throw new Error("Missing return statement in function");
+ }
+
+ private boolean jj_2_1(int xla) {
+ jj_la = xla; jj_lastpos = jj_scanpos = token;
+ try { return !jj_3_1(); }
+ catch(LookaheadSuccess ls) { return true; }
+ finally { jj_save(0, xla); }
+ }
+
+ private boolean jj_2_2(int xla) {
+ jj_la = xla; jj_lastpos = jj_scanpos = token;
+ try { return !jj_3_2(); }
+ catch(LookaheadSuccess ls) { return true; }
+ finally { jj_save(1, xla); }
+ }
+
+ private boolean jj_2_3(int xla) {
+ jj_la = xla; jj_lastpos = jj_scanpos = token;
+ try { return !jj_3_3(); }
+ catch(LookaheadSuccess ls) { return true; }
+ finally { jj_save(2, xla); }
+ }
+
+ private boolean jj_2_4(int xla) {
+ jj_la = xla; jj_lastpos = jj_scanpos = token;
+ try { return !jj_3_4(); }
+ catch(LookaheadSuccess ls) { return true; }
+ finally { jj_save(3, xla); }
+ }
+
+ private boolean jj_2_5(int xla) {
+ jj_la = xla; jj_lastpos = jj_scanpos = token;
+ try { return !jj_3_5(); }
+ catch(LookaheadSuccess ls) { return true; }
+ finally { jj_save(4, xla); }
+ }
+
+ private boolean jj_2_6(int xla) {
+ jj_la = xla; jj_lastpos = jj_scanpos = token;
+ try { return !jj_3_6(); }
+ catch(LookaheadSuccess ls) { return true; }
+ finally { jj_save(5, xla); }
+ }
+
+ private boolean jj_2_7(int xla) {
+ jj_la = xla; jj_lastpos = jj_scanpos = token;
+ try { return !jj_3_7(); }
+ catch(LookaheadSuccess ls) { return true; }
+ finally { jj_save(6, xla); }
+ }
+
+ private boolean jj_2_8(int xla) {
+ jj_la = xla; jj_lastpos = jj_scanpos = token;
+ try { return !jj_3_8(); }
+ catch(LookaheadSuccess ls) { return true; }
+ finally { jj_save(7, xla); }
+ }
+
+ private boolean jj_2_9(int xla) {
+ jj_la = xla; jj_lastpos = jj_scanpos = token;
+ try { return !jj_3_9(); }
+ catch(LookaheadSuccess ls) { return true; }
+ finally { jj_save(8, xla); }
+ }
+
+ private boolean jj_3R_252() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_263()) {
+ jj_scanpos = xsp;
+ if (jj_3R_264()) return true;
+ }
+ return false;
+ }
+
+ private boolean jj_3R_263() {
+ if (jj_scan_token(IDENT)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_204() {
+ Token xsp;
+ if (jj_3R_252()) return true;
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_3R_252()) { jj_scanpos = xsp; break; }
+ }
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_scan_token(1)) { jj_scanpos = xsp; break; }
+ }
+ return false;
+ }
+
+ private boolean jj_3R_214() {
+ if (jj_scan_token(MINUS)) return true;
+ Token xsp;
+ if (jj_scan_token(1)) return true;
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_scan_token(1)) { jj_scanpos = xsp; break; }
+ }
+ return false;
+ }
+
+ private boolean jj_3R_190() {
+ if (jj_3R_215()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_213() {
+ if (jj_scan_token(PLUS)) return true;
+ Token xsp;
+ if (jj_scan_token(1)) return true;
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_scan_token(1)) { jj_scanpos = xsp; break; }
+ }
+ return false;
+ }
+
+ private boolean jj_3R_212() {
+ if (jj_scan_token(MOD)) return true;
+ Token xsp;
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_scan_token(1)) { jj_scanpos = xsp; break; }
+ }
+ return false;
+ }
+
+ private boolean jj_3R_211() {
+ if (jj_scan_token(ANY)) return true;
+ Token xsp;
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_scan_token(1)) { jj_scanpos = xsp; break; }
+ }
+ return false;
+ }
+
+ private boolean jj_3R_210() {
+ if (jj_scan_token(DIV)) return true;
+ Token xsp;
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_scan_token(1)) { jj_scanpos = xsp; break; }
+ }
+ return false;
+ }
+
+ private boolean jj_3R_209() {
+ if (jj_scan_token(COMMA)) return true;
+ Token xsp;
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_scan_token(1)) { jj_scanpos = xsp; break; }
+ }
+ return false;
+ }
+
+ private boolean jj_3R_187() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_209()) {
+ jj_scanpos = xsp;
+ if (jj_3R_210()) {
+ jj_scanpos = xsp;
+ if (jj_3R_211()) {
+ jj_scanpos = xsp;
+ if (jj_3R_212()) {
+ jj_scanpos = xsp;
+ if (jj_3R_213()) {
+ jj_scanpos = xsp;
+ if (jj_3R_214()) return true;
+ }
+ }
+ }
+ }
+ }
+ return false;
+ }
+
+ private boolean jj_3R_217() {
+ if (jj_3R_216()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_216() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_scan_token(20)) {
+ jj_scanpos = xsp;
+ if (jj_scan_token(24)) {
+ jj_scanpos = xsp;
+ if (jj_scan_token(25)) return true;
+ }
+ }
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_scan_token(1)) { jj_scanpos = xsp; break; }
+ }
+ return false;
+ }
+
+ private boolean jj_3R_178() {
+ if (jj_3R_188()) return true;
+ if (jj_scan_token(COLON)) return true;
+ Token xsp;
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_scan_token(1)) { jj_scanpos = xsp; break; }
+ }
+ if (jj_3R_189()) return true;
+ xsp = jj_scanpos;
+ if (jj_3R_190()) jj_scanpos = xsp;
+ if (jj_3R_191()) return true;
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_3R_191()) { jj_scanpos = xsp; break; }
+ }
+ return false;
+ }
+
+ private boolean jj_3R_215() {
+ if (jj_scan_token(GUARDED_SYM)) return true;
+ Token xsp;
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_scan_token(1)) { jj_scanpos = xsp; break; }
+ }
+ return false;
+ }
+
+ private boolean jj_3R_193() {
+ if (jj_scan_token(S)) return true;
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_217()) jj_scanpos = xsp;
+ return false;
+ }
+
+ private boolean jj_3R_192() {
+ if (jj_3R_216()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_179() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_192()) {
+ jj_scanpos = xsp;
+ if (jj_3R_193()) return true;
+ }
+ return false;
+ }
+
+ private boolean jj_3R_199() {
+ if (jj_scan_token(VARIABLE)) return true;
+ Token xsp;
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_scan_token(1)) { jj_scanpos = xsp; break; }
+ }
+ if (jj_scan_token(COLON)) return true;
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_scan_token(1)) { jj_scanpos = xsp; break; }
+ }
+ return false;
+ }
+
+ private boolean jj_3R_181() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_199()) jj_scanpos = xsp;
+ if (jj_scan_token(CONTAINS)) return true;
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_scan_token(1)) { jj_scanpos = xsp; break; }
+ }
+ if (true) { jj_la = 0; jj_scanpos = jj_lastpos; return false;}
+ return false;
+ }
+
+ private boolean jj_3R_219() {
+ if (jj_scan_token(HASH)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_289() {
+ if (jj_scan_token(IDENT)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_290() {
+ if (jj_scan_token(FUNCTION)) return true;
+ Token xsp;
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_scan_token(1)) { jj_scanpos = xsp; break; }
+ }
+ if (true) { jj_la = 0; jj_scanpos = jj_lastpos; return false;}
+ return false;
+ }
+
+ private boolean jj_3R_288() {
+ if (jj_scan_token(COLON)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_221() {
+ if (jj_scan_token(COLON)) return true;
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_288()) jj_scanpos = xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_289()) {
+ jj_scanpos = xsp;
+ if (jj_3R_290()) return true;
+ }
+ return false;
+ }
+
+ private boolean jj_3_7() {
+ if (jj_3R_185()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_206() {
+ if (jj_scan_token(LBRACE)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_309() {
+ if (jj_scan_token(STRING)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_307() {
+ if (jj_scan_token(STARMATCH)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_308() {
+ if (jj_scan_token(IDENT)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_306() {
+ if (jj_scan_token(DOLLARMATCH)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_305() {
+ if (jj_scan_token(CARETMATCH)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_304() {
+ if (jj_scan_token(DASHMATCH)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_303() {
+ if (jj_scan_token(INCLUDES)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_270() {
+ if (jj_scan_token(INTERPOLATION)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_302() {
+ if (jj_scan_token(EQ)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_205() {
+ if (jj_3R_189()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_295() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_302()) {
+ jj_scanpos = xsp;
+ if (jj_3R_303()) {
+ jj_scanpos = xsp;
+ if (jj_3R_304()) {
+ jj_scanpos = xsp;
+ if (jj_3R_305()) {
+ jj_scanpos = xsp;
+ if (jj_3R_306()) {
+ jj_scanpos = xsp;
+ if (jj_3R_307()) return true;
+ }
+ }
+ }
+ }
+ }
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_scan_token(1)) { jj_scanpos = xsp; break; }
+ }
+ xsp = jj_scanpos;
+ if (jj_3R_308()) {
+ jj_scanpos = xsp;
+ if (jj_3R_309()) return true;
+ }
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_scan_token(1)) { jj_scanpos = xsp; break; }
+ }
+ return false;
+ }
+
+ private boolean jj_3_6() {
+ if (jj_3R_184()) return true;
+ if (jj_scan_token(LBRACE)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_222() {
+ if (jj_scan_token(LBRACKET)) return true;
+ Token xsp;
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_scan_token(1)) { jj_scanpos = xsp; break; }
+ }
+ if (jj_scan_token(IDENT)) return true;
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_scan_token(1)) { jj_scanpos = xsp; break; }
+ }
+ xsp = jj_scanpos;
+ if (jj_3R_295()) jj_scanpos = xsp;
+ if (jj_scan_token(RBRACKET)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_185() {
+ if (jj_3R_204()) return true;
+ if (jj_scan_token(COLON)) return true;
+ Token xsp;
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_scan_token(1)) { jj_scanpos = xsp; break; }
+ }
+ xsp = jj_scanpos;
+ if (jj_3R_205()) {
+ jj_scanpos = xsp;
+ if (jj_3R_206()) return true;
+ }
+ return false;
+ }
+
+ private boolean jj_3R_301() {
+ if (jj_scan_token(INTERPOLATION)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_256() {
+ if (jj_scan_token(PARENT)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_268() {
+ if (jj_3R_189()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_255() {
+ if (jj_scan_token(ANY)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_265() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_269()) {
+ jj_scanpos = xsp;
+ if (jj_3R_270()) return true;
+ }
+ return false;
+ }
+
+ private boolean jj_3R_269() {
+ if (jj_scan_token(IDENT)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_218() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_254()) {
+ jj_scanpos = xsp;
+ if (jj_3R_255()) {
+ jj_scanpos = xsp;
+ if (jj_3R_256()) return true;
+ }
+ }
+ return false;
+ }
+
+ private boolean jj_3R_254() {
+ Token xsp;
+ if (jj_3R_265()) return true;
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_3R_265()) { jj_scanpos = xsp; break; }
+ }
+ return false;
+ }
+
+ private boolean jj_3R_182() {
+ if (jj_scan_token(COMMA)) return true;
+ Token xsp;
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_scan_token(1)) { jj_scanpos = xsp; break; }
+ }
+ return false;
+ }
+
+ private boolean jj_3R_258() {
+ if (jj_scan_token(FUNCTION)) return true;
+ Token xsp;
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_scan_token(1)) { jj_scanpos = xsp; break; }
+ }
+ xsp = jj_scanpos;
+ if (jj_3R_268()) jj_scanpos = xsp;
+ if (jj_scan_token(RPARAN)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_300() {
+ if (jj_scan_token(IDENT)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_283() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_300()) {
+ jj_scanpos = xsp;
+ if (jj_3R_301()) return true;
+ }
+ return false;
+ }
+
+ private boolean jj_3R_249() {
+ if (jj_3R_262()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_299() {
+ if (jj_3R_221()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_248() {
+ if (jj_3R_261()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_247() {
+ if (jj_3R_260()) return true;
+ return false;
+ }
+
+ private boolean jj_3_5() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_182()) jj_scanpos = xsp;
+ if (jj_3R_183()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_220() {
+ if (jj_scan_token(DOT)) return true;
+ Token xsp;
+ if (jj_3R_283()) return true;
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_3R_283()) { jj_scanpos = xsp; break; }
+ }
+ return false;
+ }
+
+ private boolean jj_3R_297() {
+ if (jj_3R_220()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_292() {
+ if (jj_3R_220()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_294() {
+ if (jj_3R_221()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_282() {
+ if (jj_3R_221()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_285() {
+ if (jj_3R_220()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_287() {
+ if (jj_3R_221()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_298() {
+ if (jj_3R_222()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_275() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_296()) {
+ jj_scanpos = xsp;
+ if (jj_3R_297()) {
+ jj_scanpos = xsp;
+ if (jj_3R_298()) {
+ jj_scanpos = xsp;
+ if (jj_3R_299()) return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ private boolean jj_3R_296() {
+ if (jj_3R_219()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_274() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_291()) {
+ jj_scanpos = xsp;
+ if (jj_3R_292()) {
+ jj_scanpos = xsp;
+ if (jj_3R_293()) {
+ jj_scanpos = xsp;
+ if (jj_3R_294()) return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ private boolean jj_3R_291() {
+ if (jj_3R_219()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_279() {
+ if (jj_3R_221()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_273() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_284()) {
+ jj_scanpos = xsp;
+ if (jj_3R_285()) {
+ jj_scanpos = xsp;
+ if (jj_3R_286()) {
+ jj_scanpos = xsp;
+ if (jj_3R_287()) return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ private boolean jj_3R_284() {
+ if (jj_3R_219()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_293() {
+ if (jj_3R_222()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_281() {
+ if (jj_3R_222()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_286() {
+ if (jj_3R_222()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_272() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_280()) {
+ jj_scanpos = xsp;
+ if (jj_3R_281()) {
+ jj_scanpos = xsp;
+ if (jj_3R_282()) return true;
+ }
+ }
+ return false;
+ }
+
+ private boolean jj_3R_277() {
+ if (jj_3R_220()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_280() {
+ if (jj_3R_220()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_259() {
+ if (jj_scan_token(DOT)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_246() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_259()) jj_scanpos = xsp;
+ xsp = jj_scanpos;
+ if (jj_scan_token(74)) {
+ jj_scanpos = xsp;
+ if (jj_scan_token(51)) {
+ jj_scanpos = xsp;
+ if (jj_scan_token(52)) {
+ jj_scanpos = xsp;
+ if (jj_scan_token(54)) return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ private boolean jj_3R_198() {
+ if (jj_3R_222()) return true;
+ Token xsp;
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_3R_275()) { jj_scanpos = xsp; break; }
+ }
+ return false;
+ }
+
+ private boolean jj_3R_245() {
+ if (jj_scan_token(STRING)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_244() {
+ if (jj_3R_258()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_197() {
+ if (jj_3R_221()) return true;
+ Token xsp;
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_3R_274()) { jj_scanpos = xsp; break; }
+ }
+ return false;
+ }
+
+ private boolean jj_3R_201() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_245()) {
+ jj_scanpos = xsp;
+ if (jj_3R_246()) {
+ jj_scanpos = xsp;
+ if (jj_3R_247()) {
+ jj_scanpos = xsp;
+ if (jj_3R_248()) {
+ jj_scanpos = xsp;
+ if (jj_3R_249()) return true;
+ }
+ }
+ }
+ }
+ return false;
+ }
+
+ private boolean jj_3R_278() {
+ if (jj_3R_222()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_196() {
+ if (jj_3R_220()) return true;
+ Token xsp;
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_3R_273()) { jj_scanpos = xsp; break; }
+ }
+ return false;
+ }
+
+ private boolean jj_3R_195() {
+ if (jj_3R_219()) return true;
+ Token xsp;
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_3R_272()) { jj_scanpos = xsp; break; }
+ }
+ return false;
+ }
+
+ private boolean jj_3R_271() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_276()) {
+ jj_scanpos = xsp;
+ if (jj_3R_277()) {
+ jj_scanpos = xsp;
+ if (jj_3R_278()) {
+ jj_scanpos = xsp;
+ if (jj_3R_279()) return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ private boolean jj_3R_276() {
+ if (jj_3R_219()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_194() {
+ if (jj_3R_218()) return true;
+ Token xsp;
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_3R_271()) { jj_scanpos = xsp; break; }
+ }
+ return false;
+ }
+
+ private boolean jj_3R_180() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_194()) {
+ jj_scanpos = xsp;
+ if (jj_3R_195()) {
+ jj_scanpos = xsp;
+ if (jj_3R_196()) {
+ jj_scanpos = xsp;
+ if (jj_3R_197()) {
+ jj_scanpos = xsp;
+ if (jj_3R_198()) return true;
+ }
+ }
+ }
+ }
+ return false;
+ }
+
+ private boolean jj_3R_243() {
+ if (jj_scan_token(DIMEN)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_251() {
+ if (jj_3R_216()) return true;
+ if (jj_3R_180()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_242() {
+ if (jj_scan_token(KHZ)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_241() {
+ if (jj_scan_token(HZ)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_240() {
+ if (jj_scan_token(MS)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_239() {
+ if (jj_scan_token(SECOND)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_238() {
+ if (jj_scan_token(GRAD)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_237() {
+ if (jj_scan_token(RAD)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_236() {
+ if (jj_scan_token(DEG)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_235() {
+ if (jj_scan_token(EXS)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_234() {
+ if (jj_scan_token(REM)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_233() {
+ if (jj_scan_token(LEM)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_232() {
+ if (jj_scan_token(EMS)) return true;
+ return false;
+ }
+
+ private boolean jj_3_2() {
+ if (jj_3R_179()) return true;
+ if (jj_3R_180()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_231() {
+ if (jj_scan_token(PX)) return true;
+ return false;
+ }
+
+ private boolean jj_3_1() {
+ if (jj_3R_178()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_230() {
+ if (jj_scan_token(IN)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_203() {
+ if (jj_scan_token(COMMA)) return true;
+ Token xsp;
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_scan_token(1)) { jj_scanpos = xsp; break; }
+ }
+ if (jj_3R_202()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_250() {
+ if (jj_3R_180()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_229() {
+ if (jj_scan_token(PC)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_228() {
+ if (jj_scan_token(MM)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_202() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_250()) {
+ jj_scanpos = xsp;
+ if (jj_3R_251()) return true;
+ }
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_3_2()) { jj_scanpos = xsp; break; }
+ }
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_scan_token(1)) { jj_scanpos = xsp; break; }
+ }
+ return false;
+ }
+
+ private boolean jj_3R_227() {
+ if (jj_scan_token(CM)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_226() {
+ if (jj_scan_token(PT)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_225() {
+ if (jj_scan_token(PERCENTAGE)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_208() {
+ if (jj_3R_253()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_224() {
+ if (jj_scan_token(NUMBER)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_223() {
+ if (jj_3R_257()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_184() {
+ if (jj_3R_202()) return true;
+ Token xsp;
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_3R_203()) { jj_scanpos = xsp; break; }
+ }
+ return false;
+ }
+
+ private boolean jj_3R_200() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_223()) jj_scanpos = xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_224()) {
+ jj_scanpos = xsp;
+ if (jj_3R_225()) {
+ jj_scanpos = xsp;
+ if (jj_3R_226()) {
+ jj_scanpos = xsp;
+ if (jj_3R_227()) {
+ jj_scanpos = xsp;
+ if (jj_3R_228()) {
+ jj_scanpos = xsp;
+ if (jj_3R_229()) {
+ jj_scanpos = xsp;
+ if (jj_3R_230()) {
+ jj_scanpos = xsp;
+ if (jj_3R_231()) {
+ jj_scanpos = xsp;
+ if (jj_3R_232()) {
+ jj_scanpos = xsp;
+ if (jj_3R_233()) {
+ jj_scanpos = xsp;
+ if (jj_3R_234()) {
+ jj_scanpos = xsp;
+ if (jj_3R_235()) {
+ jj_scanpos = xsp;
+ if (jj_3R_236()) {
+ jj_scanpos = xsp;
+ if (jj_3R_237()) {
+ jj_scanpos = xsp;
+ if (jj_3R_238()) {
+ jj_scanpos = xsp;
+ if (jj_3R_239()) {
+ jj_scanpos = xsp;
+ if (jj_3R_240()) {
+ jj_scanpos = xsp;
+ if (jj_3R_241()) {
+ jj_scanpos = xsp;
+ if (jj_3R_242()) {
+ jj_scanpos = xsp;
+ if (jj_3R_243()) {
+ jj_scanpos = xsp;
+ if (jj_3R_244()) return true;
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ return false;
+ }
+
+ private boolean jj_3R_183() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_200()) {
+ jj_scanpos = xsp;
+ if (jj_3R_201()) return true;
+ }
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_scan_token(1)) { jj_scanpos = xsp; break; }
+ }
+ return false;
+ }
+
+ private boolean jj_3R_260() {
+ if (jj_scan_token(HASH)) return true;
+ return false;
+ }
+
+ private boolean jj_3_4() {
+ if (jj_3R_181()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_253() {
+ if (jj_3R_188()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_261() {
+ if (jj_scan_token(URL)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_207() {
+ if (jj_3R_183()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_186() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_207()) {
+ jj_scanpos = xsp;
+ if (jj_3R_208()) return true;
+ }
+ return false;
+ }
+
+ private boolean jj_3R_264() {
+ if (jj_scan_token(INTERPOLATION)) return true;
+ return false;
+ }
+
+ private boolean jj_3_9() {
+ if (jj_3R_187()) return true;
+ return false;
+ }
+
+ private boolean jj_3_3() {
+ if (jj_3R_178()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_267() {
+ if (jj_scan_token(PLUS)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_257() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_266()) {
+ jj_scanpos = xsp;
+ if (jj_3R_267()) return true;
+ }
+ return false;
+ }
+
+ private boolean jj_3R_266() {
+ if (jj_scan_token(MINUS)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_262() {
+ if (jj_scan_token(UNICODERANGE)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_191() {
+ if (jj_scan_token(SEMICOLON)) return true;
+ Token xsp;
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_scan_token(1)) { jj_scanpos = xsp; break; }
+ }
+ return false;
+ }
+
+ private boolean jj_3_8() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3_9()) jj_scanpos = xsp;
+ if (jj_3R_186()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_189() {
+ if (jj_3R_186()) return true;
+ Token xsp;
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_3_8()) { jj_scanpos = xsp; break; }
+ }
+ return false;
+ }
+
+ private boolean jj_3R_188() {
+ if (jj_scan_token(VARIABLE)) return true;
+ Token xsp;
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_scan_token(1)) { jj_scanpos = xsp; break; }
+ }
+ return false;
+ }
+
+ /** Generated Token Manager. */
+ public ParserTokenManager token_source;
+ /** Current token. */
+ public Token token;
+ /** Next token. */
+ public Token jj_nt;
+ private int jj_ntk;
+ private Token jj_scanpos, jj_lastpos;
+ private int jj_la;
+ private int jj_gen;
+ final private int[] jj_la1 = new int[262];
+ static private int[] jj_la1_0;
+ static private int[] jj_la1_1;
+ static private int[] jj_la1_2;
+ static private int[] jj_la1_3;
+ static {
+ jj_la1_init_0();
+ jj_la1_init_1();
+ jj_la1_init_2();
+ jj_la1_init_3();
+ }
+ private static void jj_la1_init_0() {
+ jj_la1_0 = new int[] {0x0,0xc02,0xc02,0x0,0xc00,0x2,0x2,0x2,0x53100000,0x0,0xc00,0x2,0xc00,0x2,0x0,0x2,0x0,0x2,0x2,0x0,0x0,0x2,0x2,0x0,0x2,0x0,0x2,0x2,0x53100000,0x53100000,0x2,0x2,0x2,0x53f45400,0x53f45400,0x2,0x400000,0x2,0x2,0x2,0x2,0x0,0x0,0x2,0x0,0x800000,0x2,0x0,0x2,0x2,0x2,0x2,0x0,0x800000,0x2,0x0,0x2,0xe45400,0x3100000,0x3100002,0x3100000,0x2,0x2,0x480002,0x480002,0x2,0x0,0x0,0x2,0x2,0x2,0x2,0x53100000,0x53100000,0x2,0x400000,0x2,0x53100000,0x2,0x10000000,0x10000000,0x10000000,0x10000000,0x10000000,0x10000000,0x10000000,0x10000000,0x10000000,0x10000000,0x50000000,0x0,0x0,0x0,0x0,0x40000000,0x2,0x2,0xfc000,0x2,0x0,0x2,0xfc000,0x0,0x2,0x0,0x2,0x0,0x2,0x800000,0x0,0x53100000,0x0,0x4d380002,0x2,0x53100000,0x2,0x0,0x2,0x4d380002,0x0,0x2,0x53100000,0x2,0x4d380002,0x2,0x2,0x2,0x0,0x2,0x53100000,0x2,0x2,0x400000,0x2,0x2,0x2,0x2,0x0,0x2,0x53100000,0x53100000,0x2,0x400000,0x2,0x2,0x2,0x400000,0x0,0x0,0x300000,0x2,0x0,0x400000,0x2,0x300000,0x2,0x0,0x2,0x0,0x2,0x800000,0x2,0x53100000,0x2,0x801000,0x2,0x2,0x0,0x2,0x0,0x2,0x2,0x2,0x400000,0x2,0x2,0x2,0x2,0x2,0x0,0x2,0x2,0x2,0x400000,0x2,0x2,0x2,0x0,0x2,0x2,0x2,0x400000,0x2,0x2,0x0,0x2,0x0,0x2,0x2,0x2,0x400000,0x0,0x2,0x2,0x0,0x2,0x2,0x2,0x800000,0x2,0x2,0x800000,0x2,0x2,0x0,0x800000,0x2,0x0,0x2,0x0,0x53100000,0x2,0x0,0x2,0x0,0x800000,0x2,0x0,0x2,0x301000,0x2,0x0,0x2,0x2,0x2,0x2,0x2,0x2,0x2,0x2,0xc8700000,0x300000,0x300000,0x300000,0x0,0x0,0x0,0x0,0x300000,0x2,0x2,0x300000,0x2,0x53100000,0x2,0x2,0x2,0x0,0x800000,0x2,0x0,0x2,};
+ }
+ private static void jj_la1_init_1() {
+ jj_la1_1 = new int[] {0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x59800303,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x200,0x200,0x0,0x0,0x480000,0x0,0x480000,0x0,0x0,0x59000303,0x59000303,0x0,0x0,0x0,0x18000703,0x18000703,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x100,0x0,0x200,0x0,0x0,0x200,0x0,0x0,0x0,0x0,0x200,0x0,0x0,0x200,0x0,0x400,0x0,0x0,0x0,0x0,0x0,0x30a,0x30a,0x0,0x200,0x200,0x0,0x0,0x0,0x0,0x59000303,0x59000303,0x0,0x0,0x0,0x303,0x0,0x102,0x102,0x102,0x102,0x102,0x102,0x102,0x102,0x102,0x102,0x303,0x200,0x200,0x200,0x200,0x201,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x100,0x0,0x0,0x0,0x0,0x0,0x0,0x40000000,0x19000303,0x0,0xfc,0x0,0x19000303,0x0,0x0,0x0,0xfc,0x0,0x0,0x19000303,0x0,0xfc,0x0,0x0,0x0,0x0,0x0,0x19000303,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x200,0x0,0x59000303,0x59000303,0x0,0x0,0x0,0x0,0x0,0x0,0x100,0x100,0x580102,0x0,0x100,0x0,0x0,0x580102,0x0,0x100,0x0,0x200,0x0,0x0,0x0,0x18000303,0x0,0x0,0x0,0x0,0x0,0x0,0x8,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x8,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x8,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x8,0x0,0x0,0x0,0x0,0x18000000,0x0,0x0,0x180000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x200,0x0,0x0,0x200,0x0,0x18000000,0x303,0x0,0x0,0x0,0x200,0x0,0x0,0x200,0x0,0x580002,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x580002,0x0,0x0,0x2,0x580000,0x580002,0x580002,0x0,0x0,0x580002,0x0,0x18000303,0x0,0x0,0x0,0x200,0x0,0x0,0x200,0x0,};
+ }
+ private static void jj_la1_init_2() {
+ jj_la1_2 = new int[] {0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x401,0x4000,0x0,0x0,0x0,0x0,0x2200,0x0,0x400,0x0,0x0,0x400,0x400,0x0,0x0,0x8000,0x0,0x8000,0x0,0x0,0x4465,0x4465,0x0,0x0,0x0,0xae00,0xae00,0x0,0x0,0x0,0x0,0x0,0x0,0x400,0x0,0x0,0x400,0x0,0x0,0x400,0x0,0x0,0x0,0x0,0x400,0x0,0x0,0x400,0x0,0xaa00,0x0,0x0,0x0,0x0,0x0,0xe00,0xe00,0x0,0x400,0x400,0x0,0x0,0x0,0x0,0x4465,0x4465,0x0,0x0,0x0,0x400,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x400,0x400,0x400,0x400,0x400,0x400,0x0,0x0,0x0,0x0,0x600,0x0,0x0,0x0,0x0,0x400,0x0,0x100,0x0,0x0,0x1,0x424,0x4000,0x4c00,0x0,0x4424,0x0,0x2,0x0,0x4c00,0x80,0x0,0x4424,0x0,0x4c00,0x0,0x0,0x0,0x4400,0x0,0x4424,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x400,0x0,0x4425,0x4425,0x0,0x0,0x0,0x0,0x0,0x0,0x4000,0x4000,0xffffee00,0x0,0x0,0x0,0x0,0xffffee00,0x0,0x0,0x0,0x4400,0x0,0x0,0x0,0x400,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x4000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x400,0x0,0x0,0x400,0x0,0x0,0x400,0x0,0x0,0x0,0x400,0x0,0x0,0x400,0x0,0xffffee00,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xffffee00,0x0,0xffff8800,0x0,0x400,0x2600,0xffffae00,0x0,0x0,0xffffee00,0x0,0x400,0x0,0x0,0x0,0x400,0x0,0x0,0x400,0x0,};
+ }
+ private static void jj_la1_init_3() {
+ jj_la1_3 = new int[] {0x20,0x200,0x200,0x8,0x200,0x0,0x0,0x0,0x1d4,0x0,0x200,0x0,0x200,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x114,0x114,0x0,0x0,0x0,0x31006fc,0x31006fc,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x31006f8,0x0,0x0,0x0,0x0,0x0,0x1000000,0x1000000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x114,0x114,0x0,0x0,0x0,0x4,0x0,0x4,0x4,0x0,0x0,0x4,0x4,0x4,0x4,0x4,0x4,0x4,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1000000,0x0,0x0,0x0,0x0,0x0,0x114,0x0,0x800000,0x0,0x114,0x0,0x0,0x0,0x800000,0x0,0x0,0x114,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x114,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1000000,0x0,0x1d4,0x1d4,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1100007,0x0,0x0,0x0,0x0,0x1100007,0x0,0x0,0x0,0x1000000,0x0,0x0,0x0,0x4,0x0,0x0,0x0,0x0,0xe00000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x4,0x0,0x400,0x0,0x0,0x0,0x0,0x0,0x0,0x1100007,0x0,0x400,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1100007,0x0,0x1000003,0x0,0x0,0x100004,0x1100007,0x0,0x0,0x1100007,0x0,0xdc,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,};
+ }
+ final private JJCalls[] jj_2_rtns = new JJCalls[9];
+ private boolean jj_rescan = false;
+ private int jj_gc = 0;
+
+ /** Constructor with user supplied CharStream. */
+ public Parser(CharStream stream) {
+ token_source = new ParserTokenManager(stream);
+ token = new Token();
+ jj_ntk = -1;
+ jj_gen = 0;
+ for (int i = 0; i < 262; i++) jj_la1[i] = -1;
+ for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
+ }
+
+ /** Reinitialise. */
+ public void ReInit(CharStream stream) {
+ token_source.ReInit(stream);
+ token = new Token();
+ jj_ntk = -1;
+ jj_gen = 0;
+ for (int i = 0; i < 262; i++) jj_la1[i] = -1;
+ for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
+ }
+
+ /** Constructor with generated Token Manager. */
+ public Parser(ParserTokenManager tm) {
+ token_source = tm;
+ token = new Token();
+ jj_ntk = -1;
+ jj_gen = 0;
+ for (int i = 0; i < 262; i++) jj_la1[i] = -1;
+ for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
+ }
+
+ /** Reinitialise. */
+ public void ReInit(ParserTokenManager tm) {
+ token_source = tm;
+ token = new Token();
+ jj_ntk = -1;
+ jj_gen = 0;
+ for (int i = 0; i < 262; i++) jj_la1[i] = -1;
+ for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
+ }
+
+ private Token jj_consume_token(int kind) throws ParseException {
+ Token oldToken;
+ if ((oldToken = token).next != null) token = token.next;
+ else token = token.next = token_source.getNextToken();
+ jj_ntk = -1;
+ if (token.kind == kind) {
+ jj_gen++;
+ if (++jj_gc > 100) {
+ jj_gc = 0;
+ for (int i = 0; i < jj_2_rtns.length; i++) {
+ JJCalls c = jj_2_rtns[i];
+ while (c != null) {
+ if (c.gen < jj_gen) c.first = null;
+ c = c.next;
+ }
+ }
+ }
+ return token;
+ }
+ token = oldToken;
+ jj_kind = kind;
+ throw generateParseException();
+ }
+
+ static private final class LookaheadSuccess extends java.lang.Error { }
+ final private LookaheadSuccess jj_ls = new LookaheadSuccess();
+ private boolean jj_scan_token(int kind) {
+ if (jj_scanpos == jj_lastpos) {
+ jj_la--;
+ if (jj_scanpos.next == null) {
+ jj_lastpos = jj_scanpos = jj_scanpos.next = token_source.getNextToken();
+ } else {
+ jj_lastpos = jj_scanpos = jj_scanpos.next;
+ }
+ } else {
+ jj_scanpos = jj_scanpos.next;
+ }
+ if (jj_rescan) {
+ int i = 0; Token tok = token;
+ while (tok != null && tok != jj_scanpos) { i++; tok = tok.next; }
+ if (tok != null) jj_add_error_token(kind, i);
+ }
+ if (jj_scanpos.kind != kind) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) throw jj_ls;
+ return false;
+ }
+
+
+/** Get the next Token. */
+ final public Token getNextToken() {
+ if (token.next != null) token = token.next;
+ else token = token.next = token_source.getNextToken();
+ jj_ntk = -1;
+ jj_gen++;
+ return token;
+ }
+
+/** Get the specific Token. */
+ final public Token getToken(int index) {
+ Token t = token;
+ for (int i = 0; i < index; i++) {
+ if (t.next != null) t = t.next;
+ else t = t.next = token_source.getNextToken();
+ }
+ return t;
+ }
+
+ private int jj_ntk() {
+ if ((jj_nt=token.next) == null)
+ return (jj_ntk = (token.next=token_source.getNextToken()).kind);
+ else
+ return (jj_ntk = jj_nt.kind);
+ }
+
+ private java.util.List<int[]> jj_expentries = new java.util.ArrayList<int[]>();
+ private int[] jj_expentry;
+ private int jj_kind = -1;
+ private int[] jj_lasttokens = new int[100];
+ private int jj_endpos;
+
+ private void jj_add_error_token(int kind, int pos) {
+ if (pos >= 100) return;
+ if (pos == jj_endpos + 1) {
+ jj_lasttokens[jj_endpos++] = kind;
+ } else if (jj_endpos != 0) {
+ jj_expentry = new int[jj_endpos];
+ for (int i = 0; i < jj_endpos; i++) {
+ jj_expentry[i] = jj_lasttokens[i];
+ }
+ jj_entries_loop: for (java.util.Iterator<?> it = jj_expentries.iterator(); it.hasNext();) {
+ int[] oldentry = (int[])(it.next());
+ if (oldentry.length == jj_expentry.length) {
+ for (int i = 0; i < jj_expentry.length; i++) {
+ if (oldentry[i] != jj_expentry[i]) {
+ continue jj_entries_loop;
+ }
+ }
+ jj_expentries.add(jj_expentry);
+ break jj_entries_loop;
+ }
+ }
+ if (pos != 0) jj_lasttokens[(jj_endpos = pos) - 1] = kind;
+ }
+ }
+
+ /** Generate ParseException. */
+ public ParseException generateParseException() {
+ jj_expentries.clear();
+ boolean[] la1tokens = new boolean[122];
+ if (jj_kind >= 0) {
+ la1tokens[jj_kind] = true;
+ jj_kind = -1;
+ }
+ for (int i = 0; i < 262; i++) {
+ if (jj_la1[i] == jj_gen) {
+ for (int j = 0; j < 32; j++) {
+ if ((jj_la1_0[i] & (1<<j)) != 0) {
+ la1tokens[j] = true;
+ }
+ if ((jj_la1_1[i] & (1<<j)) != 0) {
+ la1tokens[32+j] = true;
+ }
+ if ((jj_la1_2[i] & (1<<j)) != 0) {
+ la1tokens[64+j] = true;
+ }
+ if ((jj_la1_3[i] & (1<<j)) != 0) {
+ la1tokens[96+j] = true;
+ }
+ }
+ }
+ }
+ for (int i = 0; i < 122; i++) {
+ if (la1tokens[i]) {
+ jj_expentry = new int[1];
+ jj_expentry[0] = i;
+ jj_expentries.add(jj_expentry);
+ }
+ }
+ jj_endpos = 0;
+ jj_rescan_token();
+ jj_add_error_token(0, 0);
+ int[][] exptokseq = new int[jj_expentries.size()][];
+ for (int i = 0; i < jj_expentries.size(); i++) {
+ exptokseq[i] = jj_expentries.get(i);
+ }
+ return new ParseException(token, exptokseq, tokenImage);
+ }
+
+ /** Enable tracing. */
+ final public void enable_tracing() {
+ }
+
+ /** Disable tracing. */
+ final public void disable_tracing() {
+ }
+
+ private void jj_rescan_token() {
+ jj_rescan = true;
+ for (int i = 0; i < 9; i++) {
+ try {
+ JJCalls p = jj_2_rtns[i];
+ do {
+ if (p.gen > jj_gen) {
+ jj_la = p.arg; jj_lastpos = jj_scanpos = p.first;
+ switch (i) {
+ case 0: jj_3_1(); break;
+ case 1: jj_3_2(); break;
+ case 2: jj_3_3(); break;
+ case 3: jj_3_4(); break;
+ case 4: jj_3_5(); break;
+ case 5: jj_3_6(); break;
+ case 6: jj_3_7(); break;
+ case 7: jj_3_8(); break;
+ case 8: jj_3_9(); break;
+ }
+ }
+ p = p.next;
+ } while (p != null);
+ } catch(LookaheadSuccess ls) { }
+ }
+ jj_rescan = false;
+ }
+
+ private void jj_save(int index, int xla) {
+ JJCalls p = jj_2_rtns[index];
+ while (p.gen > jj_gen) {
+ if (p.next == null) { p = p.next = new JJCalls(); break; }
+ p = p.next;
+ }
+ p.gen = jj_gen + xla - jj_la; p.first = token; p.arg = xla;
+ }
+
+ static final class JJCalls {
+ int gen;
+ Token first;
+ int arg;
+ JJCalls next;
+ }
+
+}
diff --git a/theme-compiler/src/com/vaadin/sass/internal/parser/Parser.jj b/theme-compiler/src/com/vaadin/sass/internal/parser/Parser.jj
index 0b664bedc6..91fa3698f4 100644
--- a/theme-compiler/src/com/vaadin/sass/internal/parser/Parser.jj
+++ b/theme-compiler/src/com/vaadin/sass/internal/parser/Parser.jj
@@ -2375,7 +2375,7 @@ LexicalUnitImpl nonVariableTerm(LexicalUnitImpl prev) : { LexicalUnitImpl result
LexicalUnitImpl.createString(n.beginLine, n.beginColumn, prev,
convertStringIndex(n.image, 1,
n.image.length() -1));}
- | (< DOT >{ s+="."; })?n=<IDENT>
+ | (< DOT >{ s+="."; })?(n=<IDENT> | n=<TO> | n=<THROUGH> | n=<FROM>)
{ s += convertIdent(n.image);
if ("inherit".equals(s)) {
result = LexicalUnitImpl.createInherit(n.beginLine, n.beginColumn,
diff --git a/theme-compiler/src/com/vaadin/sass/internal/parser/ParserConstants.java b/theme-compiler/src/com/vaadin/sass/internal/parser/ParserConstants.java
index 90fe640f8b..394a66fbb6 100644
--- a/theme-compiler/src/com/vaadin/sass/internal/parser/ParserConstants.java
+++ b/theme-compiler/src/com/vaadin/sass/internal/parser/ParserConstants.java
@@ -1,379 +1,379 @@
-/* Generated By:JavaCC: Do not edit this line. ParserConstants.java */
-package com.vaadin.sass.internal.parser;
-
-
-/**
- * Token literal values and constants.
- * Generated by org.javacc.parser.OtherFilesGen#start()
- */
-public interface ParserConstants {
-
- /** End of File. */
- int EOF = 0;
- /** RegularExpression Id. */
- int S = 1;
- /** RegularExpression Id. */
- int FORMAL_COMMENT = 7;
- /** RegularExpression Id. */
- int MULTI_LINE_COMMENT = 8;
- /** RegularExpression Id. */
- int CDO = 10;
- /** RegularExpression Id. */
- int CDC = 11;
- /** RegularExpression Id. */
- int LBRACE = 12;
- /** RegularExpression Id. */
- int RBRACE = 13;
- /** RegularExpression Id. */
- int DASHMATCH = 14;
- /** RegularExpression Id. */
- int CARETMATCH = 15;
- /** RegularExpression Id. */
- int DOLLARMATCH = 16;
- /** RegularExpression Id. */
- int STARMATCH = 17;
- /** RegularExpression Id. */
- int INCLUDES = 18;
- /** RegularExpression Id. */
- int EQ = 19;
- /** RegularExpression Id. */
- int PLUS = 20;
- /** RegularExpression Id. */
- int MINUS = 21;
- /** RegularExpression Id. */
- int COMMA = 22;
- /** RegularExpression Id. */
- int SEMICOLON = 23;
- /** RegularExpression Id. */
- int PRECEDES = 24;
- /** RegularExpression Id. */
- int SIBLING = 25;
- /** RegularExpression Id. */
- int SUCCEEDS = 26;
- /** RegularExpression Id. */
- int DIV = 27;
- /** RegularExpression Id. */
- int LBRACKET = 28;
- /** RegularExpression Id. */
- int RBRACKET = 29;
- /** RegularExpression Id. */
- int ANY = 30;
- /** RegularExpression Id. */
- int MOD = 31;
- /** RegularExpression Id. */
- int PARENT = 32;
- /** RegularExpression Id. */
- int DOT = 33;
- /** RegularExpression Id. */
- int LPARAN = 34;
- /** RegularExpression Id. */
- int RPARAN = 35;
- /** RegularExpression Id. */
- int COMPARE = 36;
- /** RegularExpression Id. */
- int OR = 37;
- /** RegularExpression Id. */
- int AND = 38;
- /** RegularExpression Id. */
- int NOT_EQ = 39;
- /** RegularExpression Id. */
- int COLON = 40;
- /** RegularExpression Id. */
- int INTERPOLATION = 41;
- /** RegularExpression Id. */
- int NONASCII = 42;
- /** RegularExpression Id. */
- int H = 43;
- /** RegularExpression Id. */
- int UNICODE = 44;
- /** RegularExpression Id. */
- int ESCAPE = 45;
- /** RegularExpression Id. */
- int NMSTART = 46;
- /** RegularExpression Id. */
- int NMCHAR = 47;
- /** RegularExpression Id. */
- int STRINGCHAR = 48;
- /** RegularExpression Id. */
- int D = 49;
- /** RegularExpression Id. */
- int NAME = 50;
- /** RegularExpression Id. */
- int TO = 51;
- /** RegularExpression Id. */
- int THROUGH = 52;
- /** RegularExpression Id. */
- int EACH_IN = 53;
- /** RegularExpression Id. */
- int FROM = 54;
- /** RegularExpression Id. */
- int MIXIN_SYM = 55;
- /** RegularExpression Id. */
- int INCLUDE_SYM = 56;
- /** RegularExpression Id. */
- int FUNCTION_SYM = 57;
- /** RegularExpression Id. */
- int RETURN_SYM = 58;
- /** RegularExpression Id. */
- int DEBUG_SYM = 59;
- /** RegularExpression Id. */
- int WARN_SYM = 60;
- /** RegularExpression Id. */
- int FOR_SYM = 61;
- /** RegularExpression Id. */
- int EACH_SYM = 62;
- /** RegularExpression Id. */
- int WHILE_SYM = 63;
- /** RegularExpression Id. */
- int IF_SYM = 64;
- /** RegularExpression Id. */
- int ELSE_SYM = 65;
- /** RegularExpression Id. */
- int EXTEND_SYM = 66;
- /** RegularExpression Id. */
- int MOZ_DOCUMENT_SYM = 67;
- /** RegularExpression Id. */
- int SUPPORTS_SYM = 68;
- /** RegularExpression Id. */
- int CONTENT_SYM = 69;
- /** RegularExpression Id. */
- int MICROSOFT_RULE = 70;
- /** RegularExpression Id. */
- int IF = 71;
- /** RegularExpression Id. */
- int GUARDED_SYM = 72;
- /** RegularExpression Id. */
- int STRING = 73;
- /** RegularExpression Id. */
- int IDENT = 74;
- /** RegularExpression Id. */
- int NUMBER = 75;
- /** RegularExpression Id. */
- int _URL = 76;
- /** RegularExpression Id. */
- int URL = 77;
- /** RegularExpression Id. */
- int VARIABLE = 78;
- /** RegularExpression Id. */
- int PERCENTAGE = 79;
- /** RegularExpression Id. */
- int PT = 80;
- /** RegularExpression Id. */
- int MM = 81;
- /** RegularExpression Id. */
- int CM = 82;
- /** RegularExpression Id. */
- int PC = 83;
- /** RegularExpression Id. */
- int IN = 84;
- /** RegularExpression Id. */
- int PX = 85;
- /** RegularExpression Id. */
- int EMS = 86;
- /** RegularExpression Id. */
- int LEM = 87;
- /** RegularExpression Id. */
- int REM = 88;
- /** RegularExpression Id. */
- int EXS = 89;
- /** RegularExpression Id. */
- int DEG = 90;
- /** RegularExpression Id. */
- int RAD = 91;
- /** RegularExpression Id. */
- int GRAD = 92;
- /** RegularExpression Id. */
- int MS = 93;
- /** RegularExpression Id. */
- int SECOND = 94;
- /** RegularExpression Id. */
- int HZ = 95;
- /** RegularExpression Id. */
- int KHZ = 96;
- /** RegularExpression Id. */
- int DIMEN = 97;
- /** RegularExpression Id. */
- int HASH = 98;
- /** RegularExpression Id. */
- int IMPORT_SYM = 99;
- /** RegularExpression Id. */
- int MEDIA_SYM = 100;
- /** RegularExpression Id. */
- int CHARSET_SYM = 101;
- /** RegularExpression Id. */
- int PAGE_SYM = 102;
- /** RegularExpression Id. */
- int FONT_FACE_SYM = 103;
- /** RegularExpression Id. */
- int KEY_FRAME_SYM = 104;
- /** RegularExpression Id. */
- int ATKEYWORD = 105;
- /** RegularExpression Id. */
- int IMPORTANT_SYM = 106;
- /** RegularExpression Id. */
- int RANGE0 = 107;
- /** RegularExpression Id. */
- int RANGE1 = 108;
- /** RegularExpression Id. */
- int RANGE2 = 109;
- /** RegularExpression Id. */
- int RANGE3 = 110;
- /** RegularExpression Id. */
- int RANGE4 = 111;
- /** RegularExpression Id. */
- int RANGE5 = 112;
- /** RegularExpression Id. */
- int RANGE6 = 113;
- /** RegularExpression Id. */
- int RANGE = 114;
- /** RegularExpression Id. */
- int UNI = 115;
- /** RegularExpression Id. */
- int UNICODERANGE = 116;
- /** RegularExpression Id. */
- int REMOVE = 117;
- /** RegularExpression Id. */
- int APPEND = 118;
- /** RegularExpression Id. */
- int CONTAINS = 119;
- /** RegularExpression Id. */
- int FUNCTION = 120;
- /** RegularExpression Id. */
- int UNKNOWN = 121;
-
- /** Lexical state. */
- int DEFAULT = 0;
- /** Lexical state. */
- int IN_SINGLE_LINE_COMMENT = 1;
- /** Lexical state. */
- int IN_FORMAL_COMMENT = 2;
- /** Lexical state. */
- int IN_MULTI_LINE_COMMENT = 3;
-
- /** Literal token values. */
- String[] tokenImage = {
- "<EOF>",
- "<S>",
- "\"//\"",
- "<token of kind 3>",
- "<token of kind 4>",
- "<token of kind 5>",
- "\"/*\"",
- "\"*/\"",
- "\"*/\"",
- "<token of kind 9>",
- "\"<!--\"",
- "\"-->\"",
- "\"{\"",
- "\"}\"",
- "\"|=\"",
- "\"^=\"",
- "\"$=\"",
- "\"*=\"",
- "\"~=\"",
- "\"=\"",
- "\"+\"",
- "\"-\"",
- "\",\"",
- "\";\"",
- "\">\"",
- "\"~\"",
- "\"<\"",
- "\"/\"",
- "\"[\"",
- "\"]\"",
- "\"*\"",
- "\"%\"",
- "\"&\"",
- "\".\"",
- "\"(\"",
- "\")\"",
- "\"==\"",
- "\"||\"",
- "\"&&\"",
- "\"!=\"",
- "\":\"",
- "<INTERPOLATION>",
- "<NONASCII>",
- "<H>",
- "<UNICODE>",
- "<ESCAPE>",
- "<NMSTART>",
- "<NMCHAR>",
- "<STRINGCHAR>",
- "<D>",
- "<NAME>",
- "\"to\"",
- "\"through\"",
- "\"in\"",
- "\"from\"",
- "\"@mixin\"",
- "\"@include\"",
- "\"@function\"",
- "\"@return\"",
- "\"@debug\"",
- "\"@warn\"",
- "\"@for\"",
- "\"@each\"",
- "\"@while\"",
- "\"@if\"",
- "\"@else\"",
- "\"@extend\"",
- "\"@-moz-document\"",
- "\"@supports\"",
- "\"@content\"",
- "<MICROSOFT_RULE>",
- "\"if\"",
- "<GUARDED_SYM>",
- "<STRING>",
- "<IDENT>",
- "<NUMBER>",
- "<_URL>",
- "<URL>",
- "<VARIABLE>",
- "<PERCENTAGE>",
- "<PT>",
- "<MM>",
- "<CM>",
- "<PC>",
- "<IN>",
- "<PX>",
- "<EMS>",
- "<LEM>",
- "<REM>",
- "<EXS>",
- "<DEG>",
- "<RAD>",
- "<GRAD>",
- "<MS>",
- "<SECOND>",
- "<HZ>",
- "<KHZ>",
- "<DIMEN>",
- "<HASH>",
- "\"@import\"",
- "\"@media\"",
- "\"@charset\"",
- "\"@page\"",
- "\"@font-face\"",
- "<KEY_FRAME_SYM>",
- "<ATKEYWORD>",
- "<IMPORTANT_SYM>",
- "<RANGE0>",
- "<RANGE1>",
- "<RANGE2>",
- "<RANGE3>",
- "<RANGE4>",
- "<RANGE5>",
- "<RANGE6>",
- "<RANGE>",
- "<UNI>",
- "<UNICODERANGE>",
- "<REMOVE>",
- "<APPEND>",
- "<CONTAINS>",
- "<FUNCTION>",
- "<UNKNOWN>",
- };
-
-}
+/* Generated By:JavaCC: Do not edit this line. ParserConstants.java */
+package com.vaadin.sass.internal.parser;
+
+
+/**
+ * Token literal values and constants.
+ * Generated by org.javacc.parser.OtherFilesGen#start()
+ */
+public interface ParserConstants {
+
+ /** End of File. */
+ int EOF = 0;
+ /** RegularExpression Id. */
+ int S = 1;
+ /** RegularExpression Id. */
+ int FORMAL_COMMENT = 7;
+ /** RegularExpression Id. */
+ int MULTI_LINE_COMMENT = 8;
+ /** RegularExpression Id. */
+ int CDO = 10;
+ /** RegularExpression Id. */
+ int CDC = 11;
+ /** RegularExpression Id. */
+ int LBRACE = 12;
+ /** RegularExpression Id. */
+ int RBRACE = 13;
+ /** RegularExpression Id. */
+ int DASHMATCH = 14;
+ /** RegularExpression Id. */
+ int CARETMATCH = 15;
+ /** RegularExpression Id. */
+ int DOLLARMATCH = 16;
+ /** RegularExpression Id. */
+ int STARMATCH = 17;
+ /** RegularExpression Id. */
+ int INCLUDES = 18;
+ /** RegularExpression Id. */
+ int EQ = 19;
+ /** RegularExpression Id. */
+ int PLUS = 20;
+ /** RegularExpression Id. */
+ int MINUS = 21;
+ /** RegularExpression Id. */
+ int COMMA = 22;
+ /** RegularExpression Id. */
+ int SEMICOLON = 23;
+ /** RegularExpression Id. */
+ int PRECEDES = 24;
+ /** RegularExpression Id. */
+ int SIBLING = 25;
+ /** RegularExpression Id. */
+ int SUCCEEDS = 26;
+ /** RegularExpression Id. */
+ int DIV = 27;
+ /** RegularExpression Id. */
+ int LBRACKET = 28;
+ /** RegularExpression Id. */
+ int RBRACKET = 29;
+ /** RegularExpression Id. */
+ int ANY = 30;
+ /** RegularExpression Id. */
+ int MOD = 31;
+ /** RegularExpression Id. */
+ int PARENT = 32;
+ /** RegularExpression Id. */
+ int DOT = 33;
+ /** RegularExpression Id. */
+ int LPARAN = 34;
+ /** RegularExpression Id. */
+ int RPARAN = 35;
+ /** RegularExpression Id. */
+ int COMPARE = 36;
+ /** RegularExpression Id. */
+ int OR = 37;
+ /** RegularExpression Id. */
+ int AND = 38;
+ /** RegularExpression Id. */
+ int NOT_EQ = 39;
+ /** RegularExpression Id. */
+ int COLON = 40;
+ /** RegularExpression Id. */
+ int INTERPOLATION = 41;
+ /** RegularExpression Id. */
+ int NONASCII = 42;
+ /** RegularExpression Id. */
+ int H = 43;
+ /** RegularExpression Id. */
+ int UNICODE = 44;
+ /** RegularExpression Id. */
+ int ESCAPE = 45;
+ /** RegularExpression Id. */
+ int NMSTART = 46;
+ /** RegularExpression Id. */
+ int NMCHAR = 47;
+ /** RegularExpression Id. */
+ int STRINGCHAR = 48;
+ /** RegularExpression Id. */
+ int D = 49;
+ /** RegularExpression Id. */
+ int NAME = 50;
+ /** RegularExpression Id. */
+ int TO = 51;
+ /** RegularExpression Id. */
+ int THROUGH = 52;
+ /** RegularExpression Id. */
+ int EACH_IN = 53;
+ /** RegularExpression Id. */
+ int FROM = 54;
+ /** RegularExpression Id. */
+ int MIXIN_SYM = 55;
+ /** RegularExpression Id. */
+ int INCLUDE_SYM = 56;
+ /** RegularExpression Id. */
+ int FUNCTION_SYM = 57;
+ /** RegularExpression Id. */
+ int RETURN_SYM = 58;
+ /** RegularExpression Id. */
+ int DEBUG_SYM = 59;
+ /** RegularExpression Id. */
+ int WARN_SYM = 60;
+ /** RegularExpression Id. */
+ int FOR_SYM = 61;
+ /** RegularExpression Id. */
+ int EACH_SYM = 62;
+ /** RegularExpression Id. */
+ int WHILE_SYM = 63;
+ /** RegularExpression Id. */
+ int IF_SYM = 64;
+ /** RegularExpression Id. */
+ int ELSE_SYM = 65;
+ /** RegularExpression Id. */
+ int EXTEND_SYM = 66;
+ /** RegularExpression Id. */
+ int MOZ_DOCUMENT_SYM = 67;
+ /** RegularExpression Id. */
+ int SUPPORTS_SYM = 68;
+ /** RegularExpression Id. */
+ int CONTENT_SYM = 69;
+ /** RegularExpression Id. */
+ int MICROSOFT_RULE = 70;
+ /** RegularExpression Id. */
+ int IF = 71;
+ /** RegularExpression Id. */
+ int GUARDED_SYM = 72;
+ /** RegularExpression Id. */
+ int STRING = 73;
+ /** RegularExpression Id. */
+ int IDENT = 74;
+ /** RegularExpression Id. */
+ int NUMBER = 75;
+ /** RegularExpression Id. */
+ int _URL = 76;
+ /** RegularExpression Id. */
+ int URL = 77;
+ /** RegularExpression Id. */
+ int VARIABLE = 78;
+ /** RegularExpression Id. */
+ int PERCENTAGE = 79;
+ /** RegularExpression Id. */
+ int PT = 80;
+ /** RegularExpression Id. */
+ int MM = 81;
+ /** RegularExpression Id. */
+ int CM = 82;
+ /** RegularExpression Id. */
+ int PC = 83;
+ /** RegularExpression Id. */
+ int IN = 84;
+ /** RegularExpression Id. */
+ int PX = 85;
+ /** RegularExpression Id. */
+ int EMS = 86;
+ /** RegularExpression Id. */
+ int LEM = 87;
+ /** RegularExpression Id. */
+ int REM = 88;
+ /** RegularExpression Id. */
+ int EXS = 89;
+ /** RegularExpression Id. */
+ int DEG = 90;
+ /** RegularExpression Id. */
+ int RAD = 91;
+ /** RegularExpression Id. */
+ int GRAD = 92;
+ /** RegularExpression Id. */
+ int MS = 93;
+ /** RegularExpression Id. */
+ int SECOND = 94;
+ /** RegularExpression Id. */
+ int HZ = 95;
+ /** RegularExpression Id. */
+ int KHZ = 96;
+ /** RegularExpression Id. */
+ int DIMEN = 97;
+ /** RegularExpression Id. */
+ int HASH = 98;
+ /** RegularExpression Id. */
+ int IMPORT_SYM = 99;
+ /** RegularExpression Id. */
+ int MEDIA_SYM = 100;
+ /** RegularExpression Id. */
+ int CHARSET_SYM = 101;
+ /** RegularExpression Id. */
+ int PAGE_SYM = 102;
+ /** RegularExpression Id. */
+ int FONT_FACE_SYM = 103;
+ /** RegularExpression Id. */
+ int KEY_FRAME_SYM = 104;
+ /** RegularExpression Id. */
+ int ATKEYWORD = 105;
+ /** RegularExpression Id. */
+ int IMPORTANT_SYM = 106;
+ /** RegularExpression Id. */
+ int RANGE0 = 107;
+ /** RegularExpression Id. */
+ int RANGE1 = 108;
+ /** RegularExpression Id. */
+ int RANGE2 = 109;
+ /** RegularExpression Id. */
+ int RANGE3 = 110;
+ /** RegularExpression Id. */
+ int RANGE4 = 111;
+ /** RegularExpression Id. */
+ int RANGE5 = 112;
+ /** RegularExpression Id. */
+ int RANGE6 = 113;
+ /** RegularExpression Id. */
+ int RANGE = 114;
+ /** RegularExpression Id. */
+ int UNI = 115;
+ /** RegularExpression Id. */
+ int UNICODERANGE = 116;
+ /** RegularExpression Id. */
+ int REMOVE = 117;
+ /** RegularExpression Id. */
+ int APPEND = 118;
+ /** RegularExpression Id. */
+ int CONTAINS = 119;
+ /** RegularExpression Id. */
+ int FUNCTION = 120;
+ /** RegularExpression Id. */
+ int UNKNOWN = 121;
+
+ /** Lexical state. */
+ int DEFAULT = 0;
+ /** Lexical state. */
+ int IN_SINGLE_LINE_COMMENT = 1;
+ /** Lexical state. */
+ int IN_FORMAL_COMMENT = 2;
+ /** Lexical state. */
+ int IN_MULTI_LINE_COMMENT = 3;
+
+ /** Literal token values. */
+ String[] tokenImage = {
+ "<EOF>",
+ "<S>",
+ "\"//\"",
+ "<token of kind 3>",
+ "<token of kind 4>",
+ "<token of kind 5>",
+ "\"/*\"",
+ "\"*/\"",
+ "\"*/\"",
+ "<token of kind 9>",
+ "\"<!--\"",
+ "\"-->\"",
+ "\"{\"",
+ "\"}\"",
+ "\"|=\"",
+ "\"^=\"",
+ "\"$=\"",
+ "\"*=\"",
+ "\"~=\"",
+ "\"=\"",
+ "\"+\"",
+ "\"-\"",
+ "\",\"",
+ "\";\"",
+ "\">\"",
+ "\"~\"",
+ "\"<\"",
+ "\"/\"",
+ "\"[\"",
+ "\"]\"",
+ "\"*\"",
+ "\"%\"",
+ "\"&\"",
+ "\".\"",
+ "\"(\"",
+ "\")\"",
+ "\"==\"",
+ "\"||\"",
+ "\"&&\"",
+ "\"!=\"",
+ "\":\"",
+ "<INTERPOLATION>",
+ "<NONASCII>",
+ "<H>",
+ "<UNICODE>",
+ "<ESCAPE>",
+ "<NMSTART>",
+ "<NMCHAR>",
+ "<STRINGCHAR>",
+ "<D>",
+ "<NAME>",
+ "\"to\"",
+ "\"through\"",
+ "\"in\"",
+ "\"from\"",
+ "\"@mixin\"",
+ "\"@include\"",
+ "\"@function\"",
+ "\"@return\"",
+ "\"@debug\"",
+ "\"@warn\"",
+ "\"@for\"",
+ "\"@each\"",
+ "\"@while\"",
+ "\"@if\"",
+ "\"@else\"",
+ "\"@extend\"",
+ "\"@-moz-document\"",
+ "\"@supports\"",
+ "\"@content\"",
+ "<MICROSOFT_RULE>",
+ "\"if\"",
+ "<GUARDED_SYM>",
+ "<STRING>",
+ "<IDENT>",
+ "<NUMBER>",
+ "<_URL>",
+ "<URL>",
+ "<VARIABLE>",
+ "<PERCENTAGE>",
+ "<PT>",
+ "<MM>",
+ "<CM>",
+ "<PC>",
+ "<IN>",
+ "<PX>",
+ "<EMS>",
+ "<LEM>",
+ "<REM>",
+ "<EXS>",
+ "<DEG>",
+ "<RAD>",
+ "<GRAD>",
+ "<MS>",
+ "<SECOND>",
+ "<HZ>",
+ "<KHZ>",
+ "<DIMEN>",
+ "<HASH>",
+ "\"@import\"",
+ "\"@media\"",
+ "\"@charset\"",
+ "\"@page\"",
+ "\"@font-face\"",
+ "<KEY_FRAME_SYM>",
+ "<ATKEYWORD>",
+ "<IMPORTANT_SYM>",
+ "<RANGE0>",
+ "<RANGE1>",
+ "<RANGE2>",
+ "<RANGE3>",
+ "<RANGE4>",
+ "<RANGE5>",
+ "<RANGE6>",
+ "<RANGE>",
+ "<UNI>",
+ "<UNICODERANGE>",
+ "<REMOVE>",
+ "<APPEND>",
+ "<CONTAINS>",
+ "<FUNCTION>",
+ "<UNKNOWN>",
+ };
+
+}
diff --git a/theme-compiler/src/com/vaadin/sass/internal/parser/ParserTokenManager.java b/theme-compiler/src/com/vaadin/sass/internal/parser/ParserTokenManager.java
index 6271673d5d..b21b7fcd0b 100644
--- a/theme-compiler/src/com/vaadin/sass/internal/parser/ParserTokenManager.java
+++ b/theme-compiler/src/com/vaadin/sass/internal/parser/ParserTokenManager.java
@@ -1,4691 +1,4691 @@
-/* Generated By:JavaCC: Do not edit this line. ParserTokenManager.java */
-package com.vaadin.sass.internal.parser;
-import java.io.*;
-import java.net.*;
-import java.util.ArrayList;
-import java.util.Locale;
-import java.util.Map;
-import java.util.UUID;
-import org.w3c.css.sac.ConditionFactory;
-import org.w3c.css.sac.Condition;
-import org.w3c.css.sac.SelectorFactory;
-import org.w3c.css.sac.SelectorList;
-import org.w3c.css.sac.Selector;
-import org.w3c.css.sac.SimpleSelector;
-import org.w3c.css.sac.DocumentHandler;
-import org.w3c.css.sac.InputSource;
-import org.w3c.css.sac.ErrorHandler;
-import org.w3c.css.sac.CSSException;
-import org.w3c.css.sac.CSSParseException;
-import org.w3c.css.sac.Locator;
-import org.w3c.css.sac.LexicalUnit;
-import org.w3c.flute.parser.selectors.SelectorFactoryImpl;
-import org.w3c.flute.parser.selectors.ConditionFactoryImpl;
-import org.w3c.flute.util.Encoding;
-import com.vaadin.sass.internal.handler.*;
-import com.vaadin.sass.internal.tree.*;
-
-/** Token Manager. */
-public class ParserTokenManager implements ParserConstants
-{
-
- /** Debug output. */
- public java.io.PrintStream debugStream = System.out;
- /** Set debug output. */
- public void setDebugStream(java.io.PrintStream ds) { debugStream = ds; }
+/* Generated By:JavaCC: Do not edit this line. ParserTokenManager.java */
+package com.vaadin.sass.internal.parser;
+import java.io.*;
+import java.net.*;
+import java.util.ArrayList;
+import java.util.Locale;
+import java.util.Map;
+import java.util.UUID;
+import org.w3c.css.sac.ConditionFactory;
+import org.w3c.css.sac.Condition;
+import org.w3c.css.sac.SelectorFactory;
+import org.w3c.css.sac.SelectorList;
+import org.w3c.css.sac.Selector;
+import org.w3c.css.sac.SimpleSelector;
+import org.w3c.css.sac.DocumentHandler;
+import org.w3c.css.sac.InputSource;
+import org.w3c.css.sac.ErrorHandler;
+import org.w3c.css.sac.CSSException;
+import org.w3c.css.sac.CSSParseException;
+import org.w3c.css.sac.Locator;
+import org.w3c.css.sac.LexicalUnit;
+import org.w3c.flute.parser.selectors.SelectorFactoryImpl;
+import org.w3c.flute.parser.selectors.ConditionFactoryImpl;
+import org.w3c.flute.util.Encoding;
+import com.vaadin.sass.internal.handler.*;
+import com.vaadin.sass.internal.tree.*;
+
+/** Token Manager. */
+public class ParserTokenManager implements ParserConstants
+{
+
+ /** Debug output. */
+ public java.io.PrintStream debugStream = System.out;
+ /** Set debug output. */
+ public void setDebugStream(java.io.PrintStream ds) { debugStream = ds; }
private final int jjStopStringLiteralDfa_0(int pos, long active0, long active1)
-{
+{
switch (pos)
- {
- case 0:
- if ((active0 & 0x40000000000000L) != 0L)
- {
- jjmatchedKind = 74;
- return 33;
- }
- if ((active0 & 0x8000000000L) != 0L)
- return 517;
- if ((active0 & 0x10000L) != 0L)
- return 79;
- if ((active0 & 0x200800L) != 0L)
- return 42;
- if ((active0 & 0x8000044L) != 0L)
- return 3;
- if ((active0 & 0xff80000000000000L) != 0L || (active1 & 0xf80000003fL) != 0L)
- return 166;
- if ((active0 & 0x38000000000000L) != 0L || (active1 & 0x80L) != 0L)
- {
- jjmatchedKind = 74;
- return 518;
- }
- if ((active0 & 0x200000000L) != 0L)
- return 519;
- return -1;
- case 1:
- if ((active0 & 0x50000000000000L) != 0L)
- {
- jjmatchedKind = 74;
- jjmatchedPos = 1;
- return 518;
- }
- if ((active1 & 0x8L) != 0L)
- return 178;
- if ((active0 & 0xff80000000000000L) != 0L || (active1 & 0xf800000037L) != 0L)
- {
- jjmatchedKind = 105;
- jjmatchedPos = 1;
- return 520;
- }
- if ((active0 & 0x40L) != 0L)
- return 1;
- if ((active0 & 0x28000000000000L) != 0L || (active1 & 0x80L) != 0L)
- return 518;
- return -1;
- case 2:
- if ((active1 & 0x8L) != 0L)
- {
- jjmatchedKind = 105;
- jjmatchedPos = 2;
- return 177;
- }
- if ((active1 & 0x1L) != 0L)
- return 520;
- if ((active0 & 0xff80000000000000L) != 0L || (active1 & 0xf800000036L) != 0L)
- {
- jjmatchedKind = 105;
- jjmatchedPos = 2;
- return 520;
- }
- if ((active0 & 0x50000000000000L) != 0L)
- {
- jjmatchedKind = 74;
- jjmatchedPos = 2;
- return 518;
- }
- return -1;
- case 3:
- if ((active0 & 0x10000000000000L) != 0L)
- {
- jjmatchedKind = 74;
- jjmatchedPos = 3;
- return 518;
- }
- if ((active1 & 0x8L) != 0L)
- {
- jjmatchedKind = 105;
- jjmatchedPos = 3;
- return 176;
- }
- if ((active0 & 0xdf80000000000000L) != 0L || (active1 & 0xf800000036L) != 0L)
- {
- jjmatchedKind = 105;
- jjmatchedPos = 3;
- return 520;
- }
- if ((active0 & 0x2000000000000000L) != 0L)
- return 520;
- if ((active0 & 0x40000000000000L) != 0L)
- return 518;
- return -1;
- case 4:
- if ((active0 & 0x8f80000000000000L) != 0L || (active1 & 0xb800000034L) != 0L)
- {
- jjmatchedKind = 105;
- jjmatchedPos = 4;
- return 520;
- }
- if ((active0 & 0x5000000000000000L) != 0L || (active1 & 0x4000000002L) != 0L)
- return 520;
- if ((active0 & 0x10000000000000L) != 0L)
- {
- jjmatchedKind = 74;
- jjmatchedPos = 4;
- return 518;
- }
- if ((active1 & 0x8L) != 0L)
- {
- jjmatchedKind = 105;
- jjmatchedPos = 4;
- return 175;
- }
- return -1;
- case 5:
- if ((active0 & 0x700000000000000L) != 0L || (active1 & 0xa800000034L) != 0L)
- {
- jjmatchedKind = 105;
- jjmatchedPos = 5;
- return 520;
- }
- if ((active0 & 0x10000000000000L) != 0L)
- {
- jjmatchedKind = 74;
- jjmatchedPos = 5;
- return 518;
- }
- if ((active1 & 0x8L) != 0L)
- {
- jjmatchedKind = 105;
- jjmatchedPos = 5;
- return 174;
- }
- if ((active0 & 0x8880000000000000L) != 0L || (active1 & 0x1000000000L) != 0L)
- return 520;
- return -1;
- case 6:
- if ((active0 & 0x400000000000000L) != 0L || (active1 & 0x800000004L) != 0L)
- return 520;
- if ((active0 & 0x300000000000000L) != 0L || (active1 & 0xa000000038L) != 0L)
- {
- jjmatchedKind = 105;
- jjmatchedPos = 6;
- return 520;
- }
- if ((active0 & 0x10000000000000L) != 0L)
- return 518;
- return -1;
- case 7:
- if ((active0 & 0x100000000000000L) != 0L || (active1 & 0x2000000020L) != 0L)
- return 520;
- if ((active0 & 0x200000000000000L) != 0L || (active1 & 0x8000000018L) != 0L)
- {
- jjmatchedKind = 105;
- jjmatchedPos = 7;
- return 520;
- }
- return -1;
- case 8:
- if ((active0 & 0x200000000000000L) != 0L || (active1 & 0x10L) != 0L)
- return 520;
- if ((active1 & 0x8000000008L) != 0L)
- {
- jjmatchedKind = 105;
- jjmatchedPos = 8;
- return 520;
- }
- return -1;
- case 9:
- if ((active1 & 0x8L) != 0L)
- {
- jjmatchedKind = 105;
- jjmatchedPos = 9;
- return 520;
- }
- if ((active1 & 0x8000000000L) != 0L)
- return 520;
- return -1;
- case 10:
- if ((active1 & 0x8L) != 0L)
- {
- jjmatchedKind = 105;
- jjmatchedPos = 10;
- return 520;
- }
- return -1;
- case 11:
- if ((active1 & 0x8L) != 0L)
- {
- jjmatchedKind = 105;
- jjmatchedPos = 11;
- return 520;
- }
- return -1;
- case 12:
- if ((active1 & 0x8L) != 0L)
- {
- jjmatchedKind = 105;
- jjmatchedPos = 12;
- return 520;
- }
- return -1;
- default :
- return -1;
- }
-}
+ {
+ case 0:
+ if ((active0 & 0x40000000000000L) != 0L)
+ {
+ jjmatchedKind = 74;
+ return 33;
+ }
+ if ((active0 & 0x8000000000L) != 0L)
+ return 517;
+ if ((active0 & 0x10000L) != 0L)
+ return 79;
+ if ((active0 & 0x200800L) != 0L)
+ return 42;
+ if ((active0 & 0x8000044L) != 0L)
+ return 3;
+ if ((active0 & 0xff80000000000000L) != 0L || (active1 & 0xf80000003fL) != 0L)
+ return 166;
+ if ((active0 & 0x38000000000000L) != 0L || (active1 & 0x80L) != 0L)
+ {
+ jjmatchedKind = 74;
+ return 518;
+ }
+ if ((active0 & 0x200000000L) != 0L)
+ return 519;
+ return -1;
+ case 1:
+ if ((active0 & 0x50000000000000L) != 0L)
+ {
+ jjmatchedKind = 74;
+ jjmatchedPos = 1;
+ return 518;
+ }
+ if ((active1 & 0x8L) != 0L)
+ return 178;
+ if ((active0 & 0xff80000000000000L) != 0L || (active1 & 0xf800000037L) != 0L)
+ {
+ jjmatchedKind = 105;
+ jjmatchedPos = 1;
+ return 520;
+ }
+ if ((active0 & 0x40L) != 0L)
+ return 1;
+ if ((active0 & 0x28000000000000L) != 0L || (active1 & 0x80L) != 0L)
+ return 518;
+ return -1;
+ case 2:
+ if ((active1 & 0x8L) != 0L)
+ {
+ jjmatchedKind = 105;
+ jjmatchedPos = 2;
+ return 177;
+ }
+ if ((active1 & 0x1L) != 0L)
+ return 520;
+ if ((active0 & 0xff80000000000000L) != 0L || (active1 & 0xf800000036L) != 0L)
+ {
+ jjmatchedKind = 105;
+ jjmatchedPos = 2;
+ return 520;
+ }
+ if ((active0 & 0x50000000000000L) != 0L)
+ {
+ jjmatchedKind = 74;
+ jjmatchedPos = 2;
+ return 518;
+ }
+ return -1;
+ case 3:
+ if ((active0 & 0x10000000000000L) != 0L)
+ {
+ jjmatchedKind = 74;
+ jjmatchedPos = 3;
+ return 518;
+ }
+ if ((active1 & 0x8L) != 0L)
+ {
+ jjmatchedKind = 105;
+ jjmatchedPos = 3;
+ return 176;
+ }
+ if ((active0 & 0xdf80000000000000L) != 0L || (active1 & 0xf800000036L) != 0L)
+ {
+ jjmatchedKind = 105;
+ jjmatchedPos = 3;
+ return 520;
+ }
+ if ((active0 & 0x2000000000000000L) != 0L)
+ return 520;
+ if ((active0 & 0x40000000000000L) != 0L)
+ return 518;
+ return -1;
+ case 4:
+ if ((active0 & 0x8f80000000000000L) != 0L || (active1 & 0xb800000034L) != 0L)
+ {
+ jjmatchedKind = 105;
+ jjmatchedPos = 4;
+ return 520;
+ }
+ if ((active0 & 0x5000000000000000L) != 0L || (active1 & 0x4000000002L) != 0L)
+ return 520;
+ if ((active0 & 0x10000000000000L) != 0L)
+ {
+ jjmatchedKind = 74;
+ jjmatchedPos = 4;
+ return 518;
+ }
+ if ((active1 & 0x8L) != 0L)
+ {
+ jjmatchedKind = 105;
+ jjmatchedPos = 4;
+ return 175;
+ }
+ return -1;
+ case 5:
+ if ((active0 & 0x700000000000000L) != 0L || (active1 & 0xa800000034L) != 0L)
+ {
+ jjmatchedKind = 105;
+ jjmatchedPos = 5;
+ return 520;
+ }
+ if ((active0 & 0x10000000000000L) != 0L)
+ {
+ jjmatchedKind = 74;
+ jjmatchedPos = 5;
+ return 518;
+ }
+ if ((active1 & 0x8L) != 0L)
+ {
+ jjmatchedKind = 105;
+ jjmatchedPos = 5;
+ return 174;
+ }
+ if ((active0 & 0x8880000000000000L) != 0L || (active1 & 0x1000000000L) != 0L)
+ return 520;
+ return -1;
+ case 6:
+ if ((active0 & 0x400000000000000L) != 0L || (active1 & 0x800000004L) != 0L)
+ return 520;
+ if ((active0 & 0x300000000000000L) != 0L || (active1 & 0xa000000038L) != 0L)
+ {
+ jjmatchedKind = 105;
+ jjmatchedPos = 6;
+ return 520;
+ }
+ if ((active0 & 0x10000000000000L) != 0L)
+ return 518;
+ return -1;
+ case 7:
+ if ((active0 & 0x100000000000000L) != 0L || (active1 & 0x2000000020L) != 0L)
+ return 520;
+ if ((active0 & 0x200000000000000L) != 0L || (active1 & 0x8000000018L) != 0L)
+ {
+ jjmatchedKind = 105;
+ jjmatchedPos = 7;
+ return 520;
+ }
+ return -1;
+ case 8:
+ if ((active0 & 0x200000000000000L) != 0L || (active1 & 0x10L) != 0L)
+ return 520;
+ if ((active1 & 0x8000000008L) != 0L)
+ {
+ jjmatchedKind = 105;
+ jjmatchedPos = 8;
+ return 520;
+ }
+ return -1;
+ case 9:
+ if ((active1 & 0x8L) != 0L)
+ {
+ jjmatchedKind = 105;
+ jjmatchedPos = 9;
+ return 520;
+ }
+ if ((active1 & 0x8000000000L) != 0L)
+ return 520;
+ return -1;
+ case 10:
+ if ((active1 & 0x8L) != 0L)
+ {
+ jjmatchedKind = 105;
+ jjmatchedPos = 10;
+ return 520;
+ }
+ return -1;
+ case 11:
+ if ((active1 & 0x8L) != 0L)
+ {
+ jjmatchedKind = 105;
+ jjmatchedPos = 11;
+ return 520;
+ }
+ return -1;
+ case 12:
+ if ((active1 & 0x8L) != 0L)
+ {
+ jjmatchedKind = 105;
+ jjmatchedPos = 12;
+ return 520;
+ }
+ return -1;
+ default :
+ return -1;
+ }
+}
private final int jjStartNfa_0(int pos, long active0, long active1)
-{
- return jjMoveNfa_0(jjStopStringLiteralDfa_0(pos, active0, active1), pos + 1);
-}
-private int jjStopAtPos(int pos, int kind)
-{
- jjmatchedKind = kind;
- jjmatchedPos = pos;
- return pos + 1;
-}
-private int jjMoveStringLiteralDfa0_0()
-{
- switch(curChar)
- {
- case 33:
- return jjMoveStringLiteralDfa1_0(0x8000000000L, 0x0L);
- case 36:
- return jjMoveStringLiteralDfa1_0(0x10000L, 0x0L);
- case 37:
- return jjStopAtPos(0, 31);
- case 38:
- jjmatchedKind = 32;
- return jjMoveStringLiteralDfa1_0(0x4000000000L, 0x0L);
- case 40:
- return jjStopAtPos(0, 34);
- case 41:
- return jjStopAtPos(0, 35);
- case 42:
- jjmatchedKind = 30;
- return jjMoveStringLiteralDfa1_0(0x20000L, 0x0L);
- case 43:
- return jjStopAtPos(0, 20);
- case 44:
- return jjStopAtPos(0, 22);
- case 45:
- jjmatchedKind = 21;
- return jjMoveStringLiteralDfa1_0(0x800L, 0x0L);
- case 46:
- return jjStartNfaWithStates_0(0, 33, 519);
- case 47:
- jjmatchedKind = 27;
- return jjMoveStringLiteralDfa1_0(0x44L, 0x0L);
- case 58:
- return jjStopAtPos(0, 40);
- case 59:
- return jjStopAtPos(0, 23);
- case 60:
- jjmatchedKind = 26;
- return jjMoveStringLiteralDfa1_0(0x400L, 0x0L);
- case 61:
- jjmatchedKind = 19;
- return jjMoveStringLiteralDfa1_0(0x1000000000L, 0x0L);
- case 62:
- return jjStopAtPos(0, 24);
- case 64:
- return jjMoveStringLiteralDfa1_0(0xff80000000000000L, 0xf80000003fL);
- case 91:
- return jjStopAtPos(0, 28);
- case 93:
- return jjStopAtPos(0, 29);
- case 94:
- return jjMoveStringLiteralDfa1_0(0x8000L, 0x0L);
- case 70:
- case 102:
- return jjMoveStringLiteralDfa1_0(0x40000000000000L, 0x0L);
- case 73:
- case 105:
- return jjMoveStringLiteralDfa1_0(0x20000000000000L, 0x80L);
- case 84:
- case 116:
- return jjMoveStringLiteralDfa1_0(0x18000000000000L, 0x0L);
- case 123:
- return jjStopAtPos(0, 12);
- case 124:
- return jjMoveStringLiteralDfa1_0(0x2000004000L, 0x0L);
- case 125:
- return jjStopAtPos(0, 13);
- case 126:
- jjmatchedKind = 25;
- return jjMoveStringLiteralDfa1_0(0x40000L, 0x0L);
- default :
- return jjMoveNfa_0(4, 0);
- }
-}
-private int jjMoveStringLiteralDfa1_0(long active0, long active1)
-{
- try { curChar = input_stream.readChar(); }
- catch(java.io.IOException e) {
- jjStopStringLiteralDfa_0(0, active0, active1);
- return 1;
- }
- switch(curChar)
- {
- case 33:
- return jjMoveStringLiteralDfa2_0(active0, 0x400L, active1, 0L);
- case 38:
- if ((active0 & 0x4000000000L) != 0L)
- return jjStopAtPos(1, 38);
- break;
- case 42:
- if ((active0 & 0x40L) != 0L)
- return jjStartNfaWithStates_0(1, 6, 1);
- break;
- case 45:
- return jjMoveStringLiteralDfa2_0(active0, 0x800L, active1, 0x8L);
- case 47:
- if ((active0 & 0x4L) != 0L)
- return jjStopAtPos(1, 2);
- break;
- case 61:
- if ((active0 & 0x4000L) != 0L)
- return jjStopAtPos(1, 14);
- else if ((active0 & 0x8000L) != 0L)
- return jjStopAtPos(1, 15);
- else if ((active0 & 0x10000L) != 0L)
- return jjStopAtPos(1, 16);
- else if ((active0 & 0x20000L) != 0L)
- return jjStopAtPos(1, 17);
- else if ((active0 & 0x40000L) != 0L)
- return jjStopAtPos(1, 18);
- else if ((active0 & 0x1000000000L) != 0L)
- return jjStopAtPos(1, 36);
- else if ((active0 & 0x8000000000L) != 0L)
- return jjStopAtPos(1, 39);
- break;
- case 67:
- case 99:
- return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x2000000020L);
- case 68:
- case 100:
- return jjMoveStringLiteralDfa2_0(active0, 0x800000000000000L, active1, 0L);
- case 69:
- case 101:
- return jjMoveStringLiteralDfa2_0(active0, 0x4000000000000000L, active1, 0x6L);
- case 70:
- case 102:
- if ((active1 & 0x80L) != 0L)
- return jjStartNfaWithStates_0(1, 71, 518);
- return jjMoveStringLiteralDfa2_0(active0, 0x2200000000000000L, active1, 0x8000000000L);
- case 72:
- case 104:
- return jjMoveStringLiteralDfa2_0(active0, 0x10000000000000L, active1, 0L);
- case 73:
- case 105:
- return jjMoveStringLiteralDfa2_0(active0, 0x100000000000000L, active1, 0x800000001L);
- case 77:
- case 109:
- return jjMoveStringLiteralDfa2_0(active0, 0x80000000000000L, active1, 0x1000000000L);
- case 78:
- case 110:
- if ((active0 & 0x20000000000000L) != 0L)
- return jjStartNfaWithStates_0(1, 53, 518);
- break;
- case 79:
- case 111:
- if ((active0 & 0x8000000000000L) != 0L)
- return jjStartNfaWithStates_0(1, 51, 518);
- break;
- case 80:
- case 112:
- return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x4000000000L);
- case 82:
- case 114:
- return jjMoveStringLiteralDfa2_0(active0, 0x440000000000000L, active1, 0L);
- case 83:
- case 115:
- return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x10L);
- case 87:
- case 119:
- return jjMoveStringLiteralDfa2_0(active0, 0x9000000000000000L, active1, 0L);
- case 124:
- if ((active0 & 0x2000000000L) != 0L)
- return jjStopAtPos(1, 37);
- break;
- default :
- break;
- }
- return jjStartNfa_0(0, active0, active1);
-}
-private int jjMoveStringLiteralDfa2_0(long old0, long active0, long old1, long active1)
-{
- if (((active0 &= old0) | (active1 &= old1)) == 0L)
- return jjStartNfa_0(0, old0, old1);
- try { curChar = input_stream.readChar(); }
- catch(java.io.IOException e) {
- jjStopStringLiteralDfa_0(1, active0, active1);
- return 2;
- }
- switch(curChar)
- {
- case 45:
- return jjMoveStringLiteralDfa3_0(active0, 0x400L, active1, 0L);
- case 62:
- if ((active0 & 0x800L) != 0L)
- return jjStopAtPos(2, 11);
- break;
- case 65:
- case 97:
- return jjMoveStringLiteralDfa3_0(active0, 0x5000000000000000L, active1, 0x4000000000L);
- case 69:
- case 101:
- return jjMoveStringLiteralDfa3_0(active0, 0xc00000000000000L, active1, 0x1000000000L);
- case 70:
- case 102:
- if ((active1 & 0x1L) != 0L)
- return jjStartNfaWithStates_0(2, 64, 520);
- break;
- case 72:
- case 104:
- return jjMoveStringLiteralDfa3_0(active0, 0x8000000000000000L, active1, 0x2000000000L);
- case 73:
- case 105:
- return jjMoveStringLiteralDfa3_0(active0, 0x80000000000000L, active1, 0L);
- case 76:
- case 108:
- return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x2L);
- case 77:
- case 109:
- return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x800000008L);
- case 78:
- case 110:
- return jjMoveStringLiteralDfa3_0(active0, 0x100000000000000L, active1, 0L);
- case 79:
- case 111:
- return jjMoveStringLiteralDfa3_0(active0, 0x2040000000000000L, active1, 0x8000000020L);
- case 82:
- case 114:
- return jjMoveStringLiteralDfa3_0(active0, 0x10000000000000L, active1, 0L);
- case 85:
- case 117:
- return jjMoveStringLiteralDfa3_0(active0, 0x200000000000000L, active1, 0x10L);
- case 88:
- case 120:
- return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x4L);
- default :
- break;
- }
- return jjStartNfa_0(1, active0, active1);
-}
-private int jjMoveStringLiteralDfa3_0(long old0, long active0, long old1, long active1)
-{
- if (((active0 &= old0) | (active1 &= old1)) == 0L)
- return jjStartNfa_0(1, old0, old1);
- try { curChar = input_stream.readChar(); }
- catch(java.io.IOException e) {
- jjStopStringLiteralDfa_0(2, active0, active1);
- return 3;
- }
- switch(curChar)
- {
- case 45:
- if ((active0 & 0x400L) != 0L)
- return jjStopAtPos(3, 10);
- break;
- case 65:
- case 97:
- return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x2000000000L);
- case 66:
- case 98:
- return jjMoveStringLiteralDfa4_0(active0, 0x800000000000000L, active1, 0L);
- case 67:
- case 99:
- return jjMoveStringLiteralDfa4_0(active0, 0x4100000000000000L, active1, 0L);
- case 68:
- case 100:
- return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x1000000000L);
- case 71:
- case 103:
- return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x4000000000L);
- case 73:
- case 105:
- return jjMoveStringLiteralDfa4_0(active0, 0x8000000000000000L, active1, 0L);
- case 77:
- case 109:
- if ((active0 & 0x40000000000000L) != 0L)
- return jjStartNfaWithStates_0(3, 54, 518);
- break;
- case 78:
- case 110:
- return jjMoveStringLiteralDfa4_0(active0, 0x200000000000000L, active1, 0x8000000020L);
- case 79:
- case 111:
- return jjMoveStringLiteralDfa4_0(active0, 0x10000000000000L, active1, 0x8L);
- case 80:
- case 112:
- return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x800000010L);
- case 82:
- case 114:
- if ((active0 & 0x2000000000000000L) != 0L)
- return jjStartNfaWithStates_0(3, 61, 520);
- return jjMoveStringLiteralDfa4_0(active0, 0x1000000000000000L, active1, 0L);
- case 83:
- case 115:
- return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x2L);
- case 84:
- case 116:
- return jjMoveStringLiteralDfa4_0(active0, 0x400000000000000L, active1, 0x4L);
- case 88:
- case 120:
- return jjMoveStringLiteralDfa4_0(active0, 0x80000000000000L, active1, 0L);
- default :
- break;
- }
- return jjStartNfa_0(2, active0, active1);
-}
-private int jjMoveStringLiteralDfa4_0(long old0, long active0, long old1, long active1)
-{
- if (((active0 &= old0) | (active1 &= old1)) == 0L)
- return jjStartNfa_0(2, old0, old1);
- try { curChar = input_stream.readChar(); }
- catch(java.io.IOException e) {
- jjStopStringLiteralDfa_0(3, active0, active1);
- return 4;
- }
- switch(curChar)
- {
- case 67:
- case 99:
- return jjMoveStringLiteralDfa5_0(active0, 0x200000000000000L, active1, 0L);
- case 69:
- case 101:
- if ((active1 & 0x2L) != 0L)
- return jjStartNfaWithStates_0(4, 65, 520);
- else if ((active1 & 0x4000000000L) != 0L)
- return jjStartNfaWithStates_0(4, 102, 520);
- return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x4L);
- case 72:
- case 104:
- if ((active0 & 0x4000000000000000L) != 0L)
- return jjStartNfaWithStates_0(4, 62, 520);
- break;
- case 73:
- case 105:
- return jjMoveStringLiteralDfa5_0(active0, 0x80000000000000L, active1, 0x1000000000L);
- case 76:
- case 108:
- return jjMoveStringLiteralDfa5_0(active0, 0x8100000000000000L, active1, 0L);
- case 78:
- case 110:
- if ((active0 & 0x1000000000000000L) != 0L)
- return jjStartNfaWithStates_0(4, 60, 520);
- break;
- case 79:
- case 111:
- return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x800000000L);
- case 80:
- case 112:
- return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x10L);
- case 82:
- case 114:
- return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x2000000000L);
- case 84:
- case 116:
- return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x8000000020L);
- case 85:
- case 117:
- return jjMoveStringLiteralDfa5_0(active0, 0xc10000000000000L, active1, 0L);
- case 90:
- case 122:
- return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x8L);
- default :
- break;
- }
- return jjStartNfa_0(3, active0, active1);
-}
-private int jjMoveStringLiteralDfa5_0(long old0, long active0, long old1, long active1)
-{
- if (((active0 &= old0) | (active1 &= old1)) == 0L)
- return jjStartNfa_0(3, old0, old1);
- try { curChar = input_stream.readChar(); }
- catch(java.io.IOException e) {
- jjStopStringLiteralDfa_0(4, active0, active1);
- return 5;
- }
- switch(curChar)
- {
- case 45:
- return jjMoveStringLiteralDfa6_0(active0, 0L, active1, 0x8000000008L);
- case 65:
- case 97:
- if ((active1 & 0x1000000000L) != 0L)
- return jjStartNfaWithStates_0(5, 100, 520);
- break;
- case 69:
- case 101:
- if ((active0 & 0x8000000000000000L) != 0L)
- return jjStartNfaWithStates_0(5, 63, 520);
- return jjMoveStringLiteralDfa6_0(active0, 0L, active1, 0x20L);
- case 71:
- case 103:
- if ((active0 & 0x800000000000000L) != 0L)
- return jjStartNfaWithStates_0(5, 59, 520);
- return jjMoveStringLiteralDfa6_0(active0, 0x10000000000000L, active1, 0L);
- case 78:
- case 110:
- if ((active0 & 0x80000000000000L) != 0L)
- return jjStartNfaWithStates_0(5, 55, 520);
- return jjMoveStringLiteralDfa6_0(active0, 0L, active1, 0x4L);
- case 79:
- case 111:
- return jjMoveStringLiteralDfa6_0(active0, 0L, active1, 0x10L);
- case 82:
- case 114:
- return jjMoveStringLiteralDfa6_0(active0, 0x400000000000000L, active1, 0x800000000L);
- case 83:
- case 115:
- return jjMoveStringLiteralDfa6_0(active0, 0L, active1, 0x2000000000L);
- case 84:
- case 116:
- return jjMoveStringLiteralDfa6_0(active0, 0x200000000000000L, active1, 0L);
- case 85:
- case 117:
- return jjMoveStringLiteralDfa6_0(active0, 0x100000000000000L, active1, 0L);
- default :
- break;
- }
- return jjStartNfa_0(4, active0, active1);
-}
-private int jjMoveStringLiteralDfa6_0(long old0, long active0, long old1, long active1)
-{
- if (((active0 &= old0) | (active1 &= old1)) == 0L)
- return jjStartNfa_0(4, old0, old1);
- try { curChar = input_stream.readChar(); }
- catch(java.io.IOException e) {
- jjStopStringLiteralDfa_0(5, active0, active1);
- return 6;
- }
- switch(curChar)
- {
- case 68:
- case 100:
- if ((active1 & 0x4L) != 0L)
- return jjStartNfaWithStates_0(6, 66, 520);
- return jjMoveStringLiteralDfa7_0(active0, 0x100000000000000L, active1, 0x8L);
- case 69:
- case 101:
- return jjMoveStringLiteralDfa7_0(active0, 0L, active1, 0x2000000000L);
- case 70:
- case 102:
- return jjMoveStringLiteralDfa7_0(active0, 0L, active1, 0x8000000000L);
- case 72:
- case 104:
- if ((active0 & 0x10000000000000L) != 0L)
- return jjStartNfaWithStates_0(6, 52, 518);
- break;
- case 73:
- case 105:
- return jjMoveStringLiteralDfa7_0(active0, 0x200000000000000L, active1, 0L);
- case 78:
- case 110:
- if ((active0 & 0x400000000000000L) != 0L)
- return jjStartNfaWithStates_0(6, 58, 520);
- return jjMoveStringLiteralDfa7_0(active0, 0L, active1, 0x20L);
- case 82:
- case 114:
- return jjMoveStringLiteralDfa7_0(active0, 0L, active1, 0x10L);
- case 84:
- case 116:
- if ((active1 & 0x800000000L) != 0L)
- return jjStartNfaWithStates_0(6, 99, 520);
- break;
- default :
- break;
- }
- return jjStartNfa_0(5, active0, active1);
-}
-private int jjMoveStringLiteralDfa7_0(long old0, long active0, long old1, long active1)
-{
- if (((active0 &= old0) | (active1 &= old1)) == 0L)
- return jjStartNfa_0(5, old0, old1);
- try { curChar = input_stream.readChar(); }
- catch(java.io.IOException e) {
- jjStopStringLiteralDfa_0(6, active0, active1);
- return 7;
- }
- switch(curChar)
- {
- case 65:
- case 97:
- return jjMoveStringLiteralDfa8_0(active0, 0L, active1, 0x8000000000L);
- case 69:
- case 101:
- if ((active0 & 0x100000000000000L) != 0L)
- return jjStartNfaWithStates_0(7, 56, 520);
- break;
- case 79:
- case 111:
- return jjMoveStringLiteralDfa8_0(active0, 0x200000000000000L, active1, 0x8L);
- case 84:
- case 116:
- if ((active1 & 0x20L) != 0L)
- return jjStartNfaWithStates_0(7, 69, 520);
- else if ((active1 & 0x2000000000L) != 0L)
- return jjStartNfaWithStates_0(7, 101, 520);
- return jjMoveStringLiteralDfa8_0(active0, 0L, active1, 0x10L);
- default :
- break;
- }
- return jjStartNfa_0(6, active0, active1);
-}
-private int jjMoveStringLiteralDfa8_0(long old0, long active0, long old1, long active1)
-{
- if (((active0 &= old0) | (active1 &= old1)) == 0L)
- return jjStartNfa_0(6, old0, old1);
- try { curChar = input_stream.readChar(); }
- catch(java.io.IOException e) {
- jjStopStringLiteralDfa_0(7, active0, active1);
- return 8;
- }
- switch(curChar)
- {
- case 67:
- case 99:
- return jjMoveStringLiteralDfa9_0(active0, 0L, active1, 0x8000000008L);
- case 78:
- case 110:
- if ((active0 & 0x200000000000000L) != 0L)
- return jjStartNfaWithStates_0(8, 57, 520);
- break;
- case 83:
- case 115:
- if ((active1 & 0x10L) != 0L)
- return jjStartNfaWithStates_0(8, 68, 520);
- break;
- default :
- break;
- }
- return jjStartNfa_0(7, active0, active1);
-}
-private int jjMoveStringLiteralDfa9_0(long old0, long active0, long old1, long active1)
-{
- if (((active0 &= old0) | (active1 &= old1)) == 0L)
- return jjStartNfa_0(7, old0, old1);
- try { curChar = input_stream.readChar(); }
- catch(java.io.IOException e) {
- jjStopStringLiteralDfa_0(8, 0L, active1);
- return 9;
- }
- switch(curChar)
- {
- case 69:
- case 101:
- if ((active1 & 0x8000000000L) != 0L)
- return jjStartNfaWithStates_0(9, 103, 520);
- break;
- case 85:
- case 117:
- return jjMoveStringLiteralDfa10_0(active1, 0x8L);
- default :
- break;
- }
- return jjStartNfa_0(8, 0L, active1);
-}
-private int jjMoveStringLiteralDfa10_0(long old1, long active1)
-{
- if (((active1 &= old1)) == 0L)
- return jjStartNfa_0(8, 0L, old1);
- try { curChar = input_stream.readChar(); }
- catch(java.io.IOException e) {
- jjStopStringLiteralDfa_0(9, 0L, active1);
- return 10;
- }
- switch(curChar)
- {
- case 77:
- case 109:
- return jjMoveStringLiteralDfa11_0(active1, 0x8L);
- default :
- break;
- }
- return jjStartNfa_0(9, 0L, active1);
-}
-private int jjMoveStringLiteralDfa11_0(long old1, long active1)
-{
- if (((active1 &= old1)) == 0L)
- return jjStartNfa_0(9, 0L, old1);
- try { curChar = input_stream.readChar(); }
- catch(java.io.IOException e) {
- jjStopStringLiteralDfa_0(10, 0L, active1);
- return 11;
- }
- switch(curChar)
- {
- case 69:
- case 101:
- return jjMoveStringLiteralDfa12_0(active1, 0x8L);
- default :
- break;
- }
- return jjStartNfa_0(10, 0L, active1);
-}
-private int jjMoveStringLiteralDfa12_0(long old1, long active1)
-{
- if (((active1 &= old1)) == 0L)
- return jjStartNfa_0(10, 0L, old1);
- try { curChar = input_stream.readChar(); }
- catch(java.io.IOException e) {
- jjStopStringLiteralDfa_0(11, 0L, active1);
- return 12;
- }
- switch(curChar)
- {
- case 78:
- case 110:
- return jjMoveStringLiteralDfa13_0(active1, 0x8L);
- default :
- break;
- }
- return jjStartNfa_0(11, 0L, active1);
-}
-private int jjMoveStringLiteralDfa13_0(long old1, long active1)
-{
- if (((active1 &= old1)) == 0L)
- return jjStartNfa_0(11, 0L, old1);
- try { curChar = input_stream.readChar(); }
- catch(java.io.IOException e) {
- jjStopStringLiteralDfa_0(12, 0L, active1);
- return 13;
- }
- switch(curChar)
- {
- case 84:
- case 116:
- if ((active1 & 0x8L) != 0L)
- return jjStartNfaWithStates_0(13, 67, 520);
- break;
- default :
- break;
- }
- return jjStartNfa_0(12, 0L, active1);
-}
-private int jjStartNfaWithStates_0(int pos, int kind, int state)
-{
- jjmatchedKind = kind;
- jjmatchedPos = pos;
- try { curChar = input_stream.readChar(); }
- catch(java.io.IOException e) { return pos + 1; }
- return jjMoveNfa_0(state, pos + 1);
-}
+{
+ return jjMoveNfa_0(jjStopStringLiteralDfa_0(pos, active0, active1), pos + 1);
+}
+private int jjStopAtPos(int pos, int kind)
+{
+ jjmatchedKind = kind;
+ jjmatchedPos = pos;
+ return pos + 1;
+}
+private int jjMoveStringLiteralDfa0_0()
+{
+ switch(curChar)
+ {
+ case 33:
+ return jjMoveStringLiteralDfa1_0(0x8000000000L, 0x0L);
+ case 36:
+ return jjMoveStringLiteralDfa1_0(0x10000L, 0x0L);
+ case 37:
+ return jjStopAtPos(0, 31);
+ case 38:
+ jjmatchedKind = 32;
+ return jjMoveStringLiteralDfa1_0(0x4000000000L, 0x0L);
+ case 40:
+ return jjStopAtPos(0, 34);
+ case 41:
+ return jjStopAtPos(0, 35);
+ case 42:
+ jjmatchedKind = 30;
+ return jjMoveStringLiteralDfa1_0(0x20000L, 0x0L);
+ case 43:
+ return jjStopAtPos(0, 20);
+ case 44:
+ return jjStopAtPos(0, 22);
+ case 45:
+ jjmatchedKind = 21;
+ return jjMoveStringLiteralDfa1_0(0x800L, 0x0L);
+ case 46:
+ return jjStartNfaWithStates_0(0, 33, 519);
+ case 47:
+ jjmatchedKind = 27;
+ return jjMoveStringLiteralDfa1_0(0x44L, 0x0L);
+ case 58:
+ return jjStopAtPos(0, 40);
+ case 59:
+ return jjStopAtPos(0, 23);
+ case 60:
+ jjmatchedKind = 26;
+ return jjMoveStringLiteralDfa1_0(0x400L, 0x0L);
+ case 61:
+ jjmatchedKind = 19;
+ return jjMoveStringLiteralDfa1_0(0x1000000000L, 0x0L);
+ case 62:
+ return jjStopAtPos(0, 24);
+ case 64:
+ return jjMoveStringLiteralDfa1_0(0xff80000000000000L, 0xf80000003fL);
+ case 91:
+ return jjStopAtPos(0, 28);
+ case 93:
+ return jjStopAtPos(0, 29);
+ case 94:
+ return jjMoveStringLiteralDfa1_0(0x8000L, 0x0L);
+ case 70:
+ case 102:
+ return jjMoveStringLiteralDfa1_0(0x40000000000000L, 0x0L);
+ case 73:
+ case 105:
+ return jjMoveStringLiteralDfa1_0(0x20000000000000L, 0x80L);
+ case 84:
+ case 116:
+ return jjMoveStringLiteralDfa1_0(0x18000000000000L, 0x0L);
+ case 123:
+ return jjStopAtPos(0, 12);
+ case 124:
+ return jjMoveStringLiteralDfa1_0(0x2000004000L, 0x0L);
+ case 125:
+ return jjStopAtPos(0, 13);
+ case 126:
+ jjmatchedKind = 25;
+ return jjMoveStringLiteralDfa1_0(0x40000L, 0x0L);
+ default :
+ return jjMoveNfa_0(4, 0);
+ }
+}
+private int jjMoveStringLiteralDfa1_0(long active0, long active1)
+{
+ try { curChar = input_stream.readChar(); }
+ catch(java.io.IOException e) {
+ jjStopStringLiteralDfa_0(0, active0, active1);
+ return 1;
+ }
+ switch(curChar)
+ {
+ case 33:
+ return jjMoveStringLiteralDfa2_0(active0, 0x400L, active1, 0L);
+ case 38:
+ if ((active0 & 0x4000000000L) != 0L)
+ return jjStopAtPos(1, 38);
+ break;
+ case 42:
+ if ((active0 & 0x40L) != 0L)
+ return jjStartNfaWithStates_0(1, 6, 1);
+ break;
+ case 45:
+ return jjMoveStringLiteralDfa2_0(active0, 0x800L, active1, 0x8L);
+ case 47:
+ if ((active0 & 0x4L) != 0L)
+ return jjStopAtPos(1, 2);
+ break;
+ case 61:
+ if ((active0 & 0x4000L) != 0L)
+ return jjStopAtPos(1, 14);
+ else if ((active0 & 0x8000L) != 0L)
+ return jjStopAtPos(1, 15);
+ else if ((active0 & 0x10000L) != 0L)
+ return jjStopAtPos(1, 16);
+ else if ((active0 & 0x20000L) != 0L)
+ return jjStopAtPos(1, 17);
+ else if ((active0 & 0x40000L) != 0L)
+ return jjStopAtPos(1, 18);
+ else if ((active0 & 0x1000000000L) != 0L)
+ return jjStopAtPos(1, 36);
+ else if ((active0 & 0x8000000000L) != 0L)
+ return jjStopAtPos(1, 39);
+ break;
+ case 67:
+ case 99:
+ return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x2000000020L);
+ case 68:
+ case 100:
+ return jjMoveStringLiteralDfa2_0(active0, 0x800000000000000L, active1, 0L);
+ case 69:
+ case 101:
+ return jjMoveStringLiteralDfa2_0(active0, 0x4000000000000000L, active1, 0x6L);
+ case 70:
+ case 102:
+ if ((active1 & 0x80L) != 0L)
+ return jjStartNfaWithStates_0(1, 71, 518);
+ return jjMoveStringLiteralDfa2_0(active0, 0x2200000000000000L, active1, 0x8000000000L);
+ case 72:
+ case 104:
+ return jjMoveStringLiteralDfa2_0(active0, 0x10000000000000L, active1, 0L);
+ case 73:
+ case 105:
+ return jjMoveStringLiteralDfa2_0(active0, 0x100000000000000L, active1, 0x800000001L);
+ case 77:
+ case 109:
+ return jjMoveStringLiteralDfa2_0(active0, 0x80000000000000L, active1, 0x1000000000L);
+ case 78:
+ case 110:
+ if ((active0 & 0x20000000000000L) != 0L)
+ return jjStartNfaWithStates_0(1, 53, 518);
+ break;
+ case 79:
+ case 111:
+ if ((active0 & 0x8000000000000L) != 0L)
+ return jjStartNfaWithStates_0(1, 51, 518);
+ break;
+ case 80:
+ case 112:
+ return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x4000000000L);
+ case 82:
+ case 114:
+ return jjMoveStringLiteralDfa2_0(active0, 0x440000000000000L, active1, 0L);
+ case 83:
+ case 115:
+ return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x10L);
+ case 87:
+ case 119:
+ return jjMoveStringLiteralDfa2_0(active0, 0x9000000000000000L, active1, 0L);
+ case 124:
+ if ((active0 & 0x2000000000L) != 0L)
+ return jjStopAtPos(1, 37);
+ break;
+ default :
+ break;
+ }
+ return jjStartNfa_0(0, active0, active1);
+}
+private int jjMoveStringLiteralDfa2_0(long old0, long active0, long old1, long active1)
+{
+ if (((active0 &= old0) | (active1 &= old1)) == 0L)
+ return jjStartNfa_0(0, old0, old1);
+ try { curChar = input_stream.readChar(); }
+ catch(java.io.IOException e) {
+ jjStopStringLiteralDfa_0(1, active0, active1);
+ return 2;
+ }
+ switch(curChar)
+ {
+ case 45:
+ return jjMoveStringLiteralDfa3_0(active0, 0x400L, active1, 0L);
+ case 62:
+ if ((active0 & 0x800L) != 0L)
+ return jjStopAtPos(2, 11);
+ break;
+ case 65:
+ case 97:
+ return jjMoveStringLiteralDfa3_0(active0, 0x5000000000000000L, active1, 0x4000000000L);
+ case 69:
+ case 101:
+ return jjMoveStringLiteralDfa3_0(active0, 0xc00000000000000L, active1, 0x1000000000L);
+ case 70:
+ case 102:
+ if ((active1 & 0x1L) != 0L)
+ return jjStartNfaWithStates_0(2, 64, 520);
+ break;
+ case 72:
+ case 104:
+ return jjMoveStringLiteralDfa3_0(active0, 0x8000000000000000L, active1, 0x2000000000L);
+ case 73:
+ case 105:
+ return jjMoveStringLiteralDfa3_0(active0, 0x80000000000000L, active1, 0L);
+ case 76:
+ case 108:
+ return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x2L);
+ case 77:
+ case 109:
+ return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x800000008L);
+ case 78:
+ case 110:
+ return jjMoveStringLiteralDfa3_0(active0, 0x100000000000000L, active1, 0L);
+ case 79:
+ case 111:
+ return jjMoveStringLiteralDfa3_0(active0, 0x2040000000000000L, active1, 0x8000000020L);
+ case 82:
+ case 114:
+ return jjMoveStringLiteralDfa3_0(active0, 0x10000000000000L, active1, 0L);
+ case 85:
+ case 117:
+ return jjMoveStringLiteralDfa3_0(active0, 0x200000000000000L, active1, 0x10L);
+ case 88:
+ case 120:
+ return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x4L);
+ default :
+ break;
+ }
+ return jjStartNfa_0(1, active0, active1);
+}
+private int jjMoveStringLiteralDfa3_0(long old0, long active0, long old1, long active1)
+{
+ if (((active0 &= old0) | (active1 &= old1)) == 0L)
+ return jjStartNfa_0(1, old0, old1);
+ try { curChar = input_stream.readChar(); }
+ catch(java.io.IOException e) {
+ jjStopStringLiteralDfa_0(2, active0, active1);
+ return 3;
+ }
+ switch(curChar)
+ {
+ case 45:
+ if ((active0 & 0x400L) != 0L)
+ return jjStopAtPos(3, 10);
+ break;
+ case 65:
+ case 97:
+ return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x2000000000L);
+ case 66:
+ case 98:
+ return jjMoveStringLiteralDfa4_0(active0, 0x800000000000000L, active1, 0L);
+ case 67:
+ case 99:
+ return jjMoveStringLiteralDfa4_0(active0, 0x4100000000000000L, active1, 0L);
+ case 68:
+ case 100:
+ return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x1000000000L);
+ case 71:
+ case 103:
+ return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x4000000000L);
+ case 73:
+ case 105:
+ return jjMoveStringLiteralDfa4_0(active0, 0x8000000000000000L, active1, 0L);
+ case 77:
+ case 109:
+ if ((active0 & 0x40000000000000L) != 0L)
+ return jjStartNfaWithStates_0(3, 54, 518);
+ break;
+ case 78:
+ case 110:
+ return jjMoveStringLiteralDfa4_0(active0, 0x200000000000000L, active1, 0x8000000020L);
+ case 79:
+ case 111:
+ return jjMoveStringLiteralDfa4_0(active0, 0x10000000000000L, active1, 0x8L);
+ case 80:
+ case 112:
+ return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x800000010L);
+ case 82:
+ case 114:
+ if ((active0 & 0x2000000000000000L) != 0L)
+ return jjStartNfaWithStates_0(3, 61, 520);
+ return jjMoveStringLiteralDfa4_0(active0, 0x1000000000000000L, active1, 0L);
+ case 83:
+ case 115:
+ return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x2L);
+ case 84:
+ case 116:
+ return jjMoveStringLiteralDfa4_0(active0, 0x400000000000000L, active1, 0x4L);
+ case 88:
+ case 120:
+ return jjMoveStringLiteralDfa4_0(active0, 0x80000000000000L, active1, 0L);
+ default :
+ break;
+ }
+ return jjStartNfa_0(2, active0, active1);
+}
+private int jjMoveStringLiteralDfa4_0(long old0, long active0, long old1, long active1)
+{
+ if (((active0 &= old0) | (active1 &= old1)) == 0L)
+ return jjStartNfa_0(2, old0, old1);
+ try { curChar = input_stream.readChar(); }
+ catch(java.io.IOException e) {
+ jjStopStringLiteralDfa_0(3, active0, active1);
+ return 4;
+ }
+ switch(curChar)
+ {
+ case 67:
+ case 99:
+ return jjMoveStringLiteralDfa5_0(active0, 0x200000000000000L, active1, 0L);
+ case 69:
+ case 101:
+ if ((active1 & 0x2L) != 0L)
+ return jjStartNfaWithStates_0(4, 65, 520);
+ else if ((active1 & 0x4000000000L) != 0L)
+ return jjStartNfaWithStates_0(4, 102, 520);
+ return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x4L);
+ case 72:
+ case 104:
+ if ((active0 & 0x4000000000000000L) != 0L)
+ return jjStartNfaWithStates_0(4, 62, 520);
+ break;
+ case 73:
+ case 105:
+ return jjMoveStringLiteralDfa5_0(active0, 0x80000000000000L, active1, 0x1000000000L);
+ case 76:
+ case 108:
+ return jjMoveStringLiteralDfa5_0(active0, 0x8100000000000000L, active1, 0L);
+ case 78:
+ case 110:
+ if ((active0 & 0x1000000000000000L) != 0L)
+ return jjStartNfaWithStates_0(4, 60, 520);
+ break;
+ case 79:
+ case 111:
+ return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x800000000L);
+ case 80:
+ case 112:
+ return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x10L);
+ case 82:
+ case 114:
+ return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x2000000000L);
+ case 84:
+ case 116:
+ return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x8000000020L);
+ case 85:
+ case 117:
+ return jjMoveStringLiteralDfa5_0(active0, 0xc10000000000000L, active1, 0L);
+ case 90:
+ case 122:
+ return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x8L);
+ default :
+ break;
+ }
+ return jjStartNfa_0(3, active0, active1);
+}
+private int jjMoveStringLiteralDfa5_0(long old0, long active0, long old1, long active1)
+{
+ if (((active0 &= old0) | (active1 &= old1)) == 0L)
+ return jjStartNfa_0(3, old0, old1);
+ try { curChar = input_stream.readChar(); }
+ catch(java.io.IOException e) {
+ jjStopStringLiteralDfa_0(4, active0, active1);
+ return 5;
+ }
+ switch(curChar)
+ {
+ case 45:
+ return jjMoveStringLiteralDfa6_0(active0, 0L, active1, 0x8000000008L);
+ case 65:
+ case 97:
+ if ((active1 & 0x1000000000L) != 0L)
+ return jjStartNfaWithStates_0(5, 100, 520);
+ break;
+ case 69:
+ case 101:
+ if ((active0 & 0x8000000000000000L) != 0L)
+ return jjStartNfaWithStates_0(5, 63, 520);
+ return jjMoveStringLiteralDfa6_0(active0, 0L, active1, 0x20L);
+ case 71:
+ case 103:
+ if ((active0 & 0x800000000000000L) != 0L)
+ return jjStartNfaWithStates_0(5, 59, 520);
+ return jjMoveStringLiteralDfa6_0(active0, 0x10000000000000L, active1, 0L);
+ case 78:
+ case 110:
+ if ((active0 & 0x80000000000000L) != 0L)
+ return jjStartNfaWithStates_0(5, 55, 520);
+ return jjMoveStringLiteralDfa6_0(active0, 0L, active1, 0x4L);
+ case 79:
+ case 111:
+ return jjMoveStringLiteralDfa6_0(active0, 0L, active1, 0x10L);
+ case 82:
+ case 114:
+ return jjMoveStringLiteralDfa6_0(active0, 0x400000000000000L, active1, 0x800000000L);
+ case 83:
+ case 115:
+ return jjMoveStringLiteralDfa6_0(active0, 0L, active1, 0x2000000000L);
+ case 84:
+ case 116:
+ return jjMoveStringLiteralDfa6_0(active0, 0x200000000000000L, active1, 0L);
+ case 85:
+ case 117:
+ return jjMoveStringLiteralDfa6_0(active0, 0x100000000000000L, active1, 0L);
+ default :
+ break;
+ }
+ return jjStartNfa_0(4, active0, active1);
+}
+private int jjMoveStringLiteralDfa6_0(long old0, long active0, long old1, long active1)
+{
+ if (((active0 &= old0) | (active1 &= old1)) == 0L)
+ return jjStartNfa_0(4, old0, old1);
+ try { curChar = input_stream.readChar(); }
+ catch(java.io.IOException e) {
+ jjStopStringLiteralDfa_0(5, active0, active1);
+ return 6;
+ }
+ switch(curChar)
+ {
+ case 68:
+ case 100:
+ if ((active1 & 0x4L) != 0L)
+ return jjStartNfaWithStates_0(6, 66, 520);
+ return jjMoveStringLiteralDfa7_0(active0, 0x100000000000000L, active1, 0x8L);
+ case 69:
+ case 101:
+ return jjMoveStringLiteralDfa7_0(active0, 0L, active1, 0x2000000000L);
+ case 70:
+ case 102:
+ return jjMoveStringLiteralDfa7_0(active0, 0L, active1, 0x8000000000L);
+ case 72:
+ case 104:
+ if ((active0 & 0x10000000000000L) != 0L)
+ return jjStartNfaWithStates_0(6, 52, 518);
+ break;
+ case 73:
+ case 105:
+ return jjMoveStringLiteralDfa7_0(active0, 0x200000000000000L, active1, 0L);
+ case 78:
+ case 110:
+ if ((active0 & 0x400000000000000L) != 0L)
+ return jjStartNfaWithStates_0(6, 58, 520);
+ return jjMoveStringLiteralDfa7_0(active0, 0L, active1, 0x20L);
+ case 82:
+ case 114:
+ return jjMoveStringLiteralDfa7_0(active0, 0L, active1, 0x10L);
+ case 84:
+ case 116:
+ if ((active1 & 0x800000000L) != 0L)
+ return jjStartNfaWithStates_0(6, 99, 520);
+ break;
+ default :
+ break;
+ }
+ return jjStartNfa_0(5, active0, active1);
+}
+private int jjMoveStringLiteralDfa7_0(long old0, long active0, long old1, long active1)
+{
+ if (((active0 &= old0) | (active1 &= old1)) == 0L)
+ return jjStartNfa_0(5, old0, old1);
+ try { curChar = input_stream.readChar(); }
+ catch(java.io.IOException e) {
+ jjStopStringLiteralDfa_0(6, active0, active1);
+ return 7;
+ }
+ switch(curChar)
+ {
+ case 65:
+ case 97:
+ return jjMoveStringLiteralDfa8_0(active0, 0L, active1, 0x8000000000L);
+ case 69:
+ case 101:
+ if ((active0 & 0x100000000000000L) != 0L)
+ return jjStartNfaWithStates_0(7, 56, 520);
+ break;
+ case 79:
+ case 111:
+ return jjMoveStringLiteralDfa8_0(active0, 0x200000000000000L, active1, 0x8L);
+ case 84:
+ case 116:
+ if ((active1 & 0x20L) != 0L)
+ return jjStartNfaWithStates_0(7, 69, 520);
+ else if ((active1 & 0x2000000000L) != 0L)
+ return jjStartNfaWithStates_0(7, 101, 520);
+ return jjMoveStringLiteralDfa8_0(active0, 0L, active1, 0x10L);
+ default :
+ break;
+ }
+ return jjStartNfa_0(6, active0, active1);
+}
+private int jjMoveStringLiteralDfa8_0(long old0, long active0, long old1, long active1)
+{
+ if (((active0 &= old0) | (active1 &= old1)) == 0L)
+ return jjStartNfa_0(6, old0, old1);
+ try { curChar = input_stream.readChar(); }
+ catch(java.io.IOException e) {
+ jjStopStringLiteralDfa_0(7, active0, active1);
+ return 8;
+ }
+ switch(curChar)
+ {
+ case 67:
+ case 99:
+ return jjMoveStringLiteralDfa9_0(active0, 0L, active1, 0x8000000008L);
+ case 78:
+ case 110:
+ if ((active0 & 0x200000000000000L) != 0L)
+ return jjStartNfaWithStates_0(8, 57, 520);
+ break;
+ case 83:
+ case 115:
+ if ((active1 & 0x10L) != 0L)
+ return jjStartNfaWithStates_0(8, 68, 520);
+ break;
+ default :
+ break;
+ }
+ return jjStartNfa_0(7, active0, active1);
+}
+private int jjMoveStringLiteralDfa9_0(long old0, long active0, long old1, long active1)
+{
+ if (((active0 &= old0) | (active1 &= old1)) == 0L)
+ return jjStartNfa_0(7, old0, old1);
+ try { curChar = input_stream.readChar(); }
+ catch(java.io.IOException e) {
+ jjStopStringLiteralDfa_0(8, 0L, active1);
+ return 9;
+ }
+ switch(curChar)
+ {
+ case 69:
+ case 101:
+ if ((active1 & 0x8000000000L) != 0L)
+ return jjStartNfaWithStates_0(9, 103, 520);
+ break;
+ case 85:
+ case 117:
+ return jjMoveStringLiteralDfa10_0(active1, 0x8L);
+ default :
+ break;
+ }
+ return jjStartNfa_0(8, 0L, active1);
+}
+private int jjMoveStringLiteralDfa10_0(long old1, long active1)
+{
+ if (((active1 &= old1)) == 0L)
+ return jjStartNfa_0(8, 0L, old1);
+ try { curChar = input_stream.readChar(); }
+ catch(java.io.IOException e) {
+ jjStopStringLiteralDfa_0(9, 0L, active1);
+ return 10;
+ }
+ switch(curChar)
+ {
+ case 77:
+ case 109:
+ return jjMoveStringLiteralDfa11_0(active1, 0x8L);
+ default :
+ break;
+ }
+ return jjStartNfa_0(9, 0L, active1);
+}
+private int jjMoveStringLiteralDfa11_0(long old1, long active1)
+{
+ if (((active1 &= old1)) == 0L)
+ return jjStartNfa_0(9, 0L, old1);
+ try { curChar = input_stream.readChar(); }
+ catch(java.io.IOException e) {
+ jjStopStringLiteralDfa_0(10, 0L, active1);
+ return 11;
+ }
+ switch(curChar)
+ {
+ case 69:
+ case 101:
+ return jjMoveStringLiteralDfa12_0(active1, 0x8L);
+ default :
+ break;
+ }
+ return jjStartNfa_0(10, 0L, active1);
+}
+private int jjMoveStringLiteralDfa12_0(long old1, long active1)
+{
+ if (((active1 &= old1)) == 0L)
+ return jjStartNfa_0(10, 0L, old1);
+ try { curChar = input_stream.readChar(); }
+ catch(java.io.IOException e) {
+ jjStopStringLiteralDfa_0(11, 0L, active1);
+ return 12;
+ }
+ switch(curChar)
+ {
+ case 78:
+ case 110:
+ return jjMoveStringLiteralDfa13_0(active1, 0x8L);
+ default :
+ break;
+ }
+ return jjStartNfa_0(11, 0L, active1);
+}
+private int jjMoveStringLiteralDfa13_0(long old1, long active1)
+{
+ if (((active1 &= old1)) == 0L)
+ return jjStartNfa_0(11, 0L, old1);
+ try { curChar = input_stream.readChar(); }
+ catch(java.io.IOException e) {
+ jjStopStringLiteralDfa_0(12, 0L, active1);
+ return 13;
+ }
+ switch(curChar)
+ {
+ case 84:
+ case 116:
+ if ((active1 & 0x8L) != 0L)
+ return jjStartNfaWithStates_0(13, 67, 520);
+ break;
+ default :
+ break;
+ }
+ return jjStartNfa_0(12, 0L, active1);
+}
+private int jjStartNfaWithStates_0(int pos, int kind, int state)
+{
+ jjmatchedKind = kind;
+ jjmatchedPos = pos;
+ try { curChar = input_stream.readChar(); }
+ catch(java.io.IOException e) { return pos + 1; }
+ return jjMoveNfa_0(state, pos + 1);
+}
static final long[] jjbitVec0 = {
0x0L, 0x0L, 0xffffffffffffffffL, 0xffffffffffffffffL
-};
-private int jjMoveNfa_0(int startState, int curPos)
-{
- int startsAt = 0;
- jjnewStateCnt = 517;
- 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 520:
- case 113:
- if ((0x3ff200000000000L & l) == 0L)
- break;
- if (kind > 105)
- kind = 105;
- jjCheckNAddTwoStates(113, 114);
- break;
- case 166:
- if (curChar == 45)
- jjstateSet[jjnewStateCnt++] = 112;
- if (curChar == 45)
- jjstateSet[jjnewStateCnt++] = 217;
- if (curChar == 45)
- jjstateSet[jjnewStateCnt++] = 205;
- if (curChar == 45)
- jjstateSet[jjnewStateCnt++] = 189;
- if (curChar == 45)
- jjstateSet[jjnewStateCnt++] = 178;
- break;
- case 174:
- if ((0x3ff200000000000L & l) == 0L)
- break;
- if (kind > 105)
- kind = 105;
- jjCheckNAddTwoStates(113, 114);
- break;
- case 4:
- if ((0x3ff000000000000L & l) != 0L)
- {
- if (kind > 75)
- kind = 75;
- jjCheckNAddStates(0, 81);
- }
- else if ((0x100003600L & l) != 0L)
- {
- if (kind > 1)
- kind = 1;
- jjCheckNAdd(0);
- }
- else if (curChar == 46)
- jjCheckNAddStates(82, 101);
- else if (curChar == 45)
- jjAddStates(102, 103);
- else if (curChar == 33)
- jjCheckNAddStates(104, 107);
- else if (curChar == 35)
- jjCheckNAddTwoStates(100, 101);
- else if (curChar == 36)
- jjCheckNAddStates(108, 111);
- else if (curChar == 39)
- jjCheckNAddStates(112, 115);
- else if (curChar == 34)
- jjCheckNAddStates(116, 119);
- else if (curChar == 47)
- jjstateSet[jjnewStateCnt++] = 3;
- if (curChar == 45)
- jjstateSet[jjnewStateCnt++] = 42;
- else if (curChar == 35)
- jjstateSet[jjnewStateCnt++] = 5;
- break;
- case 517:
- if ((0x100003600L & l) != 0L)
- jjCheckNAddTwoStates(251, 260);
- if ((0x100003600L & l) != 0L)
- jjCheckNAddTwoStates(243, 250);
- break;
- case 518:
- if ((0x3ff200000000000L & l) != 0L)
- jjCheckNAddStates(120, 123);
- else if ((0x100003600L & l) != 0L)
- jjCheckNAddTwoStates(231, 232);
- else if (curChar == 40)
- {
- if (kind > 120)
- kind = 120;
- }
- if ((0x3ff200000000000L & l) != 0L)
- {
- if (kind > 74)
- kind = 74;
- jjCheckNAddTwoStates(220, 221);
- }
- break;
- case 175:
- if ((0x3ff200000000000L & l) != 0L)
- {
- if (kind > 105)
- kind = 105;
- jjCheckNAddTwoStates(113, 114);
- }
- if (curChar == 45)
- jjstateSet[jjnewStateCnt++] = 174;
- break;
- case 33:
- if ((0x3ff200000000000L & l) != 0L)
- jjCheckNAddStates(120, 123);
- else if ((0x100003600L & l) != 0L)
- jjCheckNAddTwoStates(231, 232);
- else if (curChar == 40)
- {
- if (kind > 120)
- kind = 120;
- }
- if ((0x3ff200000000000L & l) != 0L)
- {
- if (kind > 74)
- kind = 74;
- jjCheckNAddTwoStates(220, 221);
- }
- break;
- case 176:
- if ((0x3ff200000000000L & l) == 0L)
- break;
- if (kind > 105)
- kind = 105;
- jjCheckNAddTwoStates(113, 114);
- break;
- case 519:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(124, 128);
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(322, 325);
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(319, 321);
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(317, 318);
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(314, 316);
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(309, 313);
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(305, 308);
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(301, 304);
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(298, 300);
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(294, 297);
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(290, 293);
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(287, 289);
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(284, 286);
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(281, 283);
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(278, 280);
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(275, 277);
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(272, 274);
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(269, 271);
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(267, 268);
- if ((0x3ff000000000000L & l) != 0L)
- {
- if (kind > 75)
- kind = 75;
- jjCheckNAdd(266);
- }
- break;
- case 177:
- if ((0x3ff200000000000L & l) == 0L)
- break;
- if (kind > 105)
- kind = 105;
- jjCheckNAddTwoStates(113, 114);
- break;
- case 79:
- if (curChar == 45)
- jjCheckNAdd(80);
- break;
- case 0:
- if ((0x100003600L & l) == 0L)
- break;
- if (kind > 1)
- kind = 1;
- jjCheckNAdd(0);
- break;
- case 1:
- if (curChar == 42)
- jjstateSet[jjnewStateCnt++] = 2;
- break;
- case 2:
- if ((0xffff7fffffffffffL & l) != 0L && kind > 5)
- kind = 5;
- break;
- case 3:
- if (curChar == 42)
- jjstateSet[jjnewStateCnt++] = 1;
- break;
- case 6:
- if (curChar == 36)
- jjCheckNAddStates(129, 132);
- break;
- case 7:
- if (curChar == 45)
- jjCheckNAdd(8);
- break;
- case 9:
- if ((0x3ff200000000000L & l) != 0L)
- jjCheckNAddStates(133, 135);
- break;
- case 12:
- if ((0xffffffff00000000L & l) != 0L)
- jjCheckNAddStates(133, 135);
- break;
- case 13:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(136, 140);
- break;
- case 14:
- if ((0x100003600L & l) != 0L)
- jjCheckNAddStates(133, 135);
- break;
- case 15:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(141, 148);
- break;
- case 16:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(149, 152);
- break;
- case 17:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(153, 157);
- break;
- case 18:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(158, 163);
- break;
- case 19:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(164, 170);
- break;
- case 22:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(171, 175);
- break;
- case 23:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(176, 183);
- break;
- case 24:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(184, 187);
- break;
- case 25:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(188, 192);
- break;
- case 26:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(193, 198);
- break;
- case 27:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(199, 205);
- break;
- case 28:
- if (curChar == 35)
- jjstateSet[jjnewStateCnt++] = 5;
- break;
- case 40:
- if (curChar == 45)
- jjstateSet[jjnewStateCnt++] = 39;
- break;
- case 43:
- if (curChar == 45)
- jjstateSet[jjnewStateCnt++] = 42;
- break;
- case 44:
- if (curChar == 34)
- jjCheckNAddStates(116, 119);
- break;
- case 45:
- if ((0xfffffffb00000200L & l) != 0L)
- jjCheckNAddStates(116, 119);
- break;
- case 46:
- if (curChar == 34 && kind > 73)
- kind = 73;
- break;
- case 48:
- if (curChar == 12)
- jjCheckNAddStates(116, 119);
- break;
- case 50:
- if ((0xffffffff00000000L & l) != 0L)
- jjCheckNAddStates(116, 119);
- break;
- case 51:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(206, 211);
- break;
- case 52:
- if ((0x100003600L & l) != 0L)
- jjCheckNAddStates(116, 119);
- break;
- case 53:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(212, 220);
- break;
- case 54:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(221, 225);
- break;
- case 55:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(226, 231);
- break;
- case 56:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(232, 238);
- break;
- case 57:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(239, 246);
- break;
- case 58:
- if (curChar == 13)
- jjCheckNAddStates(116, 119);
- break;
- case 59:
- if (curChar == 10)
- jjCheckNAddStates(116, 119);
- break;
- case 60:
- if (curChar == 13)
- jjstateSet[jjnewStateCnt++] = 59;
- break;
- case 61:
- if (curChar == 39)
- jjCheckNAddStates(112, 115);
- break;
- case 62:
- if ((0xffffff7f00000200L & l) != 0L)
- jjCheckNAddStates(112, 115);
- break;
- case 63:
- if (curChar == 39 && kind > 73)
- kind = 73;
- break;
- case 65:
- if (curChar == 12)
- jjCheckNAddStates(112, 115);
- break;
- case 67:
- if ((0xffffffff00000000L & l) != 0L)
- jjCheckNAddStates(112, 115);
- break;
- case 68:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(247, 252);
- break;
- case 69:
- if ((0x100003600L & l) != 0L)
- jjCheckNAddStates(112, 115);
- break;
- case 70:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(253, 261);
- break;
- case 71:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(262, 266);
- break;
- case 72:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(267, 272);
- break;
- case 73:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(273, 279);
- break;
- case 74:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(280, 287);
- break;
- case 75:
- if (curChar == 13)
- jjCheckNAddStates(112, 115);
- break;
- case 76:
- if (curChar == 10)
- jjCheckNAddStates(112, 115);
- break;
- case 77:
- if (curChar == 13)
- jjstateSet[jjnewStateCnt++] = 76;
- break;
- case 78:
- if (curChar == 36)
- jjCheckNAddStates(108, 111);
- break;
- case 81:
- if ((0x3ff200000000000L & l) == 0L)
- break;
- if (kind > 78)
- kind = 78;
- jjCheckNAddTwoStates(81, 82);
- break;
- case 83:
- if ((0xffffffff00000000L & l) == 0L)
- break;
- if (kind > 78)
- kind = 78;
- jjCheckNAddTwoStates(81, 82);
- break;
- case 84:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 78)
- kind = 78;
- jjCheckNAddStates(288, 291);
- break;
- case 85:
- if ((0x100003600L & l) == 0L)
- break;
- if (kind > 78)
- kind = 78;
- jjCheckNAddTwoStates(81, 82);
- break;
- case 86:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 78)
- kind = 78;
- jjCheckNAddStates(292, 298);
- break;
- case 87:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 78)
- kind = 78;
- jjCheckNAddStates(299, 301);
- break;
- case 88:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 78)
- kind = 78;
- jjCheckNAddStates(302, 305);
- break;
- case 89:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 78)
- kind = 78;
- jjCheckNAddStates(306, 310);
- break;
- case 90:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 78)
- kind = 78;
- jjCheckNAddStates(311, 316);
- break;
- case 93:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 78)
- kind = 78;
- jjCheckNAddStates(317, 320);
- break;
- case 94:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 78)
- kind = 78;
- jjCheckNAddStates(321, 327);
- break;
- case 95:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 78)
- kind = 78;
- jjCheckNAddStates(328, 330);
- break;
- case 96:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 78)
- kind = 78;
- jjCheckNAddStates(331, 334);
- break;
- case 97:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 78)
- kind = 78;
- jjCheckNAddStates(335, 339);
- break;
- case 98:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 78)
- kind = 78;
- jjCheckNAddStates(340, 345);
- break;
- case 99:
- if (curChar == 35)
- jjCheckNAddTwoStates(100, 101);
- break;
- case 100:
- if ((0x3ff200000000000L & l) == 0L)
- break;
- if (kind > 98)
- kind = 98;
- jjCheckNAddTwoStates(100, 101);
- break;
- case 102:
- if ((0xffffffff00000000L & l) == 0L)
- break;
- if (kind > 98)
- kind = 98;
- jjCheckNAddTwoStates(100, 101);
- break;
- case 103:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 98)
- kind = 98;
- jjCheckNAddStates(346, 349);
- break;
- case 104:
- if ((0x100003600L & l) == 0L)
- break;
- if (kind > 98)
- kind = 98;
- jjCheckNAddTwoStates(100, 101);
- break;
- case 105:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 98)
- kind = 98;
- jjCheckNAddStates(350, 356);
- break;
- case 106:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 98)
- kind = 98;
- jjCheckNAddStates(357, 359);
- break;
- case 107:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 98)
- kind = 98;
- jjCheckNAddStates(360, 363);
- break;
- case 108:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 98)
- kind = 98;
- jjCheckNAddStates(364, 368);
- break;
- case 109:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 98)
- kind = 98;
- jjCheckNAddStates(369, 374);
- break;
- case 111:
- if (curChar == 45)
- jjstateSet[jjnewStateCnt++] = 112;
- break;
- case 115:
- if ((0xffffffff00000000L & l) == 0L)
- break;
- if (kind > 105)
- kind = 105;
- jjCheckNAddTwoStates(113, 114);
- break;
- case 116:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 105)
- kind = 105;
- jjCheckNAddStates(375, 378);
- break;
- case 117:
- if ((0x100003600L & l) == 0L)
- break;
- if (kind > 105)
- kind = 105;
- jjCheckNAddTwoStates(113, 114);
- break;
- case 118:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 105)
- kind = 105;
- jjCheckNAddStates(379, 385);
- break;
- case 119:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 105)
- kind = 105;
- jjCheckNAddStates(386, 388);
- break;
- case 120:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 105)
- kind = 105;
- jjCheckNAddStates(389, 392);
- break;
- case 121:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 105)
- kind = 105;
- jjCheckNAddStates(393, 397);
- break;
- case 122:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 105)
- kind = 105;
- jjCheckNAddStates(398, 403);
- break;
- case 125:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 105)
- kind = 105;
- jjCheckNAddStates(404, 407);
- break;
- case 126:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 105)
- kind = 105;
- jjCheckNAddStates(408, 414);
- break;
- case 127:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 105)
- kind = 105;
- jjCheckNAddStates(415, 417);
- break;
- case 128:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 105)
- kind = 105;
- jjCheckNAddStates(418, 421);
- break;
- case 129:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 105)
- kind = 105;
- jjCheckNAddStates(422, 426);
- break;
- case 130:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 105)
- kind = 105;
- jjCheckNAddStates(427, 432);
- break;
- case 132:
- if ((0x100003600L & l) != 0L)
- jjAddStates(433, 434);
- break;
- case 133:
- if (curChar == 40 && kind > 117)
- kind = 117;
- break;
- case 140:
- if ((0x100003600L & l) != 0L)
- jjAddStates(435, 436);
- break;
- case 141:
- if (curChar == 40 && kind > 118)
- kind = 118;
- break;
- case 148:
- if ((0x100003600L & l) != 0L)
- jjAddStates(437, 438);
- break;
- case 149:
- if (curChar == 40 && kind > 119)
- kind = 119;
- break;
- case 179:
- if (curChar == 45)
- jjstateSet[jjnewStateCnt++] = 178;
- break;
- case 188:
- if (curChar == 45)
- jjstateSet[jjnewStateCnt++] = 187;
- break;
- case 190:
- if (curChar == 45)
- jjstateSet[jjnewStateCnt++] = 189;
- break;
- case 199:
- if (curChar == 45)
- jjstateSet[jjnewStateCnt++] = 198;
- break;
- case 206:
- if (curChar == 45)
- jjstateSet[jjnewStateCnt++] = 205;
- break;
- case 215:
- if (curChar == 45)
- jjstateSet[jjnewStateCnt++] = 214;
- break;
- case 218:
- if (curChar == 45)
- jjstateSet[jjnewStateCnt++] = 217;
- break;
- case 220:
- if ((0x3ff200000000000L & l) == 0L)
- break;
- if (kind > 74)
- kind = 74;
- jjCheckNAddTwoStates(220, 221);
- break;
- case 222:
- if ((0xffffffff00000000L & l) == 0L)
- break;
- if (kind > 74)
- kind = 74;
- jjCheckNAddTwoStates(220, 221);
- break;
- case 223:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 74)
- kind = 74;
- jjCheckNAddStates(439, 442);
- break;
- case 224:
- if ((0x100003600L & l) == 0L)
- break;
- if (kind > 74)
- kind = 74;
- jjCheckNAddTwoStates(220, 221);
- break;
- case 225:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 74)
- kind = 74;
- jjCheckNAddStates(443, 449);
- break;
- case 226:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 74)
- kind = 74;
- jjCheckNAddStates(450, 452);
- break;
- case 227:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 74)
- kind = 74;
- jjCheckNAddStates(453, 456);
- break;
- case 228:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 74)
- kind = 74;
- jjCheckNAddStates(457, 461);
- break;
- case 229:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 74)
- kind = 74;
- jjCheckNAddStates(462, 467);
- break;
- case 230:
- if ((0x3ff200000000000L & l) != 0L)
- jjCheckNAddStates(120, 123);
- break;
- case 231:
- if ((0x100003600L & l) != 0L)
- jjCheckNAddTwoStates(231, 232);
- break;
- case 232:
- if (curChar == 40 && kind > 120)
- kind = 120;
- break;
- case 234:
- if ((0xffffffff00000000L & l) != 0L)
- jjCheckNAddStates(120, 123);
- break;
- case 235:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(468, 472);
- break;
- case 236:
- if ((0x100003600L & l) != 0L)
- jjCheckNAddStates(120, 123);
- break;
- case 237:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(473, 480);
- break;
- case 238:
- case 452:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(481, 484);
- break;
- case 239:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(485, 489);
- break;
- case 240:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(490, 495);
- break;
- case 241:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(496, 502);
- break;
- case 242:
- if (curChar == 33)
- jjCheckNAddStates(104, 107);
- break;
- case 243:
- if ((0x100003600L & l) != 0L)
- jjCheckNAddTwoStates(243, 250);
- break;
- case 251:
- if ((0x100003600L & l) != 0L)
- jjCheckNAddTwoStates(251, 260);
- break;
- case 261:
- if (curChar == 45)
- jjAddStates(102, 103);
- break;
- case 265:
- if (curChar == 46)
- jjCheckNAddStates(82, 101);
- break;
- case 266:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 75)
- kind = 75;
- jjCheckNAdd(266);
- break;
- case 267:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(267, 268);
- break;
- case 268:
- if (curChar == 37 && kind > 79)
- kind = 79;
- break;
- case 269:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(269, 271);
- break;
- case 272:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(272, 274);
- break;
- case 275:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(275, 277);
- break;
- case 278:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(278, 280);
- break;
- case 281:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(281, 283);
- break;
- case 284:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(284, 286);
- break;
- case 287:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(287, 289);
- break;
- case 290:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(290, 293);
- break;
- case 294:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(294, 297);
- break;
- case 298:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(298, 300);
- break;
- case 301:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(301, 304);
- break;
- case 305:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(305, 308);
- break;
- case 309:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(309, 313);
- break;
- case 314:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(314, 316);
- break;
- case 317:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(317, 318);
- break;
- case 319:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(319, 321);
- break;
- case 322:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(322, 325);
- break;
- case 326:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(124, 128);
- break;
- case 327:
- if (curChar == 45)
- jjCheckNAdd(328);
- break;
- case 329:
- if ((0x3ff200000000000L & l) == 0L)
- break;
- if (kind > 97)
- kind = 97;
- jjCheckNAddTwoStates(329, 330);
- break;
- case 331:
- if ((0xffffffff00000000L & l) == 0L)
- break;
- if (kind > 97)
- kind = 97;
- jjCheckNAddTwoStates(329, 330);
- break;
- case 332:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 97)
- kind = 97;
- jjCheckNAddStates(503, 506);
- break;
- case 333:
- if ((0x100003600L & l) == 0L)
- break;
- if (kind > 97)
- kind = 97;
- jjCheckNAddTwoStates(329, 330);
- break;
- case 334:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 97)
- kind = 97;
- jjCheckNAddStates(507, 513);
- break;
- case 335:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 97)
- kind = 97;
- jjCheckNAddStates(514, 516);
- break;
- case 336:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 97)
- kind = 97;
- jjCheckNAddStates(517, 520);
- break;
- case 337:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 97)
- kind = 97;
- jjCheckNAddStates(521, 525);
- break;
- case 338:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 97)
- kind = 97;
- jjCheckNAddStates(526, 531);
- break;
- case 341:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 97)
- kind = 97;
- jjCheckNAddStates(532, 535);
- break;
- case 342:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 97)
- kind = 97;
- jjCheckNAddStates(536, 542);
- break;
- case 343:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 97)
- kind = 97;
- jjCheckNAddStates(543, 545);
- break;
- case 344:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 97)
- kind = 97;
- jjCheckNAddStates(546, 549);
- break;
- case 345:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 97)
- kind = 97;
- jjCheckNAddStates(550, 554);
- break;
- case 346:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 97)
- kind = 97;
- jjCheckNAddStates(555, 560);
- break;
- case 348:
- if (curChar == 40)
- jjCheckNAddStates(561, 566);
- break;
- case 349:
- if ((0xfffffc7a00000000L & l) != 0L)
- jjCheckNAddStates(567, 570);
- break;
- case 350:
- if ((0x100003600L & l) != 0L)
- jjCheckNAddTwoStates(350, 351);
- break;
- case 351:
- if (curChar == 41 && kind > 77)
- kind = 77;
- break;
- case 353:
- if ((0xffffffff00000000L & l) != 0L)
- jjCheckNAddStates(567, 570);
- break;
- case 354:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(571, 575);
- break;
- case 355:
- if ((0x100003600L & l) != 0L)
- jjCheckNAddStates(567, 570);
- break;
- case 356:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(576, 583);
- break;
- case 357:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(584, 587);
- break;
- case 358:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(588, 592);
- break;
- case 359:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(593, 598);
- break;
- case 360:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(599, 605);
- break;
- case 361:
- if (curChar == 39)
- jjCheckNAddStates(606, 609);
- break;
- case 362:
- if ((0xffffff7f00000200L & l) != 0L)
- jjCheckNAddStates(606, 609);
- break;
- case 363:
- if (curChar == 39)
- jjCheckNAddTwoStates(350, 351);
- break;
- case 365:
- if (curChar == 12)
- jjCheckNAddStates(606, 609);
- break;
- case 367:
- if ((0xffffffff00000000L & l) != 0L)
- jjCheckNAddStates(606, 609);
- break;
- case 368:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(610, 615);
- break;
- case 369:
- if ((0x100003600L & l) != 0L)
- jjCheckNAddStates(606, 609);
- break;
- case 370:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(616, 624);
- break;
- case 371:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(625, 629);
- break;
- case 372:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(630, 635);
- break;
- case 373:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(636, 642);
- break;
- case 374:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(643, 650);
- break;
- case 375:
- if (curChar == 13)
- jjCheckNAddStates(606, 609);
- break;
- case 376:
- if (curChar == 10)
- jjCheckNAddStates(606, 609);
- break;
- case 377:
- if (curChar == 13)
- jjstateSet[jjnewStateCnt++] = 376;
- break;
- case 378:
- if (curChar == 34)
- jjCheckNAddStates(651, 654);
- break;
- case 379:
- if ((0xfffffffb00000200L & l) != 0L)
- jjCheckNAddStates(651, 654);
- break;
- case 380:
- if (curChar == 34)
- jjCheckNAddTwoStates(350, 351);
- break;
- case 382:
- if (curChar == 12)
- jjCheckNAddStates(651, 654);
- break;
- case 384:
- if ((0xffffffff00000000L & l) != 0L)
- jjCheckNAddStates(651, 654);
- break;
- case 385:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(655, 660);
- break;
- case 386:
- if ((0x100003600L & l) != 0L)
- jjCheckNAddStates(651, 654);
- break;
- case 387:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(661, 669);
- break;
- case 388:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(670, 674);
- break;
- case 389:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(675, 680);
- break;
- case 390:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(681, 687);
- break;
- case 391:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(688, 695);
- break;
- case 392:
- if (curChar == 13)
- jjCheckNAddStates(651, 654);
- break;
- case 393:
- if (curChar == 10)
- jjCheckNAddStates(651, 654);
- break;
- case 394:
- if (curChar == 13)
- jjstateSet[jjnewStateCnt++] = 393;
- break;
- case 395:
- if ((0x100003600L & l) != 0L)
- jjCheckNAddStates(696, 702);
- break;
- case 398:
- if (curChar == 43)
- jjAddStates(703, 704);
- break;
- case 399:
- if (curChar != 63)
- break;
- if (kind > 116)
- kind = 116;
- jjstateSet[jjnewStateCnt++] = 400;
- break;
- case 400:
- if (curChar != 63)
- break;
- if (kind > 116)
- kind = 116;
- jjCheckNAddStates(705, 708);
- break;
- case 401:
- if (curChar == 63 && kind > 116)
- kind = 116;
- break;
- case 402:
- case 417:
- case 421:
- case 424:
- case 427:
- if (curChar != 63)
- break;
- if (kind > 116)
- kind = 116;
- jjCheckNAdd(401);
- break;
- case 403:
- if (curChar != 63)
- break;
- if (kind > 116)
- kind = 116;
- jjCheckNAddTwoStates(401, 402);
- break;
- case 404:
- if (curChar != 63)
- break;
- if (kind > 116)
- kind = 116;
- jjCheckNAddStates(709, 711);
- break;
- case 405:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 116)
- kind = 116;
- jjAddStates(712, 717);
- break;
- case 406:
- if ((0x3ff000000000000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 407;
- break;
- case 407:
- if ((0x3ff000000000000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 408;
- break;
- case 408:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAdd(409);
- break;
- case 409:
- if ((0x3ff000000000000L & l) != 0L && kind > 116)
- kind = 116;
- break;
- case 410:
- if ((0x3ff000000000000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 411;
- break;
- case 411:
- if ((0x3ff000000000000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 412;
- break;
- case 412:
- if ((0x3ff000000000000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 413;
- break;
- case 413:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 116)
- kind = 116;
- jjCheckNAdd(401);
- break;
- case 414:
- if ((0x3ff000000000000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 415;
- break;
- case 415:
- if ((0x3ff000000000000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 416;
- break;
- case 416:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 116)
- kind = 116;
- jjstateSet[jjnewStateCnt++] = 417;
- break;
- case 418:
- if ((0x3ff000000000000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 419;
- break;
- case 419:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 116)
- kind = 116;
- jjstateSet[jjnewStateCnt++] = 420;
- break;
- case 420:
- if (curChar != 63)
- break;
- if (kind > 116)
- kind = 116;
- jjCheckNAddTwoStates(401, 421);
- break;
- case 422:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 116)
- kind = 116;
- jjstateSet[jjnewStateCnt++] = 423;
- break;
- case 423:
- if (curChar != 63)
- break;
- if (kind > 116)
- kind = 116;
- jjCheckNAddStates(718, 720);
- break;
- case 425:
- if (curChar != 63)
- break;
- if (kind > 116)
- kind = 116;
- jjCheckNAddTwoStates(401, 424);
- break;
- case 426:
- if (curChar != 63)
- break;
- if (kind > 116)
- kind = 116;
- jjCheckNAddStates(721, 724);
- break;
- case 428:
- if (curChar != 63)
- break;
- if (kind > 116)
- kind = 116;
- jjCheckNAddTwoStates(401, 427);
- break;
- case 429:
- if (curChar != 63)
- break;
- if (kind > 116)
- kind = 116;
- jjCheckNAddStates(725, 727);
- break;
- case 430:
- if (curChar == 43)
- jjstateSet[jjnewStateCnt++] = 431;
- break;
- case 431:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(432, 438);
- break;
- case 432:
- if (curChar == 45)
- jjstateSet[jjnewStateCnt++] = 433;
- break;
- case 433:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 116)
- kind = 116;
- jjstateSet[jjnewStateCnt++] = 434;
- break;
- case 434:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 116)
- kind = 116;
- jjCheckNAddStates(728, 731);
- break;
- case 435:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 116)
- kind = 116;
- jjCheckNAdd(409);
- break;
- case 436:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 116)
- kind = 116;
- jjCheckNAddTwoStates(409, 435);
- break;
- case 437:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 116)
- kind = 116;
- jjCheckNAddStates(732, 734);
- break;
- case 438:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(735, 739);
- break;
- case 439:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAdd(432);
- break;
- case 440:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(439, 432);
- break;
- case 441:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(740, 742);
- break;
- case 442:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(743, 746);
- break;
- case 444:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 74)
- kind = 74;
- jjCheckNAddStates(747, 750);
- break;
- case 445:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 74)
- kind = 74;
- jjCheckNAddStates(751, 757);
- break;
- case 446:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 74)
- kind = 74;
- jjCheckNAddStates(758, 760);
- break;
- case 447:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 74)
- kind = 74;
- jjCheckNAddStates(761, 764);
- break;
- case 448:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 74)
- kind = 74;
- jjCheckNAddStates(765, 769);
- break;
- case 449:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 74)
- kind = 74;
- jjCheckNAddStates(770, 775);
- break;
- case 450:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(776, 780);
- break;
- case 451:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(781, 788);
- break;
- case 453:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(789, 793);
- break;
- case 454:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(794, 799);
- break;
- case 455:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(800, 806);
- break;
- case 456:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 75)
- kind = 75;
- jjCheckNAddStates(0, 81);
- break;
- case 457:
- if ((0x3ff000000000000L & l) == 0L)
- break;
- if (kind > 75)
- kind = 75;
- jjCheckNAdd(457);
- break;
- case 458:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(458, 459);
- break;
- case 459:
- if (curChar == 46)
- jjCheckNAdd(266);
- break;
- case 460:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(460, 268);
- break;
- case 461:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(461, 462);
- break;
- case 462:
- if (curChar == 46)
- jjCheckNAdd(267);
- break;
- case 463:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(463, 271);
- break;
- case 464:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(464, 465);
- break;
- case 465:
- if (curChar == 46)
- jjCheckNAdd(269);
- break;
- case 466:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(466, 274);
- break;
- case 467:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(467, 468);
- break;
- case 468:
- if (curChar == 46)
- jjCheckNAdd(272);
- break;
- case 469:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(469, 277);
- break;
- case 470:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(470, 471);
- break;
- case 471:
- if (curChar == 46)
- jjCheckNAdd(275);
- break;
- case 472:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(472, 280);
- break;
- case 473:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(473, 474);
- break;
- case 474:
- if (curChar == 46)
- jjCheckNAdd(278);
- break;
- case 475:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(475, 283);
- break;
- case 476:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(476, 477);
- break;
- case 477:
- if (curChar == 46)
- jjCheckNAdd(281);
- break;
- case 478:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(478, 286);
- break;
- case 479:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(479, 480);
- break;
- case 480:
- if (curChar == 46)
- jjCheckNAdd(284);
- break;
- case 481:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(481, 289);
- break;
- case 482:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(482, 483);
- break;
- case 483:
- if (curChar == 46)
- jjCheckNAdd(287);
- break;
- case 484:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(484, 293);
- break;
- case 485:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(485, 486);
- break;
- case 486:
- if (curChar == 46)
- jjCheckNAdd(290);
- break;
- case 487:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(487, 297);
- break;
- case 488:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(488, 489);
- break;
- case 489:
- if (curChar == 46)
- jjCheckNAdd(294);
- break;
- case 490:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(490, 300);
- break;
- case 491:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(491, 492);
- break;
- case 492:
- if (curChar == 46)
- jjCheckNAdd(298);
- break;
- case 493:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(493, 304);
- break;
- case 494:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(494, 495);
- break;
- case 495:
- if (curChar == 46)
- jjCheckNAdd(301);
- break;
- case 496:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(496, 308);
- break;
- case 497:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(497, 498);
- break;
- case 498:
- if (curChar == 46)
- jjCheckNAdd(305);
- break;
- case 499:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(499, 313);
- break;
- case 500:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(500, 501);
- break;
- case 501:
- if (curChar == 46)
- jjCheckNAdd(309);
- break;
- case 502:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(502, 316);
- break;
- case 503:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(503, 504);
- break;
- case 504:
- if (curChar == 46)
- jjCheckNAdd(314);
- break;
- case 505:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(505, 318);
- break;
- case 506:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(506, 507);
- break;
- case 507:
- if (curChar == 46)
- jjCheckNAdd(317);
- break;
- case 508:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(508, 321);
- break;
- case 509:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(509, 510);
- break;
- case 510:
- if (curChar == 46)
- jjCheckNAdd(319);
- break;
- case 511:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(511, 325);
- break;
- case 512:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(512, 513);
- break;
- case 513:
- if (curChar == 46)
- jjCheckNAdd(322);
- break;
- case 514:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddStates(807, 811);
- break;
- case 515:
- if ((0x3ff000000000000L & l) != 0L)
- jjCheckNAddTwoStates(515, 516);
- break;
- case 516:
- if (curChar == 46)
- jjCheckNAdd(326);
- break;
- default : break;
- }
- } while(i != startsAt);
- }
- else if (curChar < 128)
- {
- long l = 1L << (curChar & 077);
- do
- {
- switch(jjstateSet[--i])
- {
- case 520:
- if ((0x7fffffe87fffffeL & l) != 0L)
- {
- if (kind > 105)
- kind = 105;
- jjCheckNAddTwoStates(113, 114);
- }
- else if (curChar == 92)
- jjCheckNAddTwoStates(115, 116);
- break;
- case 166:
- if ((0x7fffffe07fffffeL & l) != 0L)
- {
- if (kind > 105)
- kind = 105;
- jjCheckNAddTwoStates(113, 114);
- }
- else if (curChar == 92)
- jjCheckNAddTwoStates(115, 125);
- if ((0x80000000800L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 165;
- break;
- case 174:
- if ((0x7fffffe87fffffeL & l) != 0L)
- {
- if (kind > 105)
- kind = 105;
- jjCheckNAddTwoStates(113, 114);
- }
- else if (curChar == 92)
- jjCheckNAddTwoStates(115, 116);
- if ((0x80000000800L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 173;
- break;
- case 4:
- if ((0x7fffffe07fffffeL & l) != 0L)
- {
- if (kind > 74)
- kind = 74;
- jjCheckNAddStates(812, 817);
- }
- else if (curChar == 92)
- jjCheckNAddStates(818, 821);
- else if (curChar == 64)
- jjAddStates(822, 826);
- if ((0x20000000200000L & l) != 0L)
- jjAddStates(827, 829);
- else if ((0x800000008L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 155;
- else if ((0x200000002L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 145;
- else if ((0x4000000040000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 137;
- else if ((0x4000000040L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 33;
- else if (curChar == 64)
- jjAddStates(830, 833);
- break;
- case 517:
- if ((0x20000000200L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 259;
- else if ((0x1000000010L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 249;
- break;
- case 178:
- if ((0x7fffffe07fffffeL & l) != 0L)
- {
- if (kind > 105)
- kind = 105;
- jjCheckNAddTwoStates(113, 114);
- }
- if ((0x200000002000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 216;
- else if ((0x80000000800000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 204;
- else if ((0x800000008000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 188;
- if ((0x200000002000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 177;
- break;
- case 518:
- if ((0x7fffffe87fffffeL & l) != 0L)
- jjCheckNAddStates(120, 123);
- else if (curChar == 92)
- jjCheckNAddTwoStates(222, 223);
- if ((0x7fffffe87fffffeL & l) != 0L)
- {
- if (kind > 74)
- kind = 74;
- jjCheckNAddTwoStates(220, 221);
- }
- else if (curChar == 92)
- jjCheckNAddTwoStates(234, 235);
- break;
- case 175:
- if ((0x7fffffe87fffffeL & l) != 0L)
- {
- if (kind > 105)
- kind = 105;
- jjCheckNAddTwoStates(113, 114);
- }
- else if (curChar == 92)
- jjCheckNAddTwoStates(115, 116);
- break;
- case 33:
- if ((0x7fffffe87fffffeL & l) != 0L)
- jjCheckNAddStates(120, 123);
- else if (curChar == 92)
- jjCheckNAddTwoStates(222, 223);
- if ((0x7fffffe87fffffeL & l) != 0L)
- {
- if (kind > 74)
- kind = 74;
- jjCheckNAddTwoStates(220, 221);
- }
- else if (curChar == 92)
- jjCheckNAddTwoStates(234, 235);
- if ((0x20000000200L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 32;
- break;
- case 176:
- if ((0x7fffffe87fffffeL & l) != 0L)
- {
- if (kind > 105)
- kind = 105;
- jjCheckNAddTwoStates(113, 114);
- }
- else if (curChar == 92)
- jjCheckNAddTwoStates(115, 116);
- if ((0x400000004000000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 175;
- break;
- case 42:
- if ((0x7fffffe07fffffeL & l) != 0L)
- jjCheckNAddStates(120, 123);
- if ((0x7fffffe07fffffeL & l) != 0L)
- {
- if (kind > 74)
- kind = 74;
- jjCheckNAddTwoStates(220, 221);
- }
- if ((0x200000002000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 41;
- break;
- case 177:
- if ((0x7fffffe87fffffeL & l) != 0L)
- {
- if (kind > 105)
- kind = 105;
- jjCheckNAddTwoStates(113, 114);
- }
- else if (curChar == 92)
- jjCheckNAddTwoStates(115, 116);
- if ((0x8000000080000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 215;
- else if ((0x800000008000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 176;
- break;
- case 79:
- if ((0x7fffffe07fffffeL & l) != 0L)
- {
- if (kind > 78)
- kind = 78;
- jjCheckNAddTwoStates(81, 82);
- }
- else if (curChar == 92)
- jjCheckNAddTwoStates(83, 93);
- break;
- case 2:
- if (kind > 5)
- kind = 5;
- break;
- case 5:
- if (curChar == 123)
- jjstateSet[jjnewStateCnt++] = 6;
- break;
- case 8:
- if ((0x7fffffe07fffffeL & l) != 0L)
- jjCheckNAddStates(133, 135);
- break;
- case 9:
- if ((0x7fffffe87fffffeL & l) != 0L)
- jjCheckNAddStates(133, 135);
- break;
- case 10:
- if (curChar == 125 && kind > 41)
- kind = 41;
- break;
- case 11:
- if (curChar == 92)
- jjCheckNAddTwoStates(12, 13);
- break;
- case 12:
- if ((0x7fffffffffffffffL & l) != 0L)
- jjCheckNAddStates(133, 135);
- break;
- case 13:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(136, 140);
- break;
- case 15:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(141, 148);
- break;
- case 16:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(149, 152);
- break;
- case 17:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(153, 157);
- break;
- case 18:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(158, 163);
- break;
- case 19:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(164, 170);
- break;
- case 21:
- if (curChar == 92)
- jjCheckNAddTwoStates(12, 22);
- break;
- case 22:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(171, 175);
- break;
- case 23:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(176, 183);
- break;
- case 24:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(184, 187);
- break;
- case 25:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(188, 192);
- break;
- case 26:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(193, 198);
- break;
- case 27:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(199, 205);
- break;
- case 29:
- if ((0x4000000040000L & l) != 0L && kind > 70)
- kind = 70;
- break;
- case 30:
- case 35:
- if ((0x2000000020L & l) != 0L)
- jjCheckNAdd(29);
- break;
- case 31:
- if ((0x10000000100000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 30;
- break;
- case 32:
- if ((0x100000001000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 31;
- break;
- case 34:
- if ((0x4000000040L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 33;
- break;
- case 36:
- if ((0x10000000100000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 35;
- break;
- case 37:
- if ((0x100000001000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 36;
- break;
- case 38:
- if ((0x20000000200L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 37;
- break;
- case 39:
- if ((0x4000000040L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 38;
- break;
- case 41:
- if ((0x8000000080000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 40;
- break;
- case 45:
- case 50:
- if ((0x7fffffffffffffffL & l) != 0L)
- jjCheckNAddStates(116, 119);
- break;
- case 47:
- if (curChar == 92)
- jjAddStates(834, 837);
- break;
- case 49:
- if (curChar == 92)
- jjAddStates(838, 839);
- break;
- case 51:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(206, 211);
- break;
- case 53:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(212, 220);
- break;
- case 54:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(221, 225);
- break;
- case 55:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(226, 231);
- break;
- case 56:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(232, 238);
- break;
- case 57:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(239, 246);
- break;
- case 62:
- case 67:
- if ((0x7fffffffffffffffL & l) != 0L)
- jjCheckNAddStates(112, 115);
- break;
- case 64:
- if (curChar == 92)
- jjAddStates(840, 843);
- break;
- case 66:
- if (curChar == 92)
- jjAddStates(844, 845);
- break;
- case 68:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(247, 252);
- break;
- case 70:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(253, 261);
- break;
- case 71:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(262, 266);
- break;
- case 72:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(267, 272);
- break;
- case 73:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(273, 279);
- break;
- case 74:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(280, 287);
- break;
- case 80:
- if ((0x7fffffe07fffffeL & l) == 0L)
- break;
- if (kind > 78)
- kind = 78;
- jjCheckNAddTwoStates(81, 82);
- break;
- case 81:
- if ((0x7fffffe87fffffeL & l) == 0L)
- break;
- if (kind > 78)
- kind = 78;
- jjCheckNAddTwoStates(81, 82);
- break;
- case 82:
- if (curChar == 92)
- jjCheckNAddTwoStates(83, 84);
- break;
- case 83:
- if ((0x7fffffffffffffffL & l) == 0L)
- break;
- if (kind > 78)
- kind = 78;
- jjCheckNAddTwoStates(81, 82);
- break;
- case 84:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 78)
- kind = 78;
- jjCheckNAddStates(288, 291);
- break;
- case 86:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 78)
- kind = 78;
- jjCheckNAddStates(292, 298);
- break;
- case 87:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 78)
- kind = 78;
- jjCheckNAddStates(299, 301);
- break;
- case 88:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 78)
- kind = 78;
- jjCheckNAddStates(302, 305);
- break;
- case 89:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 78)
- kind = 78;
- jjCheckNAddStates(306, 310);
- break;
- case 90:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 78)
- kind = 78;
- jjCheckNAddStates(311, 316);
- break;
- case 92:
- if (curChar == 92)
- jjCheckNAddTwoStates(83, 93);
- break;
- case 93:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 78)
- kind = 78;
- jjCheckNAddStates(317, 320);
- break;
- case 94:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 78)
- kind = 78;
- jjCheckNAddStates(321, 327);
- break;
- case 95:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 78)
- kind = 78;
- jjCheckNAddStates(328, 330);
- break;
- case 96:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 78)
- kind = 78;
- jjCheckNAddStates(331, 334);
- break;
- case 97:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 78)
- kind = 78;
- jjCheckNAddStates(335, 339);
- break;
- case 98:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 78)
- kind = 78;
- jjCheckNAddStates(340, 345);
- break;
- case 100:
- if ((0x7fffffe87fffffeL & l) == 0L)
- break;
- if (kind > 98)
- kind = 98;
- jjCheckNAddTwoStates(100, 101);
- break;
- case 101:
- if (curChar == 92)
- jjAddStates(846, 847);
- break;
- case 102:
- if ((0x7fffffffffffffffL & l) == 0L)
- break;
- if (kind > 98)
- kind = 98;
- jjCheckNAddTwoStates(100, 101);
- break;
- case 103:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 98)
- kind = 98;
- jjCheckNAddStates(346, 349);
- break;
- case 105:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 98)
- kind = 98;
- jjCheckNAddStates(350, 356);
- break;
- case 106:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 98)
- kind = 98;
- jjCheckNAddStates(357, 359);
- break;
- case 107:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 98)
- kind = 98;
- jjCheckNAddStates(360, 363);
- break;
- case 108:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 98)
- kind = 98;
- jjCheckNAddStates(364, 368);
- break;
- case 109:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 98)
- kind = 98;
- jjCheckNAddStates(369, 374);
- break;
- case 110:
- if (curChar == 64)
- jjAddStates(830, 833);
- break;
- case 112:
- if ((0x7fffffe07fffffeL & l) == 0L)
- break;
- if (kind > 105)
- kind = 105;
- jjCheckNAddTwoStates(113, 114);
- break;
- case 113:
- if ((0x7fffffe87fffffeL & l) == 0L)
- break;
- if (kind > 105)
- kind = 105;
- jjCheckNAddTwoStates(113, 114);
- break;
- case 114:
- if (curChar == 92)
- jjCheckNAddTwoStates(115, 116);
- break;
- case 115:
- if ((0x7fffffffffffffffL & l) == 0L)
- break;
- if (kind > 105)
- kind = 105;
- jjCheckNAddTwoStates(113, 114);
- break;
- case 116:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 105)
- kind = 105;
- jjCheckNAddStates(375, 378);
- break;
- case 118:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 105)
- kind = 105;
- jjCheckNAddStates(379, 385);
- break;
- case 119:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 105)
- kind = 105;
- jjCheckNAddStates(386, 388);
- break;
- case 120:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 105)
- kind = 105;
- jjCheckNAddStates(389, 392);
- break;
- case 121:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 105)
- kind = 105;
- jjCheckNAddStates(393, 397);
- break;
- case 122:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 105)
- kind = 105;
- jjCheckNAddStates(398, 403);
- break;
- case 124:
- if (curChar == 92)
- jjCheckNAddTwoStates(115, 125);
- break;
- case 125:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 105)
- kind = 105;
- jjCheckNAddStates(404, 407);
- break;
- case 126:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 105)
- kind = 105;
- jjCheckNAddStates(408, 414);
- break;
- case 127:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 105)
- kind = 105;
- jjCheckNAddStates(415, 417);
- break;
- case 128:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 105)
- kind = 105;
- jjCheckNAddStates(418, 421);
- break;
- case 129:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 105)
- kind = 105;
- jjCheckNAddStates(422, 426);
- break;
- case 130:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 105)
- kind = 105;
- jjCheckNAddStates(427, 432);
- break;
- case 131:
- if ((0x2000000020L & l) != 0L)
- jjAddStates(433, 434);
- break;
- case 134:
- if ((0x40000000400000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 131;
- break;
- case 135:
- if ((0x800000008000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 134;
- break;
- case 136:
- if ((0x200000002000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 135;
- break;
- case 137:
- if ((0x2000000020L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 136;
- break;
- case 138:
- if ((0x4000000040000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 137;
- break;
- case 139:
- if ((0x1000000010L & l) != 0L)
- jjAddStates(435, 436);
- break;
- case 142:
- if ((0x400000004000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 139;
- break;
- case 143:
- if ((0x2000000020L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 142;
- break;
- case 144:
- if ((0x1000000010000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 143;
- break;
- case 145:
- if ((0x1000000010000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 144;
- break;
- case 146:
- if ((0x200000002L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 145;
- break;
- case 147:
- if ((0x8000000080000L & l) != 0L)
- jjAddStates(437, 438);
- break;
- case 150:
- if ((0x400000004000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 147;
- break;
- case 151:
- if ((0x20000000200L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 150;
- break;
- case 152:
- if ((0x200000002L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 151;
- break;
- case 153:
- if ((0x10000000100000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 152;
- break;
- case 154:
- if ((0x400000004000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 153;
- break;
- case 155:
- if ((0x800000008000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 154;
- break;
- case 156:
- if ((0x800000008L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 155;
- break;
- case 157:
- if (curChar == 64)
- jjAddStates(822, 826);
- break;
- case 158:
- if ((0x8000000080000L & l) != 0L && kind > 104)
- kind = 104;
- break;
- case 159:
- case 167:
- case 180:
- case 191:
- case 207:
- if ((0x2000000020L & l) != 0L)
- jjCheckNAdd(158);
- break;
- case 160:
- if ((0x200000002000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 159;
- break;
- case 161:
- if ((0x200000002L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 160;
- break;
- case 162:
- if ((0x4000000040000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 161;
- break;
- case 163:
- if ((0x4000000040L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 162;
- break;
- case 164:
- if ((0x200000002000000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 163;
- break;
- case 165:
- if ((0x2000000020L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 164;
- break;
- case 168:
- if ((0x200000002000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 167;
- break;
- case 169:
- if ((0x200000002L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 168;
- break;
- case 170:
- if ((0x4000000040000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 169;
- break;
- case 171:
- if ((0x4000000040L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 170;
- break;
- case 172:
- if ((0x200000002000000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 171;
- break;
- case 173:
- if ((0x2000000020L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 172;
- break;
- case 181:
- if ((0x200000002000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 180;
- break;
- case 182:
- if ((0x200000002L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 181;
- break;
- case 183:
- if ((0x4000000040000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 182;
- break;
- case 184:
- if ((0x4000000040L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 183;
- break;
- case 185:
- if ((0x200000002000000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 184;
- break;
- case 186:
- if ((0x2000000020L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 185;
- break;
- case 187:
- if ((0x80000000800L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 186;
- break;
- case 189:
- if ((0x800000008000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 188;
- break;
- case 192:
- if ((0x200000002000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 191;
- break;
- case 193:
- if ((0x200000002L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 192;
- break;
- case 194:
- if ((0x4000000040000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 193;
- break;
- case 195:
- if ((0x4000000040L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 194;
- break;
- case 196:
- if ((0x200000002000000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 195;
- break;
- case 197:
- if ((0x2000000020L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 196;
- break;
- case 198:
- if ((0x80000000800L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 197;
- break;
- case 200:
- if ((0x10000000100000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 199;
- break;
- case 201:
- if ((0x20000000200L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 200;
- break;
- case 202:
- if ((0x80000000800L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 201;
- break;
- case 203:
- if ((0x400000004L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 202;
- break;
- case 204:
- if ((0x2000000020L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 203;
- break;
- case 205:
- if ((0x80000000800000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 204;
- break;
- case 208:
- if ((0x200000002000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 207;
- break;
- case 209:
- if ((0x200000002L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 208;
- break;
- case 210:
- if ((0x4000000040000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 209;
- break;
- case 211:
- if ((0x4000000040L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 210;
- break;
- case 212:
- if ((0x200000002000000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 211;
- break;
- case 213:
- if ((0x2000000020L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 212;
- break;
- case 214:
- if ((0x80000000800L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 213;
- break;
- case 216:
- if ((0x8000000080000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 215;
- break;
- case 217:
- if ((0x200000002000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 216;
- break;
- case 220:
- if ((0x7fffffe87fffffeL & l) == 0L)
- break;
- if (kind > 74)
- kind = 74;
- jjCheckNAddTwoStates(220, 221);
- break;
- case 221:
- if (curChar == 92)
- jjCheckNAddTwoStates(222, 223);
- break;
- case 222:
- if ((0x7fffffffffffffffL & l) == 0L)
- break;
- if (kind > 74)
- kind = 74;
- jjCheckNAddTwoStates(220, 221);
- break;
- case 223:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 74)
- kind = 74;
- jjCheckNAddStates(439, 442);
- break;
- case 225:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 74)
- kind = 74;
- jjCheckNAddStates(443, 449);
- break;
- case 226:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 74)
- kind = 74;
- jjCheckNAddStates(450, 452);
- break;
- case 227:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 74)
- kind = 74;
- jjCheckNAddStates(453, 456);
- break;
- case 228:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 74)
- kind = 74;
- jjCheckNAddStates(457, 461);
- break;
- case 229:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 74)
- kind = 74;
- jjCheckNAddStates(462, 467);
- break;
- case 230:
- if ((0x7fffffe87fffffeL & l) != 0L)
- jjCheckNAddStates(120, 123);
- break;
- case 233:
- if (curChar == 92)
- jjCheckNAddTwoStates(234, 235);
- break;
- case 234:
- if ((0x7fffffffffffffffL & l) != 0L)
- jjCheckNAddStates(120, 123);
- break;
- case 235:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(468, 472);
- break;
- case 237:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(473, 480);
- break;
- case 238:
- case 452:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(481, 484);
- break;
- case 239:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(485, 489);
- break;
- case 240:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(490, 495);
- break;
- case 241:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(496, 502);
- break;
- case 244:
- if ((0x10000000100000L & l) != 0L && kind > 72)
- kind = 72;
- break;
- case 245:
- if ((0x100000001000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 244;
- break;
- case 246:
- if ((0x20000000200000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 245;
- break;
- case 247:
- if ((0x200000002L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 246;
- break;
- case 248:
- if ((0x4000000040L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 247;
- break;
- case 249:
- if ((0x2000000020L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 248;
- break;
- case 250:
- if ((0x1000000010L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 249;
- break;
- case 252:
- if ((0x10000000100000L & l) != 0L && kind > 106)
- kind = 106;
- break;
- case 253:
- if ((0x400000004000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 252;
- break;
- case 254:
- if ((0x200000002L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 253;
- break;
- case 255:
- if ((0x10000000100000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 254;
- break;
- case 256:
- if ((0x4000000040000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 255;
- break;
- case 257:
- if ((0x800000008000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 256;
- break;
- case 258:
- if ((0x1000000010000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 257;
- break;
- case 259:
- if ((0x200000002000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 258;
- break;
- case 260:
- if ((0x20000000200L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 259;
- break;
- case 262:
- if ((0x7fffffe07fffffeL & l) == 0L)
- break;
- if (kind > 74)
- kind = 74;
- jjCheckNAddTwoStates(220, 221);
- break;
- case 263:
- if ((0x7fffffe07fffffeL & l) != 0L)
- jjCheckNAddStates(120, 123);
- break;
- case 264:
- if ((0x7fffffe07fffffeL & l) == 0L)
- break;
- if (kind > 74)
- kind = 74;
- jjCheckNAddStates(812, 817);
- break;
- case 270:
- if ((0x10000000100000L & l) != 0L && kind > 80)
- kind = 80;
- break;
- case 271:
- if ((0x1000000010000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 270;
- break;
- case 273:
- if ((0x200000002000L & l) != 0L && kind > 81)
- kind = 81;
- break;
- case 274:
- if ((0x200000002000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 273;
- break;
- case 276:
- if ((0x200000002000L & l) != 0L && kind > 82)
- kind = 82;
- break;
- case 277:
- if ((0x800000008L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 276;
- break;
- case 279:
- if ((0x800000008L & l) != 0L && kind > 83)
- kind = 83;
- break;
- case 280:
- if ((0x1000000010000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 279;
- break;
- case 282:
- if ((0x400000004000L & l) != 0L && kind > 84)
- kind = 84;
- break;
- case 283:
- if ((0x20000000200L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 282;
- break;
- case 285:
- if ((0x100000001000000L & l) != 0L && kind > 85)
- kind = 85;
- break;
- case 286:
- if ((0x1000000010000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 285;
- break;
- case 288:
- if ((0x200000002000L & l) != 0L && kind > 86)
- kind = 86;
- break;
- case 289:
- if ((0x2000000020L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 288;
- break;
- case 291:
- if ((0x200000002000L & l) != 0L && kind > 87)
- kind = 87;
- break;
- case 292:
- if ((0x2000000020L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 291;
- break;
- case 293:
- if ((0x100000001000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 292;
- break;
- case 295:
- if ((0x200000002000L & l) != 0L && kind > 88)
- kind = 88;
- break;
- case 296:
- if ((0x2000000020L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 295;
- break;
- case 297:
- if ((0x4000000040000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 296;
- break;
- case 299:
- if ((0x100000001000000L & l) != 0L && kind > 89)
- kind = 89;
- break;
- case 300:
- if ((0x2000000020L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 299;
- break;
- case 302:
- if ((0x8000000080L & l) != 0L && kind > 90)
- kind = 90;
- break;
- case 303:
- if ((0x2000000020L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 302;
- break;
- case 304:
- if ((0x1000000010L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 303;
- break;
- case 306:
- if ((0x1000000010L & l) != 0L && kind > 91)
- kind = 91;
- break;
- case 307:
- if ((0x200000002L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 306;
- break;
- case 308:
- if ((0x4000000040000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 307;
- break;
- case 310:
- if ((0x1000000010L & l) != 0L && kind > 92)
- kind = 92;
- break;
- case 311:
- if ((0x200000002L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 310;
- break;
- case 312:
- if ((0x4000000040000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 311;
- break;
- case 313:
- if ((0x8000000080L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 312;
- break;
- case 315:
- if ((0x8000000080000L & l) != 0L && kind > 93)
- kind = 93;
- break;
- case 316:
- if ((0x200000002000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 315;
- break;
- case 318:
- if ((0x8000000080000L & l) != 0L && kind > 94)
- kind = 94;
- break;
- case 320:
- if ((0x400000004000000L & l) != 0L && kind > 95)
- kind = 95;
- break;
- case 321:
- if ((0x10000000100L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 320;
- break;
- case 323:
- if ((0x400000004000000L & l) != 0L && kind > 96)
- kind = 96;
- break;
- case 324:
- if ((0x10000000100L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 323;
- break;
- case 325:
- if ((0x80000000800L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 324;
- break;
- case 328:
- if ((0x7fffffe07fffffeL & l) == 0L)
- break;
- if (kind > 97)
- kind = 97;
- jjCheckNAddTwoStates(329, 330);
- break;
- case 329:
- if ((0x7fffffe87fffffeL & l) == 0L)
- break;
- if (kind > 97)
- kind = 97;
- jjCheckNAddTwoStates(329, 330);
- break;
- case 330:
- if (curChar == 92)
- jjCheckNAddTwoStates(331, 332);
- break;
- case 331:
- if ((0x7fffffffffffffffL & l) == 0L)
- break;
- if (kind > 97)
- kind = 97;
- jjCheckNAddTwoStates(329, 330);
- break;
- case 332:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 97)
- kind = 97;
- jjCheckNAddStates(503, 506);
- break;
- case 334:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 97)
- kind = 97;
- jjCheckNAddStates(507, 513);
- break;
- case 335:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 97)
- kind = 97;
- jjCheckNAddStates(514, 516);
- break;
- case 336:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 97)
- kind = 97;
- jjCheckNAddStates(517, 520);
- break;
- case 337:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 97)
- kind = 97;
- jjCheckNAddStates(521, 525);
- break;
- case 338:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 97)
- kind = 97;
- jjCheckNAddStates(526, 531);
- break;
- case 340:
- if (curChar == 92)
- jjCheckNAddTwoStates(331, 341);
- break;
- case 341:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 97)
- kind = 97;
- jjCheckNAddStates(532, 535);
- break;
- case 342:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 97)
- kind = 97;
- jjCheckNAddStates(536, 542);
- break;
- case 343:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 97)
- kind = 97;
- jjCheckNAddStates(543, 545);
- break;
- case 344:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 97)
- kind = 97;
- jjCheckNAddStates(546, 549);
- break;
- case 345:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 97)
- kind = 97;
- jjCheckNAddStates(550, 554);
- break;
- case 346:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 97)
- kind = 97;
- jjCheckNAddStates(555, 560);
- break;
- case 347:
- if ((0x20000000200000L & l) != 0L)
- jjAddStates(827, 829);
- break;
- case 349:
- case 353:
- if ((0x7fffffffffffffffL & l) != 0L)
- jjCheckNAddStates(567, 570);
- break;
- case 352:
- if (curChar == 92)
- jjAddStates(848, 849);
- break;
- case 354:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(571, 575);
- break;
- case 356:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(576, 583);
- break;
- case 357:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(584, 587);
- break;
- case 358:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(588, 592);
- break;
- case 359:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(593, 598);
- break;
- case 360:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(599, 605);
- break;
- case 362:
- case 367:
- if ((0x7fffffffffffffffL & l) != 0L)
- jjCheckNAddStates(606, 609);
- break;
- case 364:
- if (curChar == 92)
- jjAddStates(850, 853);
- break;
- case 366:
- if (curChar == 92)
- jjAddStates(854, 855);
- break;
- case 368:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(610, 615);
- break;
- case 370:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(616, 624);
- break;
- case 371:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(625, 629);
- break;
- case 372:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(630, 635);
- break;
- case 373:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(636, 642);
- break;
- case 374:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(643, 650);
- break;
- case 379:
- case 384:
- if ((0x7fffffffffffffffL & l) != 0L)
- jjCheckNAddStates(651, 654);
- break;
- case 381:
- if (curChar == 92)
- jjAddStates(856, 859);
- break;
- case 383:
- if (curChar == 92)
- jjAddStates(860, 861);
- break;
- case 385:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(655, 660);
- break;
- case 387:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(661, 669);
- break;
- case 388:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(670, 674);
- break;
- case 389:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(675, 680);
- break;
- case 390:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(681, 687);
- break;
- case 391:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(688, 695);
- break;
- case 396:
- if ((0x100000001000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 348;
- break;
- case 397:
- if ((0x4000000040000L & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 396;
- break;
- case 405:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 116)
- kind = 116;
- jjAddStates(712, 717);
- break;
- case 406:
- if ((0x7e0000007eL & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 407;
- break;
- case 407:
- if ((0x7e0000007eL & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 408;
- break;
- case 408:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAdd(409);
- break;
- case 409:
- if ((0x7e0000007eL & l) != 0L && kind > 116)
- kind = 116;
- break;
- case 410:
- if ((0x7e0000007eL & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 411;
- break;
- case 411:
- if ((0x7e0000007eL & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 412;
- break;
- case 412:
- if ((0x7e0000007eL & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 413;
- break;
- case 413:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 116)
- kind = 116;
- jjstateSet[jjnewStateCnt++] = 401;
- break;
- case 414:
- if ((0x7e0000007eL & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 415;
- break;
- case 415:
- if ((0x7e0000007eL & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 416;
- break;
- case 416:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 116)
- kind = 116;
- jjstateSet[jjnewStateCnt++] = 417;
- break;
- case 418:
- if ((0x7e0000007eL & l) != 0L)
- jjstateSet[jjnewStateCnt++] = 419;
- break;
- case 419:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 116)
- kind = 116;
- jjstateSet[jjnewStateCnt++] = 420;
- break;
- case 422:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 116)
- kind = 116;
- jjstateSet[jjnewStateCnt++] = 423;
- break;
- case 431:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddTwoStates(432, 438);
- break;
- case 433:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 116)
- kind = 116;
- jjstateSet[jjnewStateCnt++] = 434;
- break;
- case 434:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 116)
- kind = 116;
- jjCheckNAddStates(728, 731);
- break;
- case 435:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 116)
- kind = 116;
- jjCheckNAdd(409);
- break;
- case 436:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 116)
- kind = 116;
- jjCheckNAddTwoStates(409, 435);
- break;
- case 437:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 116)
- kind = 116;
- jjCheckNAddStates(732, 734);
- break;
- case 438:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(735, 739);
- break;
- case 439:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAdd(432);
- break;
- case 440:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddTwoStates(439, 432);
- break;
- case 441:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(740, 742);
- break;
- case 442:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(743, 746);
- break;
- case 443:
- if (curChar == 92)
- jjCheckNAddStates(818, 821);
- break;
- case 444:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 74)
- kind = 74;
- jjCheckNAddStates(747, 750);
- break;
- case 445:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 74)
- kind = 74;
- jjCheckNAddStates(751, 757);
- break;
- case 446:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 74)
- kind = 74;
- jjCheckNAddStates(758, 760);
- break;
- case 447:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 74)
- kind = 74;
- jjCheckNAddStates(761, 764);
- break;
- case 448:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 74)
- kind = 74;
- jjCheckNAddStates(765, 769);
- break;
- case 449:
- if ((0x7e0000007eL & l) == 0L)
- break;
- if (kind > 74)
- kind = 74;
- jjCheckNAddStates(770, 775);
- break;
- case 450:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(776, 780);
- break;
- case 451:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(781, 788);
- break;
- case 453:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(789, 793);
- break;
- case 454:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(794, 799);
- break;
- case 455:
- if ((0x7e0000007eL & l) != 0L)
- jjCheckNAddStates(800, 806);
- break;
- default : break;
- }
- } while(i != startsAt);
- }
- else
- {
- int i2 = (curChar & 0xff) >> 6;
- long l2 = 1L << (curChar & 077);
- do
- {
- switch(jjstateSet[--i])
- {
- case 520:
- case 113:
- case 115:
- if ((jjbitVec0[i2] & l2) == 0L)
- break;
- if (kind > 105)
- kind = 105;
- jjCheckNAddTwoStates(113, 114);
- break;
- case 166:
- if ((jjbitVec0[i2] & l2) == 0L)
- break;
- if (kind > 105)
- kind = 105;
- jjCheckNAddTwoStates(113, 114);
- break;
- case 174:
- if ((jjbitVec0[i2] & l2) == 0L)
- break;
- if (kind > 105)
- kind = 105;
- jjCheckNAddTwoStates(113, 114);
- break;
- case 4:
- if ((jjbitVec0[i2] & l2) == 0L)
- break;
- if (kind > 42)
- kind = 42;
- jjCheckNAddStates(812, 817);
- break;
- case 518:
- if ((jjbitVec0[i2] & l2) != 0L)
- {
- if (kind > 74)
- kind = 74;
- jjCheckNAddTwoStates(220, 221);
- }
- if ((jjbitVec0[i2] & l2) != 0L)
- jjCheckNAddStates(120, 123);
- break;
- case 175:
- if ((jjbitVec0[i2] & l2) == 0L)
- break;
- if (kind > 105)
- kind = 105;
- jjCheckNAddTwoStates(113, 114);
- break;
- case 33:
- if ((jjbitVec0[i2] & l2) != 0L)
- {
- if (kind > 74)
- kind = 74;
- jjCheckNAddTwoStates(220, 221);
- }
- if ((jjbitVec0[i2] & l2) != 0L)
- jjCheckNAddStates(120, 123);
- break;
- case 176:
- if ((jjbitVec0[i2] & l2) == 0L)
- break;
- if (kind > 105)
- kind = 105;
- jjCheckNAddTwoStates(113, 114);
- break;
- case 177:
- if ((jjbitVec0[i2] & l2) == 0L)
- break;
- if (kind > 105)
- kind = 105;
- jjCheckNAddTwoStates(113, 114);
- break;
- case 79:
- case 81:
- case 83:
- if ((jjbitVec0[i2] & l2) == 0L)
- break;
- if (kind > 78)
- kind = 78;
- jjCheckNAddTwoStates(81, 82);
- break;
- case 2:
- if ((jjbitVec0[i2] & l2) != 0L && kind > 5)
- kind = 5;
- break;
- case 9:
- case 12:
- case 20:
- if ((jjbitVec0[i2] & l2) != 0L)
- jjCheckNAddStates(133, 135);
- break;
- case 45:
- case 50:
- if ((jjbitVec0[i2] & l2) != 0L)
- jjCheckNAddStates(116, 119);
- break;
- case 62:
- case 67:
- if ((jjbitVec0[i2] & l2) != 0L)
- jjCheckNAddStates(112, 115);
- break;
- case 100:
- case 102:
- if ((jjbitVec0[i2] & l2) == 0L)
- break;
- if (kind > 98)
- kind = 98;
- jjCheckNAddTwoStates(100, 101);
- break;
- case 220:
- case 222:
- if ((jjbitVec0[i2] & l2) == 0L)
- break;
- if (kind > 74)
- kind = 74;
- jjCheckNAddTwoStates(220, 221);
- break;
- case 230:
- case 234:
- if ((jjbitVec0[i2] & l2) != 0L)
- jjCheckNAddStates(120, 123);
- break;
- case 329:
- case 331:
- case 339:
- if ((jjbitVec0[i2] & l2) == 0L)
- break;
- if (kind > 97)
- kind = 97;
- jjCheckNAddTwoStates(329, 330);
- break;
- case 349:
- case 353:
- if ((jjbitVec0[i2] & l2) != 0L)
- jjCheckNAddStates(567, 570);
- break;
- case 362:
- case 367:
- if ((jjbitVec0[i2] & l2) != 0L)
- jjCheckNAddStates(606, 609);
- break;
- case 379:
- case 384:
- if ((jjbitVec0[i2] & l2) != 0L)
- jjCheckNAddStates(651, 654);
- break;
- default : break;
- }
- } while(i != startsAt);
- }
- if (kind != 0x7fffffff)
- {
- jjmatchedKind = kind;
- jjmatchedPos = curPos;
- kind = 0x7fffffff;
- }
- ++curPos;
- if ((i = jjnewStateCnt) == (startsAt = 517 - (jjnewStateCnt = startsAt)))
- return curPos;
- try { curChar = input_stream.readChar(); }
- catch(java.io.IOException e) { return curPos; }
- }
-}
-private int jjMoveStringLiteralDfa0_3()
-{
- switch(curChar)
- {
- case 42:
- return jjMoveStringLiteralDfa1_3(0x100L);
- default :
- return 1;
- }
-}
-private int jjMoveStringLiteralDfa1_3(long active0)
-{
- try { curChar = input_stream.readChar(); }
- catch(java.io.IOException e) {
- return 1;
- }
- switch(curChar)
- {
- case 47:
- if ((active0 & 0x100L) != 0L)
- return jjStopAtPos(1, 8);
- break;
- default :
- return 2;
- }
- return 2;
-}
-private int jjMoveStringLiteralDfa0_1()
-{
- return jjMoveNfa_1(0, 0);
-}
-private int jjMoveNfa_1(int startState, int curPos)
-{
- int startsAt = 0;
- jjnewStateCnt = 4;
- 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 ((0xffffffffffffdbffL & l) != 0L)
- {
- if (kind > 3)
- kind = 3;
- }
- else if ((0x2400L & l) != 0L)
- {
- if (kind > 4)
- kind = 4;
- }
- if (curChar == 13)
- jjstateSet[jjnewStateCnt++] = 2;
- break;
- case 1:
- if ((0x2400L & l) != 0L && kind > 4)
- kind = 4;
- break;
- case 2:
- if (curChar == 10 && kind > 4)
- kind = 4;
- break;
- case 3:
- if (curChar == 13)
- jjstateSet[jjnewStateCnt++] = 2;
- break;
- default : break;
- }
- } while(i != startsAt);
- }
- else if (curChar < 128)
- {
- long l = 1L << (curChar & 077);
- do
- {
- switch(jjstateSet[--i])
- {
- case 0:
- kind = 3;
- break;
- default : break;
- }
- } while(i != startsAt);
- }
- else
- {
- int i2 = (curChar & 0xff) >> 6;
- long l2 = 1L << (curChar & 077);
- do
- {
- switch(jjstateSet[--i])
- {
- case 0:
- if ((jjbitVec0[i2] & l2) != 0L && kind > 3)
- kind = 3;
- break;
- default : break;
- }
- } while(i != startsAt);
- }
- if (kind != 0x7fffffff)
- {
- jjmatchedKind = kind;
- jjmatchedPos = curPos;
- kind = 0x7fffffff;
- }
- ++curPos;
- if ((i = jjnewStateCnt) == (startsAt = 4 - (jjnewStateCnt = startsAt)))
- return curPos;
- try { curChar = input_stream.readChar(); }
- catch(java.io.IOException e) { return curPos; }
- }
-}
-private int jjMoveStringLiteralDfa0_2()
-{
- switch(curChar)
- {
- case 42:
- return jjMoveStringLiteralDfa1_2(0x80L);
- default :
- return 1;
- }
-}
-private int jjMoveStringLiteralDfa1_2(long active0)
-{
- try { curChar = input_stream.readChar(); }
- catch(java.io.IOException e) {
- return 1;
- }
- switch(curChar)
- {
- case 47:
- if ((active0 & 0x80L) != 0L)
- return jjStopAtPos(1, 7);
- break;
- default :
- return 2;
- }
- return 2;
-}
+};
+private int jjMoveNfa_0(int startState, int curPos)
+{
+ int startsAt = 0;
+ jjnewStateCnt = 517;
+ 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 520:
+ case 113:
+ if ((0x3ff200000000000L & l) == 0L)
+ break;
+ if (kind > 105)
+ kind = 105;
+ jjCheckNAddTwoStates(113, 114);
+ break;
+ case 166:
+ if (curChar == 45)
+ jjstateSet[jjnewStateCnt++] = 112;
+ if (curChar == 45)
+ jjstateSet[jjnewStateCnt++] = 217;
+ if (curChar == 45)
+ jjstateSet[jjnewStateCnt++] = 205;
+ if (curChar == 45)
+ jjstateSet[jjnewStateCnt++] = 189;
+ if (curChar == 45)
+ jjstateSet[jjnewStateCnt++] = 178;
+ break;
+ case 174:
+ if ((0x3ff200000000000L & l) == 0L)
+ break;
+ if (kind > 105)
+ kind = 105;
+ jjCheckNAddTwoStates(113, 114);
+ break;
+ case 4:
+ if ((0x3ff000000000000L & l) != 0L)
+ {
+ if (kind > 75)
+ kind = 75;
+ jjCheckNAddStates(0, 81);
+ }
+ else if ((0x100003600L & l) != 0L)
+ {
+ if (kind > 1)
+ kind = 1;
+ jjCheckNAdd(0);
+ }
+ else if (curChar == 46)
+ jjCheckNAddStates(82, 101);
+ else if (curChar == 45)
+ jjAddStates(102, 103);
+ else if (curChar == 33)
+ jjCheckNAddStates(104, 107);
+ else if (curChar == 35)
+ jjCheckNAddTwoStates(100, 101);
+ else if (curChar == 36)
+ jjCheckNAddStates(108, 111);
+ else if (curChar == 39)
+ jjCheckNAddStates(112, 115);
+ else if (curChar == 34)
+ jjCheckNAddStates(116, 119);
+ else if (curChar == 47)
+ jjstateSet[jjnewStateCnt++] = 3;
+ if (curChar == 45)
+ jjstateSet[jjnewStateCnt++] = 42;
+ else if (curChar == 35)
+ jjstateSet[jjnewStateCnt++] = 5;
+ break;
+ case 517:
+ if ((0x100003600L & l) != 0L)
+ jjCheckNAddTwoStates(251, 260);
+ if ((0x100003600L & l) != 0L)
+ jjCheckNAddTwoStates(243, 250);
+ break;
+ case 518:
+ if ((0x3ff200000000000L & l) != 0L)
+ jjCheckNAddStates(120, 123);
+ else if ((0x100003600L & l) != 0L)
+ jjCheckNAddTwoStates(231, 232);
+ else if (curChar == 40)
+ {
+ if (kind > 120)
+ kind = 120;
+ }
+ if ((0x3ff200000000000L & l) != 0L)
+ {
+ if (kind > 74)
+ kind = 74;
+ jjCheckNAddTwoStates(220, 221);
+ }
+ break;
+ case 175:
+ if ((0x3ff200000000000L & l) != 0L)
+ {
+ if (kind > 105)
+ kind = 105;
+ jjCheckNAddTwoStates(113, 114);
+ }
+ if (curChar == 45)
+ jjstateSet[jjnewStateCnt++] = 174;
+ break;
+ case 33:
+ if ((0x3ff200000000000L & l) != 0L)
+ jjCheckNAddStates(120, 123);
+ else if ((0x100003600L & l) != 0L)
+ jjCheckNAddTwoStates(231, 232);
+ else if (curChar == 40)
+ {
+ if (kind > 120)
+ kind = 120;
+ }
+ if ((0x3ff200000000000L & l) != 0L)
+ {
+ if (kind > 74)
+ kind = 74;
+ jjCheckNAddTwoStates(220, 221);
+ }
+ break;
+ case 176:
+ if ((0x3ff200000000000L & l) == 0L)
+ break;
+ if (kind > 105)
+ kind = 105;
+ jjCheckNAddTwoStates(113, 114);
+ break;
+ case 519:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(124, 128);
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(322, 325);
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(319, 321);
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(317, 318);
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(314, 316);
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(309, 313);
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(305, 308);
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(301, 304);
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(298, 300);
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(294, 297);
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(290, 293);
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(287, 289);
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(284, 286);
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(281, 283);
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(278, 280);
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(275, 277);
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(272, 274);
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(269, 271);
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(267, 268);
+ if ((0x3ff000000000000L & l) != 0L)
+ {
+ if (kind > 75)
+ kind = 75;
+ jjCheckNAdd(266);
+ }
+ break;
+ case 177:
+ if ((0x3ff200000000000L & l) == 0L)
+ break;
+ if (kind > 105)
+ kind = 105;
+ jjCheckNAddTwoStates(113, 114);
+ break;
+ case 79:
+ if (curChar == 45)
+ jjCheckNAdd(80);
+ break;
+ case 0:
+ if ((0x100003600L & l) == 0L)
+ break;
+ if (kind > 1)
+ kind = 1;
+ jjCheckNAdd(0);
+ break;
+ case 1:
+ if (curChar == 42)
+ jjstateSet[jjnewStateCnt++] = 2;
+ break;
+ case 2:
+ if ((0xffff7fffffffffffL & l) != 0L && kind > 5)
+ kind = 5;
+ break;
+ case 3:
+ if (curChar == 42)
+ jjstateSet[jjnewStateCnt++] = 1;
+ break;
+ case 6:
+ if (curChar == 36)
+ jjCheckNAddStates(129, 132);
+ break;
+ case 7:
+ if (curChar == 45)
+ jjCheckNAdd(8);
+ break;
+ case 9:
+ if ((0x3ff200000000000L & l) != 0L)
+ jjCheckNAddStates(133, 135);
+ break;
+ case 12:
+ if ((0xffffffff00000000L & l) != 0L)
+ jjCheckNAddStates(133, 135);
+ break;
+ case 13:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(136, 140);
+ break;
+ case 14:
+ if ((0x100003600L & l) != 0L)
+ jjCheckNAddStates(133, 135);
+ break;
+ case 15:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(141, 148);
+ break;
+ case 16:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(149, 152);
+ break;
+ case 17:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(153, 157);
+ break;
+ case 18:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(158, 163);
+ break;
+ case 19:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(164, 170);
+ break;
+ case 22:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(171, 175);
+ break;
+ case 23:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(176, 183);
+ break;
+ case 24:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(184, 187);
+ break;
+ case 25:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(188, 192);
+ break;
+ case 26:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(193, 198);
+ break;
+ case 27:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(199, 205);
+ break;
+ case 28:
+ if (curChar == 35)
+ jjstateSet[jjnewStateCnt++] = 5;
+ break;
+ case 40:
+ if (curChar == 45)
+ jjstateSet[jjnewStateCnt++] = 39;
+ break;
+ case 43:
+ if (curChar == 45)
+ jjstateSet[jjnewStateCnt++] = 42;
+ break;
+ case 44:
+ if (curChar == 34)
+ jjCheckNAddStates(116, 119);
+ break;
+ case 45:
+ if ((0xfffffffb00000200L & l) != 0L)
+ jjCheckNAddStates(116, 119);
+ break;
+ case 46:
+ if (curChar == 34 && kind > 73)
+ kind = 73;
+ break;
+ case 48:
+ if (curChar == 12)
+ jjCheckNAddStates(116, 119);
+ break;
+ case 50:
+ if ((0xffffffff00000000L & l) != 0L)
+ jjCheckNAddStates(116, 119);
+ break;
+ case 51:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(206, 211);
+ break;
+ case 52:
+ if ((0x100003600L & l) != 0L)
+ jjCheckNAddStates(116, 119);
+ break;
+ case 53:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(212, 220);
+ break;
+ case 54:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(221, 225);
+ break;
+ case 55:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(226, 231);
+ break;
+ case 56:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(232, 238);
+ break;
+ case 57:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(239, 246);
+ break;
+ case 58:
+ if (curChar == 13)
+ jjCheckNAddStates(116, 119);
+ break;
+ case 59:
+ if (curChar == 10)
+ jjCheckNAddStates(116, 119);
+ break;
+ case 60:
+ if (curChar == 13)
+ jjstateSet[jjnewStateCnt++] = 59;
+ break;
+ case 61:
+ if (curChar == 39)
+ jjCheckNAddStates(112, 115);
+ break;
+ case 62:
+ if ((0xffffff7f00000200L & l) != 0L)
+ jjCheckNAddStates(112, 115);
+ break;
+ case 63:
+ if (curChar == 39 && kind > 73)
+ kind = 73;
+ break;
+ case 65:
+ if (curChar == 12)
+ jjCheckNAddStates(112, 115);
+ break;
+ case 67:
+ if ((0xffffffff00000000L & l) != 0L)
+ jjCheckNAddStates(112, 115);
+ break;
+ case 68:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(247, 252);
+ break;
+ case 69:
+ if ((0x100003600L & l) != 0L)
+ jjCheckNAddStates(112, 115);
+ break;
+ case 70:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(253, 261);
+ break;
+ case 71:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(262, 266);
+ break;
+ case 72:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(267, 272);
+ break;
+ case 73:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(273, 279);
+ break;
+ case 74:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(280, 287);
+ break;
+ case 75:
+ if (curChar == 13)
+ jjCheckNAddStates(112, 115);
+ break;
+ case 76:
+ if (curChar == 10)
+ jjCheckNAddStates(112, 115);
+ break;
+ case 77:
+ if (curChar == 13)
+ jjstateSet[jjnewStateCnt++] = 76;
+ break;
+ case 78:
+ if (curChar == 36)
+ jjCheckNAddStates(108, 111);
+ break;
+ case 81:
+ if ((0x3ff200000000000L & l) == 0L)
+ break;
+ if (kind > 78)
+ kind = 78;
+ jjCheckNAddTwoStates(81, 82);
+ break;
+ case 83:
+ if ((0xffffffff00000000L & l) == 0L)
+ break;
+ if (kind > 78)
+ kind = 78;
+ jjCheckNAddTwoStates(81, 82);
+ break;
+ case 84:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 78)
+ kind = 78;
+ jjCheckNAddStates(288, 291);
+ break;
+ case 85:
+ if ((0x100003600L & l) == 0L)
+ break;
+ if (kind > 78)
+ kind = 78;
+ jjCheckNAddTwoStates(81, 82);
+ break;
+ case 86:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 78)
+ kind = 78;
+ jjCheckNAddStates(292, 298);
+ break;
+ case 87:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 78)
+ kind = 78;
+ jjCheckNAddStates(299, 301);
+ break;
+ case 88:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 78)
+ kind = 78;
+ jjCheckNAddStates(302, 305);
+ break;
+ case 89:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 78)
+ kind = 78;
+ jjCheckNAddStates(306, 310);
+ break;
+ case 90:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 78)
+ kind = 78;
+ jjCheckNAddStates(311, 316);
+ break;
+ case 93:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 78)
+ kind = 78;
+ jjCheckNAddStates(317, 320);
+ break;
+ case 94:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 78)
+ kind = 78;
+ jjCheckNAddStates(321, 327);
+ break;
+ case 95:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 78)
+ kind = 78;
+ jjCheckNAddStates(328, 330);
+ break;
+ case 96:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 78)
+ kind = 78;
+ jjCheckNAddStates(331, 334);
+ break;
+ case 97:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 78)
+ kind = 78;
+ jjCheckNAddStates(335, 339);
+ break;
+ case 98:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 78)
+ kind = 78;
+ jjCheckNAddStates(340, 345);
+ break;
+ case 99:
+ if (curChar == 35)
+ jjCheckNAddTwoStates(100, 101);
+ break;
+ case 100:
+ if ((0x3ff200000000000L & l) == 0L)
+ break;
+ if (kind > 98)
+ kind = 98;
+ jjCheckNAddTwoStates(100, 101);
+ break;
+ case 102:
+ if ((0xffffffff00000000L & l) == 0L)
+ break;
+ if (kind > 98)
+ kind = 98;
+ jjCheckNAddTwoStates(100, 101);
+ break;
+ case 103:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 98)
+ kind = 98;
+ jjCheckNAddStates(346, 349);
+ break;
+ case 104:
+ if ((0x100003600L & l) == 0L)
+ break;
+ if (kind > 98)
+ kind = 98;
+ jjCheckNAddTwoStates(100, 101);
+ break;
+ case 105:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 98)
+ kind = 98;
+ jjCheckNAddStates(350, 356);
+ break;
+ case 106:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 98)
+ kind = 98;
+ jjCheckNAddStates(357, 359);
+ break;
+ case 107:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 98)
+ kind = 98;
+ jjCheckNAddStates(360, 363);
+ break;
+ case 108:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 98)
+ kind = 98;
+ jjCheckNAddStates(364, 368);
+ break;
+ case 109:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 98)
+ kind = 98;
+ jjCheckNAddStates(369, 374);
+ break;
+ case 111:
+ if (curChar == 45)
+ jjstateSet[jjnewStateCnt++] = 112;
+ break;
+ case 115:
+ if ((0xffffffff00000000L & l) == 0L)
+ break;
+ if (kind > 105)
+ kind = 105;
+ jjCheckNAddTwoStates(113, 114);
+ break;
+ case 116:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 105)
+ kind = 105;
+ jjCheckNAddStates(375, 378);
+ break;
+ case 117:
+ if ((0x100003600L & l) == 0L)
+ break;
+ if (kind > 105)
+ kind = 105;
+ jjCheckNAddTwoStates(113, 114);
+ break;
+ case 118:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 105)
+ kind = 105;
+ jjCheckNAddStates(379, 385);
+ break;
+ case 119:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 105)
+ kind = 105;
+ jjCheckNAddStates(386, 388);
+ break;
+ case 120:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 105)
+ kind = 105;
+ jjCheckNAddStates(389, 392);
+ break;
+ case 121:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 105)
+ kind = 105;
+ jjCheckNAddStates(393, 397);
+ break;
+ case 122:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 105)
+ kind = 105;
+ jjCheckNAddStates(398, 403);
+ break;
+ case 125:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 105)
+ kind = 105;
+ jjCheckNAddStates(404, 407);
+ break;
+ case 126:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 105)
+ kind = 105;
+ jjCheckNAddStates(408, 414);
+ break;
+ case 127:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 105)
+ kind = 105;
+ jjCheckNAddStates(415, 417);
+ break;
+ case 128:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 105)
+ kind = 105;
+ jjCheckNAddStates(418, 421);
+ break;
+ case 129:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 105)
+ kind = 105;
+ jjCheckNAddStates(422, 426);
+ break;
+ case 130:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 105)
+ kind = 105;
+ jjCheckNAddStates(427, 432);
+ break;
+ case 132:
+ if ((0x100003600L & l) != 0L)
+ jjAddStates(433, 434);
+ break;
+ case 133:
+ if (curChar == 40 && kind > 117)
+ kind = 117;
+ break;
+ case 140:
+ if ((0x100003600L & l) != 0L)
+ jjAddStates(435, 436);
+ break;
+ case 141:
+ if (curChar == 40 && kind > 118)
+ kind = 118;
+ break;
+ case 148:
+ if ((0x100003600L & l) != 0L)
+ jjAddStates(437, 438);
+ break;
+ case 149:
+ if (curChar == 40 && kind > 119)
+ kind = 119;
+ break;
+ case 179:
+ if (curChar == 45)
+ jjstateSet[jjnewStateCnt++] = 178;
+ break;
+ case 188:
+ if (curChar == 45)
+ jjstateSet[jjnewStateCnt++] = 187;
+ break;
+ case 190:
+ if (curChar == 45)
+ jjstateSet[jjnewStateCnt++] = 189;
+ break;
+ case 199:
+ if (curChar == 45)
+ jjstateSet[jjnewStateCnt++] = 198;
+ break;
+ case 206:
+ if (curChar == 45)
+ jjstateSet[jjnewStateCnt++] = 205;
+ break;
+ case 215:
+ if (curChar == 45)
+ jjstateSet[jjnewStateCnt++] = 214;
+ break;
+ case 218:
+ if (curChar == 45)
+ jjstateSet[jjnewStateCnt++] = 217;
+ break;
+ case 220:
+ if ((0x3ff200000000000L & l) == 0L)
+ break;
+ if (kind > 74)
+ kind = 74;
+ jjCheckNAddTwoStates(220, 221);
+ break;
+ case 222:
+ if ((0xffffffff00000000L & l) == 0L)
+ break;
+ if (kind > 74)
+ kind = 74;
+ jjCheckNAddTwoStates(220, 221);
+ break;
+ case 223:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 74)
+ kind = 74;
+ jjCheckNAddStates(439, 442);
+ break;
+ case 224:
+ if ((0x100003600L & l) == 0L)
+ break;
+ if (kind > 74)
+ kind = 74;
+ jjCheckNAddTwoStates(220, 221);
+ break;
+ case 225:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 74)
+ kind = 74;
+ jjCheckNAddStates(443, 449);
+ break;
+ case 226:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 74)
+ kind = 74;
+ jjCheckNAddStates(450, 452);
+ break;
+ case 227:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 74)
+ kind = 74;
+ jjCheckNAddStates(453, 456);
+ break;
+ case 228:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 74)
+ kind = 74;
+ jjCheckNAddStates(457, 461);
+ break;
+ case 229:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 74)
+ kind = 74;
+ jjCheckNAddStates(462, 467);
+ break;
+ case 230:
+ if ((0x3ff200000000000L & l) != 0L)
+ jjCheckNAddStates(120, 123);
+ break;
+ case 231:
+ if ((0x100003600L & l) != 0L)
+ jjCheckNAddTwoStates(231, 232);
+ break;
+ case 232:
+ if (curChar == 40 && kind > 120)
+ kind = 120;
+ break;
+ case 234:
+ if ((0xffffffff00000000L & l) != 0L)
+ jjCheckNAddStates(120, 123);
+ break;
+ case 235:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(468, 472);
+ break;
+ case 236:
+ if ((0x100003600L & l) != 0L)
+ jjCheckNAddStates(120, 123);
+ break;
+ case 237:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(473, 480);
+ break;
+ case 238:
+ case 452:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(481, 484);
+ break;
+ case 239:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(485, 489);
+ break;
+ case 240:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(490, 495);
+ break;
+ case 241:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(496, 502);
+ break;
+ case 242:
+ if (curChar == 33)
+ jjCheckNAddStates(104, 107);
+ break;
+ case 243:
+ if ((0x100003600L & l) != 0L)
+ jjCheckNAddTwoStates(243, 250);
+ break;
+ case 251:
+ if ((0x100003600L & l) != 0L)
+ jjCheckNAddTwoStates(251, 260);
+ break;
+ case 261:
+ if (curChar == 45)
+ jjAddStates(102, 103);
+ break;
+ case 265:
+ if (curChar == 46)
+ jjCheckNAddStates(82, 101);
+ break;
+ case 266:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 75)
+ kind = 75;
+ jjCheckNAdd(266);
+ break;
+ case 267:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(267, 268);
+ break;
+ case 268:
+ if (curChar == 37 && kind > 79)
+ kind = 79;
+ break;
+ case 269:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(269, 271);
+ break;
+ case 272:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(272, 274);
+ break;
+ case 275:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(275, 277);
+ break;
+ case 278:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(278, 280);
+ break;
+ case 281:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(281, 283);
+ break;
+ case 284:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(284, 286);
+ break;
+ case 287:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(287, 289);
+ break;
+ case 290:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(290, 293);
+ break;
+ case 294:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(294, 297);
+ break;
+ case 298:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(298, 300);
+ break;
+ case 301:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(301, 304);
+ break;
+ case 305:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(305, 308);
+ break;
+ case 309:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(309, 313);
+ break;
+ case 314:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(314, 316);
+ break;
+ case 317:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(317, 318);
+ break;
+ case 319:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(319, 321);
+ break;
+ case 322:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(322, 325);
+ break;
+ case 326:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(124, 128);
+ break;
+ case 327:
+ if (curChar == 45)
+ jjCheckNAdd(328);
+ break;
+ case 329:
+ if ((0x3ff200000000000L & l) == 0L)
+ break;
+ if (kind > 97)
+ kind = 97;
+ jjCheckNAddTwoStates(329, 330);
+ break;
+ case 331:
+ if ((0xffffffff00000000L & l) == 0L)
+ break;
+ if (kind > 97)
+ kind = 97;
+ jjCheckNAddTwoStates(329, 330);
+ break;
+ case 332:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 97)
+ kind = 97;
+ jjCheckNAddStates(503, 506);
+ break;
+ case 333:
+ if ((0x100003600L & l) == 0L)
+ break;
+ if (kind > 97)
+ kind = 97;
+ jjCheckNAddTwoStates(329, 330);
+ break;
+ case 334:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 97)
+ kind = 97;
+ jjCheckNAddStates(507, 513);
+ break;
+ case 335:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 97)
+ kind = 97;
+ jjCheckNAddStates(514, 516);
+ break;
+ case 336:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 97)
+ kind = 97;
+ jjCheckNAddStates(517, 520);
+ break;
+ case 337:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 97)
+ kind = 97;
+ jjCheckNAddStates(521, 525);
+ break;
+ case 338:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 97)
+ kind = 97;
+ jjCheckNAddStates(526, 531);
+ break;
+ case 341:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 97)
+ kind = 97;
+ jjCheckNAddStates(532, 535);
+ break;
+ case 342:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 97)
+ kind = 97;
+ jjCheckNAddStates(536, 542);
+ break;
+ case 343:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 97)
+ kind = 97;
+ jjCheckNAddStates(543, 545);
+ break;
+ case 344:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 97)
+ kind = 97;
+ jjCheckNAddStates(546, 549);
+ break;
+ case 345:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 97)
+ kind = 97;
+ jjCheckNAddStates(550, 554);
+ break;
+ case 346:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 97)
+ kind = 97;
+ jjCheckNAddStates(555, 560);
+ break;
+ case 348:
+ if (curChar == 40)
+ jjCheckNAddStates(561, 566);
+ break;
+ case 349:
+ if ((0xfffffc7a00000000L & l) != 0L)
+ jjCheckNAddStates(567, 570);
+ break;
+ case 350:
+ if ((0x100003600L & l) != 0L)
+ jjCheckNAddTwoStates(350, 351);
+ break;
+ case 351:
+ if (curChar == 41 && kind > 77)
+ kind = 77;
+ break;
+ case 353:
+ if ((0xffffffff00000000L & l) != 0L)
+ jjCheckNAddStates(567, 570);
+ break;
+ case 354:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(571, 575);
+ break;
+ case 355:
+ if ((0x100003600L & l) != 0L)
+ jjCheckNAddStates(567, 570);
+ break;
+ case 356:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(576, 583);
+ break;
+ case 357:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(584, 587);
+ break;
+ case 358:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(588, 592);
+ break;
+ case 359:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(593, 598);
+ break;
+ case 360:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(599, 605);
+ break;
+ case 361:
+ if (curChar == 39)
+ jjCheckNAddStates(606, 609);
+ break;
+ case 362:
+ if ((0xffffff7f00000200L & l) != 0L)
+ jjCheckNAddStates(606, 609);
+ break;
+ case 363:
+ if (curChar == 39)
+ jjCheckNAddTwoStates(350, 351);
+ break;
+ case 365:
+ if (curChar == 12)
+ jjCheckNAddStates(606, 609);
+ break;
+ case 367:
+ if ((0xffffffff00000000L & l) != 0L)
+ jjCheckNAddStates(606, 609);
+ break;
+ case 368:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(610, 615);
+ break;
+ case 369:
+ if ((0x100003600L & l) != 0L)
+ jjCheckNAddStates(606, 609);
+ break;
+ case 370:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(616, 624);
+ break;
+ case 371:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(625, 629);
+ break;
+ case 372:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(630, 635);
+ break;
+ case 373:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(636, 642);
+ break;
+ case 374:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(643, 650);
+ break;
+ case 375:
+ if (curChar == 13)
+ jjCheckNAddStates(606, 609);
+ break;
+ case 376:
+ if (curChar == 10)
+ jjCheckNAddStates(606, 609);
+ break;
+ case 377:
+ if (curChar == 13)
+ jjstateSet[jjnewStateCnt++] = 376;
+ break;
+ case 378:
+ if (curChar == 34)
+ jjCheckNAddStates(651, 654);
+ break;
+ case 379:
+ if ((0xfffffffb00000200L & l) != 0L)
+ jjCheckNAddStates(651, 654);
+ break;
+ case 380:
+ if (curChar == 34)
+ jjCheckNAddTwoStates(350, 351);
+ break;
+ case 382:
+ if (curChar == 12)
+ jjCheckNAddStates(651, 654);
+ break;
+ case 384:
+ if ((0xffffffff00000000L & l) != 0L)
+ jjCheckNAddStates(651, 654);
+ break;
+ case 385:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(655, 660);
+ break;
+ case 386:
+ if ((0x100003600L & l) != 0L)
+ jjCheckNAddStates(651, 654);
+ break;
+ case 387:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(661, 669);
+ break;
+ case 388:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(670, 674);
+ break;
+ case 389:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(675, 680);
+ break;
+ case 390:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(681, 687);
+ break;
+ case 391:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(688, 695);
+ break;
+ case 392:
+ if (curChar == 13)
+ jjCheckNAddStates(651, 654);
+ break;
+ case 393:
+ if (curChar == 10)
+ jjCheckNAddStates(651, 654);
+ break;
+ case 394:
+ if (curChar == 13)
+ jjstateSet[jjnewStateCnt++] = 393;
+ break;
+ case 395:
+ if ((0x100003600L & l) != 0L)
+ jjCheckNAddStates(696, 702);
+ break;
+ case 398:
+ if (curChar == 43)
+ jjAddStates(703, 704);
+ break;
+ case 399:
+ if (curChar != 63)
+ break;
+ if (kind > 116)
+ kind = 116;
+ jjstateSet[jjnewStateCnt++] = 400;
+ break;
+ case 400:
+ if (curChar != 63)
+ break;
+ if (kind > 116)
+ kind = 116;
+ jjCheckNAddStates(705, 708);
+ break;
+ case 401:
+ if (curChar == 63 && kind > 116)
+ kind = 116;
+ break;
+ case 402:
+ case 417:
+ case 421:
+ case 424:
+ case 427:
+ if (curChar != 63)
+ break;
+ if (kind > 116)
+ kind = 116;
+ jjCheckNAdd(401);
+ break;
+ case 403:
+ if (curChar != 63)
+ break;
+ if (kind > 116)
+ kind = 116;
+ jjCheckNAddTwoStates(401, 402);
+ break;
+ case 404:
+ if (curChar != 63)
+ break;
+ if (kind > 116)
+ kind = 116;
+ jjCheckNAddStates(709, 711);
+ break;
+ case 405:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 116)
+ kind = 116;
+ jjAddStates(712, 717);
+ break;
+ case 406:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 407;
+ break;
+ case 407:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 408;
+ break;
+ case 408:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAdd(409);
+ break;
+ case 409:
+ if ((0x3ff000000000000L & l) != 0L && kind > 116)
+ kind = 116;
+ break;
+ case 410:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 411;
+ break;
+ case 411:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 412;
+ break;
+ case 412:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 413;
+ break;
+ case 413:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 116)
+ kind = 116;
+ jjCheckNAdd(401);
+ break;
+ case 414:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 415;
+ break;
+ case 415:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 416;
+ break;
+ case 416:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 116)
+ kind = 116;
+ jjstateSet[jjnewStateCnt++] = 417;
+ break;
+ case 418:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 419;
+ break;
+ case 419:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 116)
+ kind = 116;
+ jjstateSet[jjnewStateCnt++] = 420;
+ break;
+ case 420:
+ if (curChar != 63)
+ break;
+ if (kind > 116)
+ kind = 116;
+ jjCheckNAddTwoStates(401, 421);
+ break;
+ case 422:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 116)
+ kind = 116;
+ jjstateSet[jjnewStateCnt++] = 423;
+ break;
+ case 423:
+ if (curChar != 63)
+ break;
+ if (kind > 116)
+ kind = 116;
+ jjCheckNAddStates(718, 720);
+ break;
+ case 425:
+ if (curChar != 63)
+ break;
+ if (kind > 116)
+ kind = 116;
+ jjCheckNAddTwoStates(401, 424);
+ break;
+ case 426:
+ if (curChar != 63)
+ break;
+ if (kind > 116)
+ kind = 116;
+ jjCheckNAddStates(721, 724);
+ break;
+ case 428:
+ if (curChar != 63)
+ break;
+ if (kind > 116)
+ kind = 116;
+ jjCheckNAddTwoStates(401, 427);
+ break;
+ case 429:
+ if (curChar != 63)
+ break;
+ if (kind > 116)
+ kind = 116;
+ jjCheckNAddStates(725, 727);
+ break;
+ case 430:
+ if (curChar == 43)
+ jjstateSet[jjnewStateCnt++] = 431;
+ break;
+ case 431:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(432, 438);
+ break;
+ case 432:
+ if (curChar == 45)
+ jjstateSet[jjnewStateCnt++] = 433;
+ break;
+ case 433:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 116)
+ kind = 116;
+ jjstateSet[jjnewStateCnt++] = 434;
+ break;
+ case 434:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 116)
+ kind = 116;
+ jjCheckNAddStates(728, 731);
+ break;
+ case 435:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 116)
+ kind = 116;
+ jjCheckNAdd(409);
+ break;
+ case 436:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 116)
+ kind = 116;
+ jjCheckNAddTwoStates(409, 435);
+ break;
+ case 437:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 116)
+ kind = 116;
+ jjCheckNAddStates(732, 734);
+ break;
+ case 438:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(735, 739);
+ break;
+ case 439:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAdd(432);
+ break;
+ case 440:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(439, 432);
+ break;
+ case 441:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(740, 742);
+ break;
+ case 442:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(743, 746);
+ break;
+ case 444:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 74)
+ kind = 74;
+ jjCheckNAddStates(747, 750);
+ break;
+ case 445:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 74)
+ kind = 74;
+ jjCheckNAddStates(751, 757);
+ break;
+ case 446:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 74)
+ kind = 74;
+ jjCheckNAddStates(758, 760);
+ break;
+ case 447:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 74)
+ kind = 74;
+ jjCheckNAddStates(761, 764);
+ break;
+ case 448:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 74)
+ kind = 74;
+ jjCheckNAddStates(765, 769);
+ break;
+ case 449:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 74)
+ kind = 74;
+ jjCheckNAddStates(770, 775);
+ break;
+ case 450:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(776, 780);
+ break;
+ case 451:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(781, 788);
+ break;
+ case 453:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(789, 793);
+ break;
+ case 454:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(794, 799);
+ break;
+ case 455:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(800, 806);
+ break;
+ case 456:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 75)
+ kind = 75;
+ jjCheckNAddStates(0, 81);
+ break;
+ case 457:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 75)
+ kind = 75;
+ jjCheckNAdd(457);
+ break;
+ case 458:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(458, 459);
+ break;
+ case 459:
+ if (curChar == 46)
+ jjCheckNAdd(266);
+ break;
+ case 460:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(460, 268);
+ break;
+ case 461:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(461, 462);
+ break;
+ case 462:
+ if (curChar == 46)
+ jjCheckNAdd(267);
+ break;
+ case 463:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(463, 271);
+ break;
+ case 464:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(464, 465);
+ break;
+ case 465:
+ if (curChar == 46)
+ jjCheckNAdd(269);
+ break;
+ case 466:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(466, 274);
+ break;
+ case 467:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(467, 468);
+ break;
+ case 468:
+ if (curChar == 46)
+ jjCheckNAdd(272);
+ break;
+ case 469:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(469, 277);
+ break;
+ case 470:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(470, 471);
+ break;
+ case 471:
+ if (curChar == 46)
+ jjCheckNAdd(275);
+ break;
+ case 472:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(472, 280);
+ break;
+ case 473:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(473, 474);
+ break;
+ case 474:
+ if (curChar == 46)
+ jjCheckNAdd(278);
+ break;
+ case 475:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(475, 283);
+ break;
+ case 476:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(476, 477);
+ break;
+ case 477:
+ if (curChar == 46)
+ jjCheckNAdd(281);
+ break;
+ case 478:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(478, 286);
+ break;
+ case 479:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(479, 480);
+ break;
+ case 480:
+ if (curChar == 46)
+ jjCheckNAdd(284);
+ break;
+ case 481:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(481, 289);
+ break;
+ case 482:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(482, 483);
+ break;
+ case 483:
+ if (curChar == 46)
+ jjCheckNAdd(287);
+ break;
+ case 484:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(484, 293);
+ break;
+ case 485:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(485, 486);
+ break;
+ case 486:
+ if (curChar == 46)
+ jjCheckNAdd(290);
+ break;
+ case 487:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(487, 297);
+ break;
+ case 488:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(488, 489);
+ break;
+ case 489:
+ if (curChar == 46)
+ jjCheckNAdd(294);
+ break;
+ case 490:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(490, 300);
+ break;
+ case 491:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(491, 492);
+ break;
+ case 492:
+ if (curChar == 46)
+ jjCheckNAdd(298);
+ break;
+ case 493:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(493, 304);
+ break;
+ case 494:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(494, 495);
+ break;
+ case 495:
+ if (curChar == 46)
+ jjCheckNAdd(301);
+ break;
+ case 496:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(496, 308);
+ break;
+ case 497:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(497, 498);
+ break;
+ case 498:
+ if (curChar == 46)
+ jjCheckNAdd(305);
+ break;
+ case 499:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(499, 313);
+ break;
+ case 500:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(500, 501);
+ break;
+ case 501:
+ if (curChar == 46)
+ jjCheckNAdd(309);
+ break;
+ case 502:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(502, 316);
+ break;
+ case 503:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(503, 504);
+ break;
+ case 504:
+ if (curChar == 46)
+ jjCheckNAdd(314);
+ break;
+ case 505:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(505, 318);
+ break;
+ case 506:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(506, 507);
+ break;
+ case 507:
+ if (curChar == 46)
+ jjCheckNAdd(317);
+ break;
+ case 508:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(508, 321);
+ break;
+ case 509:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(509, 510);
+ break;
+ case 510:
+ if (curChar == 46)
+ jjCheckNAdd(319);
+ break;
+ case 511:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(511, 325);
+ break;
+ case 512:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(512, 513);
+ break;
+ case 513:
+ if (curChar == 46)
+ jjCheckNAdd(322);
+ break;
+ case 514:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(807, 811);
+ break;
+ case 515:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(515, 516);
+ break;
+ case 516:
+ if (curChar == 46)
+ jjCheckNAdd(326);
+ break;
+ default : break;
+ }
+ } while(i != startsAt);
+ }
+ else if (curChar < 128)
+ {
+ long l = 1L << (curChar & 077);
+ do
+ {
+ switch(jjstateSet[--i])
+ {
+ case 520:
+ if ((0x7fffffe87fffffeL & l) != 0L)
+ {
+ if (kind > 105)
+ kind = 105;
+ jjCheckNAddTwoStates(113, 114);
+ }
+ else if (curChar == 92)
+ jjCheckNAddTwoStates(115, 116);
+ break;
+ case 166:
+ if ((0x7fffffe07fffffeL & l) != 0L)
+ {
+ if (kind > 105)
+ kind = 105;
+ jjCheckNAddTwoStates(113, 114);
+ }
+ else if (curChar == 92)
+ jjCheckNAddTwoStates(115, 125);
+ if ((0x80000000800L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 165;
+ break;
+ case 174:
+ if ((0x7fffffe87fffffeL & l) != 0L)
+ {
+ if (kind > 105)
+ kind = 105;
+ jjCheckNAddTwoStates(113, 114);
+ }
+ else if (curChar == 92)
+ jjCheckNAddTwoStates(115, 116);
+ if ((0x80000000800L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 173;
+ break;
+ case 4:
+ if ((0x7fffffe07fffffeL & l) != 0L)
+ {
+ if (kind > 74)
+ kind = 74;
+ jjCheckNAddStates(812, 817);
+ }
+ else if (curChar == 92)
+ jjCheckNAddStates(818, 821);
+ else if (curChar == 64)
+ jjAddStates(822, 826);
+ if ((0x20000000200000L & l) != 0L)
+ jjAddStates(827, 829);
+ else if ((0x800000008L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 155;
+ else if ((0x200000002L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 145;
+ else if ((0x4000000040000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 137;
+ else if ((0x4000000040L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 33;
+ else if (curChar == 64)
+ jjAddStates(830, 833);
+ break;
+ case 517:
+ if ((0x20000000200L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 259;
+ else if ((0x1000000010L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 249;
+ break;
+ case 178:
+ if ((0x7fffffe07fffffeL & l) != 0L)
+ {
+ if (kind > 105)
+ kind = 105;
+ jjCheckNAddTwoStates(113, 114);
+ }
+ if ((0x200000002000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 216;
+ else if ((0x80000000800000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 204;
+ else if ((0x800000008000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 188;
+ if ((0x200000002000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 177;
+ break;
+ case 518:
+ if ((0x7fffffe87fffffeL & l) != 0L)
+ jjCheckNAddStates(120, 123);
+ else if (curChar == 92)
+ jjCheckNAddTwoStates(222, 223);
+ if ((0x7fffffe87fffffeL & l) != 0L)
+ {
+ if (kind > 74)
+ kind = 74;
+ jjCheckNAddTwoStates(220, 221);
+ }
+ else if (curChar == 92)
+ jjCheckNAddTwoStates(234, 235);
+ break;
+ case 175:
+ if ((0x7fffffe87fffffeL & l) != 0L)
+ {
+ if (kind > 105)
+ kind = 105;
+ jjCheckNAddTwoStates(113, 114);
+ }
+ else if (curChar == 92)
+ jjCheckNAddTwoStates(115, 116);
+ break;
+ case 33:
+ if ((0x7fffffe87fffffeL & l) != 0L)
+ jjCheckNAddStates(120, 123);
+ else if (curChar == 92)
+ jjCheckNAddTwoStates(222, 223);
+ if ((0x7fffffe87fffffeL & l) != 0L)
+ {
+ if (kind > 74)
+ kind = 74;
+ jjCheckNAddTwoStates(220, 221);
+ }
+ else if (curChar == 92)
+ jjCheckNAddTwoStates(234, 235);
+ if ((0x20000000200L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 32;
+ break;
+ case 176:
+ if ((0x7fffffe87fffffeL & l) != 0L)
+ {
+ if (kind > 105)
+ kind = 105;
+ jjCheckNAddTwoStates(113, 114);
+ }
+ else if (curChar == 92)
+ jjCheckNAddTwoStates(115, 116);
+ if ((0x400000004000000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 175;
+ break;
+ case 42:
+ if ((0x7fffffe07fffffeL & l) != 0L)
+ jjCheckNAddStates(120, 123);
+ if ((0x7fffffe07fffffeL & l) != 0L)
+ {
+ if (kind > 74)
+ kind = 74;
+ jjCheckNAddTwoStates(220, 221);
+ }
+ if ((0x200000002000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 41;
+ break;
+ case 177:
+ if ((0x7fffffe87fffffeL & l) != 0L)
+ {
+ if (kind > 105)
+ kind = 105;
+ jjCheckNAddTwoStates(113, 114);
+ }
+ else if (curChar == 92)
+ jjCheckNAddTwoStates(115, 116);
+ if ((0x8000000080000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 215;
+ else if ((0x800000008000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 176;
+ break;
+ case 79:
+ if ((0x7fffffe07fffffeL & l) != 0L)
+ {
+ if (kind > 78)
+ kind = 78;
+ jjCheckNAddTwoStates(81, 82);
+ }
+ else if (curChar == 92)
+ jjCheckNAddTwoStates(83, 93);
+ break;
+ case 2:
+ if (kind > 5)
+ kind = 5;
+ break;
+ case 5:
+ if (curChar == 123)
+ jjstateSet[jjnewStateCnt++] = 6;
+ break;
+ case 8:
+ if ((0x7fffffe07fffffeL & l) != 0L)
+ jjCheckNAddStates(133, 135);
+ break;
+ case 9:
+ if ((0x7fffffe87fffffeL & l) != 0L)
+ jjCheckNAddStates(133, 135);
+ break;
+ case 10:
+ if (curChar == 125 && kind > 41)
+ kind = 41;
+ break;
+ case 11:
+ if (curChar == 92)
+ jjCheckNAddTwoStates(12, 13);
+ break;
+ case 12:
+ if ((0x7fffffffffffffffL & l) != 0L)
+ jjCheckNAddStates(133, 135);
+ break;
+ case 13:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(136, 140);
+ break;
+ case 15:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(141, 148);
+ break;
+ case 16:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(149, 152);
+ break;
+ case 17:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(153, 157);
+ break;
+ case 18:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(158, 163);
+ break;
+ case 19:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(164, 170);
+ break;
+ case 21:
+ if (curChar == 92)
+ jjCheckNAddTwoStates(12, 22);
+ break;
+ case 22:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(171, 175);
+ break;
+ case 23:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(176, 183);
+ break;
+ case 24:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(184, 187);
+ break;
+ case 25:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(188, 192);
+ break;
+ case 26:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(193, 198);
+ break;
+ case 27:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(199, 205);
+ break;
+ case 29:
+ if ((0x4000000040000L & l) != 0L && kind > 70)
+ kind = 70;
+ break;
+ case 30:
+ case 35:
+ if ((0x2000000020L & l) != 0L)
+ jjCheckNAdd(29);
+ break;
+ case 31:
+ if ((0x10000000100000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 30;
+ break;
+ case 32:
+ if ((0x100000001000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 31;
+ break;
+ case 34:
+ if ((0x4000000040L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 33;
+ break;
+ case 36:
+ if ((0x10000000100000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 35;
+ break;
+ case 37:
+ if ((0x100000001000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 36;
+ break;
+ case 38:
+ if ((0x20000000200L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 37;
+ break;
+ case 39:
+ if ((0x4000000040L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 38;
+ break;
+ case 41:
+ if ((0x8000000080000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 40;
+ break;
+ case 45:
+ case 50:
+ if ((0x7fffffffffffffffL & l) != 0L)
+ jjCheckNAddStates(116, 119);
+ break;
+ case 47:
+ if (curChar == 92)
+ jjAddStates(834, 837);
+ break;
+ case 49:
+ if (curChar == 92)
+ jjAddStates(838, 839);
+ break;
+ case 51:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(206, 211);
+ break;
+ case 53:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(212, 220);
+ break;
+ case 54:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(221, 225);
+ break;
+ case 55:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(226, 231);
+ break;
+ case 56:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(232, 238);
+ break;
+ case 57:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(239, 246);
+ break;
+ case 62:
+ case 67:
+ if ((0x7fffffffffffffffL & l) != 0L)
+ jjCheckNAddStates(112, 115);
+ break;
+ case 64:
+ if (curChar == 92)
+ jjAddStates(840, 843);
+ break;
+ case 66:
+ if (curChar == 92)
+ jjAddStates(844, 845);
+ break;
+ case 68:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(247, 252);
+ break;
+ case 70:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(253, 261);
+ break;
+ case 71:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(262, 266);
+ break;
+ case 72:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(267, 272);
+ break;
+ case 73:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(273, 279);
+ break;
+ case 74:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(280, 287);
+ break;
+ case 80:
+ if ((0x7fffffe07fffffeL & l) == 0L)
+ break;
+ if (kind > 78)
+ kind = 78;
+ jjCheckNAddTwoStates(81, 82);
+ break;
+ case 81:
+ if ((0x7fffffe87fffffeL & l) == 0L)
+ break;
+ if (kind > 78)
+ kind = 78;
+ jjCheckNAddTwoStates(81, 82);
+ break;
+ case 82:
+ if (curChar == 92)
+ jjCheckNAddTwoStates(83, 84);
+ break;
+ case 83:
+ if ((0x7fffffffffffffffL & l) == 0L)
+ break;
+ if (kind > 78)
+ kind = 78;
+ jjCheckNAddTwoStates(81, 82);
+ break;
+ case 84:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 78)
+ kind = 78;
+ jjCheckNAddStates(288, 291);
+ break;
+ case 86:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 78)
+ kind = 78;
+ jjCheckNAddStates(292, 298);
+ break;
+ case 87:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 78)
+ kind = 78;
+ jjCheckNAddStates(299, 301);
+ break;
+ case 88:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 78)
+ kind = 78;
+ jjCheckNAddStates(302, 305);
+ break;
+ case 89:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 78)
+ kind = 78;
+ jjCheckNAddStates(306, 310);
+ break;
+ case 90:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 78)
+ kind = 78;
+ jjCheckNAddStates(311, 316);
+ break;
+ case 92:
+ if (curChar == 92)
+ jjCheckNAddTwoStates(83, 93);
+ break;
+ case 93:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 78)
+ kind = 78;
+ jjCheckNAddStates(317, 320);
+ break;
+ case 94:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 78)
+ kind = 78;
+ jjCheckNAddStates(321, 327);
+ break;
+ case 95:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 78)
+ kind = 78;
+ jjCheckNAddStates(328, 330);
+ break;
+ case 96:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 78)
+ kind = 78;
+ jjCheckNAddStates(331, 334);
+ break;
+ case 97:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 78)
+ kind = 78;
+ jjCheckNAddStates(335, 339);
+ break;
+ case 98:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 78)
+ kind = 78;
+ jjCheckNAddStates(340, 345);
+ break;
+ case 100:
+ if ((0x7fffffe87fffffeL & l) == 0L)
+ break;
+ if (kind > 98)
+ kind = 98;
+ jjCheckNAddTwoStates(100, 101);
+ break;
+ case 101:
+ if (curChar == 92)
+ jjAddStates(846, 847);
+ break;
+ case 102:
+ if ((0x7fffffffffffffffL & l) == 0L)
+ break;
+ if (kind > 98)
+ kind = 98;
+ jjCheckNAddTwoStates(100, 101);
+ break;
+ case 103:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 98)
+ kind = 98;
+ jjCheckNAddStates(346, 349);
+ break;
+ case 105:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 98)
+ kind = 98;
+ jjCheckNAddStates(350, 356);
+ break;
+ case 106:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 98)
+ kind = 98;
+ jjCheckNAddStates(357, 359);
+ break;
+ case 107:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 98)
+ kind = 98;
+ jjCheckNAddStates(360, 363);
+ break;
+ case 108:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 98)
+ kind = 98;
+ jjCheckNAddStates(364, 368);
+ break;
+ case 109:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 98)
+ kind = 98;
+ jjCheckNAddStates(369, 374);
+ break;
+ case 110:
+ if (curChar == 64)
+ jjAddStates(830, 833);
+ break;
+ case 112:
+ if ((0x7fffffe07fffffeL & l) == 0L)
+ break;
+ if (kind > 105)
+ kind = 105;
+ jjCheckNAddTwoStates(113, 114);
+ break;
+ case 113:
+ if ((0x7fffffe87fffffeL & l) == 0L)
+ break;
+ if (kind > 105)
+ kind = 105;
+ jjCheckNAddTwoStates(113, 114);
+ break;
+ case 114:
+ if (curChar == 92)
+ jjCheckNAddTwoStates(115, 116);
+ break;
+ case 115:
+ if ((0x7fffffffffffffffL & l) == 0L)
+ break;
+ if (kind > 105)
+ kind = 105;
+ jjCheckNAddTwoStates(113, 114);
+ break;
+ case 116:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 105)
+ kind = 105;
+ jjCheckNAddStates(375, 378);
+ break;
+ case 118:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 105)
+ kind = 105;
+ jjCheckNAddStates(379, 385);
+ break;
+ case 119:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 105)
+ kind = 105;
+ jjCheckNAddStates(386, 388);
+ break;
+ case 120:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 105)
+ kind = 105;
+ jjCheckNAddStates(389, 392);
+ break;
+ case 121:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 105)
+ kind = 105;
+ jjCheckNAddStates(393, 397);
+ break;
+ case 122:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 105)
+ kind = 105;
+ jjCheckNAddStates(398, 403);
+ break;
+ case 124:
+ if (curChar == 92)
+ jjCheckNAddTwoStates(115, 125);
+ break;
+ case 125:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 105)
+ kind = 105;
+ jjCheckNAddStates(404, 407);
+ break;
+ case 126:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 105)
+ kind = 105;
+ jjCheckNAddStates(408, 414);
+ break;
+ case 127:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 105)
+ kind = 105;
+ jjCheckNAddStates(415, 417);
+ break;
+ case 128:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 105)
+ kind = 105;
+ jjCheckNAddStates(418, 421);
+ break;
+ case 129:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 105)
+ kind = 105;
+ jjCheckNAddStates(422, 426);
+ break;
+ case 130:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 105)
+ kind = 105;
+ jjCheckNAddStates(427, 432);
+ break;
+ case 131:
+ if ((0x2000000020L & l) != 0L)
+ jjAddStates(433, 434);
+ break;
+ case 134:
+ if ((0x40000000400000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 131;
+ break;
+ case 135:
+ if ((0x800000008000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 134;
+ break;
+ case 136:
+ if ((0x200000002000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 135;
+ break;
+ case 137:
+ if ((0x2000000020L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 136;
+ break;
+ case 138:
+ if ((0x4000000040000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 137;
+ break;
+ case 139:
+ if ((0x1000000010L & l) != 0L)
+ jjAddStates(435, 436);
+ break;
+ case 142:
+ if ((0x400000004000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 139;
+ break;
+ case 143:
+ if ((0x2000000020L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 142;
+ break;
+ case 144:
+ if ((0x1000000010000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 143;
+ break;
+ case 145:
+ if ((0x1000000010000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 144;
+ break;
+ case 146:
+ if ((0x200000002L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 145;
+ break;
+ case 147:
+ if ((0x8000000080000L & l) != 0L)
+ jjAddStates(437, 438);
+ break;
+ case 150:
+ if ((0x400000004000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 147;
+ break;
+ case 151:
+ if ((0x20000000200L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 150;
+ break;
+ case 152:
+ if ((0x200000002L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 151;
+ break;
+ case 153:
+ if ((0x10000000100000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 152;
+ break;
+ case 154:
+ if ((0x400000004000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 153;
+ break;
+ case 155:
+ if ((0x800000008000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 154;
+ break;
+ case 156:
+ if ((0x800000008L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 155;
+ break;
+ case 157:
+ if (curChar == 64)
+ jjAddStates(822, 826);
+ break;
+ case 158:
+ if ((0x8000000080000L & l) != 0L && kind > 104)
+ kind = 104;
+ break;
+ case 159:
+ case 167:
+ case 180:
+ case 191:
+ case 207:
+ if ((0x2000000020L & l) != 0L)
+ jjCheckNAdd(158);
+ break;
+ case 160:
+ if ((0x200000002000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 159;
+ break;
+ case 161:
+ if ((0x200000002L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 160;
+ break;
+ case 162:
+ if ((0x4000000040000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 161;
+ break;
+ case 163:
+ if ((0x4000000040L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 162;
+ break;
+ case 164:
+ if ((0x200000002000000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 163;
+ break;
+ case 165:
+ if ((0x2000000020L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 164;
+ break;
+ case 168:
+ if ((0x200000002000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 167;
+ break;
+ case 169:
+ if ((0x200000002L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 168;
+ break;
+ case 170:
+ if ((0x4000000040000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 169;
+ break;
+ case 171:
+ if ((0x4000000040L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 170;
+ break;
+ case 172:
+ if ((0x200000002000000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 171;
+ break;
+ case 173:
+ if ((0x2000000020L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 172;
+ break;
+ case 181:
+ if ((0x200000002000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 180;
+ break;
+ case 182:
+ if ((0x200000002L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 181;
+ break;
+ case 183:
+ if ((0x4000000040000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 182;
+ break;
+ case 184:
+ if ((0x4000000040L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 183;
+ break;
+ case 185:
+ if ((0x200000002000000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 184;
+ break;
+ case 186:
+ if ((0x2000000020L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 185;
+ break;
+ case 187:
+ if ((0x80000000800L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 186;
+ break;
+ case 189:
+ if ((0x800000008000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 188;
+ break;
+ case 192:
+ if ((0x200000002000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 191;
+ break;
+ case 193:
+ if ((0x200000002L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 192;
+ break;
+ case 194:
+ if ((0x4000000040000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 193;
+ break;
+ case 195:
+ if ((0x4000000040L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 194;
+ break;
+ case 196:
+ if ((0x200000002000000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 195;
+ break;
+ case 197:
+ if ((0x2000000020L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 196;
+ break;
+ case 198:
+ if ((0x80000000800L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 197;
+ break;
+ case 200:
+ if ((0x10000000100000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 199;
+ break;
+ case 201:
+ if ((0x20000000200L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 200;
+ break;
+ case 202:
+ if ((0x80000000800L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 201;
+ break;
+ case 203:
+ if ((0x400000004L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 202;
+ break;
+ case 204:
+ if ((0x2000000020L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 203;
+ break;
+ case 205:
+ if ((0x80000000800000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 204;
+ break;
+ case 208:
+ if ((0x200000002000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 207;
+ break;
+ case 209:
+ if ((0x200000002L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 208;
+ break;
+ case 210:
+ if ((0x4000000040000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 209;
+ break;
+ case 211:
+ if ((0x4000000040L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 210;
+ break;
+ case 212:
+ if ((0x200000002000000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 211;
+ break;
+ case 213:
+ if ((0x2000000020L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 212;
+ break;
+ case 214:
+ if ((0x80000000800L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 213;
+ break;
+ case 216:
+ if ((0x8000000080000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 215;
+ break;
+ case 217:
+ if ((0x200000002000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 216;
+ break;
+ case 220:
+ if ((0x7fffffe87fffffeL & l) == 0L)
+ break;
+ if (kind > 74)
+ kind = 74;
+ jjCheckNAddTwoStates(220, 221);
+ break;
+ case 221:
+ if (curChar == 92)
+ jjCheckNAddTwoStates(222, 223);
+ break;
+ case 222:
+ if ((0x7fffffffffffffffL & l) == 0L)
+ break;
+ if (kind > 74)
+ kind = 74;
+ jjCheckNAddTwoStates(220, 221);
+ break;
+ case 223:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 74)
+ kind = 74;
+ jjCheckNAddStates(439, 442);
+ break;
+ case 225:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 74)
+ kind = 74;
+ jjCheckNAddStates(443, 449);
+ break;
+ case 226:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 74)
+ kind = 74;
+ jjCheckNAddStates(450, 452);
+ break;
+ case 227:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 74)
+ kind = 74;
+ jjCheckNAddStates(453, 456);
+ break;
+ case 228:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 74)
+ kind = 74;
+ jjCheckNAddStates(457, 461);
+ break;
+ case 229:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 74)
+ kind = 74;
+ jjCheckNAddStates(462, 467);
+ break;
+ case 230:
+ if ((0x7fffffe87fffffeL & l) != 0L)
+ jjCheckNAddStates(120, 123);
+ break;
+ case 233:
+ if (curChar == 92)
+ jjCheckNAddTwoStates(234, 235);
+ break;
+ case 234:
+ if ((0x7fffffffffffffffL & l) != 0L)
+ jjCheckNAddStates(120, 123);
+ break;
+ case 235:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(468, 472);
+ break;
+ case 237:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(473, 480);
+ break;
+ case 238:
+ case 452:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(481, 484);
+ break;
+ case 239:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(485, 489);
+ break;
+ case 240:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(490, 495);
+ break;
+ case 241:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(496, 502);
+ break;
+ case 244:
+ if ((0x10000000100000L & l) != 0L && kind > 72)
+ kind = 72;
+ break;
+ case 245:
+ if ((0x100000001000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 244;
+ break;
+ case 246:
+ if ((0x20000000200000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 245;
+ break;
+ case 247:
+ if ((0x200000002L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 246;
+ break;
+ case 248:
+ if ((0x4000000040L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 247;
+ break;
+ case 249:
+ if ((0x2000000020L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 248;
+ break;
+ case 250:
+ if ((0x1000000010L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 249;
+ break;
+ case 252:
+ if ((0x10000000100000L & l) != 0L && kind > 106)
+ kind = 106;
+ break;
+ case 253:
+ if ((0x400000004000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 252;
+ break;
+ case 254:
+ if ((0x200000002L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 253;
+ break;
+ case 255:
+ if ((0x10000000100000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 254;
+ break;
+ case 256:
+ if ((0x4000000040000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 255;
+ break;
+ case 257:
+ if ((0x800000008000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 256;
+ break;
+ case 258:
+ if ((0x1000000010000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 257;
+ break;
+ case 259:
+ if ((0x200000002000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 258;
+ break;
+ case 260:
+ if ((0x20000000200L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 259;
+ break;
+ case 262:
+ if ((0x7fffffe07fffffeL & l) == 0L)
+ break;
+ if (kind > 74)
+ kind = 74;
+ jjCheckNAddTwoStates(220, 221);
+ break;
+ case 263:
+ if ((0x7fffffe07fffffeL & l) != 0L)
+ jjCheckNAddStates(120, 123);
+ break;
+ case 264:
+ if ((0x7fffffe07fffffeL & l) == 0L)
+ break;
+ if (kind > 74)
+ kind = 74;
+ jjCheckNAddStates(812, 817);
+ break;
+ case 270:
+ if ((0x10000000100000L & l) != 0L && kind > 80)
+ kind = 80;
+ break;
+ case 271:
+ if ((0x1000000010000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 270;
+ break;
+ case 273:
+ if ((0x200000002000L & l) != 0L && kind > 81)
+ kind = 81;
+ break;
+ case 274:
+ if ((0x200000002000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 273;
+ break;
+ case 276:
+ if ((0x200000002000L & l) != 0L && kind > 82)
+ kind = 82;
+ break;
+ case 277:
+ if ((0x800000008L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 276;
+ break;
+ case 279:
+ if ((0x800000008L & l) != 0L && kind > 83)
+ kind = 83;
+ break;
+ case 280:
+ if ((0x1000000010000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 279;
+ break;
+ case 282:
+ if ((0x400000004000L & l) != 0L && kind > 84)
+ kind = 84;
+ break;
+ case 283:
+ if ((0x20000000200L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 282;
+ break;
+ case 285:
+ if ((0x100000001000000L & l) != 0L && kind > 85)
+ kind = 85;
+ break;
+ case 286:
+ if ((0x1000000010000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 285;
+ break;
+ case 288:
+ if ((0x200000002000L & l) != 0L && kind > 86)
+ kind = 86;
+ break;
+ case 289:
+ if ((0x2000000020L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 288;
+ break;
+ case 291:
+ if ((0x200000002000L & l) != 0L && kind > 87)
+ kind = 87;
+ break;
+ case 292:
+ if ((0x2000000020L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 291;
+ break;
+ case 293:
+ if ((0x100000001000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 292;
+ break;
+ case 295:
+ if ((0x200000002000L & l) != 0L && kind > 88)
+ kind = 88;
+ break;
+ case 296:
+ if ((0x2000000020L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 295;
+ break;
+ case 297:
+ if ((0x4000000040000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 296;
+ break;
+ case 299:
+ if ((0x100000001000000L & l) != 0L && kind > 89)
+ kind = 89;
+ break;
+ case 300:
+ if ((0x2000000020L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 299;
+ break;
+ case 302:
+ if ((0x8000000080L & l) != 0L && kind > 90)
+ kind = 90;
+ break;
+ case 303:
+ if ((0x2000000020L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 302;
+ break;
+ case 304:
+ if ((0x1000000010L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 303;
+ break;
+ case 306:
+ if ((0x1000000010L & l) != 0L && kind > 91)
+ kind = 91;
+ break;
+ case 307:
+ if ((0x200000002L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 306;
+ break;
+ case 308:
+ if ((0x4000000040000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 307;
+ break;
+ case 310:
+ if ((0x1000000010L & l) != 0L && kind > 92)
+ kind = 92;
+ break;
+ case 311:
+ if ((0x200000002L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 310;
+ break;
+ case 312:
+ if ((0x4000000040000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 311;
+ break;
+ case 313:
+ if ((0x8000000080L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 312;
+ break;
+ case 315:
+ if ((0x8000000080000L & l) != 0L && kind > 93)
+ kind = 93;
+ break;
+ case 316:
+ if ((0x200000002000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 315;
+ break;
+ case 318:
+ if ((0x8000000080000L & l) != 0L && kind > 94)
+ kind = 94;
+ break;
+ case 320:
+ if ((0x400000004000000L & l) != 0L && kind > 95)
+ kind = 95;
+ break;
+ case 321:
+ if ((0x10000000100L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 320;
+ break;
+ case 323:
+ if ((0x400000004000000L & l) != 0L && kind > 96)
+ kind = 96;
+ break;
+ case 324:
+ if ((0x10000000100L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 323;
+ break;
+ case 325:
+ if ((0x80000000800L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 324;
+ break;
+ case 328:
+ if ((0x7fffffe07fffffeL & l) == 0L)
+ break;
+ if (kind > 97)
+ kind = 97;
+ jjCheckNAddTwoStates(329, 330);
+ break;
+ case 329:
+ if ((0x7fffffe87fffffeL & l) == 0L)
+ break;
+ if (kind > 97)
+ kind = 97;
+ jjCheckNAddTwoStates(329, 330);
+ break;
+ case 330:
+ if (curChar == 92)
+ jjCheckNAddTwoStates(331, 332);
+ break;
+ case 331:
+ if ((0x7fffffffffffffffL & l) == 0L)
+ break;
+ if (kind > 97)
+ kind = 97;
+ jjCheckNAddTwoStates(329, 330);
+ break;
+ case 332:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 97)
+ kind = 97;
+ jjCheckNAddStates(503, 506);
+ break;
+ case 334:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 97)
+ kind = 97;
+ jjCheckNAddStates(507, 513);
+ break;
+ case 335:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 97)
+ kind = 97;
+ jjCheckNAddStates(514, 516);
+ break;
+ case 336:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 97)
+ kind = 97;
+ jjCheckNAddStates(517, 520);
+ break;
+ case 337:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 97)
+ kind = 97;
+ jjCheckNAddStates(521, 525);
+ break;
+ case 338:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 97)
+ kind = 97;
+ jjCheckNAddStates(526, 531);
+ break;
+ case 340:
+ if (curChar == 92)
+ jjCheckNAddTwoStates(331, 341);
+ break;
+ case 341:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 97)
+ kind = 97;
+ jjCheckNAddStates(532, 535);
+ break;
+ case 342:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 97)
+ kind = 97;
+ jjCheckNAddStates(536, 542);
+ break;
+ case 343:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 97)
+ kind = 97;
+ jjCheckNAddStates(543, 545);
+ break;
+ case 344:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 97)
+ kind = 97;
+ jjCheckNAddStates(546, 549);
+ break;
+ case 345:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 97)
+ kind = 97;
+ jjCheckNAddStates(550, 554);
+ break;
+ case 346:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 97)
+ kind = 97;
+ jjCheckNAddStates(555, 560);
+ break;
+ case 347:
+ if ((0x20000000200000L & l) != 0L)
+ jjAddStates(827, 829);
+ break;
+ case 349:
+ case 353:
+ if ((0x7fffffffffffffffL & l) != 0L)
+ jjCheckNAddStates(567, 570);
+ break;
+ case 352:
+ if (curChar == 92)
+ jjAddStates(848, 849);
+ break;
+ case 354:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(571, 575);
+ break;
+ case 356:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(576, 583);
+ break;
+ case 357:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(584, 587);
+ break;
+ case 358:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(588, 592);
+ break;
+ case 359:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(593, 598);
+ break;
+ case 360:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(599, 605);
+ break;
+ case 362:
+ case 367:
+ if ((0x7fffffffffffffffL & l) != 0L)
+ jjCheckNAddStates(606, 609);
+ break;
+ case 364:
+ if (curChar == 92)
+ jjAddStates(850, 853);
+ break;
+ case 366:
+ if (curChar == 92)
+ jjAddStates(854, 855);
+ break;
+ case 368:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(610, 615);
+ break;
+ case 370:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(616, 624);
+ break;
+ case 371:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(625, 629);
+ break;
+ case 372:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(630, 635);
+ break;
+ case 373:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(636, 642);
+ break;
+ case 374:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(643, 650);
+ break;
+ case 379:
+ case 384:
+ if ((0x7fffffffffffffffL & l) != 0L)
+ jjCheckNAddStates(651, 654);
+ break;
+ case 381:
+ if (curChar == 92)
+ jjAddStates(856, 859);
+ break;
+ case 383:
+ if (curChar == 92)
+ jjAddStates(860, 861);
+ break;
+ case 385:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(655, 660);
+ break;
+ case 387:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(661, 669);
+ break;
+ case 388:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(670, 674);
+ break;
+ case 389:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(675, 680);
+ break;
+ case 390:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(681, 687);
+ break;
+ case 391:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(688, 695);
+ break;
+ case 396:
+ if ((0x100000001000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 348;
+ break;
+ case 397:
+ if ((0x4000000040000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 396;
+ break;
+ case 405:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 116)
+ kind = 116;
+ jjAddStates(712, 717);
+ break;
+ case 406:
+ if ((0x7e0000007eL & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 407;
+ break;
+ case 407:
+ if ((0x7e0000007eL & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 408;
+ break;
+ case 408:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAdd(409);
+ break;
+ case 409:
+ if ((0x7e0000007eL & l) != 0L && kind > 116)
+ kind = 116;
+ break;
+ case 410:
+ if ((0x7e0000007eL & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 411;
+ break;
+ case 411:
+ if ((0x7e0000007eL & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 412;
+ break;
+ case 412:
+ if ((0x7e0000007eL & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 413;
+ break;
+ case 413:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 116)
+ kind = 116;
+ jjstateSet[jjnewStateCnt++] = 401;
+ break;
+ case 414:
+ if ((0x7e0000007eL & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 415;
+ break;
+ case 415:
+ if ((0x7e0000007eL & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 416;
+ break;
+ case 416:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 116)
+ kind = 116;
+ jjstateSet[jjnewStateCnt++] = 417;
+ break;
+ case 418:
+ if ((0x7e0000007eL & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 419;
+ break;
+ case 419:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 116)
+ kind = 116;
+ jjstateSet[jjnewStateCnt++] = 420;
+ break;
+ case 422:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 116)
+ kind = 116;
+ jjstateSet[jjnewStateCnt++] = 423;
+ break;
+ case 431:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddTwoStates(432, 438);
+ break;
+ case 433:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 116)
+ kind = 116;
+ jjstateSet[jjnewStateCnt++] = 434;
+ break;
+ case 434:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 116)
+ kind = 116;
+ jjCheckNAddStates(728, 731);
+ break;
+ case 435:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 116)
+ kind = 116;
+ jjCheckNAdd(409);
+ break;
+ case 436:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 116)
+ kind = 116;
+ jjCheckNAddTwoStates(409, 435);
+ break;
+ case 437:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 116)
+ kind = 116;
+ jjCheckNAddStates(732, 734);
+ break;
+ case 438:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(735, 739);
+ break;
+ case 439:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAdd(432);
+ break;
+ case 440:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddTwoStates(439, 432);
+ break;
+ case 441:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(740, 742);
+ break;
+ case 442:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(743, 746);
+ break;
+ case 443:
+ if (curChar == 92)
+ jjCheckNAddStates(818, 821);
+ break;
+ case 444:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 74)
+ kind = 74;
+ jjCheckNAddStates(747, 750);
+ break;
+ case 445:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 74)
+ kind = 74;
+ jjCheckNAddStates(751, 757);
+ break;
+ case 446:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 74)
+ kind = 74;
+ jjCheckNAddStates(758, 760);
+ break;
+ case 447:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 74)
+ kind = 74;
+ jjCheckNAddStates(761, 764);
+ break;
+ case 448:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 74)
+ kind = 74;
+ jjCheckNAddStates(765, 769);
+ break;
+ case 449:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 74)
+ kind = 74;
+ jjCheckNAddStates(770, 775);
+ break;
+ case 450:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(776, 780);
+ break;
+ case 451:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(781, 788);
+ break;
+ case 453:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(789, 793);
+ break;
+ case 454:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(794, 799);
+ break;
+ case 455:
+ if ((0x7e0000007eL & l) != 0L)
+ jjCheckNAddStates(800, 806);
+ break;
+ default : break;
+ }
+ } while(i != startsAt);
+ }
+ else
+ {
+ int i2 = (curChar & 0xff) >> 6;
+ long l2 = 1L << (curChar & 077);
+ do
+ {
+ switch(jjstateSet[--i])
+ {
+ case 520:
+ case 113:
+ case 115:
+ if ((jjbitVec0[i2] & l2) == 0L)
+ break;
+ if (kind > 105)
+ kind = 105;
+ jjCheckNAddTwoStates(113, 114);
+ break;
+ case 166:
+ if ((jjbitVec0[i2] & l2) == 0L)
+ break;
+ if (kind > 105)
+ kind = 105;
+ jjCheckNAddTwoStates(113, 114);
+ break;
+ case 174:
+ if ((jjbitVec0[i2] & l2) == 0L)
+ break;
+ if (kind > 105)
+ kind = 105;
+ jjCheckNAddTwoStates(113, 114);
+ break;
+ case 4:
+ if ((jjbitVec0[i2] & l2) == 0L)
+ break;
+ if (kind > 42)
+ kind = 42;
+ jjCheckNAddStates(812, 817);
+ break;
+ case 518:
+ if ((jjbitVec0[i2] & l2) != 0L)
+ {
+ if (kind > 74)
+ kind = 74;
+ jjCheckNAddTwoStates(220, 221);
+ }
+ if ((jjbitVec0[i2] & l2) != 0L)
+ jjCheckNAddStates(120, 123);
+ break;
+ case 175:
+ if ((jjbitVec0[i2] & l2) == 0L)
+ break;
+ if (kind > 105)
+ kind = 105;
+ jjCheckNAddTwoStates(113, 114);
+ break;
+ case 33:
+ if ((jjbitVec0[i2] & l2) != 0L)
+ {
+ if (kind > 74)
+ kind = 74;
+ jjCheckNAddTwoStates(220, 221);
+ }
+ if ((jjbitVec0[i2] & l2) != 0L)
+ jjCheckNAddStates(120, 123);
+ break;
+ case 176:
+ if ((jjbitVec0[i2] & l2) == 0L)
+ break;
+ if (kind > 105)
+ kind = 105;
+ jjCheckNAddTwoStates(113, 114);
+ break;
+ case 177:
+ if ((jjbitVec0[i2] & l2) == 0L)
+ break;
+ if (kind > 105)
+ kind = 105;
+ jjCheckNAddTwoStates(113, 114);
+ break;
+ case 79:
+ case 81:
+ case 83:
+ if ((jjbitVec0[i2] & l2) == 0L)
+ break;
+ if (kind > 78)
+ kind = 78;
+ jjCheckNAddTwoStates(81, 82);
+ break;
+ case 2:
+ if ((jjbitVec0[i2] & l2) != 0L && kind > 5)
+ kind = 5;
+ break;
+ case 9:
+ case 12:
+ case 20:
+ if ((jjbitVec0[i2] & l2) != 0L)
+ jjCheckNAddStates(133, 135);
+ break;
+ case 45:
+ case 50:
+ if ((jjbitVec0[i2] & l2) != 0L)
+ jjCheckNAddStates(116, 119);
+ break;
+ case 62:
+ case 67:
+ if ((jjbitVec0[i2] & l2) != 0L)
+ jjCheckNAddStates(112, 115);
+ break;
+ case 100:
+ case 102:
+ if ((jjbitVec0[i2] & l2) == 0L)
+ break;
+ if (kind > 98)
+ kind = 98;
+ jjCheckNAddTwoStates(100, 101);
+ break;
+ case 220:
+ case 222:
+ if ((jjbitVec0[i2] & l2) == 0L)
+ break;
+ if (kind > 74)
+ kind = 74;
+ jjCheckNAddTwoStates(220, 221);
+ break;
+ case 230:
+ case 234:
+ if ((jjbitVec0[i2] & l2) != 0L)
+ jjCheckNAddStates(120, 123);
+ break;
+ case 329:
+ case 331:
+ case 339:
+ if ((jjbitVec0[i2] & l2) == 0L)
+ break;
+ if (kind > 97)
+ kind = 97;
+ jjCheckNAddTwoStates(329, 330);
+ break;
+ case 349:
+ case 353:
+ if ((jjbitVec0[i2] & l2) != 0L)
+ jjCheckNAddStates(567, 570);
+ break;
+ case 362:
+ case 367:
+ if ((jjbitVec0[i2] & l2) != 0L)
+ jjCheckNAddStates(606, 609);
+ break;
+ case 379:
+ case 384:
+ if ((jjbitVec0[i2] & l2) != 0L)
+ jjCheckNAddStates(651, 654);
+ break;
+ default : break;
+ }
+ } while(i != startsAt);
+ }
+ if (kind != 0x7fffffff)
+ {
+ jjmatchedKind = kind;
+ jjmatchedPos = curPos;
+ kind = 0x7fffffff;
+ }
+ ++curPos;
+ if ((i = jjnewStateCnt) == (startsAt = 517 - (jjnewStateCnt = startsAt)))
+ return curPos;
+ try { curChar = input_stream.readChar(); }
+ catch(java.io.IOException e) { return curPos; }
+ }
+}
+private int jjMoveStringLiteralDfa0_3()
+{
+ switch(curChar)
+ {
+ case 42:
+ return jjMoveStringLiteralDfa1_3(0x100L);
+ default :
+ return 1;
+ }
+}
+private int jjMoveStringLiteralDfa1_3(long active0)
+{
+ try { curChar = input_stream.readChar(); }
+ catch(java.io.IOException e) {
+ return 1;
+ }
+ switch(curChar)
+ {
+ case 47:
+ if ((active0 & 0x100L) != 0L)
+ return jjStopAtPos(1, 8);
+ break;
+ default :
+ return 2;
+ }
+ return 2;
+}
+private int jjMoveStringLiteralDfa0_1()
+{
+ return jjMoveNfa_1(0, 0);
+}
+private int jjMoveNfa_1(int startState, int curPos)
+{
+ int startsAt = 0;
+ jjnewStateCnt = 4;
+ 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 ((0xffffffffffffdbffL & l) != 0L)
+ {
+ if (kind > 3)
+ kind = 3;
+ }
+ else if ((0x2400L & l) != 0L)
+ {
+ if (kind > 4)
+ kind = 4;
+ }
+ if (curChar == 13)
+ jjstateSet[jjnewStateCnt++] = 2;
+ break;
+ case 1:
+ if ((0x2400L & l) != 0L && kind > 4)
+ kind = 4;
+ break;
+ case 2:
+ if (curChar == 10 && kind > 4)
+ kind = 4;
+ break;
+ case 3:
+ if (curChar == 13)
+ jjstateSet[jjnewStateCnt++] = 2;
+ break;
+ default : break;
+ }
+ } while(i != startsAt);
+ }
+ else if (curChar < 128)
+ {
+ long l = 1L << (curChar & 077);
+ do
+ {
+ switch(jjstateSet[--i])
+ {
+ case 0:
+ kind = 3;
+ break;
+ default : break;
+ }
+ } while(i != startsAt);
+ }
+ else
+ {
+ int i2 = (curChar & 0xff) >> 6;
+ long l2 = 1L << (curChar & 077);
+ do
+ {
+ switch(jjstateSet[--i])
+ {
+ case 0:
+ if ((jjbitVec0[i2] & l2) != 0L && kind > 3)
+ kind = 3;
+ break;
+ default : break;
+ }
+ } while(i != startsAt);
+ }
+ if (kind != 0x7fffffff)
+ {
+ jjmatchedKind = kind;
+ jjmatchedPos = curPos;
+ kind = 0x7fffffff;
+ }
+ ++curPos;
+ if ((i = jjnewStateCnt) == (startsAt = 4 - (jjnewStateCnt = startsAt)))
+ return curPos;
+ try { curChar = input_stream.readChar(); }
+ catch(java.io.IOException e) { return curPos; }
+ }
+}
+private int jjMoveStringLiteralDfa0_2()
+{
+ switch(curChar)
+ {
+ case 42:
+ return jjMoveStringLiteralDfa1_2(0x80L);
+ default :
+ return 1;
+ }
+}
+private int jjMoveStringLiteralDfa1_2(long active0)
+{
+ try { curChar = input_stream.readChar(); }
+ catch(java.io.IOException e) {
+ return 1;
+ }
+ switch(curChar)
+ {
+ case 47:
+ if ((active0 & 0x80L) != 0L)
+ return jjStopAtPos(1, 7);
+ break;
+ default :
+ return 2;
+ }
+ return 2;
+}
static final int[] jjnextStates = {
457, 458, 459, 460, 461, 462, 268, 463, 464, 465, 271, 466, 467, 468, 274, 469,
470, 471, 277, 472, 473, 474, 280, 475, 476, 477, 283, 478, 479, 480, 286, 481,
@@ -4741,320 +4741,320 @@ static final int[] jjnextStates = {
233, 221, 222, 444, 234, 450, 166, 179, 190, 206, 218, 397, 398, 430, 111, 112,
123, 124, 48, 58, 60, 59, 50, 51, 65, 75, 77, 76, 67, 68, 102, 103,
353, 354, 365, 375, 377, 376, 367, 368, 382, 392, 394, 393, 384, 385,
-};
-
-/** Token literal values. */
-public static final String[] jjstrLiteralImages = {
-"", null, null, null, null, null, null, null, null, null, "\74\41\55\55",
-"\55\55\76", "\173", "\175", "\174\75", "\136\75", "\44\75", "\52\75", "\176\75", "\75",
-"\53", "\55", "\54", "\73", "\76", "\176", "\74", "\57", "\133", "\135", "\52",
-"\45", "\46", "\56", "\50", "\51", "\75\75", "\174\174", "\46\46", "\41\75", "\72",
-null, null, null, null, null, null, null, null, null, null, null, null, null, null,
-null, null, null, null, null, null, null, null, null, null, null, null, null, null,
-null, null, null, null, null, null, null, null, null, null, null, null, null, null,
-null, null, null, null, null, null, null, null, null, null, null, null, null, null,
-null, null, null, null, null, null, null, null, null, null, null, null, null, null,
-null, null, null, null, null, null, null, null, null, null, null, };
-
-/** Lexer state names. */
-public static final String[] lexStateNames = {
- "DEFAULT",
- "IN_SINGLE_LINE_COMMENT",
- "IN_FORMAL_COMMENT",
- "IN_MULTI_LINE_COMMENT",
-};
-
-/** Lex State array. */
+};
+
+/** Token literal values. */
+public static final String[] jjstrLiteralImages = {
+"", null, null, null, null, null, null, null, null, null, "\74\41\55\55",
+"\55\55\76", "\173", "\175", "\174\75", "\136\75", "\44\75", "\52\75", "\176\75", "\75",
+"\53", "\55", "\54", "\73", "\76", "\176", "\74", "\57", "\133", "\135", "\52",
+"\45", "\46", "\56", "\50", "\51", "\75\75", "\174\174", "\46\46", "\41\75", "\72",
+null, null, null, null, null, null, null, null, null, null, null, null, null, null,
+null, null, null, null, null, null, null, null, null, null, null, null, null, null,
+null, null, null, null, null, null, null, null, null, null, null, null, null, null,
+null, null, null, null, null, null, null, null, null, null, null, null, null, null,
+null, null, null, null, null, null, null, null, null, null, null, null, null, null,
+null, null, null, null, null, null, null, null, null, null, null, };
+
+/** Lexer state names. */
+public static final String[] lexStateNames = {
+ "DEFAULT",
+ "IN_SINGLE_LINE_COMMENT",
+ "IN_FORMAL_COMMENT",
+ "IN_MULTI_LINE_COMMENT",
+};
+
+/** Lex State array. */
public static final int[] jjnewLexState = {
-1, -1, 1, -1, 0, 2, 3, 0, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-};
+};
static final long[] jjtoToken = {
0xfff807fffffffc03L, 0x3f007ffffffefffL,
-};
+};
static final long[] jjtoSkip = {
0x190L, 0x0L,
-};
+};
static final long[] jjtoSpecial = {
0x80L, 0x0L,
-};
+};
static final long[] jjtoMore = {
0x26cL, 0x0L,
-};
-protected CharStream input_stream;
-private final int[] jjrounds = new int[517];
-private final int[] jjstateSet = new int[1034];
-private final StringBuilder jjimage = new StringBuilder();
-private StringBuilder image = jjimage;
-private int jjimageLen;
-private int lengthOfMatch;
-protected char curChar;
-/** Constructor. */
-public ParserTokenManager(CharStream stream){
- input_stream = stream;
-}
-
-/** Constructor. */
-public ParserTokenManager(CharStream stream, int lexState){
- this(stream);
- SwitchTo(lexState);
-}
-
-/** Reinitialise parser. */
-public void ReInit(CharStream stream)
-{
- jjmatchedPos = jjnewStateCnt = 0;
- curLexState = defaultLexState;
- input_stream = stream;
- ReInitRounds();
-}
-private void ReInitRounds()
-{
- int i;
- jjround = 0x80000001;
- for (i = 517; i-- > 0;)
- jjrounds[i] = 0x80000000;
-}
-
-/** Reinitialise parser. */
-public void ReInit(CharStream stream, int lexState)
-{
- ReInit(stream);
- SwitchTo(lexState);
-}
-
-/** Switch to specified lex state. */
-public void SwitchTo(int lexState)
-{
- if (lexState >= 4 || lexState < 0)
- throw new TokenMgrError("Error: Ignoring invalid lexical state : " + lexState + ". State unchanged.", TokenMgrError.INVALID_LEXICAL_STATE);
- else
- curLexState = lexState;
-}
-
-protected Token jjFillToken()
-{
- final Token t;
- final String curTokenImage;
- final int beginLine;
- final int endLine;
- final int beginColumn;
- final int endColumn;
- String im = jjstrLiteralImages[jjmatchedKind];
- curTokenImage = (im == null) ? input_stream.GetImage() : im;
- beginLine = input_stream.getBeginLine();
- beginColumn = input_stream.getBeginColumn();
- endLine = input_stream.getEndLine();
- endColumn = input_stream.getEndColumn();
- t = Token.newToken(jjmatchedKind, curTokenImage);
-
- t.beginLine = beginLine;
- t.endLine = endLine;
- t.beginColumn = beginColumn;
- t.endColumn = endColumn;
-
- return t;
-}
-
-int curLexState = 0;
-int defaultLexState = 0;
-int jjnewStateCnt;
-int jjround;
-int jjmatchedPos;
-int jjmatchedKind;
-
-/** Get the next Token. */
-public Token getNextToken()
-{
- Token specialToken = null;
- Token matchedToken;
- int curPos = 0;
-
+};
+protected CharStream input_stream;
+private final int[] jjrounds = new int[517];
+private final int[] jjstateSet = new int[1034];
+private final StringBuilder jjimage = new StringBuilder();
+private StringBuilder image = jjimage;
+private int jjimageLen;
+private int lengthOfMatch;
+protected char curChar;
+/** Constructor. */
+public ParserTokenManager(CharStream stream){
+ input_stream = stream;
+}
+
+/** Constructor. */
+public ParserTokenManager(CharStream stream, int lexState){
+ this(stream);
+ SwitchTo(lexState);
+}
+
+/** Reinitialise parser. */
+public void ReInit(CharStream stream)
+{
+ jjmatchedPos = jjnewStateCnt = 0;
+ curLexState = defaultLexState;
+ input_stream = stream;
+ ReInitRounds();
+}
+private void ReInitRounds()
+{
+ int i;
+ jjround = 0x80000001;
+ for (i = 517; i-- > 0;)
+ jjrounds[i] = 0x80000000;
+}
+
+/** Reinitialise parser. */
+public void ReInit(CharStream stream, int lexState)
+{
+ ReInit(stream);
+ SwitchTo(lexState);
+}
+
+/** Switch to specified lex state. */
+public void SwitchTo(int lexState)
+{
+ if (lexState >= 4 || lexState < 0)
+ throw new TokenMgrError("Error: Ignoring invalid lexical state : " + lexState + ". State unchanged.", TokenMgrError.INVALID_LEXICAL_STATE);
+ else
+ curLexState = lexState;
+}
+
+protected Token jjFillToken()
+{
+ final Token t;
+ final String curTokenImage;
+ final int beginLine;
+ final int endLine;
+ final int beginColumn;
+ final int endColumn;
+ String im = jjstrLiteralImages[jjmatchedKind];
+ curTokenImage = (im == null) ? input_stream.GetImage() : im;
+ beginLine = input_stream.getBeginLine();
+ beginColumn = input_stream.getBeginColumn();
+ endLine = input_stream.getEndLine();
+ endColumn = input_stream.getEndColumn();
+ t = Token.newToken(jjmatchedKind, curTokenImage);
+
+ t.beginLine = beginLine;
+ t.endLine = endLine;
+ t.beginColumn = beginColumn;
+ t.endColumn = endColumn;
+
+ return t;
+}
+
+int curLexState = 0;
+int defaultLexState = 0;
+int jjnewStateCnt;
+int jjround;
+int jjmatchedPos;
+int jjmatchedKind;
+
+/** Get the next Token. */
+public Token getNextToken()
+{
+ Token specialToken = null;
+ Token matchedToken;
+ int curPos = 0;
+
EOFLoop :
- for (;;)
- {
- try
- {
- curChar = input_stream.BeginToken();
- }
- catch(java.io.IOException e)
- {
- jjmatchedKind = 0;
- matchedToken = jjFillToken();
- matchedToken.specialToken = specialToken;
- return matchedToken;
- }
- image = jjimage;
- image.setLength(0);
- jjimageLen = 0;
-
- for (;;)
- {
- switch(curLexState)
- {
- case 0:
- jjmatchedKind = 0x7fffffff;
- jjmatchedPos = 0;
- curPos = jjMoveStringLiteralDfa0_0();
- if (jjmatchedPos == 0 && jjmatchedKind > 121)
- {
- jjmatchedKind = 121;
- }
- break;
- case 1:
- jjmatchedKind = 0x7fffffff;
- jjmatchedPos = 0;
- curPos = jjMoveStringLiteralDfa0_1();
- break;
- case 2:
- jjmatchedKind = 0x7fffffff;
- jjmatchedPos = 0;
- curPos = jjMoveStringLiteralDfa0_2();
- if (jjmatchedPos == 0 && jjmatchedKind > 9)
- {
- jjmatchedKind = 9;
- }
- break;
- case 3:
- jjmatchedKind = 0x7fffffff;
- jjmatchedPos = 0;
- curPos = jjMoveStringLiteralDfa0_3();
- if (jjmatchedPos == 0 && jjmatchedKind > 9)
- {
- jjmatchedKind = 9;
- }
- break;
- }
- if (jjmatchedKind != 0x7fffffff)
- {
- if (jjmatchedPos + 1 < curPos)
- input_stream.backup(curPos - jjmatchedPos - 1);
- if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)
- {
- matchedToken = jjFillToken();
- matchedToken.specialToken = specialToken;
- TokenLexicalActions(matchedToken);
- if (jjnewLexState[jjmatchedKind] != -1)
- curLexState = jjnewLexState[jjmatchedKind];
- return matchedToken;
- }
- else if ((jjtoSkip[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)
- {
- if ((jjtoSpecial[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)
- {
- matchedToken = jjFillToken();
- if (specialToken == null)
- specialToken = matchedToken;
- else
- {
- matchedToken.specialToken = specialToken;
- specialToken = (specialToken.next = matchedToken);
- }
- SkipLexicalActions(matchedToken);
- }
- else
- SkipLexicalActions(null);
- if (jjnewLexState[jjmatchedKind] != -1)
- curLexState = jjnewLexState[jjmatchedKind];
- continue EOFLoop;
- }
- MoreLexicalActions();
- if (jjnewLexState[jjmatchedKind] != -1)
- curLexState = jjnewLexState[jjmatchedKind];
- curPos = 0;
- jjmatchedKind = 0x7fffffff;
- try {
- curChar = input_stream.readChar();
- continue;
- }
- catch (java.io.IOException e1) { }
- }
- int error_line = input_stream.getEndLine();
- int error_column = input_stream.getEndColumn();
- String error_after = null;
- boolean EOFSeen = false;
- try { input_stream.readChar(); input_stream.backup(1); }
- catch (java.io.IOException e1) {
- EOFSeen = true;
- error_after = curPos <= 1 ? "" : input_stream.GetImage();
- if (curChar == '\n' || curChar == '\r') {
- error_line++;
- error_column = 0;
- }
- else
- error_column++;
- }
- if (!EOFSeen) {
- input_stream.backup(1);
- error_after = curPos <= 1 ? "" : input_stream.GetImage();
- }
- throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR);
- }
- }
-}
-
-void SkipLexicalActions(Token matchedToken)
-{
- switch(jjmatchedKind)
- {
- default :
- break;
- }
-}
-void MoreLexicalActions()
-{
- jjimageLen += (lengthOfMatch = jjmatchedPos + 1);
- switch(jjmatchedKind)
- {
- case 5 :
- image.append(input_stream.GetSuffix(jjimageLen));
- jjimageLen = 0;
- input_stream.backup(1);
- break;
- default :
- break;
- }
-}
-void TokenLexicalActions(Token matchedToken)
-{
- switch(jjmatchedKind)
- {
- case 1 :
- image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)));
- image = Parser.SPACE;
- break;
- default :
- break;
- }
-}
-private void jjCheckNAdd(int state)
-{
- if (jjrounds[state] != jjround)
- {
- jjstateSet[jjnewStateCnt++] = state;
- jjrounds[state] = jjround;
- }
-}
-private void jjAddStates(int start, int end)
-{
- do {
- jjstateSet[jjnewStateCnt++] = jjnextStates[start];
- } while (start++ != end);
-}
-private void jjCheckNAddTwoStates(int state1, int state2)
-{
- jjCheckNAdd(state1);
- jjCheckNAdd(state2);
-}
-
-private void jjCheckNAddStates(int start, int end)
-{
- do {
- jjCheckNAdd(jjnextStates[start]);
- } while (start++ != end);
-}
-
-}
+ for (;;)
+ {
+ try
+ {
+ curChar = input_stream.BeginToken();
+ }
+ catch(java.io.IOException e)
+ {
+ jjmatchedKind = 0;
+ matchedToken = jjFillToken();
+ matchedToken.specialToken = specialToken;
+ return matchedToken;
+ }
+ image = jjimage;
+ image.setLength(0);
+ jjimageLen = 0;
+
+ for (;;)
+ {
+ switch(curLexState)
+ {
+ case 0:
+ jjmatchedKind = 0x7fffffff;
+ jjmatchedPos = 0;
+ curPos = jjMoveStringLiteralDfa0_0();
+ if (jjmatchedPos == 0 && jjmatchedKind > 121)
+ {
+ jjmatchedKind = 121;
+ }
+ break;
+ case 1:
+ jjmatchedKind = 0x7fffffff;
+ jjmatchedPos = 0;
+ curPos = jjMoveStringLiteralDfa0_1();
+ break;
+ case 2:
+ jjmatchedKind = 0x7fffffff;
+ jjmatchedPos = 0;
+ curPos = jjMoveStringLiteralDfa0_2();
+ if (jjmatchedPos == 0 && jjmatchedKind > 9)
+ {
+ jjmatchedKind = 9;
+ }
+ break;
+ case 3:
+ jjmatchedKind = 0x7fffffff;
+ jjmatchedPos = 0;
+ curPos = jjMoveStringLiteralDfa0_3();
+ if (jjmatchedPos == 0 && jjmatchedKind > 9)
+ {
+ jjmatchedKind = 9;
+ }
+ break;
+ }
+ if (jjmatchedKind != 0x7fffffff)
+ {
+ if (jjmatchedPos + 1 < curPos)
+ input_stream.backup(curPos - jjmatchedPos - 1);
+ if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)
+ {
+ matchedToken = jjFillToken();
+ matchedToken.specialToken = specialToken;
+ TokenLexicalActions(matchedToken);
+ if (jjnewLexState[jjmatchedKind] != -1)
+ curLexState = jjnewLexState[jjmatchedKind];
+ return matchedToken;
+ }
+ else if ((jjtoSkip[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)
+ {
+ if ((jjtoSpecial[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)
+ {
+ matchedToken = jjFillToken();
+ if (specialToken == null)
+ specialToken = matchedToken;
+ else
+ {
+ matchedToken.specialToken = specialToken;
+ specialToken = (specialToken.next = matchedToken);
+ }
+ SkipLexicalActions(matchedToken);
+ }
+ else
+ SkipLexicalActions(null);
+ if (jjnewLexState[jjmatchedKind] != -1)
+ curLexState = jjnewLexState[jjmatchedKind];
+ continue EOFLoop;
+ }
+ MoreLexicalActions();
+ if (jjnewLexState[jjmatchedKind] != -1)
+ curLexState = jjnewLexState[jjmatchedKind];
+ curPos = 0;
+ jjmatchedKind = 0x7fffffff;
+ try {
+ curChar = input_stream.readChar();
+ continue;
+ }
+ catch (java.io.IOException e1) { }
+ }
+ int error_line = input_stream.getEndLine();
+ int error_column = input_stream.getEndColumn();
+ String error_after = null;
+ boolean EOFSeen = false;
+ try { input_stream.readChar(); input_stream.backup(1); }
+ catch (java.io.IOException e1) {
+ EOFSeen = true;
+ error_after = curPos <= 1 ? "" : input_stream.GetImage();
+ if (curChar == '\n' || curChar == '\r') {
+ error_line++;
+ error_column = 0;
+ }
+ else
+ error_column++;
+ }
+ if (!EOFSeen) {
+ input_stream.backup(1);
+ error_after = curPos <= 1 ? "" : input_stream.GetImage();
+ }
+ throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR);
+ }
+ }
+}
+
+void SkipLexicalActions(Token matchedToken)
+{
+ switch(jjmatchedKind)
+ {
+ default :
+ break;
+ }
+}
+void MoreLexicalActions()
+{
+ jjimageLen += (lengthOfMatch = jjmatchedPos + 1);
+ switch(jjmatchedKind)
+ {
+ case 5 :
+ image.append(input_stream.GetSuffix(jjimageLen));
+ jjimageLen = 0;
+ input_stream.backup(1);
+ break;
+ default :
+ break;
+ }
+}
+void TokenLexicalActions(Token matchedToken)
+{
+ switch(jjmatchedKind)
+ {
+ case 1 :
+ image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)));
+ image = Parser.SPACE;
+ break;
+ default :
+ break;
+ }
+}
+private void jjCheckNAdd(int state)
+{
+ if (jjrounds[state] != jjround)
+ {
+ jjstateSet[jjnewStateCnt++] = state;
+ jjrounds[state] = jjround;
+ }
+}
+private void jjAddStates(int start, int end)
+{
+ do {
+ jjstateSet[jjnewStateCnt++] = jjnextStates[start];
+ } while (start++ != end);
+}
+private void jjCheckNAddTwoStates(int state1, int state2)
+{
+ jjCheckNAdd(state1);
+ jjCheckNAdd(state2);
+}
+
+private void jjCheckNAddStates(int start, int end)
+{
+ do {
+ jjCheckNAdd(jjnextStates[start]);
+ } while (start++ != end);
+}
+
+}
diff --git a/theme-compiler/tests/resources/automatic/css/gradient.css b/theme-compiler/tests/resources/automatic/css/gradient.css
new file mode 100644
index 0000000000..c304d5fc36
--- /dev/null
+++ b/theme-compiler/tests/resources/automatic/css/gradient.css
@@ -0,0 +1,17 @@
+ .top-gradient {
+ background: -moz-linear-gradient(
+ top,
+ rgb(216,220,225) 0,
+ rgb(255,255,255) 1em,
+ rgb(255,255,255) 100%);
+ background: -webkit-linear-gradient(
+ top,
+ rgb(216,220,225) 0,
+ rgb(255,255,255) 1em,
+ rgb(255,255,255) 100%);
+ background: linear-gradient(
+ to bottom,
+ rgb(216,220,225) 0%,
+ rgb(255,255,255) 5%,
+ rgb(255,255,255) 100%);
+ } \ No newline at end of file
diff --git a/theme-compiler/tests/resources/automatic/scss/gradient.scss b/theme-compiler/tests/resources/automatic/scss/gradient.scss
new file mode 100644
index 0000000000..c304d5fc36
--- /dev/null
+++ b/theme-compiler/tests/resources/automatic/scss/gradient.scss
@@ -0,0 +1,17 @@
+ .top-gradient {
+ background: -moz-linear-gradient(
+ top,
+ rgb(216,220,225) 0,
+ rgb(255,255,255) 1em,
+ rgb(255,255,255) 100%);
+ background: -webkit-linear-gradient(
+ top,
+ rgb(216,220,225) 0,
+ rgb(255,255,255) 1em,
+ rgb(255,255,255) 100%);
+ background: linear-gradient(
+ to bottom,
+ rgb(216,220,225) 0%,
+ rgb(255,255,255) 5%,
+ rgb(255,255,255) 100%);
+ } \ No newline at end of file
diff --git a/theme-compiler/tests/resources/sasslangbroken/css/385-test_newlines_removed_from_selectors_when_compressed.css b/theme-compiler/tests/resources/sasslang/css/385-test_newlines_removed_from_selectors_when_compressed.css
index 5032ec877d..5032ec877d 100644
--- a/theme-compiler/tests/resources/sasslangbroken/css/385-test_newlines_removed_from_selectors_when_compressed.css
+++ b/theme-compiler/tests/resources/sasslang/css/385-test_newlines_removed_from_selectors_when_compressed.css
diff --git a/theme-compiler/tests/resources/sasslangbroken/scss/385-test_newlines_removed_from_selectors_when_compressed.scss b/theme-compiler/tests/resources/sasslang/scss/385-test_newlines_removed_from_selectors_when_compressed.scss
index c04a1ee63a..c04a1ee63a 100644
--- a/theme-compiler/tests/resources/sasslangbroken/scss/385-test_newlines_removed_from_selectors_when_compressed.scss
+++ b/theme-compiler/tests/resources/sasslang/scss/385-test_newlines_removed_from_selectors_when_compressed.scss
diff --git a/theme-compiler/tests/src/com/vaadin/sass/testcases/scss/AbstractDirectoryScanningSassTests.java b/theme-compiler/tests/src/com/vaadin/sass/testcases/scss/AbstractDirectoryScanningSassTests.java
index d60756a2c9..40da6179f6 100644
--- a/theme-compiler/tests/src/com/vaadin/sass/testcases/scss/AbstractDirectoryScanningSassTests.java
+++ b/theme-compiler/tests/src/com/vaadin/sass/testcases/scss/AbstractDirectoryScanningSassTests.java
@@ -73,14 +73,19 @@ public abstract class AbstractDirectoryScanningSassTests {
scssStylesheet.compile();
String parsedCss = scssStylesheet.toString();
+ String normalizedReference = normalize(referenceCss);
+ String normalizedParsed = normalize(parsedCss);
Assert.assertEquals("Original CSS and parsed CSS do not match for "
- + scssResourceName, normalize(referenceCss),
- normalize(parsedCss));
+ + scssResourceName, normalizedReference, normalizedParsed);
}
private String normalize(String css) {
- // Replace all whitespace characters with a single space
+ // Insert whitespace at each point
css = css.replaceAll("[\n\r\t ]*", " ");
+ // Replace multiple whitespace characters with a single space to compact
+ css = css.replaceAll("[\n\r\t ]+", " ");
+ // remove initial whitespace
+ css = css.replaceAll("^[\n\r\t ]*", "");
// remove trailing whitespace
css = css.replaceAll("[\n\r\t ]*$", "");
return css;