Skip to content

Commit

Permalink
- Version bump to 0.11 (the end-of-line version)
Browse files Browse the repository at this point in the history
  • Loading branch information
trizen committed Oct 12, 2015
1 parent 3eea5a1 commit 39c5ff4
Show file tree
Hide file tree
Showing 18 changed files with 79 additions and 52 deletions.
1 change: 1 addition & 0 deletions MANIFEST
Original file line number Diff line number Diff line change
Expand Up @@ -933,6 +933,7 @@ utils/Concepts/sidef_executor.pl6
utils/Examples/sidef_in_perl.pl
utils/Experiments/C-inline-function-call.pl
utils/Experiments/operator_precendece.pl
utils/Experiments/regexp_grammars_op_precedence.pl
utils/Experiments/regexp_grammars_parser.pl
utils/Experiments/struct_optimizer.pl
utils/find_invalid_types.pl
Expand Down
4 changes: 2 additions & 2 deletions META.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"provides" : {
"Sidef" : {
"file" : "lib/Sidef.pm",
"version" : "0.10"
"version" : "0.11"
},
"Sidef::Convert::Convert" : {
"file" : "lib/Sidef/Convert/Convert.pm"
Expand Down Expand Up @@ -293,6 +293,6 @@
"http://dev.perl.org/licenses/"
]
},
"version" : "0.10",
"version" : "0.11",
"x_serialization_backend" : "JSON::PP version 2.27300"
}
4 changes: 2 additions & 2 deletions META.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ name: Sidef
provides:
Sidef:
file: lib/Sidef.pm
version: '0.10'
version: '0.11'
Sidef::Convert::Convert:
file: lib/Sidef/Convert/Convert.pm
Sidef::Deparse::Perl:
Expand Down Expand Up @@ -196,5 +196,5 @@ requires:
utf8: '0'
resources:
license: http://dev.perl.org/licenses/
version: '0.10'
version: '0.11'
x_serialization_backend: 'CPAN::Meta::YAML version 0.016'
2 changes: 1 addition & 1 deletion lib/Sidef.pm
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package Sidef {

use 5.014;
our $VERSION = '0.10';
our $VERSION = '0.11';

our $SPACES = 0; # the current number of spaces
our $SPACES_INCR = 4; # the number of spaces incrementor
Expand Down
2 changes: 1 addition & 1 deletion lib/Sidef/Types/Array/Array.pod
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ Array.for() -> I<Obj>

Return the

Aliases: I<each>, I<foreach>
Aliases: I<each>, I<bcall>, I<foreach>

=cut

Expand Down
4 changes: 3 additions & 1 deletion lib/Sidef/Types/Array/MultiArray.pod
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ MultiArray.each() -> I<Obj>

Return the

Aliases: I<iter>, I<iterate>
Aliases: I<iter>, I<bcall>, I<iterate>

=cut

Expand All @@ -55,6 +55,8 @@ MultiArray.new() -> I<Obj>

Return the

Aliases: I<call>

=cut

=head2 push
Expand Down
2 changes: 2 additions & 0 deletions lib/Sidef/Types/Array/Pair.pod
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ Pair.new() -> I<Obj>

Return the

Aliases: I<call>

=cut

=head2 second
Expand Down
2 changes: 2 additions & 0 deletions lib/Sidef/Types/Array/RangeNumber.pod
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ RangeNumber.each() -> I<Obj>

Return the

Aliases: I<bcall>

=cut

=head2 map
Expand Down
2 changes: 2 additions & 0 deletions lib/Sidef/Types/Array/RangeString.pod
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ RangeString.each() -> I<Obj>

Return the

Aliases: I<bcall>

=cut

=head2 max
Expand Down
2 changes: 2 additions & 0 deletions lib/Sidef/Types/Block/Code.pod
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ Code.call() -> I<Obj>

Return the

Aliases: I<bcall>

=cut

=head2 cap
Expand Down
16 changes: 1 addition & 15 deletions lib/Sidef/Types/Block/For.pod
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,12 @@ var obj = For.new(...);
=head1 METHODS


=head2 do

For.do() -> I<Obj>

Return the

=cut

=head2 for

For.for() -> I<Obj>

Return the

=cut

=head2 foreach

For.foreach() -> I<Obj>

Return the
Aliases: I<foreach>

=cut
12 changes: 1 addition & 11 deletions lib/Sidef/Types/Bool/If.pod
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,12 @@ Return the

=cut

=head2 elsif

If.elsif() -> I<Obj>

Return the

Aliases: I<elseif>

=cut

=head2 if

If.if() -> I<Obj>

Return the

Aliases: I<call>
Aliases: I<call>, I<elsif>

=cut
8 changes: 0 additions & 8 deletions lib/Sidef/Types/Bool/While.pod
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,6 @@ var obj = While.new(...);
=head1 METHODS


=head2 do

While.do() -> I<Obj>

Return the

=cut

=head2 else

While.else() -> I<Obj>
Expand Down
2 changes: 1 addition & 1 deletion lib/Sidef/Types/Hash/Hash.pod
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ Hash.each() -> I<Obj>

Return the

Aliases: I<each_pair>
Aliases: I<bcall>, I<each_pair>

=cut

Expand Down
18 changes: 10 additions & 8 deletions lib/Sidef/Types/Number/Number.pod
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,16 @@ Return the

=cut

=head2 bcall

Number.bcall() -> I<Obj>

Return the

Aliases: I<times>

=cut

=head2 bin

Number.bin() -> I<Obj>
Expand Down Expand Up @@ -744,14 +754,6 @@ Return the

=cut

=head2 times

Number.times() -> I<Obj>

Return the

=cut

=head2 to

Number.to() -> I<Obj>
Expand Down
2 changes: 1 addition & 1 deletion lib/Sidef/Types/String/String.pod
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ String.each() -> I<Obj>

Return the

Aliases: I<each_char>
Aliases: I<bcall>, I<each_char>

=cut

Expand Down
10 changes: 9 additions & 1 deletion lib/Sidef/Variable/ClassInit.pod
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ Aliases: I<replace>

=cut

=head2 alias

ClassInit.alias() -> I<Obj>

Return the

=cut

=head2 def_method

ClassInit.def_method() -> I<Obj>
Expand Down Expand Up @@ -99,7 +107,7 @@ ClassInit.new() -> I<Obj>

Return the

Aliases: I<call>, I<init>
Aliases: I<call>, I<init>, I<bcall>

=cut

Expand Down
38 changes: 38 additions & 0 deletions utils/Experiments/regexp_grammars_op_precedence.pl
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 \%/;

0 comments on commit 39c5ff4

Please sign in to comment.