From: nishi Date: Tue, 4 Jun 2024 03:45:56 +0000 (+0000) Subject: fix yacc X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=be7be4259e99a316e649c6620bdae08036e6d104;p=dataworks.git fix yacc git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@145 d4a5a174-5a4a-5b4b-b672-37683c10d7d5 --- diff --git a/Grammar/dw.y b/Grammar/dw.y index 864d2f9..7b54d30 100644 --- a/Grammar/dw.y +++ b/Grammar/dw.y @@ -46,7 +46,9 @@ argument : STRING { - printf("%s\n", $1.string); + $$.string = $1.string; + $$.nodes = $1.nodes; + $$.ident = $1.ident; } ; @@ -87,10 +89,14 @@ arguments command : IDENTIFIER SPACE '(' arguments ')' { - printf("%s %p\n", $1.ident, $4.nodes); + $$.string = NULL; + $$.ident = $1.ident; + $$.nodes = $4.nodes; } | IDENTIFIER '(' arguments ')' { - printf("%s %p\n", $1.ident, $3.nodes); + $$.string = NULL; + $$.ident = $1.ident; + $$.nodes = $3.nodes; } ;