1 |
commit: 41544256fe685b1e58fce9d75beb068ca162c324 |
2 |
Author: Mu Qiao <qiaomuf <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Apr 2 00:50:49 2011 +0000 |
4 |
Commit: Petteri Räty <betelgeuse <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 2 00:50:49 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/libbash.git;a=commit;h=41544256 |
7 |
|
8 |
Support a list of variable definitions |
9 |
|
10 |
--- |
11 |
bashast/libbashWalker.g | 2 ++ |
12 |
1 files changed, 2 insertions(+), 0 deletions(-) |
13 |
|
14 |
diff --git a/bashast/libbashWalker.g b/bashast/libbashWalker.g |
15 |
index c8e690e..ebb23fe 100644 |
16 |
--- a/bashast/libbashWalker.g |
17 |
+++ b/bashast/libbashWalker.g |
18 |
@@ -41,6 +41,8 @@ void set_interpreter(std::shared_ptr<interpreter> w) |
19 |
} |
20 |
} |
21 |
|
22 |
+list: ^(LIST var_def+); |
23 |
+ |
24 |
name returns[std::string libbash_value]: |
25 |
NAME {$libbash_value = walker->get_string($NAME);} |
26 |
| LETTER {$libbash_value = walker->get_string($LETTER);} |