From be7be4259e99a316e649c6620bdae08036e6d104 Mon Sep 17 00:00:00 2001 From: nishi Date: Tue, 4 Jun 2024 03:45:56 +0000 Subject: [PATCH] fix yacc git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@145 d4a5a174-5a4a-5b4b-b672-37683c10d7d5 --- Grammar/dw.y | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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; } ; -- 2.43.0