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

2002/css-validator/org/w3c/css/parser/analyzer CssParser.java,1.35,1.36 CssParser.jj,1.32,1.33 CssParserTokenManager.java,1.22,1.23

From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
Date: Mon, 17 Mar 2008 14:48:34 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1JbGde-00012B-8e@lionel-hutz.w3.org>

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

Modified Files:
	CssParser.java CssParser.jj CssParserTokenManager.java 
Log Message:
removed debug traces

Index: CssParserTokenManager.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/parser/analyzer/CssParserTokenManager.java,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- CssParserTokenManager.java	17 Mar 2008 14:46:26 -0000	1.22
+++ CssParserTokenManager.java	17 Mar 2008 14:48:32 -0000	1.23
@@ -61,8 +61,6 @@
 {
    jjmatchedKind = kind;
    jjmatchedPos = pos;
-   debugStream.println("   No more string literal token matches are possible.");
-   debugStream.println("   Currently matched the first " + (jjmatchedPos + 1) + " characters as a " + tokenImage[jjmatchedKind] + " token.");
    return pos + 1;
 }
 private final int jjMoveStringLiteralDfa0_0()
@@ -124,23 +122,15 @@
       case 126:
          return jjMoveStringLiteralDfa1_0(0x4000000L, 0x0L);
[...1187 lines suppressed...]
-     {
-       int state = stateSet[j];
-       if (!kindDone[kindForState[lexState][state]])
-       {
-          kindDone[kindForState[lexState][state]] = true;
-          if (cnt++ > 0)
-             retVal += ", ";
-          if (cnt % 5 == 0)
-             retVal += "\n     ";
-          retVal += tokenImage[kindForState[lexState][state]];
-       }
-     }
-    }
-    if (cnt == 0)
-       return "{  }";
-    else
-       return "{ " + retVal + " }";
-  }
-
 }

Index: CssParser.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/parser/analyzer/CssParser.java,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- CssParser.java	17 Mar 2008 14:46:26 -0000	1.35
+++ CssParser.java	17 Mar 2008 14:48:31 -0000	1.36
@@ -334,123 +334,116 @@
  * @exception ParseException exception during the parse
  */
   final public void parserUnit() throws ParseException {
-    trace_call("parserUnit");
-    try {
     Token n = null;
-      try {
-        label_1:
-        while (true) {
-          switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-          case HTMLSTARTTAG:
[...3960 lines suppressed...]
-      System.out.print("Consumed token: <" + tokenImage[t.kind]);
-      if (t.kind != 0 && !tokenImage[t.kind].equals("\"" + t.image + "\"")) {
-        System.out.print(": \"" + t.image + "\"");
-      }
-      System.out.println(" at line " + t.beginLine + " column " + t.beginColumn + ">" + where);
-    }
-  }
-
-  final private void trace_scan(Token t1, int t2) {
-    if (trace_enabled) {
-      for (int i = 0; i < trace_indent; i++) { System.out.print(" "); }
-      System.out.print("Visited token: <" + tokenImage[t1.kind]);
-      if (t1.kind != 0 && !tokenImage[t1.kind].equals("\"" + t1.image + "\"")) {
-        System.out.print(": \"" + t1.image + "\"");
-      }
-      System.out.println(" at line " + t1.beginLine + " column " + t1.beginColumn + ">; Expected token: <" + tokenImage[t2] + ">");
-    }
   }
 
 }

Index: CssParser.jj
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/parser/analyzer/CssParser.jj,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- CssParser.jj	17 Mar 2008 14:46:12 -0000	1.32
+++ CssParser.jj	17 Mar 2008 14:48:32 -0000	1.33
@@ -10,8 +10,8 @@
 options {
     IGNORE_CASE  = true;
     STATIC = false;
-       DEBUG_TOKEN_MANAGER = true;
-	 DEBUG_PARSER = true; 
+/*       DEBUG_TOKEN_MANAGER = true;
+	 DEBUG_PARSER = true;  */
 }
 
 PARSER_BEGIN(CssParser)
Received on Monday, 17 March 2008 14:49:12 GMT

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