Skip to content

Commit

Permalink
Merge pull request #6 from lizmat/master
Browse files Browse the repository at this point in the history
Remove the most obvious bitrot
  • Loading branch information
zag committed Aug 13, 2018
2 parents d4216b5 + 3c9872a commit 16c7673
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/Plosurin.pm
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ grammar Plosurin::Template {
rule command_import { rule command_import {
'import' <attribute> ** 1..2 } 'import' <attribute> ** 1..2 }
rule expression { [ \w+ ['=='||'<'||'>'] \w+ || <variable>] } rule expression { [ \w+ ['=='||'<'||'>'] \w+ || <variable>] }
rule expression_list { [\w+] ** ',' } rule expression_list { [\w+]* %% ',' }
token variable { '$' \w+ } token variable { '$' \w+ }
# rule pair { <string> ':' <value> } # rule pair { <string> ':' <value> }
rule attribute { (\w+) '=' '"' (<-['"']>+) '"' } rule attribute { (\w+) '=' '"' (<-["]>+) '"' }


} }


Expand Down
2 changes: 1 addition & 1 deletion t/t01.t
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ my @lexer_tests =


for @lexer_tests -> $template, $check, $test_name { for @lexer_tests -> $template, $check, $test_name {
my $res = Plosurin::Template.parse($template, :actions(Plosurin::TActions.new)); my $res = Plosurin::Template.parse($template, :actions(Plosurin::TActions.new));
is_deeply [ $/.ast».dumper],$check, $test_name ?? $test_name !! $template; is-deeply [ $/.ast».dumper],$check, $test_name ?? $test_name !! $template;
} }


2 changes: 1 addition & 1 deletion t/t02.t
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ my $txt= '{namespace rname.sample}


my $res = Plosurin::Grammar.parse($txt, :actions(Plosurin::Actions.new )); my $res = Plosurin::Grammar.parse($txt, :actions(Plosurin::Actions.new ));
ok $res, 'grammar'; ok $res, 'grammar';
is_deeply [$/.ast.values».WHAT».perl], ["Template", "Template", "Template"], 'objects'; is-deeply [$/.ast.values».WHAT».perl], ["Template", "Template", "Template"], 'objects';


0 comments on commit 16c7673

Please sign in to comment.