-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Version bump to 0.11 (the end-of-line version)
- Loading branch information
trizen
committed
Oct 12, 2015
1 parent
3eea5a1
commit 39c5ff4
Showing
18 changed files
with
79 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,6 +45,8 @@ Pair.new() -> I<Obj> | |
|
||
Return the | ||
|
||
Aliases: I<call> | ||
|
||
=cut | ||
|
||
=head2 second | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,6 +55,8 @@ RangeNumber.each() -> I<Obj> | |
|
||
Return the | ||
|
||
Aliases: I<bcall> | ||
|
||
=cut | ||
|
||
=head2 map | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,6 +47,8 @@ RangeString.each() -> I<Obj> | |
|
||
Return the | ||
|
||
Aliases: I<bcall> | ||
|
||
=cut | ||
|
||
=head2 max | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,6 +55,8 @@ Code.call() -> I<Obj> | |
|
||
Return the | ||
|
||
Aliases: I<bcall> | ||
|
||
=cut | ||
|
||
=head2 cap | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -131,7 +131,7 @@ Hash.each() -> I<Obj> | |
|
||
Return the | ||
|
||
Aliases: I<each_pair> | ||
Aliases: I<bcall>, I<each_pair> | ||
|
||
=cut | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -364,7 +364,7 @@ String.each() -> I<Obj> | |
|
||
Return the | ||
|
||
Aliases: I<each_char> | ||
Aliases: I<bcall>, I<each_char> | ||
|
||
=cut | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/usr/bin/perl | ||
|
||
use 5.020; | ||
use strict; | ||
use warnings; | ||
|
||
use Regexp::Grammars; | ||
|
||
my $code = 'func (a, b) { a + b * 42 }'; | ||
|
||
my $parser = qr{ | ||
<[expression]>* | ||
<rule: class> class <args>? <block> | ||
<rule: function> func <args>? <block> | ||
<rule: block> \{ <[expression]>* \} | ||
<rule: args> \( <[identifier]>* % (,) \) | ||
<rule: expression> <function> | <block> | <class> | <equality_expression> | ||
<rule: eq_expr> (?: == | != ) <additive_expression> | ||
<rule: equality_expression> <additive_expression> <[eq_expr]>* | ||
<rule: add_expr> [+\-] <multiplicative_expression> | ||
<rule: additive_expression> <multiplicative_expression> <[add_expr]>* | ||
<rule: mult_expr> [*/] <primary> | ||
<rule: multiplicative_expression> <primary> <[mult_expr]>* | ||
<rule: primary> \( <expression> \) | <number> | <identifier> | - <primary> | ||
<rule: number> \d+ | ||
<rule: identifier> [\pL_][\pL\pN_]* | ||
}xms; | ||
|
||
$code =~ $parser; | ||
|
||
use Data::Dump qw(pp); | ||
pp \%/; |