[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 7/9] parser: do not convert $ and @ in code values of %define var
From: |
Akim Demaille |
Subject: |
[PATCH 7/9] parser: do not convert $ and @ in code values of %define variables |
Date: |
Thu, 18 Apr 2013 17:28:06 +0200 |
* src/parse-gram.y (value: "{...}"): Just strip the braces, but pass
the value as is.
---
src/parse-gram.y | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/parse-gram.y b/src/parse-gram.y
index 4c87c90..9a26625 100644
--- a/src/parse-gram.y
+++ b/src/parse-gram.y
@@ -661,8 +661,7 @@ value:
%empty { $$.kind = muscle_keyword; $$.chars = ""; }
| ID { $$.kind = muscle_keyword; $$.chars = $1; }
| STRING { $$.kind = muscle_string; $$.chars = $1; }
-| "{...}" { $$.kind = muscle_code;
- $$.chars = translate_code_braceless ($1, @1); }
+| "{...}" { $$.kind = muscle_code; $$.chars = strip_braces ($1); }
;
--
1.8.2.1
- [PATCH 0/9] {master} check more (all?) variables requiring code value, Akim Demaille, 2013/04/18
- [PATCH 3/9] style: use %code for local function declarations in our parser, Akim Demaille, 2013/04/18
- [PATCH 7/9] parser: do not convert $ and @ in code values of %define variables,
Akim Demaille <=
- [PATCH 4/9] style: avoid %{...%} in our parser, Akim Demaille, 2013/04/18
- [PATCH 1/9] muscle: check the kind of api.prefix, api.location.type, Akim Demaille, 2013/04/18
- [PATCH 6/9] parser: no longer use the "braceless" non-terminal, Akim Demaille, 2013/04/18
- [PATCH 2/9] regen, Akim Demaille, 2013/04/18
- [PATCH 9/9] muscle: check more cases of %define variables with code values, Akim Demaille, 2013/04/18
- [PATCH 8/9] regen, Akim Demaille, 2013/04/18
- [PATCH 5/9] regen, Akim Demaille, 2013/04/18
- Re: [PATCH 0/9] {master} check more (all?) variables requiring code value, Akim Demaille, 2013/04/22