W3C home > Mailing lists > Public > www-validator-cvs@w3.org > March 2008

2002/css-validator/org/w3c/css/parser/analyzer CssParser.java,1.33,1.34 CssParserTokenManager.java,1.20,1.21

From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
Date: Mon, 17 Mar 2008 13:44:06 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1JbFdG-0001ls-Ou@lionel-hutz.w3.org>

Update of /sources/public/2002/css-validator/org/w3c/css/parser/analyzer
In directory hutz:/tmp/cvs-serv6736

Modified Files:
	CssParser.java CssParserTokenManager.java 
Log Message:
see cssparser.jj, case sensitivity + skipAfterExpression fix

Index: CssParserTokenManager.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/parser/analyzer/CssParserTokenManager.java,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- CssParserTokenManager.java	13 Mar 2008 14:25:58 -0000	1.20
+++ CssParserTokenManager.java	17 Mar 2008 13:44:04 -0000	1.21
@@ -57,225 +57,12 @@
 {
   public  java.io.PrintStream debugStream = System.out;
   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 ((active1 & 0x1fff0L) != 0L)
-            return 37;
-         if ((active0 & 0x4000000L) != 0L)
[...7405 lines suppressed...]
@@ -5298,8 +5141,8 @@
    0xaL, 0x0L, 
 };
 protected SimpleCharStream input_stream;
-private final int[] jjrounds = new int[574];
-private final int[] jjstateSet = new int[1148];
+private final int[] jjrounds = new int[573];
+private final int[] jjstateSet = new int[1146];
 protected char curChar;
 public CssParserTokenManager(SimpleCharStream stream){
    if (SimpleCharStream.staticFlag)
@@ -5321,7 +5164,7 @@
 {
    int i;
    jjround = 0x80000001;
-   for (i = 574; i-- > 0;)
+   for (i = 573; i-- > 0;)
       jjrounds[i] = 0x80000000;
 }
 public void ReInit(SimpleCharStream stream, int lexState)

Index: CssParser.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/parser/analyzer/CssParser.java,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- CssParser.java	13 Mar 2008 16:54:40 -0000	1.33
+++ CssParser.java	17 Mar 2008 13:44:04 -0000	1.34
@@ -364,6 +364,7 @@
       switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
       case CHARSET_SYM:
         charset();
+        jj_consume_token(SEMICOLON);
         break;
       default:
         jj_la1[2] = jj_gen;
@@ -375,7 +376,6 @@
         case S:
         case CDO:
         case CDC:
[...1947 lines suppressed...]
 
   public void ReInit(CssParserTokenManager tm) {
@@ -3257,7 +3191,7 @@
     token = new Token();
     jj_ntk = -1;
     jj_gen = 0;
-    for (int i = 0; i < 113; i++) jj_la1[i] = -1;
+    for (int i = 0; i < 111; i++) jj_la1[i] = -1;
   }
 
   final private Token jj_consume_token(int kind) throws ParseException {
@@ -3312,7 +3246,7 @@
       la1tokens[jj_kind] = true;
       jj_kind = -1;
     }
-    for (int i = 0; i < 113; i++) {
+    for (int i = 0; i < 111; i++) {
       if (jj_la1[i] == jj_gen) {
         for (int j = 0; j < 32; j++) {
           if ((jj_la1_0[i] & (1<<j)) != 0) {
Received on Monday, 17 March 2008 13:44:41 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:55:00 GMT