]> Dogcows Code - chaz/openbox/commitdiff
added line numbers to nodes
authorMarius Nita <marius@cs.pdx.edu>
Tue, 15 Apr 2003 00:12:32 +0000 (00:12 +0000)
committerMarius Nita <marius@cs.pdx.edu>
Tue, 15 Apr 2003 00:12:32 +0000 (00:12 +0000)
obcl/parse.y

index f060bcecfdb558f0f5e748a46ce9ac1345ca7419..cde3e3c60fb5fba5dbe90f2e50475c624322cb6c 100644 (file)
@@ -53,6 +53,7 @@ stmt: TOK_ID list ';'
         s->u.lb.list = $2;
         s->u.lb.block = NULL;
         s->u.lb.id = $1;
+        s->lineno = yylineno;
         $$ = s;
     }
     | TOK_ID list block
@@ -62,6 +63,7 @@ stmt: TOK_ID list ';'
         s->u.lb.list = $2;
         s->u.lb.block = $3;
         s->u.lb.id = $1;
+        s->lineno = yylineno;
         $$ = s;
     }
     | TOK_ID block
@@ -71,6 +73,7 @@ stmt: TOK_ID list ';'
         s->u.lb.block = $2;
         s->u.lb.list = NULL;
         s->u.lb.id = $1;
+        s->lineno = yylineno;
         $$ = s;
     }
     ;
@@ -96,6 +99,7 @@ value: TOK_ID
         CLNode *node = g_new(CLNode,1);
         node->type = CL_ID;
         node->u.str = $1;
+        node->lineno = yylineno;
         $$ = node;
     }
     | TOK_STRING
@@ -103,6 +107,7 @@ value: TOK_ID
         CLNode *node = g_new(CLNode,1);
         node->type = CL_STR;
         node->u.str = $1;
+        node->lineno = yylineno;
         $$ = node;
     }
     | TOK_NUM
@@ -110,6 +115,7 @@ value: TOK_ID
         CLNode *node = g_new(CLNode,1);
         node->type = CL_NUM;
         node->u.num = $1;
+        node->lineno = yylineno;
         $$ = node;
     }
     ;
This page took 0.029379 seconds and 4 git commands to generate.