@@ -365,7 +365,7 @@ grammar Rubyish::Grammar is HLL::Grammar {
365
365
token prefix :sym <not > { <sym > <O (' %loose_not, :op<not_i>' )> }
366
366
token infix :sym <and > { <sym > <O (' %loose_logical, :op<if>' )> }
367
367
token infix :sym <or > { <sym > <O (' %loose_logical, :op<unless>' )> }
368
-
368
+
369
369
# Parenthesis
370
370
token circumfix :sym <( ) > { :my $ * IN_PARENS := 1;
371
371
'(' ~ ')' <EXPR > <O (' %methodop' )> }
@@ -419,7 +419,7 @@ grammar Rubyish::Grammar is HLL::Grammar {
419
419
}
420
420
421
421
token term :sym <code > {
422
- 'begin' ~ 'end' <stmtlist >
422
+ 'begin' ~ 'end' <stmtlist >
423
423
}
424
424
425
425
token closure {:s ['{' ['|' ~ '|' <signature >? ]? ] ~ '}' <stmtlist >
@@ -428,7 +428,7 @@ grammar Rubyish::Grammar is HLL::Grammar {
428
428
429
429
token term :sym <lambda > {:s
430
430
:my $ * CUR_BLOCK := QAST::Block . new(QAST::Stmts . new());
431
- ['lambda' <closure >
431
+ ['lambda' <closure >
432
432
| '->' <closure = .closure2 >
433
433
]
434
434
}
@@ -730,7 +730,7 @@ class Rubyish::Actions is HLL::Actions {
730
730
));
731
731
$ * CUR_BLOCK . symbol(' self' , : declared(1 ));
732
732
}
733
-
733
+
734
734
make $ * CUR_BLOCK ;
735
735
}
736
736
@@ -825,7 +825,7 @@ class Rubyish::Actions is HLL::Actions {
825
825
826
826
method stmt :sym <EXPR >($/ ) { make $ < EXPR > . ast; }
827
827
828
- method term :sym <infix= >($/ ) {
828
+ method term :sym <infix= >($/ ) {
829
829
my $ op := $ < OPER >< O >< op > ;
830
830
make QAST ::Op. new ( : op(' bind' ),
831
831
$ < var > . ast,
@@ -959,7 +959,7 @@ class Rubyish::Actions is HLL::Actions {
959
959
$ ast . op( ~ $ < op > );
960
960
$ ast . push ( $ < else > . ast )
961
961
if $ < else > ;
962
-
962
+
963
963
make $ ast ;
964
964
}
965
965
@@ -1011,7 +1011,7 @@ class Rubyish::Actions is HLL::Actions {
1011
1011
my $ text := QAST ::Stmts. new ( : node($/ ) );
1012
1012
$ text . push ( QAST ::Op. new ( : op<print >, $ _ . ast ) )
1013
1013
for $ < template-nibble > ;
1014
-
1014
+
1015
1015
make $ text ;
1016
1016
}
1017
1017
0 commit comments