1 |
commit: 46739350a7fc7dcd2b912742acd3b3e40655c277 |
2 |
Author: Mu Qiao <qiaomuf <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jun 16 05:04:56 2011 +0000 |
4 |
Commit: Petteri Räty <betelgeuse <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 16 05:04:56 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/libbash.git;a=commit;h=46739350 |
7 |
|
8 |
Parser: remove the here_string_op rule |
9 |
|
10 |
--- |
11 |
bashast/bashast.g | 4 +--- |
12 |
1 files changed, 1 insertions(+), 3 deletions(-) |
13 |
|
14 |
diff --git a/bashast/bashast.g b/bashast/bashast.g |
15 |
index fd626b7..0f297f6 100644 |
16 |
--- a/bashast/bashast.g |
17 |
+++ b/bashast/bashast.g |
18 |
@@ -149,7 +149,7 @@ export_item |
19 |
bash_command |
20 |
: fname_no_res_word (BLANK!+ fname)*; |
21 |
redirect: (BLANK!* redirect_atom)*; |
22 |
-redirect_atom: here_string_op^ BLANK!* fname |
23 |
+redirect_atom: HERE_STRING_OP^ BLANK!* fname |
24 |
| here_doc_op^ BLANK!* fname EOL! heredoc |
25 |
| redir_op BLANK* redir_dest -> ^(REDIR redir_op redir_dest) |
26 |
| process_substitution; |
27 |
@@ -160,8 +160,6 @@ file_desc_as_file |
28 |
: DIGIT -> ^(FILE_DESCRIPTOR DIGIT) |
29 |
| DIGIT MINUS -> ^(FILE_DESCRIPTOR_MOVE DIGIT); |
30 |
heredoc : (fname EOL!)*; |
31 |
-here_string_op |
32 |
- : HERE_STRING_OP; |
33 |
here_doc_op |
34 |
: LSHIFT MINUS -> OP["<<-"] |
35 |
| LSHIFT -> OP["<<"]; |