Skip to content

Commit c229bc7

Browse files
committed
Purge trailing whitespace in examples/ dir
1 parent 2f20465 commit c229bc7

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

examples/json.nqp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ grammar JSON::Grammar is HLL::Grammar {
3939
}
4040

4141
token string {
42-
<?["]> <quote_EXPR: ':qq'>
42+
<?["]> <quote_EXPR: ':qq'>
4343
}
4444
}
4545

4646

4747
class JSON::Actions is HLL::Actions {
48-
method TOP($/) {
49-
make PAST::Block.new($<value>.ast, :node($/));
48+
method TOP($/) {
49+
make PAST::Block.new($<value>.ast, :node($/));
5050
};
5151

5252
method value:sym<string>($/) { make $<string>.ast; }
@@ -64,14 +64,14 @@ class JSON::Actions is HLL::Actions {
6464
method value:sym<object>($/) {
6565
my $past := PAST::Stmts.new( :node($/) );
6666
my $hashname := PAST::Compiler.unique('hash');
67-
my $hash := PAST::Var.new( :scope<register>, :name($hashname),
67+
my $hash := PAST::Var.new( :scope<register>, :name($hashname),
6868
:viviself('Hash'), :isdecl );
6969
my $hashreg := PAST::Var.new( :scope<register>, :name($hashname) );
7070
$past.'push'($hash);
7171
# loop through all string/value pairs, add set opcodes for each pair.
7272
my $n := 0;
7373
while $n < +$<string> {
74-
$past.'push'(PAST::Op.new( :pirop<set__vQ~*>, $hashreg,
74+
$past.'push'(PAST::Op.new( :pirop<set__vQ~*>, $hashreg,
7575
$<string>[$n].ast, $<value>[$n].ast ) );
7676
$n++;
7777
}

examples/rubyish/rubyish.nqp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ grammar Rubyish::Grammar is HLL::Grammar {
365365
token prefix:sym<not> { <sym> <O('%loose_not, :op<not_i>')> }
366366
token infix:sym<and> { <sym> <O('%loose_logical, :op<if>')> }
367367
token infix:sym<or> { <sym> <O('%loose_logical, :op<unless>')> }
368-
368+
369369
# Parenthesis
370370
token circumfix:sym<( )> { :my $*IN_PARENS := 1;
371371
'(' ~ ')' <EXPR> <O('%methodop')> }
@@ -419,7 +419,7 @@ grammar Rubyish::Grammar is HLL::Grammar {
419419
}
420420

421421
token term:sym<code> {
422-
'begin' ~ 'end' <stmtlist>
422+
'begin' ~ 'end' <stmtlist>
423423
}
424424

425425
token closure {:s ['{' ['|' ~ '|' <signature>?]? ] ~ '}' <stmtlist>
@@ -428,7 +428,7 @@ grammar Rubyish::Grammar is HLL::Grammar {
428428

429429
token term:sym<lambda> {:s
430430
:my $*CUR_BLOCK := QAST::Block.new(QAST::Stmts.new());
431-
['lambda' <closure>
431+
['lambda' <closure>
432432
| '->' <closure=.closure2>
433433
]
434434
}
@@ -730,7 +730,7 @@ class Rubyish::Actions is HLL::Actions {
730730
));
731731
$*CUR_BLOCK.symbol('self', :declared(1));
732732
}
733-
733+
734734
make $*CUR_BLOCK;
735735
}
736736

@@ -825,7 +825,7 @@ class Rubyish::Actions is HLL::Actions {
825825

826826
method stmt:sym<EXPR>($/) { make $<EXPR>.ast; }
827827

828-
method term:sym<infix=>($/) {
828+
method term:sym<infix=>($/) {
829829
my $op := $<OPER><O><op>;
830830
make QAST::Op.new( :op('bind'),
831831
$<var>.ast,
@@ -959,7 +959,7 @@ class Rubyish::Actions is HLL::Actions {
959959
$ast.op( ~$<op> );
960960
$ast.push( $<else>.ast )
961961
if $<else>;
962-
962+
963963
make $ast;
964964
}
965965

@@ -1011,7 +1011,7 @@ class Rubyish::Actions is HLL::Actions {
10111011
my $text := QAST::Stmts.new( :node($/) );
10121012
$text.push( QAST::Op.new( :op<print>, $_.ast ) )
10131013
for $<template-nibble>;
1014-
1014+
10151015
make $text;
10161016
}
10171017

0 commit comments

Comments
 (0)