- update to 1.967006
- Allow a global <skip:> directive that functions the same as modifying $Parse::RecDescent::skip prior to compiling a grammar. (Thanks Flavio!) - *** NON-BACKWARDS COMPATIBLE CHANGE! *** A repetition directive such as 'id(s /,/)' correctly creates a temporary @item variable to hold the 'id's that are matched. That @item variable is them used to set the real $item[] entry for that repetition. The same treatment is now given to %item. Formerly, in a production like: id ',' id(s /,/) matched against: xxx, yyy, zzz The $item{id} entry which should be 'xxx' is overwritten by 'yyy' and then 'zzz' prior to the action being executed. Now 'yyy' and 'zzz' set $item{id}, but in the private %item, which goes out of scope once the repetition match completes. - ** EXPERIMENTAL ** When precompiling, optionally create a standalone parser by including most of the contents of Parse::RecDescent in the resulting Precompiled output. - Accept an optional $options hashref to Precompile, which can be used to specify $options->{-standalone}, which currently defaults to false. - The included Parse::RecDescent module is renamed to Parse::RecDescent::_Runtime to avoid namespace conflicts with an installed and use'd Parse::RecDescent. - Add a new $_FILENAME global to Parse::RecDescent to make it easy for the Precompile method to find the module. - Remove the prototype from _generate. It is not required, and it caused t/precompile.t (which ends up re-definiing a lot of Parse::RecDescent subroutines) to fail needlessly, as the OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Parse-RecDescent?expand=0&rev=33
This commit is contained in:
parent
f4a5ab77dd
commit
bee20db74e
@ -1,11 +1,12 @@
|
|||||||
diff -ruN Parse-RecDescent-1.965001-orig/lib/Parse/RecDescent.pm Parse-RecDescent-1.965001/lib/Parse/RecDescent.pm
|
Index: Parse-RecDescent-1.967006/lib/Parse/RecDescent.pm
|
||||||
--- Parse-RecDescent-1.965001-orig/lib/Parse/RecDescent.pm 2010-04-05 00:00:10.000000000 +0200
|
===================================================================
|
||||||
+++ Parse-RecDescent-1.965001/lib/Parse/RecDescent.pm 2010-10-19 21:29:55.000000000 +0200
|
--- Parse-RecDescent-1.967006.orig/lib/Parse/RecDescent.pm 2012-02-11 05:49:54.000000000 +0100
|
||||||
@@ -2808,6 +2808,7 @@
|
+++ Parse-RecDescent-1.967006/lib/Parse/RecDescent.pm 2012-02-13 15:59:09.350410266 +0100
|
||||||
|
@@ -3013,6 +3013,7 @@
|
||||||
sub _code($)
|
sub _code($)
|
||||||
{
|
{
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
+ $skip = "" if(! defined $skip);
|
+ $skip = "" if(! defined $skip);
|
||||||
|
my $initial_skip = defined($self->{skip}) ? $self->{skip} : $skip;
|
||||||
|
|
||||||
my $code = qq{
|
my $code = qq{
|
||||||
package $self->{namespace};
|
|
||||||
use strict;
|
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:d4dac8dad012a7eef271a0ac8ec399f9e3b0b53902644df9c208daef8b4b7f0a
|
|
||||||
size 166765
|
|
3
Parse-RecDescent-1.967006.tar.gz
Normal file
3
Parse-RecDescent-1.967006.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:1b51a24e78e5d6f93599b655bf3426fd70389327d5db98e182290dd4cdb72bbf
|
||||||
|
size 169628
|
@ -1,3 +1,45 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Feb 13 02:35:00 UTC 2012 - vcizek@suse.com
|
||||||
|
|
||||||
|
- update to 1.967006
|
||||||
|
- Allow a global <skip:> directive that functions the same as
|
||||||
|
modifying $Parse::RecDescent::skip prior to compiling a
|
||||||
|
grammar. (Thanks Flavio!)
|
||||||
|
|
||||||
|
- *** NON-BACKWARDS COMPATIBLE CHANGE! *** A repetition directive
|
||||||
|
such as 'id(s /,/)' correctly creates a temporary @item variable
|
||||||
|
to hold the 'id's that are matched. That @item variable is them
|
||||||
|
used to set the real $item[] entry for that repetition. The
|
||||||
|
same treatment is now given to %item. Formerly, in a production like:
|
||||||
|
id ',' id(s /,/)
|
||||||
|
matched against:
|
||||||
|
xxx, yyy, zzz
|
||||||
|
The $item{id} entry which should be 'xxx' is overwritten by
|
||||||
|
'yyy' and then 'zzz' prior to the action being executed. Now
|
||||||
|
'yyy' and 'zzz' set $item{id}, but in the private %item, which
|
||||||
|
goes out of scope once the repetition match completes.
|
||||||
|
|
||||||
|
- ** EXPERIMENTAL ** When precompiling, optionally create a
|
||||||
|
standalone parser by including most of the contents of
|
||||||
|
Parse::RecDescent in the resulting Precompiled output.
|
||||||
|
|
||||||
|
- Accept an optional $options hashref to Precompile, which can
|
||||||
|
be used to specify $options->{-standalone}, which currently
|
||||||
|
defaults to false.
|
||||||
|
|
||||||
|
- The included Parse::RecDescent module is renamed to
|
||||||
|
Parse::RecDescent::_Runtime to avoid namespace conflicts with
|
||||||
|
an installed and use'd Parse::RecDescent.
|
||||||
|
- Add a new $_FILENAME global to Parse::RecDescent to make it
|
||||||
|
easy for the Precompile method to find the module.
|
||||||
|
- Remove the prototype from _generate. It is not required, and
|
||||||
|
it caused t/precompile.t (which ends up re-definiing a lot of
|
||||||
|
Parse::RecDescent subroutines) to fail needlessly, as the
|
||||||
|
calls to _generate in Replace and Extend normally do not see
|
||||||
|
the prototype, but do when re-defined.
|
||||||
|
- Added ExtUtils::MakeMaker build/configure version
|
||||||
|
requirements. (RT.cpan.org #74787, Thanks POPEL!)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jan 31 09:31:58 UTC 2012 - vcizek@suse.com
|
Tue Jan 31 09:31:58 UTC 2012 - vcizek@suse.com
|
||||||
|
|
||||||
|
@ -15,25 +15,27 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Name: perl-Parse-RecDescent
|
Name: perl-Parse-RecDescent
|
||||||
Version: 1.967003
|
Version: 1.967006
|
||||||
Release: 0
|
Release: 0
|
||||||
|
License: GPL-1.0+ or Artistic-1.0
|
||||||
%define cpan_name Parse-RecDescent
|
%define cpan_name Parse-RecDescent
|
||||||
Summary: Generate Recursive-Descent Parsers
|
Summary: Generate Recursive-Descent Parsers
|
||||||
License: GPL-1.0+ or Artistic-1.0
|
|
||||||
Group: Development/Libraries/Perl
|
|
||||||
Url: http://search.cpan.org/dist/Parse-RecDescent/
|
Url: http://search.cpan.org/dist/Parse-RecDescent/
|
||||||
|
Group: Development/Libraries/Perl
|
||||||
#Source: http://www.cpan.org/modules/by-module/Parse/Parse-RecDescent-%{version}.tar.gz
|
#Source: http://www.cpan.org/modules/by-module/Parse/Parse-RecDescent-%{version}.tar.gz
|
||||||
Source: %{cpan_name}-%{version}.tar.gz
|
Source: %{cpan_name}-%{version}.tar.gz
|
||||||
# bnc#653512
|
# bnc#653512
|
||||||
Patch0: Parse-RecDescent-1.965001.patch
|
Patch0: Parse-RecDescent-1.965001.patch
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
BuildRequires: perl-macros
|
|
||||||
BuildRequires: perl(Module::Build)
|
BuildRequires: perl(Module::Build)
|
||||||
BuildRequires: perl(Test::More)
|
BuildRequires: perl(Test::More)
|
||||||
BuildRequires: perl(Test::Warn)
|
BuildRequires: perl(Test::Warn)
|
||||||
BuildRequires: perl(Text::Balanced)
|
BuildRequires: perl(Text::Balanced)
|
||||||
BuildRequires: perl(version)
|
BuildRequires: perl(version)
|
||||||
|
BuildRequires: perl-macros
|
||||||
Requires: perl(Text::Balanced)
|
Requires: perl(Text::Balanced)
|
||||||
Requires: perl(version)
|
Requires: perl(version)
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
Loading…
Reference in New Issue
Block a user