From 39c5ff42cb059518f05177a9c75347cad3dfc5c3 Mon Sep 17 00:00:00 2001 From: trizen Date: Mon, 12 Oct 2015 21:35:57 +0300 Subject: [PATCH] - Version bump to 0.11 (the end-of-line version) --- MANIFEST | 1 + META.json | 4 +- META.yml | 4 +- lib/Sidef.pm | 2 +- lib/Sidef/Types/Array/Array.pod | 2 +- lib/Sidef/Types/Array/MultiArray.pod | 4 +- lib/Sidef/Types/Array/Pair.pod | 2 + lib/Sidef/Types/Array/RangeNumber.pod | 2 + lib/Sidef/Types/Array/RangeString.pod | 2 + lib/Sidef/Types/Block/Code.pod | 2 + lib/Sidef/Types/Block/For.pod | 16 +------- lib/Sidef/Types/Bool/If.pod | 12 +----- lib/Sidef/Types/Bool/While.pod | 8 ---- lib/Sidef/Types/Hash/Hash.pod | 2 +- lib/Sidef/Types/Number/Number.pod | 18 +++++---- lib/Sidef/Types/String/String.pod | 2 +- lib/Sidef/Variable/ClassInit.pod | 10 ++++- .../regexp_grammars_op_precedence.pl | 38 +++++++++++++++++++ 18 files changed, 79 insertions(+), 52 deletions(-) create mode 100644 utils/Experiments/regexp_grammars_op_precedence.pl diff --git a/MANIFEST b/MANIFEST index 586303f3e..7d67229ca 100644 --- a/MANIFEST +++ b/MANIFEST @@ -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 diff --git a/META.json b/META.json index b2ab19e51..8507bd7b4 100644 --- a/META.json +++ b/META.json @@ -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" @@ -293,6 +293,6 @@ "http://dev.perl.org/licenses/" ] }, - "version" : "0.10", + "version" : "0.11", "x_serialization_backend" : "JSON::PP version 2.27300" } diff --git a/META.yml b/META.yml index 53014b918..2724f0dc7 100644 --- a/META.yml +++ b/META.yml @@ -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: @@ -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' diff --git a/lib/Sidef.pm b/lib/Sidef.pm index 0c79ea886..f90935726 100644 --- a/lib/Sidef.pm +++ b/lib/Sidef.pm @@ -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 diff --git a/lib/Sidef/Types/Array/Array.pod b/lib/Sidef/Types/Array/Array.pod index 720b75cf3..ea730ad95 100644 --- a/lib/Sidef/Types/Array/Array.pod +++ b/lib/Sidef/Types/Array/Array.pod @@ -479,7 +479,7 @@ Array.for() -> I Return the -Aliases: I, I +Aliases: I, I, I =cut diff --git a/lib/Sidef/Types/Array/MultiArray.pod b/lib/Sidef/Types/Array/MultiArray.pod index ebf1faa0e..a548bbe01 100644 --- a/lib/Sidef/Types/Array/MultiArray.pod +++ b/lib/Sidef/Types/Array/MultiArray.pod @@ -37,7 +37,7 @@ MultiArray.each() -> I Return the -Aliases: I, I +Aliases: I, I, I =cut @@ -55,6 +55,8 @@ MultiArray.new() -> I Return the +Aliases: I + =cut =head2 push diff --git a/lib/Sidef/Types/Array/Pair.pod b/lib/Sidef/Types/Array/Pair.pod index 5e2940f38..a9c1c91e6 100644 --- a/lib/Sidef/Types/Array/Pair.pod +++ b/lib/Sidef/Types/Array/Pair.pod @@ -45,6 +45,8 @@ Pair.new() -> I Return the +Aliases: I + =cut =head2 second diff --git a/lib/Sidef/Types/Array/RangeNumber.pod b/lib/Sidef/Types/Array/RangeNumber.pod index 323272d38..67245a5c2 100644 --- a/lib/Sidef/Types/Array/RangeNumber.pod +++ b/lib/Sidef/Types/Array/RangeNumber.pod @@ -55,6 +55,8 @@ RangeNumber.each() -> I Return the +Aliases: I + =cut =head2 map diff --git a/lib/Sidef/Types/Array/RangeString.pod b/lib/Sidef/Types/Array/RangeString.pod index 6777811a4..2fd4a7731 100644 --- a/lib/Sidef/Types/Array/RangeString.pod +++ b/lib/Sidef/Types/Array/RangeString.pod @@ -47,6 +47,8 @@ RangeString.each() -> I Return the +Aliases: I + =cut =head2 max diff --git a/lib/Sidef/Types/Block/Code.pod b/lib/Sidef/Types/Block/Code.pod index 803c11c17..280e795b1 100644 --- a/lib/Sidef/Types/Block/Code.pod +++ b/lib/Sidef/Types/Block/Code.pod @@ -55,6 +55,8 @@ Code.call() -> I Return the +Aliases: I + =cut =head2 cap diff --git a/lib/Sidef/Types/Block/For.pod b/lib/Sidef/Types/Block/For.pod index 39866f8b4..ca7e5cbf4 100644 --- a/lib/Sidef/Types/Block/For.pod +++ b/lib/Sidef/Types/Block/For.pod @@ -16,26 +16,12 @@ var obj = For.new(...); =head1 METHODS -=head2 do - -For.do() -> I - -Return the - -=cut - =head2 for For.for() -> I Return the -=cut - -=head2 foreach - -For.foreach() -> I - -Return the +Aliases: I =cut diff --git a/lib/Sidef/Types/Bool/If.pod b/lib/Sidef/Types/Bool/If.pod index d8dc2fa0d..b49aa7bd9 100644 --- a/lib/Sidef/Types/Bool/If.pod +++ b/lib/Sidef/Types/Bool/If.pod @@ -31,22 +31,12 @@ Return the =cut -=head2 elsif - -If.elsif() -> I - -Return the - -Aliases: I - -=cut - =head2 if If.if() -> I Return the -Aliases: I +Aliases: I, I =cut diff --git a/lib/Sidef/Types/Bool/While.pod b/lib/Sidef/Types/Bool/While.pod index b2c17b6bd..861444a23 100644 --- a/lib/Sidef/Types/Bool/While.pod +++ b/lib/Sidef/Types/Bool/While.pod @@ -16,14 +16,6 @@ var obj = While.new(...); =head1 METHODS -=head2 do - -While.do() -> I - -Return the - -=cut - =head2 else While.else() -> I diff --git a/lib/Sidef/Types/Hash/Hash.pod b/lib/Sidef/Types/Hash/Hash.pod index 4c7d62394..a6863decb 100644 --- a/lib/Sidef/Types/Hash/Hash.pod +++ b/lib/Sidef/Types/Hash/Hash.pod @@ -131,7 +131,7 @@ Hash.each() -> I Return the -Aliases: I +Aliases: I, I =cut diff --git a/lib/Sidef/Types/Number/Number.pod b/lib/Sidef/Types/Number/Number.pod index 6bf691269..18814abcc 100644 --- a/lib/Sidef/Types/Number/Number.pod +++ b/lib/Sidef/Types/Number/Number.pod @@ -308,6 +308,16 @@ Return the =cut +=head2 bcall + +Number.bcall() -> I + +Return the + +Aliases: I + +=cut + =head2 bin Number.bin() -> I @@ -744,14 +754,6 @@ Return the =cut -=head2 times - -Number.times() -> I - -Return the - -=cut - =head2 to Number.to() -> I diff --git a/lib/Sidef/Types/String/String.pod b/lib/Sidef/Types/String/String.pod index 216de1cad..617561dd0 100644 --- a/lib/Sidef/Types/String/String.pod +++ b/lib/Sidef/Types/String/String.pod @@ -364,7 +364,7 @@ String.each() -> I Return the -Aliases: I +Aliases: I, I =cut diff --git a/lib/Sidef/Variable/ClassInit.pod b/lib/Sidef/Variable/ClassInit.pod index 6b0f076a9..13186fdfa 100644 --- a/lib/Sidef/Variable/ClassInit.pod +++ b/lib/Sidef/Variable/ClassInit.pod @@ -43,6 +43,14 @@ Aliases: I =cut +=head2 alias + +ClassInit.alias() -> I + +Return the + +=cut + =head2 def_method ClassInit.def_method() -> I @@ -99,7 +107,7 @@ ClassInit.new() -> I Return the -Aliases: I, I +Aliases: I, I, I =cut diff --git a/utils/Experiments/regexp_grammars_op_precedence.pl b/utils/Experiments/regexp_grammars_op_precedence.pl new file mode 100644 index 000000000..f9a4b8ec4 --- /dev/null +++ b/utils/Experiments/regexp_grammars_op_precedence.pl @@ -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]>* + + class ? + func ? + + \{ <[expression]>* \} + \( <[identifier]>* % (,) \) + + | | | + (?: == | != ) + <[eq_expr]>* + [+\-] + <[add_expr]>* + [*/] + <[mult_expr]>* + \( \) | | | - + + \d+ + [\pL_][\pL\pN_]* + +}xms; + +$code =~ $parser; + +use Data::Dump qw(pp); +pp \%/;