OSSP CVS Repository

ossp - Difference in ossp-pkg/cfg/cfg_syn_parse.y versions 1.3 and 1.4
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/cfg/cfg_syn_parse.y 1.3 -> 1.4

--- cfg_syn_parse.y      2002/07/10 12:00:23     1.3
+++ cfg_syn_parse.y      2002/11/10 12:12:23     1.4
@@ -43,10 +43,10 @@
 #define YYPARSE_PARAM ctx
 #define YYLEX_PARAM   CTX->yyscan
 
-/* provide an explicit prototype for the yylex() function but use 
-   "void *" instead of correct type because at this point in the 
+/* provide an explicit prototype for the yylex() function but use
+   "void *" instead of correct type because at this point in the
    generation process we have the types still not available */
-extern int yylex(/*YYSTYPE*/ void *lvalp, 
+extern int yylex(/*YYSTYPE*/ void *lvalp,
                  /*YYLTYPE*/ void *llocp, cfg_syn_ctx_t *ctx);
 
 /* generate verbose error messages and remember them inside the context */
@@ -90,7 +90,7 @@
 %right T_OPEN
 %right T_CLOSE
 
-/* grammar start rule 
+/* grammar start rule
    (technically redundant but explicit to be sure) */
 %start configuration
 
@@ -113,13 +113,13 @@
     ;
 
 directives
-    : /* empty */ { 
+    : /* empty */ {
         $$ = NULL;
       }
-    | directive { 
-        $$ = $1; 
+    | directive {
+        $$ = $1;
       }
-    | directive T_SEP directives { 
+    | directive T_SEP directives {
         cfg_node_set(CTX->cfg, $1, CFG_NODE_ATTR_RBROTH, $3);
         $$ = $1;
       }
@@ -135,22 +135,22 @@
       }
     ;
 
-tokens 
-    : token { 
-        $$ = $1; 
+tokens
+    : token {
+        $$ = $1;
       }
-    | token tokens { 
+    | token tokens {
         cfg_node_set(CTX->cfg, $1, CFG_NODE_ATTR_RBROTH, $2);
         $$ = $1;
       }
     ;
 
 token
-    : T_OPEN sequence T_CLOSE { 
-        $$ = $2; 
+    : T_OPEN sequence T_CLOSE {
+        $$ = $2;
       }
     | string {
-        $$ = $1; 
+        $$ = $1;
       }
     ;
 
@@ -160,7 +160,7 @@
         cfg_node_create(CTX->cfg, &n);
         cfg_node_set(CTX->cfg, n, CFG_NODE_ATTR_TYPE, CFG_NODE_TYPE_ARG);
         cfg_node_set(CTX->cfg, n, CFG_NODE_ATTR_TOKEN, $1);
-        $$ = n; 
+        $$ = n;
       }
     ;
 

CVSTrac 2.0.1