From: Peter Johnson Date: Wed, 23 Oct 2002 19:31:14 +0000 (-0000) Subject: Allow single strings to be used as parameters for directives. X-Git-Tag: v0.2.0~71 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e14601499be492f006e015dff8c3502797c8d4ea;p=yasm Allow single strings to be used as parameters for directives. svn path=/trunk/yasm/; revision=783 --- diff --git a/modules/parsers/nasm/nasm-bison.y b/modules/parsers/nasm/nasm-bison.y index 74828f99..1ad4f36f 100644 --- a/modules/parsers/nasm/nasm-bison.y +++ b/modules/parsers/nasm/nasm-bison.y @@ -284,6 +284,7 @@ directive_valparam: direxpr { } else vp_new($$, NULL, $1); } + | STRING { vp_new($$, $1, NULL); } | ID '=' direxpr { vp_new($$, $1, $3); } ; diff --git a/src/parsers/nasm/nasm-bison.y b/src/parsers/nasm/nasm-bison.y index 74828f99..1ad4f36f 100644 --- a/src/parsers/nasm/nasm-bison.y +++ b/src/parsers/nasm/nasm-bison.y @@ -284,6 +284,7 @@ directive_valparam: direxpr { } else vp_new($$, NULL, $1); } + | STRING { vp_new($$, $1, NULL); } | ID '=' direxpr { vp_new($$, $1, $3); } ;