- From: Julien Grand-Mourcel via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 13 Jul 2007 13:32:22 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/parser/analyzer In directory hutz:/tmp/cvs-serv13393/org/w3c/css/parser/analyzer Modified Files: CssParserTokenManager.java CssParser.java Log Message: Adding patch to use Velocity template engine. And some other changes... Index: CssParserTokenManager.java =================================================================== RCS file: /sources/public/2002/css-validator/org/w3c/css/parser/analyzer/CssParserTokenManager.java,v retrieving revision 1.14 retrieving revision 1.15 diff -u -d -r1.14 -r1.15 --- CssParserTokenManager.java 26 Apr 2006 12:44:15 -0000 1.14 +++ CssParserTokenManager.java 13 Jul 2007 13:32:20 -0000 1.15 @@ -1,5 +1,6 @@ /* Generated By:JavaCC: Do not edit this line. CssParserTokenManager.java */ package org.w3c.css.parser.analyzer; + import java.io.InputStream; import java.util.Vector; import java.util.Enumeration; @@ -53,3985 +54,3903 @@ import org.w3c.css.selectors.attributes.AttributeSubstr; import org.w3c.css.selectors.attributes.AttributeSuffix; -public class CssParserTokenManager implements CssParserConstants [...7854 lines suppressed...] + } 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); + } + } + } } Index: CssParser.java =================================================================== RCS file: /sources/public/2002/css-validator/org/w3c/css/parser/analyzer/CssParser.java,v retrieving revision 1.22 retrieving revision 1.23 diff -u -d -r1.22 -r1.23 --- CssParser.java 24 Apr 2007 10:26:26 -0000 1.22 +++ CssParser.java 13 Jul 2007 13:32:20 -0000 1.23 @@ -57,3831 +57,4053 @@ import org.w3c.css.selectors.attributes.AttributeSuffix; /** - * A CSS3 parser - * + * A CSS3 parser + * * @author Philippe Le H???garet and Sijtsche Smeman * @version $Revision$ */ public abstract class CssParser implements CssParserConstants { [...7668 lines suppressed...] + 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; + } }
Received on Friday, 13 July 2007 13:32:32 UTC