1 |
commit: 3804bbb3116fbf4b81bf86e8c94f1cec7896610d |
2 |
Author: Petteri Räty <petsku <AT> petteriraty <DOT> eu> |
3 |
AuthorDate: Fri Apr 8 15:11:36 2011 +0000 |
4 |
Commit: Petteri Räty <betelgeuse <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 9 06:13:52 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/libbash.git;a=commit;h=3804bbb3 |
7 |
|
8 |
Small readability fixes |
9 |
|
10 |
--- |
11 |
bashast/bashast.g | 4 ++-- |
12 |
1 files changed, 2 insertions(+), 2 deletions(-) |
13 |
|
14 |
diff --git a/bashast/bashast.g b/bashast/bashast.g |
15 |
index 0580b26..2b4e713 100644 |
16 |
--- a/bashast/bashast.g |
17 |
+++ b/bashast/bashast.g |
18 |
@@ -228,7 +228,7 @@ value : num |
19 |
//allow the parser to create array variables |
20 |
arr_val : |
21 |
| (ag+=val wspace?)+ -> ^(ARRAY $ag+); |
22 |
-val : '['!BLANK!*var_index BLANK!?']'!EQUALS^ pos_val |
23 |
+val : LSQUARE! BLANK!* var_index BLANK!? RSQUARE! EQUALS^ pos_val |
24 |
| pos_val; |
25 |
pos_val : command_sub |
26 |
| var_ref |
27 |
@@ -467,7 +467,7 @@ negation |
28 |
exponential |
29 |
: negation (BLANK!* EXP^ BLANK!* negation)* ; |
30 |
times_division_modulus |
31 |
- : exponential (BLANK!*(TIMES^|SLASH^|PCT^)BLANK!* exponential)*; |
32 |
+ : exponential (BLANK!* (TIMES^|SLASH^|PCT^) BLANK!* exponential)*; |
33 |
addsub : times_division_modulus (BLANK!* (PLUS^|MINUS^)BLANK!* times_division_modulus)*; |
34 |
shifts : addsub (BLANK!* (LSHIFT^|RSHIFT^) BLANK!* addsub)*; |
35 |
compare : shifts (BLANK!* (LEQ^|GEQ^|LESS_THAN^|GREATER_THAN^)BLANK!* shifts)?; |