]> Nishi Git Mirror - dataworks.git/commitdiff
fix yacc
authornishi <nishi@d4a5a174-5a4a-5b4b-b672-37683c10d7d5>
Tue, 4 Jun 2024 03:45:56 +0000 (03:45 +0000)
committernishi <nishi@d4a5a174-5a4a-5b4b-b672-37683c10d7d5>
Tue, 4 Jun 2024 03:45:56 +0000 (03:45 +0000)
git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@145 d4a5a174-5a4a-5b4b-b672-37683c10d7d5

Grammar/dw.y

index 864d2f9d272f6eb2ea7398227c14b6f491beadc6..7b54d30d61c6350eba1b7981e7f6c68432e27c2f 100644 (file)
@@ -46,7 +46,9 @@
 
 argument
        : STRING {
-               printf("%s\n", $<node>1.string);
+               $<node>$.string = $<node>1.string;
+               $<node>$.nodes = $<node>1.nodes;
+               $<node>$.ident = $<node>1.ident;
        }
        ;
 
@@ -87,10 +89,14 @@ arguments
 
 command
        : IDENTIFIER SPACE '(' arguments ')' {
-               printf("%s %p\n", $<node>1.ident, $<node>4.nodes);
+               $<node>$.string = NULL;
+               $<node>$.ident = $<node>1.ident;
+               $<node>$.nodes = $<node>4.nodes;
        }
        | IDENTIFIER '(' arguments ')' {
-               printf("%s %p\n", $<node>1.ident, $<node>3.nodes);
+               $<node>$.string = NULL;
+               $<node>$.ident = $<node>1.ident;
+               $<node>$.nodes = $<node>3.nodes;
        }
        ;