Module-ExtractUse-0.344000755001750001750 014115376150 14114 5ustar00dommdomm000000000000README100644001750001750 57314115376150 15042 0ustar00dommdomm000000000000Module-ExtractUse-0.344This archive contains the distribution Module-ExtractUse, version 0.344: Find out what modules are used This software is copyright (c) 2014 - 2021 by Thomas Klausner. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. This README file was generated by Dist::Zilla::Plugin::Readme v6.024. grammar100644001750001750 767014115376150 15560 0ustar00dommdomm000000000000Module-ExtractUse-0.344#----------------------------------------------------------------- # Rules for use #----------------------------------------------------------------- token_use: /\buse\s/ use_stuff /[;}]/ { $return=$item{use_stuff} } use_stuff: (base | parent | version | module) base: "base" import_list parent: "parent" import_list { $return='parent'; $return.=' '.$item[2] if $item[2] !~ /^\s*-norequire\b/; } module: module_name module_more { $return=$item{module_name} } module_name: /[\w:]+/ module_more: eos | version(?) var(?) import_list(?) #----------------------------------------------------------------- # Rules for require #----------------------------------------------------------------- token_require: /\brequire\s/ require_stuff /[;}]/ { $return=$item{require_stuff} } require_stuff: (version | require_name | module) require_name: { my $name=$item[1][2]; return 1 if ($name=~/\.pl$/); $name=~s(/)(::)g; $name=~s/\.pm//; $return=$name; } #----------------------------------------------------------------- # Rules for no #----------------------------------------------------------------- token_no: /\bno\s/ no_stuff /[;}]/ { $return=$item{no_stuff} } no_stuff: (base | version | module) #---------------------------------------------------------------- # Functions provided by Module::Runtime #---------------------------------------------------------------- module_runtime_require_module: ( 'Module::Runtime::require_module(' | /\brequire_module\(/ ) ')' { $return = $item[2][2] } module_runtime_use_fcn: ( 'use_module' | 'use_package_optimistically' ) module_runtime_version: ',' /\s*/ version module_runtime_use: ( ( 'Module::Runtime::' module_runtime_use_fcn '(' ) | ( m/\b/ module_runtime_use_fcn '(' ) ) module_runtime_version(?) ')' { $return = $item[2][2] } token_module_runtime: module_runtime_require_module | module_runtime_use #----------------------------------------------------------------- # Functions provided by Class::Load #----------------------------------------------------------------- hash_pair: /\S+/ comma ( | /[^\s,}]+/ ) comma_hash_pair: comma hash_pair hashref: '{' hash_pair comma_hash_pair(s?) '}' comma_hashref: comma hashref class_load_functions: 'load_class' | 'try_load_class' | 'load_optional_class' class_load: ( ( 'Class::Load::' class_load_functions ) | ( /\b/ class_load_functions ) ) '(' comma_hashref(?) ')' { $return = $item[3][2] } first_existing_arg: comma_hashref(?) { $return = $item[1][2] } comma_first_existing_arg: comma first_existing_arg { $return = $item{first_existing_arg} } class_load_first_existing: ( 'Class::Load::load_first_existing_class' | /\bload_first_existing_class/ ) '(' first_existing_arg comma_first_existing_arg(s?) ')' { $return = $item{first_existing_arg}; $return .= " " . join(" ", @{$item{'comma_first_existing_arg(s?)'}}) if $item{'comma_first_existing_arg(s?)'}; 1; } token_class_load: class_load | class_load_first_existing #----------------------------------------------------------------- # General Rules #----------------------------------------------------------------- version: /v?[\d\._]+/ eos: { $text=~/^[\s;]+$/ ? 1 : undef;} var: /\$[\w+]/ import_list: /[(]?/ list_item comma_list_item(s?) /[)]?/ { $return=$item[2]; $return.=" ".join(" ",@{$item[3]}) if $item[3]; } | /[(]\s*[)]/ { $return='' } list_item: { $return=$item[1][2] } | { $return=$item[1] } | /-?\w+/ { $return=$item[1] } comma_list_item: comma list_item { $return=$item{list_item} } comma: (',' | '=>') Changes100644001750001750 1463414115376150 15520 0ustar00dommdomm000000000000Module-ExtractUse-0.344#----------------------------------------------------------------- # Changes for Module::ExtractUse #----------------------------------------------------------------- 0.344 2021-09-06T13:31:26 - Fixed some spelling errors in the Pod. (Håkon Hægland) 0.343 2018-10-18T15:19:05 - Mention Perl::PrereqScanner modules family (perlancar) 0.342 2018-01-22T16:02:20 - Escape left (and right) braces to silence deprecation warnings (RT-124146) (Kenichi Ishigaki) 0.341 2016-01-30T22:18:20 - fixed 20_parse_self.t; version.pm is not used anymore (Kenichi Ishigaki) 0.340 2016-01-30T20:42:39 - load_first_existing_class() is now working (Anthony Brummett) - Class::Load::load_class(), try_load_class() and load_optional_class() are working (Anthony Brummett) - Detect uses of Module::Runtime (Anthony Brummett) - include extractuse as provided by Jonathan Yu in example/ (Anthony Brummett) - Linkify POD modules, mention Module::Extract::Use to resolve RT#45571. (Jeremy Mates) 0.33 2014-04-11T21:04:52+0200 - added base() handling to no (Thomas Klausner) - support 'no MODULE' etc (for RT-94305) (Kenichi Ishigaki) - typo fix (David Steinbrunner) - ignore __DATA|END__ sections (see https://rt.cpan.org/Ticket/Display.html?id=88969 ) (Kenichi Ishigaki) - ignore use/require method calls (Kenichi Ishigaki) 0.32 2013-09-04T16:48:07+0200 - not to include cached results (Kenichi Ishigaki) - Fix handling module beginning with v and pragma with version. (Yasutaka ATARASHI) - Recognize "use parent". (Yasutaka ATARASHI) 0.31 2013-05-31T10:21:06+0200 - applied a patch from cjm with slight modification to resolve RT#50723 (support use Foo::Bar (); etc) (Kenichi Ishigaki) - fixed RT#71761 (Kenichi Ishigaki) - applied a patch from wyant (RT#71761) (Kenichi Ishigaki) - fixed the Pod::Simple encoding issue (Kenichi Ishigaki) - Fix incorrect regexp (ref gh-5). (Yasutaka ATARASHI) - Avoid regex features introduced only in later perl (close gh-5). (Yasutaka ATARASHI) - Use plan() instead of done_testing() (ref gh-5). (Yasutaka ATARASHI) - Add support for bareword leading hyphyen, in-place arrayref and hashref. (Yasutaka ATARASHI) - proper version number for older releases (Brian Cassidy) 0.30 2013-04-18T08:57:49+0200 - Add accessors and tests for _in_eval/_out_of_eval. (Yasutaka ATARASHI) - reworked 80_failig.t to TODO tests; (Thomas Klausner) - added more require-in-string corner test cases (suggested by Buddy Burden) (Thomas Klausner) - Fix the case for eval["']expr["'] and add regression tests. (Yasutaka ATARASHI) 0.29 2013-02-25T20:25:44+0100 - fixed regex to filter use/require (RT83569) (reported by ribasushi) 0.28 2012-08-21T14:41:15+0200 - whitespace in use base is valid (Barbie) 0.27 2012-03-23T12:40:44+0100 - fixed 23_universal_require.t for real (RT75342) (reported by Manoj Kumar and Paul Howarth) 0.26 2012-03-23T08:42:25+0100 - removed Test::NoWarning from a t/23_universal_require.t because it upsets the (manual) plan if the tests are skipped 0.25 2012-03-22T10:55:42+0100 - autogenerate the grammer during ./Build (based on a patch by jtbraun@CPAN.org) (RT74879) - added $VERSION to into Module::ExtractUse::Grammar, suggested by Manoj Kumar (RT75342) - specify min verion of Parse::RecDescent (1.967009), suggested by ANDK@cpan.org (RT75130) - fix typos reported by gregor herrmann (RT75115) - switched to Dist::Zilla (all on my own!) 0.24 2012-02-12T14:27:36+0100 - regenerated Grammer to work with new Parse::RecDescent (thanks to cpan-testers, TMUELLER, KENTNL, dirkus@yo****.com and paul@city****.org for reporting the problem) 0.23 2008-04-26 22:14:28 - fixed bug regarding 'use utf8' which was interpreted as 'utf' 0.22 2007-11-16 - added 'use warnings' again to the Grammer... grr, stupid grammer generator 0.21 2007-11-14 - fixed Bug reported by hanekomu via IRC: Modules::ExtractUse breaks if it is used with UNIVERSAL::require so I renamed the grammer tokens 'use' and 'require'. No API changes, but if you use the grammer directly, you'll have to adapt to the new names ('token_use' and 'token_reqire') 0.20 2007-11-07 - resolved RT #30414 by applying the patch submitted by David Landgren - rearranged code to better fit my current Perl style - added 'use warnings' to Module::ExtractUse::Grammer for that extra kwalitee point 0.19 2007-04-21 - resolved RT #22953 reported by David R Throop documentation error in SYNOPSIS - resolved RT #24066 reported by Jose Pedro Oliveira license clarification - some doc cleanup - added more Test modules to build_requires - no actual code changes where done in this release 0.18 2006-06-19 - resolved [rt.cpan.org #19302] reported by DAGOLDEN@cpan.org (thanks for the hint!) we can now handle stuff like: my $ver=1.22; eval "use Test::Pod $ver;" - moved Test::* prereq into build_requires 0.17 2005-11-07 - switched to new Changes format - updated dependencies (Pod::Strip instead of Pod::Simple) 0.16 2005-09-01 - added test provided by BRICAS (thanks a lot) - removed bug reported by BRICAS - updated docs and various stuff - find uses in eval 0.15 2004-10-01 - use Pod::Strip instead of Pod::Simple subclass hack - added accessor method C - updated docs - added t/pod.t and t/pod_coverage.t - adapted test suite to new data structure / accessors - resolved rt.cpan.org ticket #7013 "Parser should remember previously scanned modules" (Michael G. Schwern) by shuffling various data structures around - switched to Module::Build 0.11 2004-07-20 - resolved rt.cpan.org ticket #7012 "uses preceded by a comment can be ignored" by applying the patch by Michael G. Schwern. Thanks! 0.10 2003-06-08 - accelerated the parsing: - Parse a statement instead of a whole module - Befor parsing, check with a regex if the statement contains 'use' or 'require' - Enhanced grammer (thanks to $::RD_TRACE) 0.05 2003-04-18 - added precompilation of grammar to Makefile.PL - changed @found to @::found - init @::found in start-rule instead via startup-action 0.03 2003-03-31 - sort of working LICENSE100644001750001750 4370614115376150 15234 0ustar00dommdomm000000000000Module-ExtractUse-0.344This software is copyright (c) 2014 - 2021 by Thomas Klausner. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. Terms of the Perl programming language system itself a) the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version, or b) the "Artistic License" --- The GNU General Public License, Version 1, February 1989 --- This software is Copyright (c) 2014 - 2021 by Thomas Klausner. This is free software, licensed under: The GNU General Public License, Version 1, February 1989 GNU GENERAL PUBLIC LICENSE Version 1, February 1989 Copyright (C) 1989 Free Software Foundation, Inc. 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The license agreements of most software companies try to keep users at the mercy of those companies. By contrast, our General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. The General Public License applies to the Free Software Foundation's software and to any other program whose authors commit to using it. You can use it for your programs, too. When we speak of free software, we are referring to freedom, not price. Specifically, the General Public License is designed to make sure that you have the freedom to give away or sell copies of free software, that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of a such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must tell them their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License Agreement applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any work containing the Program or a portion of it, either verbatim or with modifications. Each licensee is addressed as "you". 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this General Public License and to the absence of any warranty; and give any other recipients of the Program a copy of this General Public License along with the Program. You may charge a fee for the physical act of transferring a copy. 2. You may modify your copy or copies of the Program or any portion of it, and copy and distribute such modifications under the terms of Paragraph 1 above, provided that you also do the following: a) cause the modified files to carry prominent notices stating that you changed the files and the date of any change; and b) cause the whole of any work that you distribute or publish, that in whole or in part contains the Program or any part thereof, either with or without modifications, to be licensed at no charge to all third parties under the terms of this General Public License (except that you may choose to grant warranty protection to some or all third parties, at your option). c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the simplest and most usual way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this General Public License. d) You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. Mere aggregation of another independent work with the Program (or its derivative) on a volume of a storage or distribution medium does not bring the other work under the scope of these terms. 3. You may copy and distribute the Program (or a portion or derivative of it, under Paragraph 2) in object code or executable form under the terms of Paragraphs 1 and 2 above provided that you also do one of the following: a) accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Paragraphs 1 and 2 above; or, b) accompany it with a written offer, valid for at least three years, to give any third party free (except for a nominal charge for the cost of distribution) a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Paragraphs 1 and 2 above; or, c) accompany it with the information you received as to where the corresponding source code may be obtained. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form alone.) Source code for a work means the preferred form of the work for making modifications to it. For an executable file, complete source code means all the source code for all modules it contains; but, as a special exception, it need not include source code for modules which are standard libraries that accompany the operating system on which the executable file runs, or for standard header files or definitions files that accompany that operating system. 4. You may not copy, modify, sublicense, distribute or transfer the Program except as expressly provided under this General Public License. Any attempt otherwise to copy, modify, sublicense, distribute or transfer the Program is void, and will automatically terminate your rights to use the Program under this License. However, parties who have received copies, or rights to use copies, from you under this General Public License will not have their licenses terminated so long as such parties remain in full compliance. 5. By copying, distributing or modifying the Program (or any work based on the Program) you indicate your acceptance of this license to do so, and all its terms and conditions. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. 7. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of the license which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the license, you may choose any version ever published by the Free Software Foundation. 8. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 9. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 10. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS Appendix: How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to humanity, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) 19yy This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) 19xx name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (a program to direct compilers to make passes at assemblers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice That's all there is to it! --- The Artistic License 1.0 --- This software is Copyright (c) 2014 - 2021 by Thomas Klausner. This is free software, licensed under: The Artistic License 1.0 The Artistic License Preamble The intent of this document is to state the conditions under which a Package may be copied, such that the Copyright Holder maintains some semblance of artistic control over the development of the package, while giving the users of the package the right to use and distribute the Package in a more-or-less customary fashion, plus the right to make reasonable modifications. Definitions: - "Package" refers to the collection of files distributed by the Copyright Holder, and derivatives of that collection of files created through textual modification. - "Standard Version" refers to such a Package if it has not been modified, or has been modified in accordance with the wishes of the Copyright Holder. - "Copyright Holder" is whoever is named in the copyright or copyrights for the package. - "You" is you, if you're thinking about copying or distributing this Package. - "Reasonable copying fee" is whatever you can justify on the basis of media cost, duplication charges, time of people involved, and so on. (You will not be required to justify it to the Copyright Holder, but only to the computing community at large as a market that must bear the fee.) - "Freely Available" means that no fee is charged for the item itself, though there may be fees involved in handling the item. It also means that recipients of the item may redistribute it under the same conditions they received it. 1. You may make and give away verbatim copies of the source form of the Standard Version of this Package without restriction, provided that you duplicate all of the original copyright notices and associated disclaimers. 2. You may apply bug fixes, portability fixes and other modifications derived from the Public Domain or from the Copyright Holder. A Package modified in such a way shall still be considered the Standard Version. 3. You may otherwise modify your copy of this Package in any way, provided that you insert a prominent notice in each changed file stating how and when you changed that file, and provided that you do at least ONE of the following: a) place your modifications in the Public Domain or otherwise make them Freely Available, such as by posting said modifications to Usenet or an equivalent medium, or placing the modifications on a major archive site such as ftp.uu.net, or by allowing the Copyright Holder to include your modifications in the Standard Version of the Package. b) use the modified Package only within your corporation or organization. c) rename any non-standard executables so the names do not conflict with standard executables, which must also be provided, and provide a separate manual page for each non-standard executable that clearly documents how it differs from the Standard Version. d) make other distribution arrangements with the Copyright Holder. 4. You may distribute the programs of this Package in object code or executable form, provided that you do at least ONE of the following: a) distribute a Standard Version of the executables and library files, together with instructions (in the manual page or equivalent) on where to get the Standard Version. b) accompany the distribution with the machine-readable source of the Package with your modifications. c) accompany any non-standard executables with their corresponding Standard Version executables, giving the non-standard executables non-standard names, and clearly documenting the differences in manual pages (or equivalent), together with instructions on where to get the Standard Version. d) make other distribution arrangements with the Copyright Holder. 5. You may charge a reasonable copying fee for any distribution of this Package. You may charge any fee you choose for support of this Package. You may not charge a fee for this Package itself. However, you may distribute this Package in aggregate with other (possibly commercial) programs as part of a larger (possibly commercial) software distribution provided that you do not advertise this Package as a product of your own. 6. The scripts and library files supplied as input to or produced as output from the programs of this Package do not automatically fall under the copyright of this Package, but belong to whomever generated them, and may be sold commercially, and may be aggregated with this Package. 7. C or perl subroutines supplied by you and linked into this Package shall not be considered part of this Package. 8. The name of the Copyright Holder may not be used to endorse or promote products derived from this software without specific prior written permission. 9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. The End INSTALL100644001750001750 467514115376150 15242 0ustar00dommdomm000000000000Module-ExtractUse-0.344This is the Perl distribution Module-ExtractUse. Installing Module-ExtractUse is straightforward. ## Installation with cpanm If you have cpanm, you only need one line: % cpanm Module::ExtractUse If it does not have permission to install modules to the current perl, cpanm will automatically set up and install to a local::lib in your home directory. See the local::lib documentation (https://metacpan.org/pod/local::lib) for details on enabling it in your environment. ## Installing with the CPAN shell Alternatively, if your CPAN shell is set up, you should just be able to do: % cpan Module::ExtractUse ## Manual installation As a last resort, you can manually install it. If you have not already downloaded the release tarball, you can find the download link on the module's MetaCPAN page: https://metacpan.org/pod/Module::ExtractUse Untar the tarball, install configure prerequisites (see below), then build it: % perl Build.PL % ./Build && ./Build test Then install it: % ./Build install Or the more portable variation: % perl Build.PL % perl Build % perl Build test % perl Build install If your perl is system-managed, you can create a local::lib in your home directory to install modules to. For details, see the local::lib documentation: https://metacpan.org/pod/local::lib The prerequisites of this distribution will also have to be installed manually. The prerequisites are listed in one of the files: `MYMETA.yml` or `MYMETA.json` generated by running the manual build process described above. ## Configure Prerequisites This distribution requires other modules to be installed before this distribution's installer can be run. They can be found under the "configure_requires" key of META.yml or the "{prereqs}{configure}{requires}" key of META.json. ## Other Prerequisites This distribution may require additional modules to be installed after running Build.PL. Look for prerequisites in the following phases: * to run ./Build, PHASE = build * to use the module code itself, PHASE = runtime * to run tests, PHASE = test They can all be found in the "PHASE_requires" key of MYMETA.yml or the "{prereqs}{PHASE}{requires}" key of MYMETA.json. ## Documentation Module-ExtractUse documentation is available as POD. You can run `perldoc` from a shell to read the documentation: % perldoc Module::ExtractUse For more information on installing Perl modules via CPAN, please see: https://www.cpan.org/modules/INSTALL.html Build.PL100644001750001750 334314115376150 15474 0ustar00dommdomm000000000000Module-ExtractUse-0.344 use strict; use warnings; use Module::Build 0.3601; my $class = Module::Build->subclass(code => <<'EOF'); use File::Copy; use File::Spec::Functions; sub process_grammar_files { my $self = shift; my $grammar='Grammar.pm'; # precompile grammar system("$^X -MParse::RecDescent - grammar Module::ExtractUse::Grammar"); # add $VERSION to grammer open(my $fh,'<',$grammar) || die "cannot read $grammar: $!"; my @content = <$fh>; close $fh; splice(@content,1,0,'our $VERSION=0.344;'."\n"); open(my $out,">",$grammar) || die "cannot write $grammer: $!"; print $out @content; close $out; # move Grammer.pm to right place my $target = catfile(qw(lib Module ExtractUse),$grammar); move($grammar, $target) || die "Could not move precompiled $grammar to lib/Module/ExtractUse/Grammer.pm: $!"; } EOF my %module_build_args = ( 'build_requires' => { 'Module::Build' => '0.28', 'Test::Deep' => '0', 'Test::More' => '0', 'Test::NoWarnings' => '0' }, 'configure_requires' => { 'Module::Build' => '0.28' }, 'requires' => { 'Carp' => '0', 'Parse::RecDescent' => '1.967009', 'Pod::Strip' => '0', 'perl' => '5.008', 'strict' => '0', 'vars' => '0', 'warnings' => '0' }, 'dist_abstract' => 'Find out what modules are used', 'dist_author' => [ 'Thomas Klausner ', 'Kenichi Ishigaki ' ], 'dist_name' => 'Module-ExtractUse', 'dist_version' => '0.344', 'license' => 'perl', 'module_name' => 'Module::ExtractUse', 'module_name' => 'Module::ExtractUse', 'recursive_test_files' => 1, ); my $build = $class->new(%module_build_args); $build->add_build_element('grammar'); $build->create_build_script; dist.ini100644001750001750 72714115376150 15627 0ustar00dommdomm000000000000Module-ExtractUse-0.344name = Module-ExtractUse author = Thomas Klausner author = Kenichi Ishigaki license = Perl_5 copyright_holder = Thomas Klausner copyright_year = 2014 - 2021 [GatherDir] [PruneCruft] [ManifestSkip] [MetaYAML] [License] [Readme] [Repository] [MetaResources] [CheckChangeLog] [Manifest] [TestRelease] [ConfirmRelease] [AutoPrereqs] [VersionFromModule] [ModuleBuild::Custom] [PodWeaver] [InstallGuide] [MetaJSON] [@Git] xt000755001750001750 014115376150 14470 5ustar00dommdomm000000000000Module-ExtractUse-0.344pod.t100644001750001750 25414115376150 15560 0ustar00dommdomm000000000000Module-ExtractUse-0.344/xt#!/usr/bin/perl use strict; use warnings; use Test::More; eval "use Test::Pod 1.00"; plan skip_all => "Test::Pod 1.00 required for testing POD" if $@; all_pod_files_ok(); META.yml100644001750001750 154214115376150 15450 0ustar00dommdomm000000000000Module-ExtractUse-0.344--- abstract: 'Find out what modules are used' author: - 'Thomas Klausner ' - 'Kenichi Ishigaki ' build_requires: Module::Build: '0.28' Test::Deep: '0' Test::More: '0' Test::NoWarnings: '0' configure_requires: Module::Build: '0.28' dynamic_config: 0 generated_by: 'Dist::Zilla version 6.024, CPAN::Meta::Converter version 2.150010' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html version: '1.4' name: Module-ExtractUse requires: Carp: '0' Parse::RecDescent: '1.967009' Pod::Strip: '0' perl: '5.008' strict: '0' vars: '0' warnings: '0' resources: repository: git://github.com/domm/Module-ExtractUse.git version: '0.344' x_generated_by_perl: v5.34.0 x_serialization_backend: 'YAML::Tiny version 1.73' x_spdx_expression: 'Artistic-1.0-Perl OR GPL-1.0-or-later' MANIFEST100644001750001750 74614115376150 15315 0ustar00dommdomm000000000000Module-ExtractUse-0.344# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.024. Build.PL Changes INSTALL LICENSE MANIFEST META.json META.yml README dist.ini example/cpan.pl example/extractuse.pl grammar lib/Module/ExtractUse.pm lib/Module/ExtractUse/Grammar.pm t/01_load.t t/10_basic.t t/20_parse_self.t t/21_comment.t t/22_eval.t t/23_universal_require.t t/24_version.t t/25_utf8.t t/26_pod_encoding.t t/27_module_runtime.t t/28_class_load.t t/80_failing.t xt/pod.t xt/pod_coverage.t META.json100644001750001750 316314115376150 15621 0ustar00dommdomm000000000000Module-ExtractUse-0.344{ "abstract" : "Find out what modules are used", "author" : [ "Thomas Klausner ", "Kenichi Ishigaki " ], "dynamic_config" : 0, "generated_by" : "Dist::Zilla version 6.024, CPAN::Meta::Converter version 2.150010", "license" : [ "perl_5" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", "version" : 2 }, "name" : "Module-ExtractUse", "prereqs" : { "build" : { "requires" : { "Module::Build" : "0.28" } }, "configure" : { "requires" : { "Module::Build" : "0.28" } }, "develop" : { "requires" : { "Test::More" : "0" } }, "runtime" : { "requires" : { "Carp" : "0", "Parse::RecDescent" : "1.967009", "Pod::Strip" : "0", "perl" : "5.008", "strict" : "0", "vars" : "0", "warnings" : "0" } }, "test" : { "requires" : { "Test::Deep" : "0", "Test::More" : "0", "Test::NoWarnings" : "0" } } }, "release_status" : "stable", "resources" : { "repository" : { "type" : "git", "url" : "git://github.com/domm/Module-ExtractUse.git", "web" : "https://github.com/domm/Module-ExtractUse" } }, "version" : "0.344", "x_generated_by_perl" : "v5.34.0", "x_serialization_backend" : "Cpanel::JSON::XS version 4.26", "x_spdx_expression" : "Artistic-1.0-Perl OR GPL-1.0-or-later" } t000755001750001750 014115376150 14300 5ustar00dommdomm000000000000Module-ExtractUse-0.34401_load.t100644001750001750 22114115376150 16017 0ustar00dommdomm000000000000Module-ExtractUse-0.344/t#!/usr/bin/perl -w use strict; use Test::More tests=>2; BEGIN { use_ok('Module::ExtractUse'); use_ok('Module::ExtractUse::Grammar'); } 22_eval.t100644001750001750 1054014115376150 16077 0ustar00dommdomm000000000000Module-ExtractUse-0.344/tuse Test::More tests => 48; use strict; use warnings; use Module::ExtractUse; { my $semi = 'eval "use Test::Pod 1.00;";'; my $p = Module::ExtractUse->new; $p->extract_use( \$semi ); ok( $p->used( 'Test::Pod' ) ); ok( $p->used_in_eval( 'Test::Pod' ) ); ok(!$p->used_out_of_eval( 'Test::Pod' ) ); } { my $nosemi = "eval 'use Test::Pod 1.00';"; my $p = Module::ExtractUse->new; $p->extract_use( \$nosemi ); ok( $p->used( 'Test::Pod' ) ); ok( $p->used_in_eval( 'Test::Pod' ) ); ok(!$p->used_out_of_eval( 'Test::Pod' ) ); } { my $qq = "eval qq{use Test::Pod 1.00}"; my $p = Module::ExtractUse->new; $p->extract_use( \$qq ); ok( $p->used( 'Test::Pod' ), 'qq brace' ); ok( $p->used_in_eval( 'Test::Pod' ), 'qq brace' ); ok(!$p->used_out_of_eval( 'Test::Pod' ), 'qq brace' ); } { my $qq = "eval qq+use Test::Pod+"; my $p = Module::ExtractUse->new; $p->extract_use( \$qq ); ok( $p->used( 'Test::Pod' ), 'qq plus' ); ok( $p->used_in_eval( 'Test::Pod' ), 'qq plus' ); ok(!$p->used_out_of_eval( 'Test::Pod' ), 'qq plus' ); } { my $qq = "eval qq(use Test::Pod)"; my $p = Module::ExtractUse->new; $p->extract_use( \$qq ); ok( $p->used( 'Test::Pod' ), 'qq paren' ); ok( $p->used_in_eval( 'Test::Pod' ), 'qq paren' ); ok(!$p->used_out_of_eval( 'Test::Pod' ), 'qq paren' ); } { my $q = "eval q< use Test::Pod>"; my $p = Module::ExtractUse->new; $p->extract_use( \$q ); ok( $p->used( 'Test::Pod' ), 'q angle' ); ok( $p->used_in_eval( 'Test::Pod' ), 'q angle' ); ok(!$p->used_out_of_eval( 'Test::Pod' ), 'q angle' ); } { my $q = "eval q/use Test::Pod/"; my $p = Module::ExtractUse->new; $p->extract_use( \$q ); ok( $p->used( 'Test::Pod' ), 'q slash' ); ok( $p->used_in_eval( 'Test::Pod' ), 'q slash' ); ok(!$p->used_out_of_eval( 'Test::Pod' ), 'q slash' ); } # reported by DAGOLDEN@cpan.org as [rt.cpan.org #19302] { my $varversion = q{my $ver=1.22; eval "use Test::Pod $ver;"}; my $p = Module::ExtractUse->new; $p->extract_use( \$varversion ); ok( $p->used( 'Test::Pod' ) ); ok( $p->used_in_eval( 'Test::Pod' ) ); ok(!$p->used_out_of_eval( 'Test::Pod' ) ); } { my $varversion = q{my $ver=1.22; eval 'use Test::Pod $ver';}; my $p = Module::ExtractUse->new; $p->extract_use( \$varversion ); ok( $p->used( 'Test::Pod' ) ); ok( $p->used_in_eval( 'Test::Pod' ) ); ok(!$p->used_out_of_eval( 'Test::Pod' ) ); } { my $semi = 'eval"use Test::Pod 1.00;";'; my $p = Module::ExtractUse->new; $p->extract_use( \$semi ); ok( $p->used( 'Test::Pod' ), 'no spaces between eval and expr with semicolon' ); ok( $p->used_in_eval( 'Test::Pod' ) ); ok(!$p->used_out_of_eval( 'Test::Pod' ) ); } { my $nosemi = "eval'use Test::Pod 1.00';"; my $p = Module::ExtractUse->new; $p->extract_use( \$nosemi ); ok( $p->used( 'Test::Pod' ), 'no spaces between eval and expr w/o semicolon' ); ok( $p->used_in_eval( 'Test::Pod' ) ); ok(!$p->used_out_of_eval( 'Test::Pod' ) ); } { my $q = "eval { use Test::Pod }"; my $p = Module::ExtractUse->new; $p->extract_use( \$q ); ok( $p->used( 'Test::Pod' ), 'block' ); ok( $p->used_in_eval( 'Test::Pod' ), 'block' ); ok(!$p->used_out_of_eval( 'Test::Pod' ), 'block' ); } { my $q = "eval { use Test::Pod; { use Test::Pod::Coverage; } }"; my $p = Module::ExtractUse->new; $p->extract_use( \$q ); ok( $p->used( 'Test::Pod' ), 'block in block 1' ); ok( $p->used_in_eval( 'Test::Pod' ), 'block in block 1' ); ok(!$p->used_out_of_eval( 'Test::Pod' ), 'block in block 1' ); ok( $p->used( 'Test::Pod::Coverage' ), 'block in block 1' ); ok( $p->used_in_eval( 'Test::Pod::Coverage' ), 'block in block 1' ); ok(!$p->used_out_of_eval( 'Test::Pod::Coverage' ), 'block in block 1' ); } { my $q = "eval { { use Test::Pod; } use Test::Pod::Coverage }"; my $p = Module::ExtractUse->new; $p->extract_use( \$q ); ok( $p->used( 'Test::Pod' ), 'block in block 2' ); ok( $p->used_in_eval( 'Test::Pod' ), 'block in block 2' ); ok(!$p->used_out_of_eval( 'Test::Pod' ), 'block in block 2' ); ok( $p->used( 'Test::Pod::Coverage' ), 'block in block 2' ); ok( $p->used_in_eval( 'Test::Pod::Coverage' ), 'block in block 2' ); ok(!$p->used_out_of_eval( 'Test::Pod::Coverage' ), 'block in block 2' ); } 25_utf8.t100644001750001750 76214115376150 16006 0ustar00dommdomm000000000000Module-ExtractUse-0.344/t#!/usr/bin/perl -w use strict; use Test::More; use Test::Deep; use Test::NoWarnings; use Module::ExtractUse; my @tests= ( ['use utf8;','utf8'], ['use Foo::Bar123;','Foo::Bar123'], ['use Foo::Bar3;','Foo::Bar3'], ['use Bar3;','Bar3'], ['use bar3;','bar3'], ); plan tests => (scalar @tests)+1; foreach my $t (@tests) { my ($code,$expected)=@$t; my $p=Module::ExtractUse->new; my $used=$p->extract_use(\$code)->string; is($used,$expected,"is $expected"); } 10_basic.t100644001750001750 1650414115376150 16234 0ustar00dommdomm000000000000Module-ExtractUse-0.344/t#!/usr/bin/perl -w use strict; use Test::More; use Test::Deep; use Test::NoWarnings; use Module::ExtractUse; my @tests= ( #1 ['useSome::Module1;',undef,undef,undef], ['use Some::Module2;',[qw(Some::Module2)],undef,[qw(Some::Module2)]], ["yadda yadda useless stuff;".'use Some::Module3 qw/$VERSION @EXPORT @EXPORT_OK/;',[qw(Some::Module3)],undef,[qw(Some::Module3)]], ['use base qw(Class::DBI4 Foo::Bar5);',[qw(Class::DBI4 Foo::Bar5)],undef,[qw(Class::DBI4 Foo::Bar5)]], ['if ($foo) { use Foo::Bar6; }',[qw(Foo::Bar6)],undef,[qw(Foo::Bar6)]], #6 ['use constant dl_ext => ".$Config{dlext}";',[qw(constant)],undef,[qw(constant)]], ['use strict;',[qw(strict)],undef,[qw(strict)]], ['use Foo8 qw/asdfsdf/;',[qw(Foo8)],undef,[qw(Foo8)]], ['$use=stuff;',undef,undef,undef], ['abuse Stuff;',undef,undef,undef], #11 ['package Module::ScanDeps;',undef,undef,undef], ['if ($foo) { require "Bar7"; }',[qw(Bar7)],undef,[qw(Bar7)]], ['require "some/stuff.pl";',undef,undef,undef], ['require "Foo/Bar.pm9";',[qw(Foo::Bar9)],undef,[qw(Foo::Bar9)]], ['require Foo10;',['Foo10'],undef,['Foo10']], #16 ["use Some::Module11;use Some::Other::Module12;",[qw(Some::Module11 Some::Other::Module12)],undef,[qw(Some::Module11 Some::Other::Module12)]], ["use Some::Module;\nuse Some::Other::Module;",[qw(Some::Module Some::Other::Module)],undef,[qw(Some::Module Some::Other::Module)]], ['use vars qw/$VERSION @EXPORT @EXPORT_OK/;',[qw(vars)],undef,[qw(vars)]], ['unless ref $obj; # use ref as $obj',undef,undef,undef], ['$self->_carp("$name trigger deprecated: use before_$name or after_$name instead");',undef,undef,undef], #21 ["use base 'Exporter1';",['Exporter1'],undef,['Exporter1']], ['use base ("Class::DBI2");',['Class::DBI2'],undef,['Class::DBI2']], ['use base "Class::DBI3";',['Class::DBI3'],undef,['Class::DBI3']], ['use base qw/Class::DBI4 Foo::Bar5/;',[qw(Class::DBI4 Foo::Bar5)],undef,[qw(Class::DBI4 Foo::Bar5)]], ['use base ("Class::DBI6","Foo::Bar7");',[qw(Class::DBI6 Foo::Bar7)],undef,[qw(Class::DBI6 Foo::Bar7)]], #26 ['use base "Class::DBI8","Foo::Bar9";',[qw(Class::DBI8 Foo::Bar9)],undef,[qw(Class::DBI8 Foo::Bar9)]], ["use parent 'Exporter1';",[qw(parent Exporter1)],undef,[qw(parent Exporter1)]], ['use parent ("Class::DBI2");',[qw(parent Class::DBI2)],undef,[qw(parent Class::DBI2)]], ['use parent "Class::DBI3";',[qw(parent Class::DBI3)],undef,[qw(parent Class::DBI3)]], ['use parent qw/Class::DBI4 Foo::Bar5/;',[qw(parent Class::DBI4 Foo::Bar5)],undef,[qw(parent Class::DBI4 Foo::Bar5)]], #31 ['use parent ("Class::DBI6","Foo::Bar7");',[qw(parent Class::DBI6 Foo::Bar7)],undef,[qw(parent Class::DBI6 Foo::Bar7)]], ['use parent "Class::DBI8","Foo::Bar9";',[qw(parent Class::DBI8 Foo::Bar9)],undef,[qw(parent Class::DBI8 Foo::Bar9)]], ["use parent -norequire, 'Exporter1';",[qw(parent)],undef,[qw(parent)]], ['use parent (-norequire, "Class::DBI2");',[qw(parent)],undef,[qw(parent)]], ['use parent "-norequire", "Class::DBI3";',[qw(parent)],undef,[qw(parent)]], #36 ['use parent qw/-norequire Class::DBI4 Foo::Bar5/;',[qw(parent)],undef,[qw(parent)]], ['use parent (-norequire,"Class::DBI6","Foo::Bar7");',[qw(parent)],undef,[qw(parent)]], ['use parent -norequire,"Class::DBI8","Foo::Bar9";',[qw(parent)],undef,[qw(parent)]], ['eval "use Test::Pod 1.06";',['Test::Pod'],['Test::Pod'],undef], [q{#!/usr/bin/perl -w use strict; use Test::More; eval "use Test::Pod 1.06"; eval 'use Test::Pod::Coverage 1.06;'; plan skip_all => "Test::Pod 1.06 required for testing POD" if $@; all_pod_files_ok();},[qw(strict Test::More Test::Pod Test::Pod::Coverage)],[qw(Test::Pod Test::Pod::Coverage)],[qw(strict Test::More)]], # reported & fixed by barbie (b56e244da) #41 ["use base qw( Data::Phrasebook::Loader::Base Data::Phrasebook::Debug );",[qw(Data::Phrasebook::Loader::Base Data::Phrasebook::Debug)], undef,[qw(Data::Phrasebook::Loader::Base Data::Phrasebook::Debug)]], # RT83569 (ribasushi) [q[ use warnings; use strict; use Test::More; use lib qw(t/lib); use DBICTest; require DBIx::Class; unless ( DBIx::Class::Optional::Dependencies->req_ok_for ('test_pod') ) { my $missing = DBIx::Class::Optional::Dependencies->req_missing_for ('test_pod'); $ENV{RELEASE_TESTING} ? die ("Failed to load release-testing module requirements: $missing") : plan skip_all => "Test needs: $missing" } # this has already been required but leave it here for CPANTS static analysis require Test::Pod; my $generated_pod_dir = 'maint/.Generated_Pod'; Test::Pod::all_pod_files_ok( 'lib', -d $generated_pod_dir ? $generated_pod_dir : () ); ],[qw(warnings strict Test::More lib DBIx::Class DBICTest Test::Pod)],undef,[qw(warnings strict Test::More lib DBIx::Class DBICTest Test::Pod)]], [q[use Foo;say "Failed to load the release-testing modules we require: Bar;"],[qw(Foo)],undef,[qw(Foo)]], [q[use Foo;say "Failed to load the release-testing modules we require: Bar";],[qw(Foo)],undef,[qw(Foo)]], [q[use Foo;say "Failed to load the release-testing modules we require: Bar;"],[qw(Foo)],undef,[qw(Foo)]], [q[use Data::Section -setup;],[qw(Data::Section)],undef,[qw(Data::Section)]], [q[use Data::Section { installer => method_installer }, -setup;],[qw(Data::Section)],undef,[qw(Data::Section)]], [q[use Data::Section -setup => { header_re => qr/^\@\@\s*(\S+)/ };],[qw(Data::Section)],undef,[qw(Data::Section)]], ['use Foo::Bar29 ();',[qw(Foo::Bar29)],undef,[qw(Foo::Bar29)]], ['use Min::Version30 1.2 ();',[qw(Min::Version30)],undef,[qw(Min::Version30)]], ['use MooseX::Types -declare => [qw(BorderStyle Component Container)];',[qw(MooseX::Types)],undef,[qw(MooseX::Types)]], ['eval { require Foo::Bar32 };',[qw(Foo::Bar32)],[qw(Foo::Bar32)],undef], ['do { use Foo::Bar33 };',[qw(Foo::Bar33)],undef,[qw(Foo::Bar33)]], ['use version;',[qw(version)],undef,[qw(version)]], ['use version 0.77;',[qw(version)],undef,[qw(version)]], ['$config->use or die;',undef,undef,undef], ['$config->require or die;',undef,undef,undef], [q{ __DATA__ @@ some template use strict; __END__ use warnings; },undef,undef,undef], ['noSome::Module1;',undef,undef,undef], ['no Some::Module2;',[qw(Some::Module2)],undef,[qw(Some::Module2)]], ["yadda yadda noless stuff;".'no Some::Module3 qw/$VERSION @EXPORT @EXPORT_OK/;',[qw(Some::Module3)],undef,[qw(Some::Module3)]], ['no base qw(Class::DBI4 Foo::Bar5);',[qw(Class::DBI4 Foo::Bar5)],undef,[qw(Class::DBI4 Foo::Bar5)]], ['if ($foo) { no Foo::Bar6; }',[qw(Foo::Bar6)],undef,[qw(Foo::Bar6)]], #6 ['no constant dl_ext => ".$Config{dlext}";',[qw(constant)],undef,[qw(constant)]], ['no strict;',[qw(strict)],undef,[qw(strict)]], ['no Foo8 qw/asdfsdf/;',[qw(Foo8)],undef,[qw(Foo8)]], ['$no=stuff;',undef,undef,undef], ['abno Stuff;',undef,undef,undef], ); plan tests => (scalar @tests)*3+1; foreach my $t (@tests) { my ($code, @expected)=@$t; my $p=Module::ExtractUse->new; my @used = ( $p->extract_use(\$code)->arrayref || undef, $p->extract_use(\$code)->arrayref_in_eval || undef, $p->extract_use(\$code)->arrayref_out_of_eval || undef, ); for(my $i = 0; $i < @used; ++$i) { if (ref($expected[$i]) eq 'ARRAY') { cmp_bag($used[$i]||[],$expected[$i],$i.": ".$code); } elsif (!defined $expected[$i]) { is(undef,$used[$i],$i.": ".$code); } else { is($used[$i],$expected[$i],$i.": ".$code); } } } 24_version.t100644001750001750 62614115376150 16603 0ustar00dommdomm000000000000Module-ExtractUse-0.344/t#!/usr/bin/perl -w use strict; use Test::More tests => 3; use Module::ExtractUse; { my $p = Module::ExtractUse->new; is $p->extract_use(\(<<'CODE'))->string, '5.010'; use 5.010; CODE } { my $p = Module::ExtractUse->new; is $p->extract_use(\(<<'CODE'))->string, '5.006_001'; use 5.006_001; CODE } { my $p = Module::ExtractUse->new; is $p->extract_use(\(<<'CODE'))->string, '5.008'; use 5.008; CODE } 21_comment.t100644001750001750 272614115376150 16600 0ustar00dommdomm000000000000Module-ExtractUse-0.344/t#!/usr/bin/perl -w use strict; use Test::More tests => 8; use Module::ExtractUse; # The original problem code { my $p = Module::ExtractUse->new; is $p->extract_use(\(<<'CODE'))->string, 'Apache::DBI'; BEGIN { # Only use Apache::DBI on dev. if (-f '/var/run/httpd-dev01') { # Must be loaded before DBI. require Apache::DBI; Apache::DBI->import(); } } CODE } { my $p = Module::ExtractUse->new; is $p->extract_use(\(<<'CODE'))->string, 'Apache::DBI'; # require Apache::DBI require Apache::DBI CODE } { my $p = Module::ExtractUse->new; is $p->extract_use(\(<<'CODE'))->string, ''; # require Apache::DBI # require Apache::DBI CODE } { my $p = Module::ExtractUse->new; is $p->extract_use(\(<<'CODE'))->string, 'Apache::DBI'; # foo require Apache::DBI CODE } { my $p = Module::ExtractUse->new; is $p->extract_use(\(<<'CODE'))->string, 'Apache::DBI'; # use some Apache::DBI, yo require Apache::DBI CODE } { my $p = Module::ExtractUse->new; is $p->extract_use(\(<<'CODE'))->string, 'Apache::DBI'; # require Apache::DBI use Apache::DBI CODE } { my $p = Module::ExtractUse->new; is $p->extract_use(\(<<'CODE'))->string, 'Apache::DBI'; # yo, require Apache::DBI require Apache::DBI CODE } # Handle trailing comments which become comment lines after the split on # ';'. { my $p = Module::ExtractUse->new; is $p->extract_use(\(<<'CODE'))->string, '5.008 strict warnings'; use 5.008; # Because we want to # Another comment use strict; use warnings; CODE } 80_failing.t100644001750001750 163514115376150 16552 0ustar00dommdomm000000000000Module-ExtractUse-0.344/t#!/usr/bin/perl -w use strict; #use Test::More skip_all=>'parser is known to not catch those'; use Test::More; use Module::ExtractUse; my @tests= ( ['use base (Class::DBI,FooBar);','Class::DBI Foo::Bar'], ['use constant lib_ext => $Config{lib_ext};','constant'], [q[use Foo;say "Failed to load the release-testing modules we require Bar;";],'Foo','"require" in some string'], [q[eval { { use Test::Pod } use Test::Pod::Coverage }],'Test::Pod Test::Pod::Coverage','without semicolon at the end of the BLOCK'], ); plan tests => scalar @tests; foreach my $t (@tests) { my ($code,$expected,$testname)=@$t; $testname ||=$code; my $p=Module::ExtractUse->new; my $used=$p->extract_use(\$code)->string; TODO: { local $TODO='known to not work'; if ($used) { is($used,$expected,$testname); } else { is(undef,$expected,$testname); } } } example000755001750001750 014115376150 15470 5ustar00dommdomm000000000000Module-ExtractUse-0.344cpan.pl100644001750001750 144714115376150 17114 0ustar00dommdomm000000000000Module-ExtractUse-0.344/example#!/usr/bin/perl -w use strict; use CPANPLUS::Backend; use File::Find; use Module::ExtractUse; my $cp=new CPANPLUS::Backend; my $filter=shift @ARGV || '^Class::DBI$'; my $hide_own=1; my $mod_search=$cp->search(type=>'module', list => [$filter]); my %seen; foreach my $module (values %{$mod_search}) { my $package=$module->package; next unless $package; next if $seen{$package}++; print "*** CHECKING DISTRIBUTION $package\n"; $module->fetch || next; my $extracted_to=$module->extract; find(\&find_pms,$extracted_to); } sub find_pms { return unless /\.pm$/; return if $File::Find::dir=~m|/t/|; my $p=Module::ExtractUse->new; my @used=$p->extract_use($_)->array; print "\n$File::Find::dir $_\n * "; print join("\n * ",@used),"\n";; } pod_coverage.t100644001750001750 35214115376150 17432 0ustar00dommdomm000000000000Module-ExtractUse-0.344/xt#!/usr/bin/perl use strict; use warnings; use Test::More; eval "use Test::Pod::Coverage 1.00"; plan skip_all => "Test::Pod::Coverage 1.00 required for testing POD coverage" if $@; plan tests=>1; pod_coverage_ok('Module::ExtractUse'); 28_class_load.t100644001750001750 635414115376150 17252 0ustar00dommdomm000000000000Module-ExtractUse-0.344/t#!/usr/bin/perl -w use strict; use Test::More; use Test::Deep; use Test::NoWarnings; use Module::ExtractUse; my @tests= ( #1 ['load_class("Some::Module");',[qw(Some::Module)],undef,[qw(Some::Module)]], ['load_class("Some::Module", { -version => 1.23 });',[qw(Some::Module)],undef,[qw(Some::Module)]], ['Class::Load::load_class("Some::Module");',[qw(Some::Module)],undef,[qw(Some::Module)]], ['Class::Load::load_class("Some::Module", { -version => 1.23 });',[qw(Some::Module)],undef,[qw(Some::Module)]], ['try_load_class("Some::Module");',[qw(Some::Module)],undef,[qw(Some::Module)]], ['try_load_class("Some::Module", { -version => 1.23, other => "string" });',[qw(Some::Module)],undef,[qw(Some::Module)]], ['Class::Load::try_load_class("Some::Module");',[qw(Some::Module)],undef,[qw(Some::Module)]], ['Class::Load::try_load_class("Some::Module", { -version => 1.23 });',[qw(Some::Module)],undef,[qw(Some::Module)]], ['load_optional_class("Some::Module");',[qw(Some::Module)],undef,[qw(Some::Module)]], ['load_optional_class("Some::Module", { -version => 1.23 });',[qw(Some::Module)],undef,[qw(Some::Module)]], ['Class::Load::load_optional_class("Some::Module");',[qw(Some::Module)],undef,[qw(Some::Module)]], ['Class::Load::load_optional_class("Some::Module", { -version => 1.23 });',[qw(Some::Module)],undef,[qw(Some::Module)]], ['load_first_existing_class("Some::Module");', [qw(Some::Module)],undef,[qw(Some::Module)]], ['load_first_existing_class("Some::Module", "Other::Module", "Third::Module::Too");', [qw(Some::Module Other::Module Third::Module::Too)],undef,[qw(Some::Module Other::Module Third::Module::Too)]], ['load_first_existing_class("Some::Module", { -version => 1.23 });', [qw(Some::Module)],undef,[qw(Some::Module)]], ['load_first_existing_class("Some::Module", { -version => 1.23 }, "Other::Module", "Third::Module::Too", { -version => 4.56 } );', [qw(Some::Module Other::Module Third::Module::Too)],undef,[qw(Some::Module Other::Module Third::Module::Too)]], ['$foo->load_class("Some::Module")', undef, undef, undef], ['Other::Namespace::load_class("Some::Module")', undef, undef, undef], ['$foo->try_load_class("Some::Module")', undef, undef, undef], ['Other::Namespace::try_load_class("Some::Module")', undef, undef, undef], ['$foo->load_optional_class("Some::Module")', undef, undef, undef], ['Other::Namespace::load_optional_class("Some::Module")', undef, undef, undef], ['$foo->load_first_existing_class("Some::Module")', undef, undef, undef], ['Other::Namespace::load_first_existing_class("Some::Module")', undef, undef, undef], ); plan tests => (scalar @tests)*3+1; foreach my $t (@tests) { my ($code, @expected)=@$t; my $p=Module::ExtractUse->new; my @used = ( $p->extract_use(\$code)->arrayref || undef, $p->extract_use(\$code)->arrayref_in_eval || undef, $p->extract_use(\$code)->arrayref_out_of_eval || undef, ); for(my $i = 0; $i < @used; ++$i) { if (ref($expected[$i]) eq 'ARRAY') { cmp_bag($used[$i]||[],$expected[$i],$i.": ".$code); } elsif (!defined $expected[$i]) { is(undef,$used[$i],$i.": ".$code); } else { is($used[$i],$expected[$i],$i.": ".$code); } } } 20_parse_self.t100644001750001750 353114115376150 17253 0ustar00dommdomm000000000000Module-ExtractUse-0.344/t#!/usr/bin/perl -w use strict; use Test::More tests=>13; use Test::Deep; use Test::NoWarnings; use Module::ExtractUse; # test testfile { my $p=Module::ExtractUse->new; my @used=$p->extract_use($0)->array; cmp_deeply(\@used, bag(qw(strict Test::More Test::Deep Test::NoWarnings Module::ExtractUse)), 'modules used in this test script' ); @used=$p->extract_use($0)->array_in_eval; cmp_deeply(\@used, [], 'optional modules used in this test script' ); @used=$p->extract_use($0)->array_out_of_eval; cmp_deeply(\@used, bag(qw(strict Test::More Test::Deep Test::NoWarnings Module::ExtractUse)), 'mandatory modules used in this test script' ); } # test Module::ExtractUse { my $p=Module::ExtractUse->new; $p->extract_use('lib/Module/ExtractUse.pm'); cmp_deeply($p->arrayref, bag(qw(strict warnings Pod::Strip Parse::RecDescent Module::ExtractUse::Grammar Carp 5.008)), 'modules used in this Module::ExtractUsed'); cmp_deeply([$p->arrayref_in_eval], [], 'optional modules used in this Module::ExtractUsed'); cmp_deeply($p->arrayref_out_of_eval, bag(qw(strict warnings Pod::Strip Parse::RecDescent Module::ExtractUse::Grammar Carp 5.008)), 'mandatory modules used in this Module::ExtractUsed'); my $used=$p->used; is($used->{'strict'},1,'strict via hash lookup'); is($p->used('strict'),1,'strict via used method'); my $used_in_eval=$p->used_in_eval; is(!$used_in_eval->{'strict'},1,'strict via in-eval hash lookup'); is(!$p->used_in_eval('strict'),1,'strict via used_in_eval method'); my $used_out_of_eval=$p->used_out_of_eval; is($used_out_of_eval->{'strict'},1,'strict via out-of-eval hash lookup'); is($p->used_out_of_eval('strict'),1,'strict via used_out_of_eval method'); } 26_pod_encoding.t100644001750001750 46614115376150 17552 0ustar00dommdomm000000000000Module-ExtractUse-0.344/tuse strict; use Test::More tests => 1; use Module::ExtractUse; # The following test dies with Pod::Simple >= 3.26 # because of the nested encoding { my $p = Module::ExtractUse->new; is $p->extract_use(\(<<'CODE'))->string, '5.010'; =pod =head1 NAME =encoding utf-8 =encoding utf-8 =cut use 5.010; CODE } 27_module_runtime.t100644001750001750 446314115376150 20174 0ustar00dommdomm000000000000Module-ExtractUse-0.344/t#!/usr/bin/perl -w use strict; use Test::More; use Test::Deep; use Test::NoWarnings; use Module::ExtractUse; my @tests= ( #1 ['require_module("Some::Module");', [qw(Some::Module)], undef, [qw(Some::Module)]], ['Module::Runtime::require_module("Some::Module");', [qw(Some::Module)], undef, [qw(Some::Module)]], ['use_module("Some::Module");', [qw(Some::Module)], undef, [qw(Some::Module)]], ['Module::Runtime::use_module("Some::Module");', [qw(Some::Module)], undef, [qw(Some::Module)]], ['use_module("Some::Module", 1.23);', [qw(Some::Module)], undef, [qw(Some::Module)]], ['Module::Runtime::use_module("Some::Module", 1.23);', [qw(Some::Module)], undef, [qw(Some::Module)]], ['use_package_optimistically("Some::Module");', [qw(Some::Module)], undef, [qw(Some::Module)]], ['Module::Runtime::use_package_optimistically("Some::Module");', [qw(Some::Module)], undef, [qw(Some::Module)]], ['use_package_optimistically("Some::Module", 1.23);', [qw(Some::Module)], undef, [qw(Some::Module)]], ['Module::Runtime::use_package_optimistically("Some::Module", 1.23);', [qw(Some::Module)], undef, [qw(Some::Module)]], ['$foo->require_module("Some::Module");', undef, undef, undef ], ['$foo->use_module("Some::Module");', undef, undef, undef ], ['$foo->use_package_optimistically("Some::Module");', undef, undef, undef ], ['Other::Namespace::require_module("Some::Module");', undef, undef, undef ], ['use_module("Some::Module", "NotAVersion");', undef, undef, undef ], ['use_module("Some::Module", v1.23, "OtherArg");', undef, undef, undef ], ['use_module($Some::Variable);', undef, undef, undef ], ); plan tests => (scalar @tests)*3+1; foreach my $t (@tests) { my ($code, @expected)=@$t; my $p=Module::ExtractUse->new; my $used = $p->extract_use(\$code); my @used = ( $p->extract_use(\$code)->arrayref || undef, $p->extract_use(\$code)->arrayref_in_eval || undef, $p->extract_use(\$code)->arrayref_out_of_eval || undef, ); for(my $i = 0; $i < @used; ++$i) { if (ref($expected[$i]) eq 'ARRAY') { cmp_bag($used[$i]||[],$expected[$i],$i.": ".$code); } elsif (!defined $expected[$i]) { is(undef,$used[$i],$i.": ".$code); } else { is($used[$i],$expected[$i],$i.": ".$code); } } } extractuse.pl100644001750001750 732214115376150 20360 0ustar00dommdomm000000000000Module-ExtractUse-0.344/example#!/usr/bin/perl # bin/extractuse # Extract modules used by this distribution # # $Id: extractuse 6744 2009-04-29 14:32:07Z FREQUENCY@cpan.org $ # # This package and its contents are released by the author into the # Public Domain, to the full extent permissible by law. For additional # information, please see the included `LICENSE' file. use strict; use warnings; use Pod::Usage; =head1 NAME extractuse - determine what Perl modules are used in a given file =head1 VERSION Version 1.0 ($Id: extractuse 6744 2009-04-29 14:32:07Z FREQUENCY@cpan.org $) =cut use version; our $VERSION = qv('1.0'); =head1 SYNOPSIS Usage: extractuse filename [...] Given a single path referring to a file containing Perl code, this script will determine the modules included statically. This means that files included by C and C will be retrieved and listed. =head1 DESCRIPTION This script is safe because the Perl code is never executed, only parsed by C or C, which are two different implementations of this idea. This module will prefer C if it is installed, because it uses PPI to do its parsing, rather than its own separate grammar. However, one limitation of this script is that only statically included modules can be found - that is, they have to be C'd or C'd at runtime, and not inside an eval string, for example. Because eval strings are completely dynamic, there is no way of determining which modules might be loaded under different conditions. =cut my @files = @ARGV; my $class = 'Module::Extract::Use'; # if no parameters are passed, give usage information unless (@files) { pod2usage(msg => 'Please supply at least one filename to analyze'); exit(); } eval { require Module::Extract::Use; }; if ($@) { $class = 'Module::ExtractUse'; eval { require Module::ExtractUse; }; if ($@) { print {*STDERR} "No usable module found; exiting...\n"; exit 1; } } eval { require Module::CoreList; }; my $corelist = not $@; foreach my $file (@files) { my $mlist; unless (-e $file and -r _) { printf {*STDERR} "Failed to open file '%s' for reading\n", $file; next; } if ($class eq 'Module::ExtractUse') { $mlist = Module::ExtractUse->new; $mlist->extract_use($file); dumplist($file, $mlist->array); } else { $mlist = Module::Extract::Use->new; dumplist($file, $mlist->get_modules($file)); } } sub dumplist { my ($file, @mods) = @_; printf "Modules required by %s:\n", $file; my $core = 0; my $extern = 0; foreach my $name (@mods) { print ' - ' . $name; if ($corelist) { my $ver = Module::CoreList->first_release($name); if (defined $ver) { printf ' (first released with Perl %s)', $ver; $core++; } else { $extern++; } } print "\n"; } printf "%d module(s) in core, %d external module(s)\n\n", $core, $extern; } =head1 AUTHOR Jonathan Yu Efrequency@cpan.orgE =head1 SUPPORT For support details, please look at C or C and use the corresponding support methods. =head1 LICENSE Copyleft (C) 2009 by Jonathan Yu . All rights reversed. I, the copyright holder of this script, hereby release the entire contents therein into the public domain. This applies worldwide, to the extent that it is permissible by law. In case this is not legally possible, I grant any entity the right to use this work for any purpose, without any conditions, unless such conditions are required by law. If not applicable, you may use this script under the same terms as Perl itself. =head1 SEE ALSO L, L, L, =cut Module000755001750001750 014115376150 16030 5ustar00dommdomm000000000000Module-ExtractUse-0.344/libExtractUse.pm100644001750001750 3372514115376150 20647 0ustar00dommdomm000000000000Module-ExtractUse-0.344/lib/Modulepackage Module::ExtractUse; use strict; use warnings; use 5.008; use Pod::Strip; use Parse::RecDescent 1.967009; use Module::ExtractUse::Grammar; use Carp; our $VERSION = '0.344'; # ABSTRACT: Find out what modules are used #$::RD_TRACE=1; #$::RD_HINT=1; sub new { my $class=shift; return bless { found=>{}, files=>0, },$class; } # Regular expression to detect eval # On newer perl, you can use named capture groups and (?&name) for recursive regex # However, it requires perl newer than 5.008 declared as requirement in this module my $re_block; $re_block = qr { ( # eval BLOCK, corresponding to the group 10 in the entire regex \{ ((?: (?> [^{}]+ ) # Non-braces without backtracking | (??{$re_block}) # Recurse to group 10 )*) \} ) }xs; my $re = qr{ \G(.*?) # group 1 eval (?: (?:\s+ (?: qq?\((.*?)\) # eval q(), group 2 | qq?\[(.*?)\] # eval q[], group 3 | qq?{(.*?)} # eval q{}, group 4 | qq?<(.*?)> # eval q<>, group 5 | qq?(\S)(.*?)\6 # eval q'' or so, group 6, group 7 ) ) | (?:\s*(?: (?:(['"])(.*?)\8) # eval '' or eval "", group 8, group 9 | ( # eval BLOCK, group 10 \{ ((?: # group 11 (?> [^{}]+ ) # Non-braces without backtracking | (??{$re_block}) # Recurse to group 10 )*) \} ) )) ) }xs; sub extract_use { my $self=shift; my $code_to_parse=shift; my $podless; my $pod_parser=Pod::Strip->new; $pod_parser->output_string(\$podless); $pod_parser->parse_characters(1) if $pod_parser->can('parse_characters'); if (ref($code_to_parse) eq 'SCALAR') { $pod_parser->parse_string_document($$code_to_parse); } else { $pod_parser->parse_file($code_to_parse); } # Strip obvious comments. $podless =~ s/(^|[\};])\s*#.*$/$1/mg; # Strip __(DATA|END)__ sections. $podless =~ s/\n__(?:DATA|END)__\b.*$//s; my @statements; while($podless =~ /$re/gc) { # to keep parsing time short, split code in statements # (I know that this is not very exact, patches welcome!) my $pre = $1; my $eval = join('', grep { defined $_ } ($2, $3, $4, $5, $7, $9, $11)); push @statements, map { [ 0, $_ ] } split(/;/, $pre); # non-eval context push @statements, map { [ 1, $_ ] } split(/;/, $eval); # eval context } push @statements, map { [ 0, $_ ] } split(/;/, substr($podless, pos($podless) || 0)); # non-eval context foreach my $statement_ (@statements) { my ($eval, $statement) = @$statement_; $statement=~s/\n+/ /gs; my $result; # now that we've got some code containing 'use' or 'require', # parse it! (using different entry point to save some more # time) my $type; if ($statement=~m/require_module|use_module|use_package_optimistically/) { $statement=~s/^(.*?)\b(\S+(?:require_module|use_module|use_package_optimistically)\([^)]*\))/$2/; next if $1 && $1 =~ /->\s*$/; eval { my $parser=Module::ExtractUse::Grammar->new(); $result=$parser->token_module_runtime($statement); }; $type = $statement =~ m/require/ ? 'require' : 'use'; } elsif ($statement=~/\buse/) { $statement=~s/^(.*?)use\b/use/; next if $1 && $1 =~ /->\s*$/; eval { my $parser=Module::ExtractUse::Grammar->new(); $result=$parser->token_use($statement.';'); }; $type = 'use'; } elsif ($statement=~/\brequire/) { $statement=~s/^(.*?)require\b/require/s; next if $1 && $1 =~ /->\s*$/; eval { my $parser=Module::ExtractUse::Grammar->new(); $result=$parser->token_require($statement.';'); }; $type = 'require'; } elsif ($statement=~/\bno/) { $statement=~s/^(.*?)no\b/no/s; next if $1 && $1 =~ /->\s*$/; eval { my $parser=Module::ExtractUse::Grammar->new(); $result=$parser->token_no($statement.';'); }; $type = 'no'; } elsif ($statement=~m/load_class|try_load_class|load_first_existing_class|load_optional_class/) { $statement=~s/^(.*?)\b(\S+(?:load_class|try_load_class|load_first_existing_class|load_optional_class)\([^)]*\))/$2/; next if $1 && $1 =~ /->\s*$/; eval { my $parser=Module::ExtractUse::Grammar->new(); $result = $parser->token_class_load($statement.';'); }; $type = 'require'; } next unless $result; foreach (split(/\s+/,$result)) { $self->_add($_, $eval, $type) if($_); } } # increment file counter $self->_inc_files; return $self; } sub used { my $self=shift; my $key=shift; return $self->{found}{$key} if ($key); return $self->{found}; } sub used_in_eval { my $self=shift; my $key=shift; return $self->{found_in_eval}{$key} if ($key); return $self->{found_in_eval}; } sub used_out_of_eval { my $self=shift; my $key=shift; return $self->{found_not_in_eval}{$key} if ($key); return $self->{found_not_in_eval}; } sub required { my $self=shift; my $key=shift; return $self->{require}{$key} if ($key); return $self->{require}; } sub required_in_eval { my $self=shift; my $key=shift; return $self->{require_in_eval}{$key} if ($key); return $self->{require_in_eval}; } sub required_out_of_eval { my $self=shift; my $key=shift; return $self->{require_not_in_eval}{$key} if ($key); return $self->{require_not_in_eval}; } sub noed { my $self=shift; my $key=shift; return $self->{no}{$key} if ($key); return $self->{no}; } sub noed_in_eval { my $self=shift; my $key=shift; return $self->{no_in_eval}{$key} if ($key); return $self->{no_in_eval}; } sub noed_out_of_eval { my $self=shift; my $key=shift; return $self->{no_not_in_eval}{$key} if ($key); return $self->{no_not_in_eval}; } sub string { my $self=shift; my $sep=shift || ' '; return join($sep,sort keys(%{$self->{found}})); } sub string_in_eval { my $self=shift; my $sep=shift || ' '; return join($sep,sort keys(%{$self->{found_in_eval}})); } sub string_out_of_eval { my $self=shift; my $sep=shift || ' '; return join($sep,sort keys(%{$self->{found_not_in_eval}})); } sub array { return keys(%{shift->{found}}) } sub array_in_eval { return keys(%{shift->{found_in_eval}}) } sub array_out_of_eval { return keys(%{shift->{found_not_in_eval}}) } sub arrayref { my @a=shift->array; return \@a if @a; return; } sub arrayref_in_eval { my @a=shift->array_in_eval; return \@a if @a; return; } sub arrayref_out_of_eval { my @a=shift->array_out_of_eval; return \@a if @a; return; } sub files { return shift->{files}; } # Internal Accessor Methods sub _add { my $self=shift; my $found=shift; my $eval=shift; my $type=shift; $self->{found}{$found}++; $self->{$type}{$found}++; if ($eval) { $self->{found_in_eval}{$found}++; $self->{"${type}_in_eval"}{$found}++; } else { $self->{found_not_in_eval}{$found}++; $self->{"${type}_not_in_eval"}{$found}++; } } sub _found { return shift->{found} } sub _inc_files { shift->{files}++ } 1; __END__ =pod =encoding UTF-8 =head1 NAME Module::ExtractUse - Find out what modules are used =head1 VERSION version 0.344 =head1 SYNOPSIS use Module::ExtractUse; # get a parser my $p=Module::ExtractUse->new; # parse from a file $p->extract_use('/path/to/module.pm'); # or parse from a ref to a string in memory $p->extract_use(\$string_containg_code); # use some reporting methods my $used=$p->used; # $used is a HASHREF print $p->used('strict') # true if code includes 'use strict' my @used=$p->array; my $used=$p->string; # you can get optional modules, that is used in eval context, in the same style my $used=$p->used_in_eval; # $used is a HASHREF print $p->used_in_eval('strict') # true if code includes 'use strict' my @used=$p->array_in_eval; my $used=$p->string_in_eval; # and mandatory modules, that is used out of eval context, in the same style, also. my $used=$p->used_out_of_eval; # $used is a HASHREF print $p->used_out_of_eval('strict') # true if code includes 'use strict' my @used=$p->array_out_of_eval; my $used=$p->string_out_of_eval; =head1 DESCRIPTION C is basically a L grammar to parse Perl code. It tries very hard to find all modules (whether pragmas, Core, or from CPAN) used by the parsed code. "Usage" is defined by either calling C or C. =head2 Methods =head3 new my $p=Module::ExtractUse->new; Returns a parser object =head3 extract_use($code_to_parse) $p->extract_use('/path/to/module.pm'); $p->extract_use(\$string_containg_code); Runs the parser. C<$code_to_parse> can be either a SCALAR, in which case C tries to open the file specified in $code_to_parse. Or a reference to a SCALAR, in which case C assumes the referenced scalar contains the source code. The code will be stripped from POD (using L) and split on ";" (semicolon). Each statement (i.e. the stuff between two semicolons) is checked by a simple regular expression. If the statement contains either 'use' or 'require', the statement is handed over to the parser, who then tries to figure out, B is used or required. The results will be saved in a data structure that you can examine afterwards. You can call C several times on different files. It will count how many files were examined and how often each module was used. =head2 Accessor Methods Those are various ways to get at the result of the parse. Note that C returns the parser object, so you can say print $p->extract_use($code_to_parse)->string; =head3 used my $used=$p->used; # $used is a HASHREF print $p->used('strict') # true if code includes 'use strict' If called without an argument, returns a reference to a hash of all used modules. Keys are the names of the modules, values are the number of times they were used. If called with an argument, looks up the value of the argument in the hash and returns the number of times it was found during parsing. This is the preferred accessor. =head3 used_in_eval Same as C, except for considering in-eval-context only. =head3 used_out_of_eval Same as C, except for considering NOT-in-eval-context only. =head3 required Same as C, except for considering 'require'd modules only. =head3 required_in_eval Same as C, except for considering in-eval-context only. =head3 required_out_of_eval Same as C, except for considering NOT-in-eval-context only. =head3 noed Same as C, except for considering 'no'ed modules only. =head3 noed_in_eval Same as C, except for considering in-eval-context only. =head3 noed_out_of_eval Same as C, except for considering NOT-in-eval-context only. =head3 string print $p->string($seperator) Returns a sorted string of all used modules, joined using the value of C<$seperator> or using a blank space as a default; Module names are sorted by ascii value (i.e by C) =head3 string_in_eval Same as C, except for considering in-eval-context only. =head3 string_out_of_eval Same as C, except for considering NOT-in-eval-context only. =head3 array my @array = $p->array; Returns an array of all used modules. =head3 array_in_eval Same as C, except for considering in-eval-context only. =head3 array_out_of_eval Same as C, except for considering NOT-in-eval-context only. =head3 arrayref my $arrayref = $p->arrayref; Returns a reference to an array of all used modules. Surprise! =head3 arrayref_in_eval Same as C, except for considering in-eval-context only. =head3 arrayref_out_of_eval Same as C, except for considering NOT-in-eval-context only. =head3 files Returns the number of files parsed by the parser object. =head1 RE-COMPILING THE GRAMMAR If - for some reasons - you need to alter the grammar, edit the file F and afterwards run: perl -MParse::RecDescent - grammar Module::ExtractUse::Grammar Make sure you're in the right directory, i.e. in F<.../Module/ExtractUse/> =head1 EXPORTS Nothing. =head1 SEE ALSO L, L, L, L, L, L, L, L =head1 CONTRIBUTORS =over =item * L implemented support for C and C while participating in the L =item * L fixed some documentation errors =item * Jonathan Yu provided a nice script, C =back If I forgot to mention your contribution, please send an email or open an issue / ticket. =head1 AUTHORS =over 4 =item * Thomas Klausner =item * Kenichi Ishigaki =back =head1 COPYRIGHT AND LICENSE This software is copyright (c) 2014 - 2021 by Thomas Klausner. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. =cut 23_universal_require.t100644001750001750 1131514115376150 20716 0ustar00dommdomm000000000000Module-ExtractUse-0.344/t#!/usr/bin/perl -w use strict; use Test::More; use Test::Deep; use Module::ExtractUse; eval "use UNIVERSAL::require"; plan skip_all => 'UNIVERSAL::require required for this tests' if $@; my @tests= ( #1 ['useSome::Module1;',undef,undef,undef], ['use Some::Module2;',[qw(Some::Module2)],undef,[qw(Some::Module2)]], ["yadda yadda useless stuff;".'use Some::Module3 qw/$VERSION @EXPORT @EXPORT_OK/;',[qw(Some::Module3)],undef,[qw(Some::Module3)]], ['use base qw(Class::DBI4 Foo::Bar5);',[qw(Class::DBI4 Foo::Bar5)],undef,[qw(Class::DBI4 Foo::Bar5)]], ['if ($foo) { use Foo::Bar6; }',[qw(Foo::Bar6)],undef,[qw(Foo::Bar6)]], #6 ['use constant dl_ext => ".$Config{dlext}";',[qw(constant)],undef,[qw(constant)]], ['use strict;',[qw(strict)],undef,[qw(strict)]], ['use Foo8 qw/asdfsdf/;',[qw(Foo8)],undef,[qw(Foo8)]], ['$use=stuff;',undef,undef,undef], ['abuse Stuff;',undef,undef,undef], #11 ['package Module::ScanDeps;',undef,undef,undef], ['if ($foo) { require "Bar7"; }',[qw(Bar7)],undef,[qw(Bar7)]], ['require "some/stuff.pl";',undef,undef,undef], ['require "Foo/Bar.pm9";',[qw(Foo::Bar9)],undef,[qw(Foo::Bar9)]], ['require Foo10;',['Foo10'],undef,['Foo10']], #16 ["use Some::Module11;use Some::Other::Module12;",[qw(Some::Module11 Some::Other::Module12)],undef,[qw(Some::Module11 Some::Other::Module12)]], ["use Some::Module;\nuse Some::Other::Module;",[qw(Some::Module Some::Other::Module)],undef,[qw(Some::Module Some::Other::Module)]], ['use vars qw/$VERSION @EXPORT @EXPORT_OK/;',[qw(vars)],undef,[qw(vars)]], ['unless ref $obj; # use ref as $obj',undef,undef,undef], ['$self->_carp("$name trigger deprecated: use before_$name or after_$name instead");',undef,undef,undef], #21 ["use base 'Exporter1';",['Exporter1'],undef,['Exporter1']], ['use base ("Class::DBI2");',['Class::DBI2'],undef,['Class::DBI2']], ['use base "Class::DBI3";',['Class::DBI3'],undef,['Class::DBI3']], ['use base qw/Class::DBI4 Foo::Bar5/;',[qw(Class::DBI4 Foo::Bar5)],undef,[qw(Class::DBI4 Foo::Bar5)]], ['use base ("Class::DBI6","Foo::Bar7");',[qw(Class::DBI6 Foo::Bar7)],undef,[qw(Class::DBI6 Foo::Bar7)]], #26 ['use base "Class::DBI8","Foo::Bar9";',[qw(Class::DBI8 Foo::Bar9)],undef,[qw(Class::DBI8 Foo::Bar9)]], ['use base qw( Class::DBI10 Foo::Bar11 );',[qw(Class::DBI10 Foo::Bar11)],undef,[qw(Class::DBI10 Foo::Bar11)]], ["use parent 'Exporter1';",[qw(parent Exporter1)],undef,[qw(parent Exporter1)]], ['use parent ("Class::DBI2");',[qw(parent Class::DBI2)],undef,[qw(parent Class::DBI2)]], ['use parent "Class::DBI3";',[qw(parent Class::DBI3)],undef,[qw(parent Class::DBI3)]], #31 ['use parent qw/Class::DBI4 Foo::Bar5/;',[qw(parent Class::DBI4 Foo::Bar5)],undef,[qw(parent Class::DBI4 Foo::Bar5)]], ['use parent ("Class::DBI6","Foo::Bar7");',[qw(parent Class::DBI6 Foo::Bar7)],undef,[qw(parent Class::DBI6 Foo::Bar7)]], ['use parent "Class::DBI8","Foo::Bar9";',[qw(parent Class::DBI8 Foo::Bar9)],undef,[qw(parent Class::DBI8 Foo::Bar9)]], ['use parent qw( Class::DBI10 Foo::Bar11 );',[qw(parent Class::DBI10 Foo::Bar11)],undef,[qw(parent Class::DBI10 Foo::Bar11)]], ["use parent -norequire,'Exporter1';",[qw(parent)],undef,[qw(parent)]], #36 ['use parent ("-norequire","Class::DBI2");',[qw(parent)],undef,[qw(parent)]], ['use parent "-norequire","Class::DBI3";',[qw(parent)],undef,[qw(parent)]], ['use parent qw/-norequire Class::DBI4 Foo::Bar5/;',[qw(parent)],undef,[qw(parent)]], ['use parent ("-norequire","Class::DBI6","Foo::Bar7");',[qw(parent)],undef,[qw(parent)]], ['use parent "-norequire","Class::DBI8","Foo::Bar9";',[qw(parent)],undef,[qw(parent)]], #41 ['use parent qw( -norequire Class::DBI10 Foo::Bar11 );',[qw(parent)],undef,[qw(parent)]], ['eval "use Test::Pod 1.06";',['Test::Pod'],['Test::Pod'],undef], [q{#!/usr/bin/perl -w use strict; use Test::More; eval "use Test::Pod 1.06"; eval 'use Test::Pod::Coverage 1.06;'; plan skip_all => "Test::Pod 1.06 required for testing POD" if $@; all_pod_files_ok();},[qw(strict Test::More Test::Pod Test::Pod::Coverage)],[qw(Test::Pod Test::Pod::Coverage)],[qw(strict Test::More)]], ); plan tests => (scalar @tests)*3; foreach my $t (@tests) { my ($code,@expected)=@$t; my $p=Module::ExtractUse->new; my @used = ( $p->extract_use(\$code)->arrayref || undef, $p->extract_use(\$code)->arrayref_in_eval || undef, $p->extract_use(\$code)->arrayref_out_of_eval || undef, ); for(my $i = 0; $i < @used; ++$i) { if (ref($expected[$i]) eq 'ARRAY') { cmp_bag($used[$i],$expected[$i]); } elsif (!defined $expected[$i]) { is(undef,$used[$i],''); } else { is($used[$i],$expected[$i]); } } } __DATA__ ExtractUse000755001750001750 014115376150 20117 5ustar00dommdomm000000000000Module-ExtractUse-0.344/lib/ModuleGrammar.pm100644001750001750 237250114115376150 22275 0ustar00dommdomm000000000000Module-ExtractUse-0.344/lib/Module/ExtractUse# # This parser was generated with # Parse::RecDescent version 1.967013 # package Module::ExtractUse::Grammar; use Parse::RecDescent; { my $ERRORS; package Parse::RecDescent::Module::ExtractUse::Grammar; use strict; use vars qw($skip $AUTOLOAD ); @Parse::RecDescent::Module::ExtractUse::Grammar::ISA = (); $skip = '\\s*'; { local $SIG{__WARN__} = sub {0}; # PRETEND TO BE IN Parse::RecDescent NAMESPACE *Parse::RecDescent::Module::ExtractUse::Grammar::AUTOLOAD = sub { no strict 'refs'; ${"AUTOLOAD"} =~ s/^Parse::RecDescent::Module::ExtractUse::Grammar/Parse::RecDescent/; goto &{${"AUTOLOAD"}}; } } push @Parse::RecDescent::Module::ExtractUse::Grammar::ISA, 'Parse::RecDescent'; # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) sub Parse::RecDescent::Module::ExtractUse::Grammar::_alternation_1_of_production_1_of_rule__alternation_1_of_production_1_of_rule_class_load { my $thisparser = $_[0]; use vars q{$tracelevel}; local $tracelevel = ($tracelevel||0)+1; $ERRORS = 0; my $thisrule = $thisparser->{"rules"}{"_alternation_1_of_production_1_of_rule__alternation_1_of_production_1_of_rule_class_load"}; Parse::RecDescent::_trace(q{Trying rule: [_alternation_1_of_production_1_of_rule__alternation_1_of_production_1_of_rule_class_load]}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_1_of_rule_class_load}, $tracelevel) if defined $::RD_TRACE; my $err_at = @{$thisparser->{errors}}; my $score; my $score_return; my $_tok; my $return = undef; my $_matched=0; my $commit=0; my @item = (); my %item = (); my $repeating = $_[2]; my $_noactions = $_[3]; my @arg = defined $_[4] ? @{ &{$_[4]} } : (); my $_itempos = $_[5]; my %arg = ($#arg & 01) ? @arg : (@arg, undef); my $text; my $lastsep; my $current_match; my $expectation = new Parse::RecDescent::Expectation(q{'Class::Load::'}); $expectation->at($_[1]); my $thisline; tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: ['Class::Load::' class_load_functions]}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_1_of_rule_class_load}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[0]; $text = $_[1]; my $_savetext; @item = (q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_1_of_rule_class_load}); %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_1_of_rule_class_load}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying terminal: ['Class::Load::']}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_1_of_rule_class_load}, $tracelevel) if defined $::RD_TRACE; undef $lastsep; $expectation->is(q{})->at($text); unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\AClass\:\:Load\:\:/) { $text = $lastsep . $text if defined $lastsep; $expectation->failed(); Parse::RecDescent::_trace(qq{<>}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; last; } $current_match = substr($text, $-[0], $+[0] - $-[0]); substr($text,0,length($current_match),q{}); Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} . $current_match . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $item{__STRING1__}=$current_match; Parse::RecDescent::_trace(q{Trying subrule: [class_load_functions]}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_1_of_rule_class_load}, $tracelevel) if defined $::RD_TRACE; if (1) { no strict qw{refs}; $expectation->is(q{class_load_functions})->at($text); unless (defined ($_tok = Parse::RecDescent::Module::ExtractUse::Grammar::class_load_functions($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_1_of_rule_class_load}, $tracelevel) if defined $::RD_TRACE; $expectation->failed(); last; } Parse::RecDescent::_trace(q{>>Matched subrule: [class_load_functions]<< (return value: [} . $_tok . q{]}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_1_of_rule_class_load}, $tracelevel) if defined $::RD_TRACE; $item{q{class_load_functions}} = $_tok; push @item, $_tok; } Parse::RecDescent::_trace(q{>>Matched production: ['Class::Load::' class_load_functions]<<}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_1_of_rule_class_load}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } unless ( $_matched || defined($score) ) { $_[1] = $text; # NOT SURE THIS IS NEEDED Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_1_of_rule_class_load}, $tracelevel) if defined $::RD_TRACE; return undef; } if (!defined($return) && defined($score)) { Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_1_of_rule_class_load}, $tracelevel) if defined $::RD_TRACE; $return = $score_return; } splice @{$thisparser->{errors}}, $err_at; $return = $item[$#item] unless defined $return; if (defined $::RD_TRACE) { Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . $return . q{])}, "", q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_1_of_rule_class_load}, $tracelevel); Parse::RecDescent::_trace(q{(consumed: [} . Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, Parse::RecDescent::_tracefirst($text), , q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_1_of_rule_class_load}, $tracelevel) } $_[1] = $text; return $return; } # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) sub Parse::RecDescent::Module::ExtractUse::Grammar::_alternation_1_of_production_1_of_rule__alternation_1_of_production_1_of_rule_module_runtime_use { my $thisparser = $_[0]; use vars q{$tracelevel}; local $tracelevel = ($tracelevel||0)+1; $ERRORS = 0; my $thisrule = $thisparser->{"rules"}{"_alternation_1_of_production_1_of_rule__alternation_1_of_production_1_of_rule_module_runtime_use"}; Parse::RecDescent::_trace(q{Trying rule: [_alternation_1_of_production_1_of_rule__alternation_1_of_production_1_of_rule_module_runtime_use]}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_1_of_rule_module_runtime_use}, $tracelevel) if defined $::RD_TRACE; my $err_at = @{$thisparser->{errors}}; my $score; my $score_return; my $_tok; my $return = undef; my $_matched=0; my $commit=0; my @item = (); my %item = (); my $repeating = $_[2]; my $_noactions = $_[3]; my @arg = defined $_[4] ? @{ &{$_[4]} } : (); my $_itempos = $_[5]; my %arg = ($#arg & 01) ? @arg : (@arg, undef); my $text; my $lastsep; my $current_match; my $expectation = new Parse::RecDescent::Expectation(q{'Module::Runtime::'}); $expectation->at($_[1]); my $thisline; tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: ['Module::Runtime::' module_runtime_use_fcn '(']}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_1_of_rule_module_runtime_use}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[0]; $text = $_[1]; my $_savetext; @item = (q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_1_of_rule_module_runtime_use}); %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_1_of_rule_module_runtime_use}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying terminal: ['Module::Runtime::']}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_1_of_rule_module_runtime_use}, $tracelevel) if defined $::RD_TRACE; undef $lastsep; $expectation->is(q{})->at($text); unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\AModule\:\:Runtime\:\:/) { $text = $lastsep . $text if defined $lastsep; $expectation->failed(); Parse::RecDescent::_trace(qq{<>}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; last; } $current_match = substr($text, $-[0], $+[0] - $-[0]); substr($text,0,length($current_match),q{}); Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} . $current_match . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $item{__STRING1__}=$current_match; Parse::RecDescent::_trace(q{Trying subrule: [module_runtime_use_fcn]}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_1_of_rule_module_runtime_use}, $tracelevel) if defined $::RD_TRACE; if (1) { no strict qw{refs}; $expectation->is(q{module_runtime_use_fcn})->at($text); unless (defined ($_tok = Parse::RecDescent::Module::ExtractUse::Grammar::module_runtime_use_fcn($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_1_of_rule_module_runtime_use}, $tracelevel) if defined $::RD_TRACE; $expectation->failed(); last; } Parse::RecDescent::_trace(q{>>Matched subrule: [module_runtime_use_fcn]<< (return value: [} . $_tok . q{]}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_1_of_rule_module_runtime_use}, $tracelevel) if defined $::RD_TRACE; $item{q{module_runtime_use_fcn}} = $_tok; push @item, $_tok; } Parse::RecDescent::_trace(q{Trying terminal: ['(']}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_1_of_rule_module_runtime_use}, $tracelevel) if defined $::RD_TRACE; undef $lastsep; $expectation->is(q{'('})->at($text); unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\(/) { $text = $lastsep . $text if defined $lastsep; $expectation->failed(); Parse::RecDescent::_trace(qq{<>}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; last; } $current_match = substr($text, $-[0], $+[0] - $-[0]); substr($text,0,length($current_match),q{}); Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} . $current_match . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $item{__STRING2__}=$current_match; Parse::RecDescent::_trace(q{>>Matched production: ['Module::Runtime::' module_runtime_use_fcn '(']<<}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_1_of_rule_module_runtime_use}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } unless ( $_matched || defined($score) ) { $_[1] = $text; # NOT SURE THIS IS NEEDED Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_1_of_rule_module_runtime_use}, $tracelevel) if defined $::RD_TRACE; return undef; } if (!defined($return) && defined($score)) { Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_1_of_rule_module_runtime_use}, $tracelevel) if defined $::RD_TRACE; $return = $score_return; } splice @{$thisparser->{errors}}, $err_at; $return = $item[$#item] unless defined $return; if (defined $::RD_TRACE) { Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . $return . q{])}, "", q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_1_of_rule_module_runtime_use}, $tracelevel); Parse::RecDescent::_trace(q{(consumed: [} . Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, Parse::RecDescent::_tracefirst($text), , q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_1_of_rule_module_runtime_use}, $tracelevel) } $_[1] = $text; return $return; } # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) sub Parse::RecDescent::Module::ExtractUse::Grammar::_alternation_1_of_production_1_of_rule_class_load { my $thisparser = $_[0]; use vars q{$tracelevel}; local $tracelevel = ($tracelevel||0)+1; $ERRORS = 0; my $thisrule = $thisparser->{"rules"}{"_alternation_1_of_production_1_of_rule_class_load"}; Parse::RecDescent::_trace(q{Trying rule: [_alternation_1_of_production_1_of_rule_class_load]}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_1_of_rule_class_load}, $tracelevel) if defined $::RD_TRACE; my $err_at = @{$thisparser->{errors}}; my $score; my $score_return; my $_tok; my $return = undef; my $_matched=0; my $commit=0; my @item = (); my %item = (); my $repeating = $_[2]; my $_noactions = $_[3]; my @arg = defined $_[4] ? @{ &{$_[4]} } : (); my $_itempos = $_[5]; my %arg = ($#arg & 01) ? @arg : (@arg, undef); my $text; my $lastsep; my $current_match; my $expectation = new Parse::RecDescent::Expectation(q{'Class::Load::', or /\\b/}); $expectation->at($_[1]); my $thisline; tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: ['Class::Load::']}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_1_of_rule_class_load}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[0]; $text = $_[1]; my $_savetext; @item = (q{_alternation_1_of_production_1_of_rule_class_load}); %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule_class_load}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying subrule: [_alternation_1_of_production_1_of_rule__alternation_1_of_production_1_of_rule_class_load]}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_class_load}, $tracelevel) if defined $::RD_TRACE; if (1) { no strict qw{refs}; $expectation->is(q{})->at($text); unless (defined ($_tok = Parse::RecDescent::Module::ExtractUse::Grammar::_alternation_1_of_production_1_of_rule__alternation_1_of_production_1_of_rule_class_load($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_class_load}, $tracelevel) if defined $::RD_TRACE; $expectation->failed(); last; } Parse::RecDescent::_trace(q{>>Matched subrule: [_alternation_1_of_production_1_of_rule__alternation_1_of_production_1_of_rule_class_load]<< (return value: [} . $_tok . q{]}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_class_load}, $tracelevel) if defined $::RD_TRACE; $item{q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_1_of_rule_class_load}} = $_tok; push @item, $_tok; } Parse::RecDescent::_trace(q{>>Matched production: ['Class::Load::']<<}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_class_load}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: [/\\b/]}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_1_of_rule_class_load}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[1]; $text = $_[1]; my $_savetext; @item = (q{_alternation_1_of_production_1_of_rule_class_load}); %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule_class_load}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying subrule: [_alternation_1_of_production_2_of_rule__alternation_1_of_production_1_of_rule_class_load]}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_class_load}, $tracelevel) if defined $::RD_TRACE; if (1) { no strict qw{refs}; $expectation->is(q{})->at($text); unless (defined ($_tok = Parse::RecDescent::Module::ExtractUse::Grammar::_alternation_1_of_production_2_of_rule__alternation_1_of_production_1_of_rule_class_load($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_class_load}, $tracelevel) if defined $::RD_TRACE; $expectation->failed(); last; } Parse::RecDescent::_trace(q{>>Matched subrule: [_alternation_1_of_production_2_of_rule__alternation_1_of_production_1_of_rule_class_load]<< (return value: [} . $_tok . q{]}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_class_load}, $tracelevel) if defined $::RD_TRACE; $item{q{_alternation_1_of_production_2_of_rule__alternation_1_of_production_1_of_rule_class_load}} = $_tok; push @item, $_tok; } Parse::RecDescent::_trace(q{>>Matched production: [/\\b/]<<}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_class_load}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } unless ( $_matched || defined($score) ) { $_[1] = $text; # NOT SURE THIS IS NEEDED Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_1_of_rule_class_load}, $tracelevel) if defined $::RD_TRACE; return undef; } if (!defined($return) && defined($score)) { Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", q{_alternation_1_of_production_1_of_rule_class_load}, $tracelevel) if defined $::RD_TRACE; $return = $score_return; } splice @{$thisparser->{errors}}, $err_at; $return = $item[$#item] unless defined $return; if (defined $::RD_TRACE) { Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . $return . q{])}, "", q{_alternation_1_of_production_1_of_rule_class_load}, $tracelevel); Parse::RecDescent::_trace(q{(consumed: [} . Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, Parse::RecDescent::_tracefirst($text), , q{_alternation_1_of_production_1_of_rule_class_load}, $tracelevel) } $_[1] = $text; return $return; } # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) sub Parse::RecDescent::Module::ExtractUse::Grammar::_alternation_1_of_production_1_of_rule_class_load_first_existing { my $thisparser = $_[0]; use vars q{$tracelevel}; local $tracelevel = ($tracelevel||0)+1; $ERRORS = 0; my $thisrule = $thisparser->{"rules"}{"_alternation_1_of_production_1_of_rule_class_load_first_existing"}; Parse::RecDescent::_trace(q{Trying rule: [_alternation_1_of_production_1_of_rule_class_load_first_existing]}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_1_of_rule_class_load_first_existing}, $tracelevel) if defined $::RD_TRACE; my $err_at = @{$thisparser->{errors}}; my $score; my $score_return; my $_tok; my $return = undef; my $_matched=0; my $commit=0; my @item = (); my %item = (); my $repeating = $_[2]; my $_noactions = $_[3]; my @arg = defined $_[4] ? @{ &{$_[4]} } : (); my $_itempos = $_[5]; my %arg = ($#arg & 01) ? @arg : (@arg, undef); my $text; my $lastsep; my $current_match; my $expectation = new Parse::RecDescent::Expectation(q{'Class::Load::load_first_existing_class', or /\\bload_first_existing_class/}); $expectation->at($_[1]); my $thisline; tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: ['Class::Load::load_first_existing_class']}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_1_of_rule_class_load_first_existing}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[0]; $text = $_[1]; my $_savetext; @item = (q{_alternation_1_of_production_1_of_rule_class_load_first_existing}); %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule_class_load_first_existing}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying terminal: ['Class::Load::load_first_existing_class']}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_class_load_first_existing}, $tracelevel) if defined $::RD_TRACE; undef $lastsep; $expectation->is(q{})->at($text); unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\AClass\:\:Load\:\:load_first_existing_class/) { $text = $lastsep . $text if defined $lastsep; $expectation->failed(); Parse::RecDescent::_trace(qq{<>}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; last; } $current_match = substr($text, $-[0], $+[0] - $-[0]); substr($text,0,length($current_match),q{}); Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} . $current_match . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $item{__STRING1__}=$current_match; Parse::RecDescent::_trace(q{>>Matched production: ['Class::Load::load_first_existing_class']<<}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_class_load_first_existing}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: [/\\bload_first_existing_class/]}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_1_of_rule_class_load_first_existing}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[1]; $text = $_[1]; my $_savetext; @item = (q{_alternation_1_of_production_1_of_rule_class_load_first_existing}); %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule_class_load_first_existing}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying terminal: [/\\bload_first_existing_class/]}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_class_load_first_existing}, $tracelevel) if defined $::RD_TRACE; undef $lastsep; $expectation->is(q{})->at($text); unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\bload_first_existing_class)/) { $text = $lastsep . $text if defined $lastsep; $expectation->failed(); Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; last; } $current_match = substr($text, $-[0], $+[0] - $-[0]); substr($text,0,length($current_match),q{}); Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} . $current_match . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $item{__PATTERN1__}=$current_match; Parse::RecDescent::_trace(q{>>Matched production: [/\\bload_first_existing_class/]<<}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_class_load_first_existing}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } unless ( $_matched || defined($score) ) { $_[1] = $text; # NOT SURE THIS IS NEEDED Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_1_of_rule_class_load_first_existing}, $tracelevel) if defined $::RD_TRACE; return undef; } if (!defined($return) && defined($score)) { Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", q{_alternation_1_of_production_1_of_rule_class_load_first_existing}, $tracelevel) if defined $::RD_TRACE; $return = $score_return; } splice @{$thisparser->{errors}}, $err_at; $return = $item[$#item] unless defined $return; if (defined $::RD_TRACE) { Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . $return . q{])}, "", q{_alternation_1_of_production_1_of_rule_class_load_first_existing}, $tracelevel); Parse::RecDescent::_trace(q{(consumed: [} . Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, Parse::RecDescent::_tracefirst($text), , q{_alternation_1_of_production_1_of_rule_class_load_first_existing}, $tracelevel) } $_[1] = $text; return $return; } # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) sub Parse::RecDescent::Module::ExtractUse::Grammar::_alternation_1_of_production_1_of_rule_comma { my $thisparser = $_[0]; use vars q{$tracelevel}; local $tracelevel = ($tracelevel||0)+1; $ERRORS = 0; my $thisrule = $thisparser->{"rules"}{"_alternation_1_of_production_1_of_rule_comma"}; Parse::RecDescent::_trace(q{Trying rule: [_alternation_1_of_production_1_of_rule_comma]}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_1_of_rule_comma}, $tracelevel) if defined $::RD_TRACE; my $err_at = @{$thisparser->{errors}}; my $score; my $score_return; my $_tok; my $return = undef; my $_matched=0; my $commit=0; my @item = (); my %item = (); my $repeating = $_[2]; my $_noactions = $_[3]; my @arg = defined $_[4] ? @{ &{$_[4]} } : (); my $_itempos = $_[5]; my %arg = ($#arg & 01) ? @arg : (@arg, undef); my $text; my $lastsep; my $current_match; my $expectation = new Parse::RecDescent::Expectation(q{',', or '=>'}); $expectation->at($_[1]); my $thisline; tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: [',']}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_1_of_rule_comma}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[0]; $text = $_[1]; my $_savetext; @item = (q{_alternation_1_of_production_1_of_rule_comma}); %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule_comma}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying terminal: [',']}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_comma}, $tracelevel) if defined $::RD_TRACE; undef $lastsep; $expectation->is(q{})->at($text); unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\,/) { $text = $lastsep . $text if defined $lastsep; $expectation->failed(); Parse::RecDescent::_trace(qq{<>}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; last; } $current_match = substr($text, $-[0], $+[0] - $-[0]); substr($text,0,length($current_match),q{}); Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} . $current_match . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $item{__STRING1__}=$current_match; Parse::RecDescent::_trace(q{>>Matched production: [',']<<}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_comma}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: ['=>']}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_1_of_rule_comma}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[1]; $text = $_[1]; my $_savetext; @item = (q{_alternation_1_of_production_1_of_rule_comma}); %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule_comma}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying terminal: ['=>']}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_comma}, $tracelevel) if defined $::RD_TRACE; undef $lastsep; $expectation->is(q{})->at($text); unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\=\>/) { $text = $lastsep . $text if defined $lastsep; $expectation->failed(); Parse::RecDescent::_trace(qq{<>}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; last; } $current_match = substr($text, $-[0], $+[0] - $-[0]); substr($text,0,length($current_match),q{}); Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} . $current_match . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $item{__STRING1__}=$current_match; Parse::RecDescent::_trace(q{>>Matched production: ['=>']<<}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_comma}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } unless ( $_matched || defined($score) ) { $_[1] = $text; # NOT SURE THIS IS NEEDED Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_1_of_rule_comma}, $tracelevel) if defined $::RD_TRACE; return undef; } if (!defined($return) && defined($score)) { Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", q{_alternation_1_of_production_1_of_rule_comma}, $tracelevel) if defined $::RD_TRACE; $return = $score_return; } splice @{$thisparser->{errors}}, $err_at; $return = $item[$#item] unless defined $return; if (defined $::RD_TRACE) { Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . $return . q{])}, "", q{_alternation_1_of_production_1_of_rule_comma}, $tracelevel); Parse::RecDescent::_trace(q{(consumed: [} . Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, Parse::RecDescent::_tracefirst($text), , q{_alternation_1_of_production_1_of_rule_comma}, $tracelevel) } $_[1] = $text; return $return; } # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) sub Parse::RecDescent::Module::ExtractUse::Grammar::_alternation_1_of_production_1_of_rule_hash_pair { my $thisparser = $_[0]; use vars q{$tracelevel}; local $tracelevel = ($tracelevel||0)+1; $ERRORS = 0; my $thisrule = $thisparser->{"rules"}{"_alternation_1_of_production_1_of_rule_hash_pair"}; Parse::RecDescent::_trace(q{Trying rule: [_alternation_1_of_production_1_of_rule_hash_pair]}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_1_of_rule_hash_pair}, $tracelevel) if defined $::RD_TRACE; my $err_at = @{$thisparser->{errors}}; my $score; my $score_return; my $_tok; my $return = undef; my $_matched=0; my $commit=0; my @item = (); my %item = (); my $repeating = $_[2]; my $_noactions = $_[3]; my @arg = defined $_[4] ? @{ &{$_[4]} } : (); my $_itempos = $_[5]; my %arg = ($#arg & 01) ? @arg : (@arg, undef); my $text; my $lastsep; my $current_match; my $expectation = new Parse::RecDescent::Expectation(q{/[^\\s,\}]+/}); $expectation->at($_[1]); my $thisline; tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: []}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_1_of_rule_hash_pair}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[0]; $text = $_[1]; my $_savetext; @item = (q{_alternation_1_of_production_1_of_rule_hash_pair}); %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule_hash_pair}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying directive: []}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_hash_pair}, $tracelevel) if defined $::RD_TRACE; $_tok = do { my ($match,@res); ($match,$text,undef,@res) = Text::Balanced::extract_quotelike($text,$skip); $match ? \@res : undef; }; if (defined($_tok)) { Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} . $_tok . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; } else { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; } last unless defined $_tok; push @item, $item{__DIRECTIVE1__}=$_tok; Parse::RecDescent::_trace(q{>>Matched production: []<<}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_hash_pair}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: [/[^\\s,\}]+/]}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_1_of_rule_hash_pair}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[1]; $text = $_[1]; my $_savetext; @item = (q{_alternation_1_of_production_1_of_rule_hash_pair}); %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule_hash_pair}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying terminal: [/[^\\s,\}]+/]}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_hash_pair}, $tracelevel) if defined $::RD_TRACE; undef $lastsep; $expectation->is(q{})->at($text); unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:[^\s,}]+)/) { $text = $lastsep . $text if defined $lastsep; $expectation->failed(); Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; last; } $current_match = substr($text, $-[0], $+[0] - $-[0]); substr($text,0,length($current_match),q{}); Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} . $current_match . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $item{__PATTERN1__}=$current_match; Parse::RecDescent::_trace(q{>>Matched production: [/[^\\s,\}]+/]<<}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_hash_pair}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } unless ( $_matched || defined($score) ) { $_[1] = $text; # NOT SURE THIS IS NEEDED Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_1_of_rule_hash_pair}, $tracelevel) if defined $::RD_TRACE; return undef; } if (!defined($return) && defined($score)) { Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", q{_alternation_1_of_production_1_of_rule_hash_pair}, $tracelevel) if defined $::RD_TRACE; $return = $score_return; } splice @{$thisparser->{errors}}, $err_at; $return = $item[$#item] unless defined $return; if (defined $::RD_TRACE) { Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . $return . q{])}, "", q{_alternation_1_of_production_1_of_rule_hash_pair}, $tracelevel); Parse::RecDescent::_trace(q{(consumed: [} . Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, Parse::RecDescent::_tracefirst($text), , q{_alternation_1_of_production_1_of_rule_hash_pair}, $tracelevel) } $_[1] = $text; return $return; } # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) sub Parse::RecDescent::Module::ExtractUse::Grammar::_alternation_1_of_production_1_of_rule_module_runtime_require_module { my $thisparser = $_[0]; use vars q{$tracelevel}; local $tracelevel = ($tracelevel||0)+1; $ERRORS = 0; my $thisrule = $thisparser->{"rules"}{"_alternation_1_of_production_1_of_rule_module_runtime_require_module"}; Parse::RecDescent::_trace(q{Trying rule: [_alternation_1_of_production_1_of_rule_module_runtime_require_module]}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_1_of_rule_module_runtime_require_module}, $tracelevel) if defined $::RD_TRACE; my $err_at = @{$thisparser->{errors}}; my $score; my $score_return; my $_tok; my $return = undef; my $_matched=0; my $commit=0; my @item = (); my %item = (); my $repeating = $_[2]; my $_noactions = $_[3]; my @arg = defined $_[4] ? @{ &{$_[4]} } : (); my $_itempos = $_[5]; my %arg = ($#arg & 01) ? @arg : (@arg, undef); my $text; my $lastsep; my $current_match; my $expectation = new Parse::RecDescent::Expectation(q{'Module::Runtime::require_module(', or /\\brequire_module\\(/}); $expectation->at($_[1]); my $thisline; tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: ['Module::Runtime::require_module(']}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_1_of_rule_module_runtime_require_module}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[0]; $text = $_[1]; my $_savetext; @item = (q{_alternation_1_of_production_1_of_rule_module_runtime_require_module}); %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule_module_runtime_require_module}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying terminal: ['Module::Runtime::require_module(']}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_module_runtime_require_module}, $tracelevel) if defined $::RD_TRACE; undef $lastsep; $expectation->is(q{})->at($text); unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\AModule\:\:Runtime\:\:require_module\(/) { $text = $lastsep . $text if defined $lastsep; $expectation->failed(); Parse::RecDescent::_trace(qq{<>}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; last; } $current_match = substr($text, $-[0], $+[0] - $-[0]); substr($text,0,length($current_match),q{}); Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} . $current_match . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $item{__STRING1__}=$current_match; Parse::RecDescent::_trace(q{>>Matched production: ['Module::Runtime::require_module(']<<}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_module_runtime_require_module}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: [/\\brequire_module\\(/]}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_1_of_rule_module_runtime_require_module}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[1]; $text = $_[1]; my $_savetext; @item = (q{_alternation_1_of_production_1_of_rule_module_runtime_require_module}); %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule_module_runtime_require_module}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying terminal: [/\\brequire_module\\(/]}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_module_runtime_require_module}, $tracelevel) if defined $::RD_TRACE; undef $lastsep; $expectation->is(q{})->at($text); unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\brequire_module\()/) { $text = $lastsep . $text if defined $lastsep; $expectation->failed(); Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; last; } $current_match = substr($text, $-[0], $+[0] - $-[0]); substr($text,0,length($current_match),q{}); Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} . $current_match . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $item{__PATTERN1__}=$current_match; Parse::RecDescent::_trace(q{>>Matched production: [/\\brequire_module\\(/]<<}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_module_runtime_require_module}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } unless ( $_matched || defined($score) ) { $_[1] = $text; # NOT SURE THIS IS NEEDED Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_1_of_rule_module_runtime_require_module}, $tracelevel) if defined $::RD_TRACE; return undef; } if (!defined($return) && defined($score)) { Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", q{_alternation_1_of_production_1_of_rule_module_runtime_require_module}, $tracelevel) if defined $::RD_TRACE; $return = $score_return; } splice @{$thisparser->{errors}}, $err_at; $return = $item[$#item] unless defined $return; if (defined $::RD_TRACE) { Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . $return . q{])}, "", q{_alternation_1_of_production_1_of_rule_module_runtime_require_module}, $tracelevel); Parse::RecDescent::_trace(q{(consumed: [} . Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, Parse::RecDescent::_tracefirst($text), , q{_alternation_1_of_production_1_of_rule_module_runtime_require_module}, $tracelevel) } $_[1] = $text; return $return; } # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) sub Parse::RecDescent::Module::ExtractUse::Grammar::_alternation_1_of_production_1_of_rule_module_runtime_use { my $thisparser = $_[0]; use vars q{$tracelevel}; local $tracelevel = ($tracelevel||0)+1; $ERRORS = 0; my $thisrule = $thisparser->{"rules"}{"_alternation_1_of_production_1_of_rule_module_runtime_use"}; Parse::RecDescent::_trace(q{Trying rule: [_alternation_1_of_production_1_of_rule_module_runtime_use]}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_1_of_rule_module_runtime_use}, $tracelevel) if defined $::RD_TRACE; my $err_at = @{$thisparser->{errors}}; my $score; my $score_return; my $_tok; my $return = undef; my $_matched=0; my $commit=0; my @item = (); my %item = (); my $repeating = $_[2]; my $_noactions = $_[3]; my @arg = defined $_[4] ? @{ &{$_[4]} } : (); my $_itempos = $_[5]; my %arg = ($#arg & 01) ? @arg : (@arg, undef); my $text; my $lastsep; my $current_match; my $expectation = new Parse::RecDescent::Expectation(q{'Module::Runtime::', or /\\b/}); $expectation->at($_[1]); my $thisline; tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: ['Module::Runtime::']}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_1_of_rule_module_runtime_use}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[0]; $text = $_[1]; my $_savetext; @item = (q{_alternation_1_of_production_1_of_rule_module_runtime_use}); %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule_module_runtime_use}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying subrule: [_alternation_1_of_production_1_of_rule__alternation_1_of_production_1_of_rule_module_runtime_use]}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_module_runtime_use}, $tracelevel) if defined $::RD_TRACE; if (1) { no strict qw{refs}; $expectation->is(q{})->at($text); unless (defined ($_tok = Parse::RecDescent::Module::ExtractUse::Grammar::_alternation_1_of_production_1_of_rule__alternation_1_of_production_1_of_rule_module_runtime_use($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_module_runtime_use}, $tracelevel) if defined $::RD_TRACE; $expectation->failed(); last; } Parse::RecDescent::_trace(q{>>Matched subrule: [_alternation_1_of_production_1_of_rule__alternation_1_of_production_1_of_rule_module_runtime_use]<< (return value: [} . $_tok . q{]}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_module_runtime_use}, $tracelevel) if defined $::RD_TRACE; $item{q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_1_of_rule_module_runtime_use}} = $_tok; push @item, $_tok; } Parse::RecDescent::_trace(q{>>Matched production: ['Module::Runtime::']<<}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_module_runtime_use}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: [/\\b/]}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_1_of_rule_module_runtime_use}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[1]; $text = $_[1]; my $_savetext; @item = (q{_alternation_1_of_production_1_of_rule_module_runtime_use}); %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule_module_runtime_use}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying subrule: [_alternation_1_of_production_2_of_rule__alternation_1_of_production_1_of_rule_module_runtime_use]}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_module_runtime_use}, $tracelevel) if defined $::RD_TRACE; if (1) { no strict qw{refs}; $expectation->is(q{})->at($text); unless (defined ($_tok = Parse::RecDescent::Module::ExtractUse::Grammar::_alternation_1_of_production_2_of_rule__alternation_1_of_production_1_of_rule_module_runtime_use($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_module_runtime_use}, $tracelevel) if defined $::RD_TRACE; $expectation->failed(); last; } Parse::RecDescent::_trace(q{>>Matched subrule: [_alternation_1_of_production_2_of_rule__alternation_1_of_production_1_of_rule_module_runtime_use]<< (return value: [} . $_tok . q{]}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_module_runtime_use}, $tracelevel) if defined $::RD_TRACE; $item{q{_alternation_1_of_production_2_of_rule__alternation_1_of_production_1_of_rule_module_runtime_use}} = $_tok; push @item, $_tok; } Parse::RecDescent::_trace(q{>>Matched production: [/\\b/]<<}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_module_runtime_use}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } unless ( $_matched || defined($score) ) { $_[1] = $text; # NOT SURE THIS IS NEEDED Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_1_of_rule_module_runtime_use}, $tracelevel) if defined $::RD_TRACE; return undef; } if (!defined($return) && defined($score)) { Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", q{_alternation_1_of_production_1_of_rule_module_runtime_use}, $tracelevel) if defined $::RD_TRACE; $return = $score_return; } splice @{$thisparser->{errors}}, $err_at; $return = $item[$#item] unless defined $return; if (defined $::RD_TRACE) { Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . $return . q{])}, "", q{_alternation_1_of_production_1_of_rule_module_runtime_use}, $tracelevel); Parse::RecDescent::_trace(q{(consumed: [} . Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, Parse::RecDescent::_tracefirst($text), , q{_alternation_1_of_production_1_of_rule_module_runtime_use}, $tracelevel) } $_[1] = $text; return $return; } # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) sub Parse::RecDescent::Module::ExtractUse::Grammar::_alternation_1_of_production_1_of_rule_module_runtime_use_fcn { my $thisparser = $_[0]; use vars q{$tracelevel}; local $tracelevel = ($tracelevel||0)+1; $ERRORS = 0; my $thisrule = $thisparser->{"rules"}{"_alternation_1_of_production_1_of_rule_module_runtime_use_fcn"}; Parse::RecDescent::_trace(q{Trying rule: [_alternation_1_of_production_1_of_rule_module_runtime_use_fcn]}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_1_of_rule_module_runtime_use_fcn}, $tracelevel) if defined $::RD_TRACE; my $err_at = @{$thisparser->{errors}}; my $score; my $score_return; my $_tok; my $return = undef; my $_matched=0; my $commit=0; my @item = (); my %item = (); my $repeating = $_[2]; my $_noactions = $_[3]; my @arg = defined $_[4] ? @{ &{$_[4]} } : (); my $_itempos = $_[5]; my %arg = ($#arg & 01) ? @arg : (@arg, undef); my $text; my $lastsep; my $current_match; my $expectation = new Parse::RecDescent::Expectation(q{'use_module', or 'use_package_optimistically'}); $expectation->at($_[1]); my $thisline; tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: ['use_module']}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_1_of_rule_module_runtime_use_fcn}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[0]; $text = $_[1]; my $_savetext; @item = (q{_alternation_1_of_production_1_of_rule_module_runtime_use_fcn}); %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule_module_runtime_use_fcn}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying terminal: ['use_module']}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_module_runtime_use_fcn}, $tracelevel) if defined $::RD_TRACE; undef $lastsep; $expectation->is(q{})->at($text); unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\Ause_module/) { $text = $lastsep . $text if defined $lastsep; $expectation->failed(); Parse::RecDescent::_trace(qq{<>}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; last; } $current_match = substr($text, $-[0], $+[0] - $-[0]); substr($text,0,length($current_match),q{}); Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} . $current_match . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $item{__STRING1__}=$current_match; Parse::RecDescent::_trace(q{>>Matched production: ['use_module']<<}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_module_runtime_use_fcn}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: ['use_package_optimistically']}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_1_of_rule_module_runtime_use_fcn}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[1]; $text = $_[1]; my $_savetext; @item = (q{_alternation_1_of_production_1_of_rule_module_runtime_use_fcn}); %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule_module_runtime_use_fcn}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying terminal: ['use_package_optimistically']}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_module_runtime_use_fcn}, $tracelevel) if defined $::RD_TRACE; undef $lastsep; $expectation->is(q{})->at($text); unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\Ause_package_optimistically/) { $text = $lastsep . $text if defined $lastsep; $expectation->failed(); Parse::RecDescent::_trace(qq{<>}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; last; } $current_match = substr($text, $-[0], $+[0] - $-[0]); substr($text,0,length($current_match),q{}); Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} . $current_match . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $item{__STRING1__}=$current_match; Parse::RecDescent::_trace(q{>>Matched production: ['use_package_optimistically']<<}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_module_runtime_use_fcn}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } unless ( $_matched || defined($score) ) { $_[1] = $text; # NOT SURE THIS IS NEEDED Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_1_of_rule_module_runtime_use_fcn}, $tracelevel) if defined $::RD_TRACE; return undef; } if (!defined($return) && defined($score)) { Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", q{_alternation_1_of_production_1_of_rule_module_runtime_use_fcn}, $tracelevel) if defined $::RD_TRACE; $return = $score_return; } splice @{$thisparser->{errors}}, $err_at; $return = $item[$#item] unless defined $return; if (defined $::RD_TRACE) { Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . $return . q{])}, "", q{_alternation_1_of_production_1_of_rule_module_runtime_use_fcn}, $tracelevel); Parse::RecDescent::_trace(q{(consumed: [} . Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, Parse::RecDescent::_tracefirst($text), , q{_alternation_1_of_production_1_of_rule_module_runtime_use_fcn}, $tracelevel) } $_[1] = $text; return $return; } # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) sub Parse::RecDescent::Module::ExtractUse::Grammar::_alternation_1_of_production_1_of_rule_no_stuff { my $thisparser = $_[0]; use vars q{$tracelevel}; local $tracelevel = ($tracelevel||0)+1; $ERRORS = 0; my $thisrule = $thisparser->{"rules"}{"_alternation_1_of_production_1_of_rule_no_stuff"}; Parse::RecDescent::_trace(q{Trying rule: [_alternation_1_of_production_1_of_rule_no_stuff]}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_1_of_rule_no_stuff}, $tracelevel) if defined $::RD_TRACE; my $err_at = @{$thisparser->{errors}}; my $score; my $score_return; my $_tok; my $return = undef; my $_matched=0; my $commit=0; my @item = (); my %item = (); my $repeating = $_[2]; my $_noactions = $_[3]; my @arg = defined $_[4] ? @{ &{$_[4]} } : (); my $_itempos = $_[5]; my %arg = ($#arg & 01) ? @arg : (@arg, undef); my $text; my $lastsep; my $current_match; my $expectation = new Parse::RecDescent::Expectation(q{base, or version, or module}); $expectation->at($_[1]); my $thisline; tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: [base]}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_1_of_rule_no_stuff}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[0]; $text = $_[1]; my $_savetext; @item = (q{_alternation_1_of_production_1_of_rule_no_stuff}); %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule_no_stuff}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying subrule: [base]}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_no_stuff}, $tracelevel) if defined $::RD_TRACE; if (1) { no strict qw{refs}; $expectation->is(q{})->at($text); unless (defined ($_tok = Parse::RecDescent::Module::ExtractUse::Grammar::base($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_no_stuff}, $tracelevel) if defined $::RD_TRACE; $expectation->failed(); last; } Parse::RecDescent::_trace(q{>>Matched subrule: [base]<< (return value: [} . $_tok . q{]}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_no_stuff}, $tracelevel) if defined $::RD_TRACE; $item{q{base}} = $_tok; push @item, $_tok; } Parse::RecDescent::_trace(q{>>Matched production: [base]<<}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_no_stuff}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: [version]}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_1_of_rule_no_stuff}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[1]; $text = $_[1]; my $_savetext; @item = (q{_alternation_1_of_production_1_of_rule_no_stuff}); %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule_no_stuff}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying subrule: [version]}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_no_stuff}, $tracelevel) if defined $::RD_TRACE; if (1) { no strict qw{refs}; $expectation->is(q{})->at($text); unless (defined ($_tok = Parse::RecDescent::Module::ExtractUse::Grammar::version($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_no_stuff}, $tracelevel) if defined $::RD_TRACE; $expectation->failed(); last; } Parse::RecDescent::_trace(q{>>Matched subrule: [version]<< (return value: [} . $_tok . q{]}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_no_stuff}, $tracelevel) if defined $::RD_TRACE; $item{q{version}} = $_tok; push @item, $_tok; } Parse::RecDescent::_trace(q{>>Matched production: [version]<<}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_no_stuff}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: [module]}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_1_of_rule_no_stuff}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[2]; $text = $_[1]; my $_savetext; @item = (q{_alternation_1_of_production_1_of_rule_no_stuff}); %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule_no_stuff}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying subrule: [module]}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_no_stuff}, $tracelevel) if defined $::RD_TRACE; if (1) { no strict qw{refs}; $expectation->is(q{})->at($text); unless (defined ($_tok = Parse::RecDescent::Module::ExtractUse::Grammar::module($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_no_stuff}, $tracelevel) if defined $::RD_TRACE; $expectation->failed(); last; } Parse::RecDescent::_trace(q{>>Matched subrule: [module]<< (return value: [} . $_tok . q{]}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_no_stuff}, $tracelevel) if defined $::RD_TRACE; $item{q{module}} = $_tok; push @item, $_tok; } Parse::RecDescent::_trace(q{>>Matched production: [module]<<}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_no_stuff}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } unless ( $_matched || defined($score) ) { $_[1] = $text; # NOT SURE THIS IS NEEDED Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_1_of_rule_no_stuff}, $tracelevel) if defined $::RD_TRACE; return undef; } if (!defined($return) && defined($score)) { Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", q{_alternation_1_of_production_1_of_rule_no_stuff}, $tracelevel) if defined $::RD_TRACE; $return = $score_return; } splice @{$thisparser->{errors}}, $err_at; $return = $item[$#item] unless defined $return; if (defined $::RD_TRACE) { Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . $return . q{])}, "", q{_alternation_1_of_production_1_of_rule_no_stuff}, $tracelevel); Parse::RecDescent::_trace(q{(consumed: [} . Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, Parse::RecDescent::_tracefirst($text), , q{_alternation_1_of_production_1_of_rule_no_stuff}, $tracelevel) } $_[1] = $text; return $return; } # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) sub Parse::RecDescent::Module::ExtractUse::Grammar::_alternation_1_of_production_1_of_rule_require_stuff { my $thisparser = $_[0]; use vars q{$tracelevel}; local $tracelevel = ($tracelevel||0)+1; $ERRORS = 0; my $thisrule = $thisparser->{"rules"}{"_alternation_1_of_production_1_of_rule_require_stuff"}; Parse::RecDescent::_trace(q{Trying rule: [_alternation_1_of_production_1_of_rule_require_stuff]}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_1_of_rule_require_stuff}, $tracelevel) if defined $::RD_TRACE; my $err_at = @{$thisparser->{errors}}; my $score; my $score_return; my $_tok; my $return = undef; my $_matched=0; my $commit=0; my @item = (); my %item = (); my $repeating = $_[2]; my $_noactions = $_[3]; my @arg = defined $_[4] ? @{ &{$_[4]} } : (); my $_itempos = $_[5]; my %arg = ($#arg & 01) ? @arg : (@arg, undef); my $text; my $lastsep; my $current_match; my $expectation = new Parse::RecDescent::Expectation(q{version, or require_name, or module}); $expectation->at($_[1]); my $thisline; tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: [version]}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_1_of_rule_require_stuff}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[0]; $text = $_[1]; my $_savetext; @item = (q{_alternation_1_of_production_1_of_rule_require_stuff}); %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule_require_stuff}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying subrule: [version]}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_require_stuff}, $tracelevel) if defined $::RD_TRACE; if (1) { no strict qw{refs}; $expectation->is(q{})->at($text); unless (defined ($_tok = Parse::RecDescent::Module::ExtractUse::Grammar::version($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_require_stuff}, $tracelevel) if defined $::RD_TRACE; $expectation->failed(); last; } Parse::RecDescent::_trace(q{>>Matched subrule: [version]<< (return value: [} . $_tok . q{]}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_require_stuff}, $tracelevel) if defined $::RD_TRACE; $item{q{version}} = $_tok; push @item, $_tok; } Parse::RecDescent::_trace(q{>>Matched production: [version]<<}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_require_stuff}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: [require_name]}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_1_of_rule_require_stuff}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[1]; $text = $_[1]; my $_savetext; @item = (q{_alternation_1_of_production_1_of_rule_require_stuff}); %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule_require_stuff}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying subrule: [require_name]}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_require_stuff}, $tracelevel) if defined $::RD_TRACE; if (1) { no strict qw{refs}; $expectation->is(q{})->at($text); unless (defined ($_tok = Parse::RecDescent::Module::ExtractUse::Grammar::require_name($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_require_stuff}, $tracelevel) if defined $::RD_TRACE; $expectation->failed(); last; } Parse::RecDescent::_trace(q{>>Matched subrule: [require_name]<< (return value: [} . $_tok . q{]}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_require_stuff}, $tracelevel) if defined $::RD_TRACE; $item{q{require_name}} = $_tok; push @item, $_tok; } Parse::RecDescent::_trace(q{>>Matched production: [require_name]<<}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_require_stuff}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: [module]}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_1_of_rule_require_stuff}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[2]; $text = $_[1]; my $_savetext; @item = (q{_alternation_1_of_production_1_of_rule_require_stuff}); %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule_require_stuff}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying subrule: [module]}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_require_stuff}, $tracelevel) if defined $::RD_TRACE; if (1) { no strict qw{refs}; $expectation->is(q{})->at($text); unless (defined ($_tok = Parse::RecDescent::Module::ExtractUse::Grammar::module($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_require_stuff}, $tracelevel) if defined $::RD_TRACE; $expectation->failed(); last; } Parse::RecDescent::_trace(q{>>Matched subrule: [module]<< (return value: [} . $_tok . q{]}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_require_stuff}, $tracelevel) if defined $::RD_TRACE; $item{q{module}} = $_tok; push @item, $_tok; } Parse::RecDescent::_trace(q{>>Matched production: [module]<<}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_require_stuff}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } unless ( $_matched || defined($score) ) { $_[1] = $text; # NOT SURE THIS IS NEEDED Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_1_of_rule_require_stuff}, $tracelevel) if defined $::RD_TRACE; return undef; } if (!defined($return) && defined($score)) { Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", q{_alternation_1_of_production_1_of_rule_require_stuff}, $tracelevel) if defined $::RD_TRACE; $return = $score_return; } splice @{$thisparser->{errors}}, $err_at; $return = $item[$#item] unless defined $return; if (defined $::RD_TRACE) { Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . $return . q{])}, "", q{_alternation_1_of_production_1_of_rule_require_stuff}, $tracelevel); Parse::RecDescent::_trace(q{(consumed: [} . Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, Parse::RecDescent::_tracefirst($text), , q{_alternation_1_of_production_1_of_rule_require_stuff}, $tracelevel) } $_[1] = $text; return $return; } # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) sub Parse::RecDescent::Module::ExtractUse::Grammar::_alternation_1_of_production_1_of_rule_use_stuff { my $thisparser = $_[0]; use vars q{$tracelevel}; local $tracelevel = ($tracelevel||0)+1; $ERRORS = 0; my $thisrule = $thisparser->{"rules"}{"_alternation_1_of_production_1_of_rule_use_stuff"}; Parse::RecDescent::_trace(q{Trying rule: [_alternation_1_of_production_1_of_rule_use_stuff]}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_1_of_rule_use_stuff}, $tracelevel) if defined $::RD_TRACE; my $err_at = @{$thisparser->{errors}}; my $score; my $score_return; my $_tok; my $return = undef; my $_matched=0; my $commit=0; my @item = (); my %item = (); my $repeating = $_[2]; my $_noactions = $_[3]; my @arg = defined $_[4] ? @{ &{$_[4]} } : (); my $_itempos = $_[5]; my %arg = ($#arg & 01) ? @arg : (@arg, undef); my $text; my $lastsep; my $current_match; my $expectation = new Parse::RecDescent::Expectation(q{base, or parent, or version, or module}); $expectation->at($_[1]); my $thisline; tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: [base]}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_1_of_rule_use_stuff}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[0]; $text = $_[1]; my $_savetext; @item = (q{_alternation_1_of_production_1_of_rule_use_stuff}); %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule_use_stuff}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying subrule: [base]}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_use_stuff}, $tracelevel) if defined $::RD_TRACE; if (1) { no strict qw{refs}; $expectation->is(q{})->at($text); unless (defined ($_tok = Parse::RecDescent::Module::ExtractUse::Grammar::base($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_use_stuff}, $tracelevel) if defined $::RD_TRACE; $expectation->failed(); last; } Parse::RecDescent::_trace(q{>>Matched subrule: [base]<< (return value: [} . $_tok . q{]}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_use_stuff}, $tracelevel) if defined $::RD_TRACE; $item{q{base}} = $_tok; push @item, $_tok; } Parse::RecDescent::_trace(q{>>Matched production: [base]<<}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_use_stuff}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: [parent]}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_1_of_rule_use_stuff}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[1]; $text = $_[1]; my $_savetext; @item = (q{_alternation_1_of_production_1_of_rule_use_stuff}); %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule_use_stuff}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying subrule: [parent]}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_use_stuff}, $tracelevel) if defined $::RD_TRACE; if (1) { no strict qw{refs}; $expectation->is(q{})->at($text); unless (defined ($_tok = Parse::RecDescent::Module::ExtractUse::Grammar::parent($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_use_stuff}, $tracelevel) if defined $::RD_TRACE; $expectation->failed(); last; } Parse::RecDescent::_trace(q{>>Matched subrule: [parent]<< (return value: [} . $_tok . q{]}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_use_stuff}, $tracelevel) if defined $::RD_TRACE; $item{q{parent}} = $_tok; push @item, $_tok; } Parse::RecDescent::_trace(q{>>Matched production: [parent]<<}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_use_stuff}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: [version]}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_1_of_rule_use_stuff}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[2]; $text = $_[1]; my $_savetext; @item = (q{_alternation_1_of_production_1_of_rule_use_stuff}); %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule_use_stuff}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying subrule: [version]}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_use_stuff}, $tracelevel) if defined $::RD_TRACE; if (1) { no strict qw{refs}; $expectation->is(q{})->at($text); unless (defined ($_tok = Parse::RecDescent::Module::ExtractUse::Grammar::version($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_use_stuff}, $tracelevel) if defined $::RD_TRACE; $expectation->failed(); last; } Parse::RecDescent::_trace(q{>>Matched subrule: [version]<< (return value: [} . $_tok . q{]}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_use_stuff}, $tracelevel) if defined $::RD_TRACE; $item{q{version}} = $_tok; push @item, $_tok; } Parse::RecDescent::_trace(q{>>Matched production: [version]<<}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_use_stuff}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: [module]}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_1_of_rule_use_stuff}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[3]; $text = $_[1]; my $_savetext; @item = (q{_alternation_1_of_production_1_of_rule_use_stuff}); %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule_use_stuff}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying subrule: [module]}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_use_stuff}, $tracelevel) if defined $::RD_TRACE; if (1) { no strict qw{refs}; $expectation->is(q{})->at($text); unless (defined ($_tok = Parse::RecDescent::Module::ExtractUse::Grammar::module($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_use_stuff}, $tracelevel) if defined $::RD_TRACE; $expectation->failed(); last; } Parse::RecDescent::_trace(q{>>Matched subrule: [module]<< (return value: [} . $_tok . q{]}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_use_stuff}, $tracelevel) if defined $::RD_TRACE; $item{q{module}} = $_tok; push @item, $_tok; } Parse::RecDescent::_trace(q{>>Matched production: [module]<<}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_1_of_rule_use_stuff}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } unless ( $_matched || defined($score) ) { $_[1] = $text; # NOT SURE THIS IS NEEDED Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_1_of_rule_use_stuff}, $tracelevel) if defined $::RD_TRACE; return undef; } if (!defined($return) && defined($score)) { Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", q{_alternation_1_of_production_1_of_rule_use_stuff}, $tracelevel) if defined $::RD_TRACE; $return = $score_return; } splice @{$thisparser->{errors}}, $err_at; $return = $item[$#item] unless defined $return; if (defined $::RD_TRACE) { Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . $return . q{])}, "", q{_alternation_1_of_production_1_of_rule_use_stuff}, $tracelevel); Parse::RecDescent::_trace(q{(consumed: [} . Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, Parse::RecDescent::_tracefirst($text), , q{_alternation_1_of_production_1_of_rule_use_stuff}, $tracelevel) } $_[1] = $text; return $return; } # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) sub Parse::RecDescent::Module::ExtractUse::Grammar::_alternation_1_of_production_2_of_rule__alternation_1_of_production_1_of_rule_class_load { my $thisparser = $_[0]; use vars q{$tracelevel}; local $tracelevel = ($tracelevel||0)+1; $ERRORS = 0; my $thisrule = $thisparser->{"rules"}{"_alternation_1_of_production_2_of_rule__alternation_1_of_production_1_of_rule_class_load"}; Parse::RecDescent::_trace(q{Trying rule: [_alternation_1_of_production_2_of_rule__alternation_1_of_production_1_of_rule_class_load]}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_2_of_rule__alternation_1_of_production_1_of_rule_class_load}, $tracelevel) if defined $::RD_TRACE; my $err_at = @{$thisparser->{errors}}; my $score; my $score_return; my $_tok; my $return = undef; my $_matched=0; my $commit=0; my @item = (); my %item = (); my $repeating = $_[2]; my $_noactions = $_[3]; my @arg = defined $_[4] ? @{ &{$_[4]} } : (); my $_itempos = $_[5]; my %arg = ($#arg & 01) ? @arg : (@arg, undef); my $text; my $lastsep; my $current_match; my $expectation = new Parse::RecDescent::Expectation(q{/\\b/}); $expectation->at($_[1]); my $thisline; tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: [/\\b/ class_load_functions]}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_2_of_rule__alternation_1_of_production_1_of_rule_class_load}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[0]; $text = $_[1]; my $_savetext; @item = (q{_alternation_1_of_production_2_of_rule__alternation_1_of_production_1_of_rule_class_load}); %item = (__RULE__ => q{_alternation_1_of_production_2_of_rule__alternation_1_of_production_1_of_rule_class_load}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying terminal: [/\\b/]}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_2_of_rule__alternation_1_of_production_1_of_rule_class_load}, $tracelevel) if defined $::RD_TRACE; undef $lastsep; $expectation->is(q{})->at($text); unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\b)/) { $text = $lastsep . $text if defined $lastsep; $expectation->failed(); Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; last; } $current_match = substr($text, $-[0], $+[0] - $-[0]); substr($text,0,length($current_match),q{}); Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} . $current_match . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $item{__PATTERN1__}=$current_match; Parse::RecDescent::_trace(q{Trying subrule: [class_load_functions]}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_2_of_rule__alternation_1_of_production_1_of_rule_class_load}, $tracelevel) if defined $::RD_TRACE; if (1) { no strict qw{refs}; $expectation->is(q{class_load_functions})->at($text); unless (defined ($_tok = Parse::RecDescent::Module::ExtractUse::Grammar::class_load_functions($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_2_of_rule__alternation_1_of_production_1_of_rule_class_load}, $tracelevel) if defined $::RD_TRACE; $expectation->failed(); last; } Parse::RecDescent::_trace(q{>>Matched subrule: [class_load_functions]<< (return value: [} . $_tok . q{]}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_2_of_rule__alternation_1_of_production_1_of_rule_class_load}, $tracelevel) if defined $::RD_TRACE; $item{q{class_load_functions}} = $_tok; push @item, $_tok; } Parse::RecDescent::_trace(q{>>Matched production: [/\\b/ class_load_functions]<<}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_2_of_rule__alternation_1_of_production_1_of_rule_class_load}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } unless ( $_matched || defined($score) ) { $_[1] = $text; # NOT SURE THIS IS NEEDED Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_2_of_rule__alternation_1_of_production_1_of_rule_class_load}, $tracelevel) if defined $::RD_TRACE; return undef; } if (!defined($return) && defined($score)) { Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", q{_alternation_1_of_production_2_of_rule__alternation_1_of_production_1_of_rule_class_load}, $tracelevel) if defined $::RD_TRACE; $return = $score_return; } splice @{$thisparser->{errors}}, $err_at; $return = $item[$#item] unless defined $return; if (defined $::RD_TRACE) { Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . $return . q{])}, "", q{_alternation_1_of_production_2_of_rule__alternation_1_of_production_1_of_rule_class_load}, $tracelevel); Parse::RecDescent::_trace(q{(consumed: [} . Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, Parse::RecDescent::_tracefirst($text), , q{_alternation_1_of_production_2_of_rule__alternation_1_of_production_1_of_rule_class_load}, $tracelevel) } $_[1] = $text; return $return; } # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) sub Parse::RecDescent::Module::ExtractUse::Grammar::_alternation_1_of_production_2_of_rule__alternation_1_of_production_1_of_rule_module_runtime_use { my $thisparser = $_[0]; use vars q{$tracelevel}; local $tracelevel = ($tracelevel||0)+1; $ERRORS = 0; my $thisrule = $thisparser->{"rules"}{"_alternation_1_of_production_2_of_rule__alternation_1_of_production_1_of_rule_module_runtime_use"}; Parse::RecDescent::_trace(q{Trying rule: [_alternation_1_of_production_2_of_rule__alternation_1_of_production_1_of_rule_module_runtime_use]}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_2_of_rule__alternation_1_of_production_1_of_rule_module_runtime_use}, $tracelevel) if defined $::RD_TRACE; my $err_at = @{$thisparser->{errors}}; my $score; my $score_return; my $_tok; my $return = undef; my $_matched=0; my $commit=0; my @item = (); my %item = (); my $repeating = $_[2]; my $_noactions = $_[3]; my @arg = defined $_[4] ? @{ &{$_[4]} } : (); my $_itempos = $_[5]; my %arg = ($#arg & 01) ? @arg : (@arg, undef); my $text; my $lastsep; my $current_match; my $expectation = new Parse::RecDescent::Expectation(q{/\\b/}); $expectation->at($_[1]); my $thisline; tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: [/\\b/ module_runtime_use_fcn '(']}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_2_of_rule__alternation_1_of_production_1_of_rule_module_runtime_use}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[0]; $text = $_[1]; my $_savetext; @item = (q{_alternation_1_of_production_2_of_rule__alternation_1_of_production_1_of_rule_module_runtime_use}); %item = (__RULE__ => q{_alternation_1_of_production_2_of_rule__alternation_1_of_production_1_of_rule_module_runtime_use}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying terminal: [/\\b/]}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_2_of_rule__alternation_1_of_production_1_of_rule_module_runtime_use}, $tracelevel) if defined $::RD_TRACE; undef $lastsep; $expectation->is(q{})->at($text); unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\b)/) { $text = $lastsep . $text if defined $lastsep; $expectation->failed(); Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; last; } $current_match = substr($text, $-[0], $+[0] - $-[0]); substr($text,0,length($current_match),q{}); Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} . $current_match . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $item{__PATTERN1__}=$current_match; Parse::RecDescent::_trace(q{Trying subrule: [module_runtime_use_fcn]}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_2_of_rule__alternation_1_of_production_1_of_rule_module_runtime_use}, $tracelevel) if defined $::RD_TRACE; if (1) { no strict qw{refs}; $expectation->is(q{module_runtime_use_fcn})->at($text); unless (defined ($_tok = Parse::RecDescent::Module::ExtractUse::Grammar::module_runtime_use_fcn($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_2_of_rule__alternation_1_of_production_1_of_rule_module_runtime_use}, $tracelevel) if defined $::RD_TRACE; $expectation->failed(); last; } Parse::RecDescent::_trace(q{>>Matched subrule: [module_runtime_use_fcn]<< (return value: [} . $_tok . q{]}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_2_of_rule__alternation_1_of_production_1_of_rule_module_runtime_use}, $tracelevel) if defined $::RD_TRACE; $item{q{module_runtime_use_fcn}} = $_tok; push @item, $_tok; } Parse::RecDescent::_trace(q{Trying terminal: ['(']}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_2_of_rule__alternation_1_of_production_1_of_rule_module_runtime_use}, $tracelevel) if defined $::RD_TRACE; undef $lastsep; $expectation->is(q{'('})->at($text); unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\(/) { $text = $lastsep . $text if defined $lastsep; $expectation->failed(); Parse::RecDescent::_trace(qq{<>}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; last; } $current_match = substr($text, $-[0], $+[0] - $-[0]); substr($text,0,length($current_match),q{}); Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} . $current_match . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $item{__STRING1__}=$current_match; Parse::RecDescent::_trace(q{>>Matched production: [/\\b/ module_runtime_use_fcn '(']<<}, Parse::RecDescent::_tracefirst($text), q{_alternation_1_of_production_2_of_rule__alternation_1_of_production_1_of_rule_module_runtime_use}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } unless ( $_matched || defined($score) ) { $_[1] = $text; # NOT SURE THIS IS NEEDED Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($_[1]), q{_alternation_1_of_production_2_of_rule__alternation_1_of_production_1_of_rule_module_runtime_use}, $tracelevel) if defined $::RD_TRACE; return undef; } if (!defined($return) && defined($score)) { Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", q{_alternation_1_of_production_2_of_rule__alternation_1_of_production_1_of_rule_module_runtime_use}, $tracelevel) if defined $::RD_TRACE; $return = $score_return; } splice @{$thisparser->{errors}}, $err_at; $return = $item[$#item] unless defined $return; if (defined $::RD_TRACE) { Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . $return . q{])}, "", q{_alternation_1_of_production_2_of_rule__alternation_1_of_production_1_of_rule_module_runtime_use}, $tracelevel); Parse::RecDescent::_trace(q{(consumed: [} . Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, Parse::RecDescent::_tracefirst($text), , q{_alternation_1_of_production_2_of_rule__alternation_1_of_production_1_of_rule_module_runtime_use}, $tracelevel) } $_[1] = $text; return $return; } # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) sub Parse::RecDescent::Module::ExtractUse::Grammar::base { my $thisparser = $_[0]; use vars q{$tracelevel}; local $tracelevel = ($tracelevel||0)+1; $ERRORS = 0; my $thisrule = $thisparser->{"rules"}{"base"}; Parse::RecDescent::_trace(q{Trying rule: [base]}, Parse::RecDescent::_tracefirst($_[1]), q{base}, $tracelevel) if defined $::RD_TRACE; my $err_at = @{$thisparser->{errors}}; my $score; my $score_return; my $_tok; my $return = undef; my $_matched=0; my $commit=0; my @item = (); my %item = (); my $repeating = $_[2]; my $_noactions = $_[3]; my @arg = defined $_[4] ? @{ &{$_[4]} } : (); my $_itempos = $_[5]; my %arg = ($#arg & 01) ? @arg : (@arg, undef); my $text; my $lastsep; my $current_match; my $expectation = new Parse::RecDescent::Expectation(q{'base'}); $expectation->at($_[1]); my $thisline; tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: ['base' import_list]}, Parse::RecDescent::_tracefirst($_[1]), q{base}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[0]; $text = $_[1]; my $_savetext; @item = (q{base}); %item = (__RULE__ => q{base}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying terminal: ['base']}, Parse::RecDescent::_tracefirst($text), q{base}, $tracelevel) if defined $::RD_TRACE; undef $lastsep; $expectation->is(q{})->at($text); unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and do { $_tok = "base"; 1 } and substr($text,0,length($_tok)) eq $_tok and do { substr($text,0,length($_tok)) = ""; 1; } ) { $text = $lastsep . $text if defined $lastsep; $expectation->failed(); Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; last; } Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} . $_tok . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $item{__STRING1__}=$_tok; Parse::RecDescent::_trace(q{Trying subrule: [import_list]}, Parse::RecDescent::_tracefirst($text), q{base}, $tracelevel) if defined $::RD_TRACE; if (1) { no strict qw{refs}; $expectation->is(q{import_list})->at($text); unless (defined ($_tok = Parse::RecDescent::Module::ExtractUse::Grammar::import_list($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{base}, $tracelevel) if defined $::RD_TRACE; $expectation->failed(); last; } Parse::RecDescent::_trace(q{>>Matched subrule: [import_list]<< (return value: [} . $_tok . q{]}, Parse::RecDescent::_tracefirst($text), q{base}, $tracelevel) if defined $::RD_TRACE; $item{q{import_list}} = $_tok; push @item, $_tok; } Parse::RecDescent::_trace(q{>>Matched production: ['base' import_list]<<}, Parse::RecDescent::_tracefirst($text), q{base}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } unless ( $_matched || defined($score) ) { $_[1] = $text; # NOT SURE THIS IS NEEDED Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($_[1]), q{base}, $tracelevel) if defined $::RD_TRACE; return undef; } if (!defined($return) && defined($score)) { Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", q{base}, $tracelevel) if defined $::RD_TRACE; $return = $score_return; } splice @{$thisparser->{errors}}, $err_at; $return = $item[$#item] unless defined $return; if (defined $::RD_TRACE) { Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . $return . q{])}, "", q{base}, $tracelevel); Parse::RecDescent::_trace(q{(consumed: [} . Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, Parse::RecDescent::_tracefirst($text), , q{base}, $tracelevel) } $_[1] = $text; return $return; } # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) sub Parse::RecDescent::Module::ExtractUse::Grammar::class_load { my $thisparser = $_[0]; use vars q{$tracelevel}; local $tracelevel = ($tracelevel||0)+1; $ERRORS = 0; my $thisrule = $thisparser->{"rules"}{"class_load"}; Parse::RecDescent::_trace(q{Trying rule: [class_load]}, Parse::RecDescent::_tracefirst($_[1]), q{class_load}, $tracelevel) if defined $::RD_TRACE; my $err_at = @{$thisparser->{errors}}; my $score; my $score_return; my $_tok; my $return = undef; my $_matched=0; my $commit=0; my @item = (); my %item = (); my $repeating = $_[2]; my $_noactions = $_[3]; my @arg = defined $_[4] ? @{ &{$_[4]} } : (); my $_itempos = $_[5]; my %arg = ($#arg & 01) ? @arg : (@arg, undef); my $text; my $lastsep; my $current_match; my $expectation = new Parse::RecDescent::Expectation(q{'Class::Load::', or /\\b/}); $expectation->at($_[1]); my $thisline; tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: ['Class::Load::', or /\\b/ '(' comma_hashref ')']}, Parse::RecDescent::_tracefirst($_[1]), q{class_load}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[0]; $text = $_[1]; my $_savetext; @item = (q{class_load}); %item = (__RULE__ => q{class_load}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying subrule: [_alternation_1_of_production_1_of_rule_class_load]}, Parse::RecDescent::_tracefirst($text), q{class_load}, $tracelevel) if defined $::RD_TRACE; if (1) { no strict qw{refs}; $expectation->is(q{})->at($text); unless (defined ($_tok = Parse::RecDescent::Module::ExtractUse::Grammar::_alternation_1_of_production_1_of_rule_class_load($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{class_load}, $tracelevel) if defined $::RD_TRACE; $expectation->failed(); last; } Parse::RecDescent::_trace(q{>>Matched subrule: [_alternation_1_of_production_1_of_rule_class_load]<< (return value: [} . $_tok . q{]}, Parse::RecDescent::_tracefirst($text), q{class_load}, $tracelevel) if defined $::RD_TRACE; $item{q{_alternation_1_of_production_1_of_rule_class_load}} = $_tok; push @item, $_tok; } Parse::RecDescent::_trace(q{Trying terminal: ['(']}, Parse::RecDescent::_tracefirst($text), q{class_load}, $tracelevel) if defined $::RD_TRACE; undef $lastsep; $expectation->is(q{'('})->at($text); unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\(/) { $text = $lastsep . $text if defined $lastsep; $expectation->failed(); Parse::RecDescent::_trace(qq{<>}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; last; } $current_match = substr($text, $-[0], $+[0] - $-[0]); substr($text,0,length($current_match),q{}); Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} . $current_match . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $item{__STRING1__}=$current_match; Parse::RecDescent::_trace(q{Trying directive: []}, Parse::RecDescent::_tracefirst($text), q{class_load}, $tracelevel) if defined $::RD_TRACE; $_tok = do { my ($match,@res); ($match,$text,undef,@res) = Text::Balanced::extract_quotelike($text,$skip); $match ? \@res : undef; }; if (defined($_tok)) { Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} . $_tok . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; } else { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; } last unless defined $_tok; push @item, $item{__DIRECTIVE1__}=$_tok; Parse::RecDescent::_trace(q{Trying repeated subrule: [comma_hashref]}, Parse::RecDescent::_tracefirst($text), q{class_load}, $tracelevel) if defined $::RD_TRACE; $expectation->is(q{comma_hashref})->at($text); unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Module::ExtractUse::Grammar::comma_hashref, 0, 1, $_noactions,$expectation,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{class_load}, $tracelevel) if defined $::RD_TRACE; last; } Parse::RecDescent::_trace(q{>>Matched repeated subrule: [comma_hashref]<< (} . @$_tok . q{ times)}, Parse::RecDescent::_tracefirst($text), q{class_load}, $tracelevel) if defined $::RD_TRACE; $item{q{comma_hashref(?)}} = $_tok; push @item, $_tok; Parse::RecDescent::_trace(q{Trying terminal: [')']}, Parse::RecDescent::_tracefirst($text), q{class_load}, $tracelevel) if defined $::RD_TRACE; undef $lastsep; $expectation->is(q{')'})->at($text); unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\)/) { $text = $lastsep . $text if defined $lastsep; $expectation->failed(); Parse::RecDescent::_trace(qq{<>}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; last; } $current_match = substr($text, $-[0], $+[0] - $-[0]); substr($text,0,length($current_match),q{}); Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} . $current_match . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $item{__STRING2__}=$current_match; Parse::RecDescent::_trace(q{Trying action}, Parse::RecDescent::_tracefirst($text), q{class_load}, $tracelevel) if defined $::RD_TRACE; $_tok = ($_noactions) ? 0 : do { $return = $item[3][2] }; unless (defined $_tok) { Parse::RecDescent::_trace(q{<> (return value: [undef])}) if defined $::RD_TRACE; last; } Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} . $_tok . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $_tok; $item{__ACTION1__}=$_tok; Parse::RecDescent::_trace(q{>>Matched production: ['Class::Load::', or /\\b/ '(' comma_hashref ')']<<}, Parse::RecDescent::_tracefirst($text), q{class_load}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } unless ( $_matched || defined($score) ) { $_[1] = $text; # NOT SURE THIS IS NEEDED Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($_[1]), q{class_load}, $tracelevel) if defined $::RD_TRACE; return undef; } if (!defined($return) && defined($score)) { Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", q{class_load}, $tracelevel) if defined $::RD_TRACE; $return = $score_return; } splice @{$thisparser->{errors}}, $err_at; $return = $item[$#item] unless defined $return; if (defined $::RD_TRACE) { Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . $return . q{])}, "", q{class_load}, $tracelevel); Parse::RecDescent::_trace(q{(consumed: [} . Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, Parse::RecDescent::_tracefirst($text), , q{class_load}, $tracelevel) } $_[1] = $text; return $return; } # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) sub Parse::RecDescent::Module::ExtractUse::Grammar::class_load_first_existing { my $thisparser = $_[0]; use vars q{$tracelevel}; local $tracelevel = ($tracelevel||0)+1; $ERRORS = 0; my $thisrule = $thisparser->{"rules"}{"class_load_first_existing"}; Parse::RecDescent::_trace(q{Trying rule: [class_load_first_existing]}, Parse::RecDescent::_tracefirst($_[1]), q{class_load_first_existing}, $tracelevel) if defined $::RD_TRACE; my $err_at = @{$thisparser->{errors}}; my $score; my $score_return; my $_tok; my $return = undef; my $_matched=0; my $commit=0; my @item = (); my %item = (); my $repeating = $_[2]; my $_noactions = $_[3]; my @arg = defined $_[4] ? @{ &{$_[4]} } : (); my $_itempos = $_[5]; my %arg = ($#arg & 01) ? @arg : (@arg, undef); my $text; my $lastsep; my $current_match; my $expectation = new Parse::RecDescent::Expectation(q{'Class::Load::load_first_existing_class', or /\\bload_first_existing_class/}); $expectation->at($_[1]); my $thisline; tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: ['Class::Load::load_first_existing_class', or /\\bload_first_existing_class/ '(' first_existing_arg comma_first_existing_arg ')']}, Parse::RecDescent::_tracefirst($_[1]), q{class_load_first_existing}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[0]; $text = $_[1]; my $_savetext; @item = (q{class_load_first_existing}); %item = (__RULE__ => q{class_load_first_existing}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying subrule: [_alternation_1_of_production_1_of_rule_class_load_first_existing]}, Parse::RecDescent::_tracefirst($text), q{class_load_first_existing}, $tracelevel) if defined $::RD_TRACE; if (1) { no strict qw{refs}; $expectation->is(q{})->at($text); unless (defined ($_tok = Parse::RecDescent::Module::ExtractUse::Grammar::_alternation_1_of_production_1_of_rule_class_load_first_existing($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{class_load_first_existing}, $tracelevel) if defined $::RD_TRACE; $expectation->failed(); last; } Parse::RecDescent::_trace(q{>>Matched subrule: [_alternation_1_of_production_1_of_rule_class_load_first_existing]<< (return value: [} . $_tok . q{]}, Parse::RecDescent::_tracefirst($text), q{class_load_first_existing}, $tracelevel) if defined $::RD_TRACE; $item{q{_alternation_1_of_production_1_of_rule_class_load_first_existing}} = $_tok; push @item, $_tok; } Parse::RecDescent::_trace(q{Trying terminal: ['(']}, Parse::RecDescent::_tracefirst($text), q{class_load_first_existing}, $tracelevel) if defined $::RD_TRACE; undef $lastsep; $expectation->is(q{'('})->at($text); unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\(/) { $text = $lastsep . $text if defined $lastsep; $expectation->failed(); Parse::RecDescent::_trace(qq{<>}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; last; } $current_match = substr($text, $-[0], $+[0] - $-[0]); substr($text,0,length($current_match),q{}); Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} . $current_match . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $item{__STRING1__}=$current_match; Parse::RecDescent::_trace(q{Trying subrule: [first_existing_arg]}, Parse::RecDescent::_tracefirst($text), q{class_load_first_existing}, $tracelevel) if defined $::RD_TRACE; if (1) { no strict qw{refs}; $expectation->is(q{first_existing_arg})->at($text); unless (defined ($_tok = Parse::RecDescent::Module::ExtractUse::Grammar::first_existing_arg($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{class_load_first_existing}, $tracelevel) if defined $::RD_TRACE; $expectation->failed(); last; } Parse::RecDescent::_trace(q{>>Matched subrule: [first_existing_arg]<< (return value: [} . $_tok . q{]}, Parse::RecDescent::_tracefirst($text), q{class_load_first_existing}, $tracelevel) if defined $::RD_TRACE; $item{q{first_existing_arg}} = $_tok; push @item, $_tok; } Parse::RecDescent::_trace(q{Trying repeated subrule: [comma_first_existing_arg]}, Parse::RecDescent::_tracefirst($text), q{class_load_first_existing}, $tracelevel) if defined $::RD_TRACE; $expectation->is(q{comma_first_existing_arg})->at($text); unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Module::ExtractUse::Grammar::comma_first_existing_arg, 0, 100000000, $_noactions,$expectation,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{class_load_first_existing}, $tracelevel) if defined $::RD_TRACE; last; } Parse::RecDescent::_trace(q{>>Matched repeated subrule: [comma_first_existing_arg]<< (} . @$_tok . q{ times)}, Parse::RecDescent::_tracefirst($text), q{class_load_first_existing}, $tracelevel) if defined $::RD_TRACE; $item{q{comma_first_existing_arg(s?)}} = $_tok; push @item, $_tok; Parse::RecDescent::_trace(q{Trying terminal: [')']}, Parse::RecDescent::_tracefirst($text), q{class_load_first_existing}, $tracelevel) if defined $::RD_TRACE; undef $lastsep; $expectation->is(q{')'})->at($text); unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\)/) { $text = $lastsep . $text if defined $lastsep; $expectation->failed(); Parse::RecDescent::_trace(qq{<>}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; last; } $current_match = substr($text, $-[0], $+[0] - $-[0]); substr($text,0,length($current_match),q{}); Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} . $current_match . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $item{__STRING2__}=$current_match; Parse::RecDescent::_trace(q{Trying action}, Parse::RecDescent::_tracefirst($text), q{class_load_first_existing}, $tracelevel) if defined $::RD_TRACE; $_tok = ($_noactions) ? 0 : do { $return = $item{first_existing_arg}; $return .= " " . join(" ", @{$item{'comma_first_existing_arg(s?)'}}) if $item{'comma_first_existing_arg(s?)'}; 1; }; unless (defined $_tok) { Parse::RecDescent::_trace(q{<> (return value: [undef])}) if defined $::RD_TRACE; last; } Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} . $_tok . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $_tok; $item{__ACTION1__}=$_tok; Parse::RecDescent::_trace(q{>>Matched production: ['Class::Load::load_first_existing_class', or /\\bload_first_existing_class/ '(' first_existing_arg comma_first_existing_arg ')']<<}, Parse::RecDescent::_tracefirst($text), q{class_load_first_existing}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } unless ( $_matched || defined($score) ) { $_[1] = $text; # NOT SURE THIS IS NEEDED Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($_[1]), q{class_load_first_existing}, $tracelevel) if defined $::RD_TRACE; return undef; } if (!defined($return) && defined($score)) { Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", q{class_load_first_existing}, $tracelevel) if defined $::RD_TRACE; $return = $score_return; } splice @{$thisparser->{errors}}, $err_at; $return = $item[$#item] unless defined $return; if (defined $::RD_TRACE) { Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . $return . q{])}, "", q{class_load_first_existing}, $tracelevel); Parse::RecDescent::_trace(q{(consumed: [} . Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, Parse::RecDescent::_tracefirst($text), , q{class_load_first_existing}, $tracelevel) } $_[1] = $text; return $return; } # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) sub Parse::RecDescent::Module::ExtractUse::Grammar::class_load_functions { my $thisparser = $_[0]; use vars q{$tracelevel}; local $tracelevel = ($tracelevel||0)+1; $ERRORS = 0; my $thisrule = $thisparser->{"rules"}{"class_load_functions"}; Parse::RecDescent::_trace(q{Trying rule: [class_load_functions]}, Parse::RecDescent::_tracefirst($_[1]), q{class_load_functions}, $tracelevel) if defined $::RD_TRACE; my $err_at = @{$thisparser->{errors}}; my $score; my $score_return; my $_tok; my $return = undef; my $_matched=0; my $commit=0; my @item = (); my %item = (); my $repeating = $_[2]; my $_noactions = $_[3]; my @arg = defined $_[4] ? @{ &{$_[4]} } : (); my $_itempos = $_[5]; my %arg = ($#arg & 01) ? @arg : (@arg, undef); my $text; my $lastsep; my $current_match; my $expectation = new Parse::RecDescent::Expectation(q{'load_class', or 'try_load_class', or 'load_optional_class'}); $expectation->at($_[1]); my $thisline; tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: ['load_class']}, Parse::RecDescent::_tracefirst($_[1]), q{class_load_functions}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[0]; $text = $_[1]; my $_savetext; @item = (q{class_load_functions}); %item = (__RULE__ => q{class_load_functions}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying terminal: ['load_class']}, Parse::RecDescent::_tracefirst($text), q{class_load_functions}, $tracelevel) if defined $::RD_TRACE; undef $lastsep; $expectation->is(q{})->at($text); unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\Aload_class/) { $text = $lastsep . $text if defined $lastsep; $expectation->failed(); Parse::RecDescent::_trace(qq{<>}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; last; } $current_match = substr($text, $-[0], $+[0] - $-[0]); substr($text,0,length($current_match),q{}); Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} . $current_match . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $item{__STRING1__}=$current_match; Parse::RecDescent::_trace(q{>>Matched production: ['load_class']<<}, Parse::RecDescent::_tracefirst($text), q{class_load_functions}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: ['try_load_class']}, Parse::RecDescent::_tracefirst($_[1]), q{class_load_functions}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[1]; $text = $_[1]; my $_savetext; @item = (q{class_load_functions}); %item = (__RULE__ => q{class_load_functions}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying terminal: ['try_load_class']}, Parse::RecDescent::_tracefirst($text), q{class_load_functions}, $tracelevel) if defined $::RD_TRACE; undef $lastsep; $expectation->is(q{})->at($text); unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\Atry_load_class/) { $text = $lastsep . $text if defined $lastsep; $expectation->failed(); Parse::RecDescent::_trace(qq{<>}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; last; } $current_match = substr($text, $-[0], $+[0] - $-[0]); substr($text,0,length($current_match),q{}); Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} . $current_match . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $item{__STRING1__}=$current_match; Parse::RecDescent::_trace(q{>>Matched production: ['try_load_class']<<}, Parse::RecDescent::_tracefirst($text), q{class_load_functions}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: ['load_optional_class']}, Parse::RecDescent::_tracefirst($_[1]), q{class_load_functions}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[2]; $text = $_[1]; my $_savetext; @item = (q{class_load_functions}); %item = (__RULE__ => q{class_load_functions}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying terminal: ['load_optional_class']}, Parse::RecDescent::_tracefirst($text), q{class_load_functions}, $tracelevel) if defined $::RD_TRACE; undef $lastsep; $expectation->is(q{})->at($text); unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\Aload_optional_class/) { $text = $lastsep . $text if defined $lastsep; $expectation->failed(); Parse::RecDescent::_trace(qq{<>}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; last; } $current_match = substr($text, $-[0], $+[0] - $-[0]); substr($text,0,length($current_match),q{}); Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} . $current_match . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $item{__STRING1__}=$current_match; Parse::RecDescent::_trace(q{>>Matched production: ['load_optional_class']<<}, Parse::RecDescent::_tracefirst($text), q{class_load_functions}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } unless ( $_matched || defined($score) ) { $_[1] = $text; # NOT SURE THIS IS NEEDED Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($_[1]), q{class_load_functions}, $tracelevel) if defined $::RD_TRACE; return undef; } if (!defined($return) && defined($score)) { Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", q{class_load_functions}, $tracelevel) if defined $::RD_TRACE; $return = $score_return; } splice @{$thisparser->{errors}}, $err_at; $return = $item[$#item] unless defined $return; if (defined $::RD_TRACE) { Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . $return . q{])}, "", q{class_load_functions}, $tracelevel); Parse::RecDescent::_trace(q{(consumed: [} . Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, Parse::RecDescent::_tracefirst($text), , q{class_load_functions}, $tracelevel) } $_[1] = $text; return $return; } # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) sub Parse::RecDescent::Module::ExtractUse::Grammar::comma { my $thisparser = $_[0]; use vars q{$tracelevel}; local $tracelevel = ($tracelevel||0)+1; $ERRORS = 0; my $thisrule = $thisparser->{"rules"}{"comma"}; Parse::RecDescent::_trace(q{Trying rule: [comma]}, Parse::RecDescent::_tracefirst($_[1]), q{comma}, $tracelevel) if defined $::RD_TRACE; my $err_at = @{$thisparser->{errors}}; my $score; my $score_return; my $_tok; my $return = undef; my $_matched=0; my $commit=0; my @item = (); my %item = (); my $repeating = $_[2]; my $_noactions = $_[3]; my @arg = defined $_[4] ? @{ &{$_[4]} } : (); my $_itempos = $_[5]; my %arg = ($#arg & 01) ? @arg : (@arg, undef); my $text; my $lastsep; my $current_match; my $expectation = new Parse::RecDescent::Expectation(q{',', or '=>'}); $expectation->at($_[1]); my $thisline; tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: [',', or '=>']}, Parse::RecDescent::_tracefirst($_[1]), q{comma}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[0]; $text = $_[1]; my $_savetext; @item = (q{comma}); %item = (__RULE__ => q{comma}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying subrule: [_alternation_1_of_production_1_of_rule_comma]}, Parse::RecDescent::_tracefirst($text), q{comma}, $tracelevel) if defined $::RD_TRACE; if (1) { no strict qw{refs}; $expectation->is(q{})->at($text); unless (defined ($_tok = Parse::RecDescent::Module::ExtractUse::Grammar::_alternation_1_of_production_1_of_rule_comma($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{comma}, $tracelevel) if defined $::RD_TRACE; $expectation->failed(); last; } Parse::RecDescent::_trace(q{>>Matched subrule: [_alternation_1_of_production_1_of_rule_comma]<< (return value: [} . $_tok . q{]}, Parse::RecDescent::_tracefirst($text), q{comma}, $tracelevel) if defined $::RD_TRACE; $item{q{_alternation_1_of_production_1_of_rule_comma}} = $_tok; push @item, $_tok; } Parse::RecDescent::_trace(q{>>Matched production: [',', or '=>']<<}, Parse::RecDescent::_tracefirst($text), q{comma}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } unless ( $_matched || defined($score) ) { $_[1] = $text; # NOT SURE THIS IS NEEDED Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($_[1]), q{comma}, $tracelevel) if defined $::RD_TRACE; return undef; } if (!defined($return) && defined($score)) { Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", q{comma}, $tracelevel) if defined $::RD_TRACE; $return = $score_return; } splice @{$thisparser->{errors}}, $err_at; $return = $item[$#item] unless defined $return; if (defined $::RD_TRACE) { Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . $return . q{])}, "", q{comma}, $tracelevel); Parse::RecDescent::_trace(q{(consumed: [} . Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, Parse::RecDescent::_tracefirst($text), , q{comma}, $tracelevel) } $_[1] = $text; return $return; } # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) sub Parse::RecDescent::Module::ExtractUse::Grammar::comma_first_existing_arg { my $thisparser = $_[0]; use vars q{$tracelevel}; local $tracelevel = ($tracelevel||0)+1; $ERRORS = 0; my $thisrule = $thisparser->{"rules"}{"comma_first_existing_arg"}; Parse::RecDescent::_trace(q{Trying rule: [comma_first_existing_arg]}, Parse::RecDescent::_tracefirst($_[1]), q{comma_first_existing_arg}, $tracelevel) if defined $::RD_TRACE; my $err_at = @{$thisparser->{errors}}; my $score; my $score_return; my $_tok; my $return = undef; my $_matched=0; my $commit=0; my @item = (); my %item = (); my $repeating = $_[2]; my $_noactions = $_[3]; my @arg = defined $_[4] ? @{ &{$_[4]} } : (); my $_itempos = $_[5]; my %arg = ($#arg & 01) ? @arg : (@arg, undef); my $text; my $lastsep; my $current_match; my $expectation = new Parse::RecDescent::Expectation(q{comma}); $expectation->at($_[1]); my $thisline; tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: [comma first_existing_arg]}, Parse::RecDescent::_tracefirst($_[1]), q{comma_first_existing_arg}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[0]; $text = $_[1]; my $_savetext; @item = (q{comma_first_existing_arg}); %item = (__RULE__ => q{comma_first_existing_arg}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying subrule: [comma]}, Parse::RecDescent::_tracefirst($text), q{comma_first_existing_arg}, $tracelevel) if defined $::RD_TRACE; if (1) { no strict qw{refs}; $expectation->is(q{})->at($text); unless (defined ($_tok = Parse::RecDescent::Module::ExtractUse::Grammar::comma($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{comma_first_existing_arg}, $tracelevel) if defined $::RD_TRACE; $expectation->failed(); last; } Parse::RecDescent::_trace(q{>>Matched subrule: [comma]<< (return value: [} . $_tok . q{]}, Parse::RecDescent::_tracefirst($text), q{comma_first_existing_arg}, $tracelevel) if defined $::RD_TRACE; $item{q{comma}} = $_tok; push @item, $_tok; } Parse::RecDescent::_trace(q{Trying subrule: [first_existing_arg]}, Parse::RecDescent::_tracefirst($text), q{comma_first_existing_arg}, $tracelevel) if defined $::RD_TRACE; if (1) { no strict qw{refs}; $expectation->is(q{first_existing_arg})->at($text); unless (defined ($_tok = Parse::RecDescent::Module::ExtractUse::Grammar::first_existing_arg($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{comma_first_existing_arg}, $tracelevel) if defined $::RD_TRACE; $expectation->failed(); last; } Parse::RecDescent::_trace(q{>>Matched subrule: [first_existing_arg]<< (return value: [} . $_tok . q{]}, Parse::RecDescent::_tracefirst($text), q{comma_first_existing_arg}, $tracelevel) if defined $::RD_TRACE; $item{q{first_existing_arg}} = $_tok; push @item, $_tok; } Parse::RecDescent::_trace(q{Trying action}, Parse::RecDescent::_tracefirst($text), q{comma_first_existing_arg}, $tracelevel) if defined $::RD_TRACE; $_tok = ($_noactions) ? 0 : do { $return = $item{first_existing_arg} }; unless (defined $_tok) { Parse::RecDescent::_trace(q{<> (return value: [undef])}) if defined $::RD_TRACE; last; } Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} . $_tok . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $_tok; $item{__ACTION1__}=$_tok; Parse::RecDescent::_trace(q{>>Matched production: [comma first_existing_arg]<<}, Parse::RecDescent::_tracefirst($text), q{comma_first_existing_arg}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } unless ( $_matched || defined($score) ) { $_[1] = $text; # NOT SURE THIS IS NEEDED Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($_[1]), q{comma_first_existing_arg}, $tracelevel) if defined $::RD_TRACE; return undef; } if (!defined($return) && defined($score)) { Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", q{comma_first_existing_arg}, $tracelevel) if defined $::RD_TRACE; $return = $score_return; } splice @{$thisparser->{errors}}, $err_at; $return = $item[$#item] unless defined $return; if (defined $::RD_TRACE) { Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . $return . q{])}, "", q{comma_first_existing_arg}, $tracelevel); Parse::RecDescent::_trace(q{(consumed: [} . Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, Parse::RecDescent::_tracefirst($text), , q{comma_first_existing_arg}, $tracelevel) } $_[1] = $text; return $return; } # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) sub Parse::RecDescent::Module::ExtractUse::Grammar::comma_hash_pair { my $thisparser = $_[0]; use vars q{$tracelevel}; local $tracelevel = ($tracelevel||0)+1; $ERRORS = 0; my $thisrule = $thisparser->{"rules"}{"comma_hash_pair"}; Parse::RecDescent::_trace(q{Trying rule: [comma_hash_pair]}, Parse::RecDescent::_tracefirst($_[1]), q{comma_hash_pair}, $tracelevel) if defined $::RD_TRACE; my $err_at = @{$thisparser->{errors}}; my $score; my $score_return; my $_tok; my $return = undef; my $_matched=0; my $commit=0; my @item = (); my %item = (); my $repeating = $_[2]; my $_noactions = $_[3]; my @arg = defined $_[4] ? @{ &{$_[4]} } : (); my $_itempos = $_[5]; my %arg = ($#arg & 01) ? @arg : (@arg, undef); my $text; my $lastsep; my $current_match; my $expectation = new Parse::RecDescent::Expectation(q{comma}); $expectation->at($_[1]); my $thisline; tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: [comma hash_pair]}, Parse::RecDescent::_tracefirst($_[1]), q{comma_hash_pair}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[0]; $text = $_[1]; my $_savetext; @item = (q{comma_hash_pair}); %item = (__RULE__ => q{comma_hash_pair}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying subrule: [comma]}, Parse::RecDescent::_tracefirst($text), q{comma_hash_pair}, $tracelevel) if defined $::RD_TRACE; if (1) { no strict qw{refs}; $expectation->is(q{})->at($text); unless (defined ($_tok = Parse::RecDescent::Module::ExtractUse::Grammar::comma($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{comma_hash_pair}, $tracelevel) if defined $::RD_TRACE; $expectation->failed(); last; } Parse::RecDescent::_trace(q{>>Matched subrule: [comma]<< (return value: [} . $_tok . q{]}, Parse::RecDescent::_tracefirst($text), q{comma_hash_pair}, $tracelevel) if defined $::RD_TRACE; $item{q{comma}} = $_tok; push @item, $_tok; } Parse::RecDescent::_trace(q{Trying subrule: [hash_pair]}, Parse::RecDescent::_tracefirst($text), q{comma_hash_pair}, $tracelevel) if defined $::RD_TRACE; if (1) { no strict qw{refs}; $expectation->is(q{hash_pair})->at($text); unless (defined ($_tok = Parse::RecDescent::Module::ExtractUse::Grammar::hash_pair($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{comma_hash_pair}, $tracelevel) if defined $::RD_TRACE; $expectation->failed(); last; } Parse::RecDescent::_trace(q{>>Matched subrule: [hash_pair]<< (return value: [} . $_tok . q{]}, Parse::RecDescent::_tracefirst($text), q{comma_hash_pair}, $tracelevel) if defined $::RD_TRACE; $item{q{hash_pair}} = $_tok; push @item, $_tok; } Parse::RecDescent::_trace(q{>>Matched production: [comma hash_pair]<<}, Parse::RecDescent::_tracefirst($text), q{comma_hash_pair}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } unless ( $_matched || defined($score) ) { $_[1] = $text; # NOT SURE THIS IS NEEDED Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($_[1]), q{comma_hash_pair}, $tracelevel) if defined $::RD_TRACE; return undef; } if (!defined($return) && defined($score)) { Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", q{comma_hash_pair}, $tracelevel) if defined $::RD_TRACE; $return = $score_return; } splice @{$thisparser->{errors}}, $err_at; $return = $item[$#item] unless defined $return; if (defined $::RD_TRACE) { Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . $return . q{])}, "", q{comma_hash_pair}, $tracelevel); Parse::RecDescent::_trace(q{(consumed: [} . Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, Parse::RecDescent::_tracefirst($text), , q{comma_hash_pair}, $tracelevel) } $_[1] = $text; return $return; } # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) sub Parse::RecDescent::Module::ExtractUse::Grammar::comma_hashref { my $thisparser = $_[0]; use vars q{$tracelevel}; local $tracelevel = ($tracelevel||0)+1; $ERRORS = 0; my $thisrule = $thisparser->{"rules"}{"comma_hashref"}; Parse::RecDescent::_trace(q{Trying rule: [comma_hashref]}, Parse::RecDescent::_tracefirst($_[1]), q{comma_hashref}, $tracelevel) if defined $::RD_TRACE; my $err_at = @{$thisparser->{errors}}; my $score; my $score_return; my $_tok; my $return = undef; my $_matched=0; my $commit=0; my @item = (); my %item = (); my $repeating = $_[2]; my $_noactions = $_[3]; my @arg = defined $_[4] ? @{ &{$_[4]} } : (); my $_itempos = $_[5]; my %arg = ($#arg & 01) ? @arg : (@arg, undef); my $text; my $lastsep; my $current_match; my $expectation = new Parse::RecDescent::Expectation(q{comma}); $expectation->at($_[1]); my $thisline; tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: [comma hashref]}, Parse::RecDescent::_tracefirst($_[1]), q{comma_hashref}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[0]; $text = $_[1]; my $_savetext; @item = (q{comma_hashref}); %item = (__RULE__ => q{comma_hashref}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying subrule: [comma]}, Parse::RecDescent::_tracefirst($text), q{comma_hashref}, $tracelevel) if defined $::RD_TRACE; if (1) { no strict qw{refs}; $expectation->is(q{})->at($text); unless (defined ($_tok = Parse::RecDescent::Module::ExtractUse::Grammar::comma($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{comma_hashref}, $tracelevel) if defined $::RD_TRACE; $expectation->failed(); last; } Parse::RecDescent::_trace(q{>>Matched subrule: [comma]<< (return value: [} . $_tok . q{]}, Parse::RecDescent::_tracefirst($text), q{comma_hashref}, $tracelevel) if defined $::RD_TRACE; $item{q{comma}} = $_tok; push @item, $_tok; } Parse::RecDescent::_trace(q{Trying subrule: [hashref]}, Parse::RecDescent::_tracefirst($text), q{comma_hashref}, $tracelevel) if defined $::RD_TRACE; if (1) { no strict qw{refs}; $expectation->is(q{hashref})->at($text); unless (defined ($_tok = Parse::RecDescent::Module::ExtractUse::Grammar::hashref($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{comma_hashref}, $tracelevel) if defined $::RD_TRACE; $expectation->failed(); last; } Parse::RecDescent::_trace(q{>>Matched subrule: [hashref]<< (return value: [} . $_tok . q{]}, Parse::RecDescent::_tracefirst($text), q{comma_hashref}, $tracelevel) if defined $::RD_TRACE; $item{q{hashref}} = $_tok; push @item, $_tok; } Parse::RecDescent::_trace(q{>>Matched production: [comma hashref]<<}, Parse::RecDescent::_tracefirst($text), q{comma_hashref}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } unless ( $_matched || defined($score) ) { $_[1] = $text; # NOT SURE THIS IS NEEDED Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($_[1]), q{comma_hashref}, $tracelevel) if defined $::RD_TRACE; return undef; } if (!defined($return) && defined($score)) { Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", q{comma_hashref}, $tracelevel) if defined $::RD_TRACE; $return = $score_return; } splice @{$thisparser->{errors}}, $err_at; $return = $item[$#item] unless defined $return; if (defined $::RD_TRACE) { Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . $return . q{])}, "", q{comma_hashref}, $tracelevel); Parse::RecDescent::_trace(q{(consumed: [} . Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, Parse::RecDescent::_tracefirst($text), , q{comma_hashref}, $tracelevel) } $_[1] = $text; return $return; } # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) sub Parse::RecDescent::Module::ExtractUse::Grammar::comma_list_item { my $thisparser = $_[0]; use vars q{$tracelevel}; local $tracelevel = ($tracelevel||0)+1; $ERRORS = 0; my $thisrule = $thisparser->{"rules"}{"comma_list_item"}; Parse::RecDescent::_trace(q{Trying rule: [comma_list_item]}, Parse::RecDescent::_tracefirst($_[1]), q{comma_list_item}, $tracelevel) if defined $::RD_TRACE; my $err_at = @{$thisparser->{errors}}; my $score; my $score_return; my $_tok; my $return = undef; my $_matched=0; my $commit=0; my @item = (); my %item = (); my $repeating = $_[2]; my $_noactions = $_[3]; my @arg = defined $_[4] ? @{ &{$_[4]} } : (); my $_itempos = $_[5]; my %arg = ($#arg & 01) ? @arg : (@arg, undef); my $text; my $lastsep; my $current_match; my $expectation = new Parse::RecDescent::Expectation(q{comma}); $expectation->at($_[1]); my $thisline; tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: [comma list_item]}, Parse::RecDescent::_tracefirst($_[1]), q{comma_list_item}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[0]; $text = $_[1]; my $_savetext; @item = (q{comma_list_item}); %item = (__RULE__ => q{comma_list_item}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying subrule: [comma]}, Parse::RecDescent::_tracefirst($text), q{comma_list_item}, $tracelevel) if defined $::RD_TRACE; if (1) { no strict qw{refs}; $expectation->is(q{})->at($text); unless (defined ($_tok = Parse::RecDescent::Module::ExtractUse::Grammar::comma($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{comma_list_item}, $tracelevel) if defined $::RD_TRACE; $expectation->failed(); last; } Parse::RecDescent::_trace(q{>>Matched subrule: [comma]<< (return value: [} . $_tok . q{]}, Parse::RecDescent::_tracefirst($text), q{comma_list_item}, $tracelevel) if defined $::RD_TRACE; $item{q{comma}} = $_tok; push @item, $_tok; } Parse::RecDescent::_trace(q{Trying subrule: [list_item]}, Parse::RecDescent::_tracefirst($text), q{comma_list_item}, $tracelevel) if defined $::RD_TRACE; if (1) { no strict qw{refs}; $expectation->is(q{list_item})->at($text); unless (defined ($_tok = Parse::RecDescent::Module::ExtractUse::Grammar::list_item($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{comma_list_item}, $tracelevel) if defined $::RD_TRACE; $expectation->failed(); last; } Parse::RecDescent::_trace(q{>>Matched subrule: [list_item]<< (return value: [} . $_tok . q{]}, Parse::RecDescent::_tracefirst($text), q{comma_list_item}, $tracelevel) if defined $::RD_TRACE; $item{q{list_item}} = $_tok; push @item, $_tok; } Parse::RecDescent::_trace(q{Trying action}, Parse::RecDescent::_tracefirst($text), q{comma_list_item}, $tracelevel) if defined $::RD_TRACE; $_tok = ($_noactions) ? 0 : do { $return=$item{list_item} }; unless (defined $_tok) { Parse::RecDescent::_trace(q{<> (return value: [undef])}) if defined $::RD_TRACE; last; } Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} . $_tok . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $_tok; $item{__ACTION1__}=$_tok; Parse::RecDescent::_trace(q{>>Matched production: [comma list_item]<<}, Parse::RecDescent::_tracefirst($text), q{comma_list_item}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } unless ( $_matched || defined($score) ) { $_[1] = $text; # NOT SURE THIS IS NEEDED Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($_[1]), q{comma_list_item}, $tracelevel) if defined $::RD_TRACE; return undef; } if (!defined($return) && defined($score)) { Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", q{comma_list_item}, $tracelevel) if defined $::RD_TRACE; $return = $score_return; } splice @{$thisparser->{errors}}, $err_at; $return = $item[$#item] unless defined $return; if (defined $::RD_TRACE) { Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . $return . q{])}, "", q{comma_list_item}, $tracelevel); Parse::RecDescent::_trace(q{(consumed: [} . Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, Parse::RecDescent::_tracefirst($text), , q{comma_list_item}, $tracelevel) } $_[1] = $text; return $return; } # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) sub Parse::RecDescent::Module::ExtractUse::Grammar::eos { my $thisparser = $_[0]; use vars q{$tracelevel}; local $tracelevel = ($tracelevel||0)+1; $ERRORS = 0; my $thisrule = $thisparser->{"rules"}{"eos"}; Parse::RecDescent::_trace(q{Trying rule: [eos]}, Parse::RecDescent::_tracefirst($_[1]), q{eos}, $tracelevel) if defined $::RD_TRACE; my $err_at = @{$thisparser->{errors}}; my $score; my $score_return; my $_tok; my $return = undef; my $_matched=0; my $commit=0; my @item = (); my %item = (); my $repeating = $_[2]; my $_noactions = $_[3]; my @arg = defined $_[4] ? @{ &{$_[4]} } : (); my $_itempos = $_[5]; my %arg = ($#arg & 01) ? @arg : (@arg, undef); my $text; my $lastsep; my $current_match; my $expectation = new Parse::RecDescent::Expectation(q{}); $expectation->at($_[1]); my $thisline; tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: []}, Parse::RecDescent::_tracefirst($_[1]), q{eos}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[0]; $text = $_[1]; my $_savetext; @item = (q{eos}); %item = (__RULE__ => q{eos}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying action}, Parse::RecDescent::_tracefirst($text), q{eos}, $tracelevel) if defined $::RD_TRACE; $_tok = ($_noactions) ? 0 : do { $text=~/^[\s;]+$/ ? 1 : undef;}; unless (defined $_tok) { Parse::RecDescent::_trace(q{<> (return value: [undef])}) if defined $::RD_TRACE; last; } Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} . $_tok . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $_tok; $item{__ACTION1__}=$_tok; Parse::RecDescent::_trace(q{>>Matched production: []<<}, Parse::RecDescent::_tracefirst($text), q{eos}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } unless ( $_matched || defined($score) ) { $_[1] = $text; # NOT SURE THIS IS NEEDED Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($_[1]), q{eos}, $tracelevel) if defined $::RD_TRACE; return undef; } if (!defined($return) && defined($score)) { Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", q{eos}, $tracelevel) if defined $::RD_TRACE; $return = $score_return; } splice @{$thisparser->{errors}}, $err_at; $return = $item[$#item] unless defined $return; if (defined $::RD_TRACE) { Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . $return . q{])}, "", q{eos}, $tracelevel); Parse::RecDescent::_trace(q{(consumed: [} . Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, Parse::RecDescent::_tracefirst($text), , q{eos}, $tracelevel) } $_[1] = $text; return $return; } # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) sub Parse::RecDescent::Module::ExtractUse::Grammar::first_existing_arg { my $thisparser = $_[0]; use vars q{$tracelevel}; local $tracelevel = ($tracelevel||0)+1; $ERRORS = 0; my $thisrule = $thisparser->{"rules"}{"first_existing_arg"}; Parse::RecDescent::_trace(q{Trying rule: [first_existing_arg]}, Parse::RecDescent::_tracefirst($_[1]), q{first_existing_arg}, $tracelevel) if defined $::RD_TRACE; my $err_at = @{$thisparser->{errors}}; my $score; my $score_return; my $_tok; my $return = undef; my $_matched=0; my $commit=0; my @item = (); my %item = (); my $repeating = $_[2]; my $_noactions = $_[3]; my @arg = defined $_[4] ? @{ &{$_[4]} } : (); my $_itempos = $_[5]; my %arg = ($#arg & 01) ? @arg : (@arg, undef); my $text; my $lastsep; my $current_match; my $expectation = new Parse::RecDescent::Expectation(q{}); $expectation->at($_[1]); my $thisline; tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: [ comma_hashref]}, Parse::RecDescent::_tracefirst($_[1]), q{first_existing_arg}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[0]; $text = $_[1]; my $_savetext; @item = (q{first_existing_arg}); %item = (__RULE__ => q{first_existing_arg}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying directive: []}, Parse::RecDescent::_tracefirst($text), q{first_existing_arg}, $tracelevel) if defined $::RD_TRACE; $_tok = do { my ($match,@res); ($match,$text,undef,@res) = Text::Balanced::extract_quotelike($text,$skip); $match ? \@res : undef; }; if (defined($_tok)) { Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} . $_tok . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; } else { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; } last unless defined $_tok; push @item, $item{__DIRECTIVE1__}=$_tok; Parse::RecDescent::_trace(q{Trying repeated subrule: [comma_hashref]}, Parse::RecDescent::_tracefirst($text), q{first_existing_arg}, $tracelevel) if defined $::RD_TRACE; $expectation->is(q{comma_hashref})->at($text); unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Module::ExtractUse::Grammar::comma_hashref, 0, 1, $_noactions,$expectation,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{first_existing_arg}, $tracelevel) if defined $::RD_TRACE; last; } Parse::RecDescent::_trace(q{>>Matched repeated subrule: [comma_hashref]<< (} . @$_tok . q{ times)}, Parse::RecDescent::_tracefirst($text), q{first_existing_arg}, $tracelevel) if defined $::RD_TRACE; $item{q{comma_hashref(?)}} = $_tok; push @item, $_tok; Parse::RecDescent::_trace(q{Trying action}, Parse::RecDescent::_tracefirst($text), q{first_existing_arg}, $tracelevel) if defined $::RD_TRACE; $_tok = ($_noactions) ? 0 : do { $return = $item[1][2] }; unless (defined $_tok) { Parse::RecDescent::_trace(q{<> (return value: [undef])}) if defined $::RD_TRACE; last; } Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} . $_tok . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $_tok; $item{__ACTION1__}=$_tok; Parse::RecDescent::_trace(q{>>Matched production: [ comma_hashref]<<}, Parse::RecDescent::_tracefirst($text), q{first_existing_arg}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } unless ( $_matched || defined($score) ) { $_[1] = $text; # NOT SURE THIS IS NEEDED Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($_[1]), q{first_existing_arg}, $tracelevel) if defined $::RD_TRACE; return undef; } if (!defined($return) && defined($score)) { Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", q{first_existing_arg}, $tracelevel) if defined $::RD_TRACE; $return = $score_return; } splice @{$thisparser->{errors}}, $err_at; $return = $item[$#item] unless defined $return; if (defined $::RD_TRACE) { Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . $return . q{])}, "", q{first_existing_arg}, $tracelevel); Parse::RecDescent::_trace(q{(consumed: [} . Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, Parse::RecDescent::_tracefirst($text), , q{first_existing_arg}, $tracelevel) } $_[1] = $text; return $return; } # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) sub Parse::RecDescent::Module::ExtractUse::Grammar::hash_pair { my $thisparser = $_[0]; use vars q{$tracelevel}; local $tracelevel = ($tracelevel||0)+1; $ERRORS = 0; my $thisrule = $thisparser->{"rules"}{"hash_pair"}; Parse::RecDescent::_trace(q{Trying rule: [hash_pair]}, Parse::RecDescent::_tracefirst($_[1]), q{hash_pair}, $tracelevel) if defined $::RD_TRACE; my $err_at = @{$thisparser->{errors}}; my $score; my $score_return; my $_tok; my $return = undef; my $_matched=0; my $commit=0; my @item = (); my %item = (); my $repeating = $_[2]; my $_noactions = $_[3]; my @arg = defined $_[4] ? @{ &{$_[4]} } : (); my $_itempos = $_[5]; my %arg = ($#arg & 01) ? @arg : (@arg, undef); my $text; my $lastsep; my $current_match; my $expectation = new Parse::RecDescent::Expectation(q{/\\S+/}); $expectation->at($_[1]); my $thisline; tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: [/\\S+/ comma /[^\\s,\}]+/]}, Parse::RecDescent::_tracefirst($_[1]), q{hash_pair}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[0]; $text = $_[1]; my $_savetext; @item = (q{hash_pair}); %item = (__RULE__ => q{hash_pair}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying terminal: [/\\S+/]}, Parse::RecDescent::_tracefirst($text), q{hash_pair}, $tracelevel) if defined $::RD_TRACE; undef $lastsep; $expectation->is(q{})->at($text); unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\S+)/) { $text = $lastsep . $text if defined $lastsep; $expectation->failed(); Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; last; } $current_match = substr($text, $-[0], $+[0] - $-[0]); substr($text,0,length($current_match),q{}); Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} . $current_match . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $item{__PATTERN1__}=$current_match; Parse::RecDescent::_trace(q{Trying subrule: [comma]}, Parse::RecDescent::_tracefirst($text), q{hash_pair}, $tracelevel) if defined $::RD_TRACE; if (1) { no strict qw{refs}; $expectation->is(q{comma})->at($text); unless (defined ($_tok = Parse::RecDescent::Module::ExtractUse::Grammar::comma($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{hash_pair}, $tracelevel) if defined $::RD_TRACE; $expectation->failed(); last; } Parse::RecDescent::_trace(q{>>Matched subrule: [comma]<< (return value: [} . $_tok . q{]}, Parse::RecDescent::_tracefirst($text), q{hash_pair}, $tracelevel) if defined $::RD_TRACE; $item{q{comma}} = $_tok; push @item, $_tok; } Parse::RecDescent::_trace(q{Trying subrule: [_alternation_1_of_production_1_of_rule_hash_pair]}, Parse::RecDescent::_tracefirst($text), q{hash_pair}, $tracelevel) if defined $::RD_TRACE; if (1) { no strict qw{refs}; $expectation->is(q{/[^\\s,\}]+/})->at($text); unless (defined ($_tok = Parse::RecDescent::Module::ExtractUse::Grammar::_alternation_1_of_production_1_of_rule_hash_pair($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{hash_pair}, $tracelevel) if defined $::RD_TRACE; $expectation->failed(); last; } Parse::RecDescent::_trace(q{>>Matched subrule: [_alternation_1_of_production_1_of_rule_hash_pair]<< (return value: [} . $_tok . q{]}, Parse::RecDescent::_tracefirst($text), q{hash_pair}, $tracelevel) if defined $::RD_TRACE; $item{q{_alternation_1_of_production_1_of_rule_hash_pair}} = $_tok; push @item, $_tok; } Parse::RecDescent::_trace(q{>>Matched production: [/\\S+/ comma /[^\\s,\}]+/]<<}, Parse::RecDescent::_tracefirst($text), q{hash_pair}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } unless ( $_matched || defined($score) ) { $_[1] = $text; # NOT SURE THIS IS NEEDED Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($_[1]), q{hash_pair}, $tracelevel) if defined $::RD_TRACE; return undef; } if (!defined($return) && defined($score)) { Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", q{hash_pair}, $tracelevel) if defined $::RD_TRACE; $return = $score_return; } splice @{$thisparser->{errors}}, $err_at; $return = $item[$#item] unless defined $return; if (defined $::RD_TRACE) { Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . $return . q{])}, "", q{hash_pair}, $tracelevel); Parse::RecDescent::_trace(q{(consumed: [} . Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, Parse::RecDescent::_tracefirst($text), , q{hash_pair}, $tracelevel) } $_[1] = $text; return $return; } # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) sub Parse::RecDescent::Module::ExtractUse::Grammar::hashref { my $thisparser = $_[0]; use vars q{$tracelevel}; local $tracelevel = ($tracelevel||0)+1; $ERRORS = 0; my $thisrule = $thisparser->{"rules"}{"hashref"}; Parse::RecDescent::_trace(q{Trying rule: [hashref]}, Parse::RecDescent::_tracefirst($_[1]), q{hashref}, $tracelevel) if defined $::RD_TRACE; my $err_at = @{$thisparser->{errors}}; my $score; my $score_return; my $_tok; my $return = undef; my $_matched=0; my $commit=0; my @item = (); my %item = (); my $repeating = $_[2]; my $_noactions = $_[3]; my @arg = defined $_[4] ? @{ &{$_[4]} } : (); my $_itempos = $_[5]; my %arg = ($#arg & 01) ? @arg : (@arg, undef); my $text; my $lastsep; my $current_match; my $expectation = new Parse::RecDescent::Expectation(q{'\{'}); $expectation->at($_[1]); my $thisline; tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: ['\{' hash_pair comma_hash_pair '\}']}, Parse::RecDescent::_tracefirst($_[1]), q{hashref}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[0]; $text = $_[1]; my $_savetext; @item = (q{hashref}); %item = (__RULE__ => q{hashref}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying terminal: ['\{']}, Parse::RecDescent::_tracefirst($text), q{hashref}, $tracelevel) if defined $::RD_TRACE; undef $lastsep; $expectation->is(q{})->at($text); unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\{/) { $text = $lastsep . $text if defined $lastsep; $expectation->failed(); Parse::RecDescent::_trace(qq{<>}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; last; } $current_match = substr($text, $-[0], $+[0] - $-[0]); substr($text,0,length($current_match),q{}); Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} . $current_match . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $item{__STRING1__}=$current_match; Parse::RecDescent::_trace(q{Trying subrule: [hash_pair]}, Parse::RecDescent::_tracefirst($text), q{hashref}, $tracelevel) if defined $::RD_TRACE; if (1) { no strict qw{refs}; $expectation->is(q{hash_pair})->at($text); unless (defined ($_tok = Parse::RecDescent::Module::ExtractUse::Grammar::hash_pair($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{hashref}, $tracelevel) if defined $::RD_TRACE; $expectation->failed(); last; } Parse::RecDescent::_trace(q{>>Matched subrule: [hash_pair]<< (return value: [} . $_tok . q{]}, Parse::RecDescent::_tracefirst($text), q{hashref}, $tracelevel) if defined $::RD_TRACE; $item{q{hash_pair}} = $_tok; push @item, $_tok; } Parse::RecDescent::_trace(q{Trying repeated subrule: [comma_hash_pair]}, Parse::RecDescent::_tracefirst($text), q{hashref}, $tracelevel) if defined $::RD_TRACE; $expectation->is(q{comma_hash_pair})->at($text); unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Module::ExtractUse::Grammar::comma_hash_pair, 0, 100000000, $_noactions,$expectation,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{hashref}, $tracelevel) if defined $::RD_TRACE; last; } Parse::RecDescent::_trace(q{>>Matched repeated subrule: [comma_hash_pair]<< (} . @$_tok . q{ times)}, Parse::RecDescent::_tracefirst($text), q{hashref}, $tracelevel) if defined $::RD_TRACE; $item{q{comma_hash_pair(s?)}} = $_tok; push @item, $_tok; Parse::RecDescent::_trace(q{Trying terminal: ['\}']}, Parse::RecDescent::_tracefirst($text), q{hashref}, $tracelevel) if defined $::RD_TRACE; undef $lastsep; $expectation->is(q{'\}'})->at($text); unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\}/) { $text = $lastsep . $text if defined $lastsep; $expectation->failed(); Parse::RecDescent::_trace(qq{<>}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; last; } $current_match = substr($text, $-[0], $+[0] - $-[0]); substr($text,0,length($current_match),q{}); Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} . $current_match . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $item{__STRING2__}=$current_match; Parse::RecDescent::_trace(q{>>Matched production: ['\{' hash_pair comma_hash_pair '\}']<<}, Parse::RecDescent::_tracefirst($text), q{hashref}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } unless ( $_matched || defined($score) ) { $_[1] = $text; # NOT SURE THIS IS NEEDED Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($_[1]), q{hashref}, $tracelevel) if defined $::RD_TRACE; return undef; } if (!defined($return) && defined($score)) { Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", q{hashref}, $tracelevel) if defined $::RD_TRACE; $return = $score_return; } splice @{$thisparser->{errors}}, $err_at; $return = $item[$#item] unless defined $return; if (defined $::RD_TRACE) { Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . $return . q{])}, "", q{hashref}, $tracelevel); Parse::RecDescent::_trace(q{(consumed: [} . Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, Parse::RecDescent::_tracefirst($text), , q{hashref}, $tracelevel) } $_[1] = $text; return $return; } # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) sub Parse::RecDescent::Module::ExtractUse::Grammar::import_list { my $thisparser = $_[0]; use vars q{$tracelevel}; local $tracelevel = ($tracelevel||0)+1; $ERRORS = 0; my $thisrule = $thisparser->{"rules"}{"import_list"}; Parse::RecDescent::_trace(q{Trying rule: [import_list]}, Parse::RecDescent::_tracefirst($_[1]), q{import_list}, $tracelevel) if defined $::RD_TRACE; my $err_at = @{$thisparser->{errors}}; my $score; my $score_return; my $_tok; my $return = undef; my $_matched=0; my $commit=0; my @item = (); my %item = (); my $repeating = $_[2]; my $_noactions = $_[3]; my @arg = defined $_[4] ? @{ &{$_[4]} } : (); my $_itempos = $_[5]; my %arg = ($#arg & 01) ? @arg : (@arg, undef); my $text; my $lastsep; my $current_match; my $expectation = new Parse::RecDescent::Expectation(q{/[(]?/, or /[(]\\s*[)]/}); $expectation->at($_[1]); my $thisline; tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: [/[(]?/ list_item comma_list_item /[)]?/]}, Parse::RecDescent::_tracefirst($_[1]), q{import_list}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[0]; $text = $_[1]; my $_savetext; @item = (q{import_list}); %item = (__RULE__ => q{import_list}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying terminal: [/[(]?/]}, Parse::RecDescent::_tracefirst($text), q{import_list}, $tracelevel) if defined $::RD_TRACE; undef $lastsep; $expectation->is(q{})->at($text); unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:[(]?)/) { $text = $lastsep . $text if defined $lastsep; $expectation->failed(); Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; last; } $current_match = substr($text, $-[0], $+[0] - $-[0]); substr($text,0,length($current_match),q{}); Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} . $current_match . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $item{__PATTERN1__}=$current_match; Parse::RecDescent::_trace(q{Trying subrule: [list_item]}, Parse::RecDescent::_tracefirst($text), q{import_list}, $tracelevel) if defined $::RD_TRACE; if (1) { no strict qw{refs}; $expectation->is(q{list_item})->at($text); unless (defined ($_tok = Parse::RecDescent::Module::ExtractUse::Grammar::list_item($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{import_list}, $tracelevel) if defined $::RD_TRACE; $expectation->failed(); last; } Parse::RecDescent::_trace(q{>>Matched subrule: [list_item]<< (return value: [} . $_tok . q{]}, Parse::RecDescent::_tracefirst($text), q{import_list}, $tracelevel) if defined $::RD_TRACE; $item{q{list_item}} = $_tok; push @item, $_tok; } Parse::RecDescent::_trace(q{Trying repeated subrule: [comma_list_item]}, Parse::RecDescent::_tracefirst($text), q{import_list}, $tracelevel) if defined $::RD_TRACE; $expectation->is(q{comma_list_item})->at($text); unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Module::ExtractUse::Grammar::comma_list_item, 0, 100000000, $_noactions,$expectation,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{import_list}, $tracelevel) if defined $::RD_TRACE; last; } Parse::RecDescent::_trace(q{>>Matched repeated subrule: [comma_list_item]<< (} . @$_tok . q{ times)}, Parse::RecDescent::_tracefirst($text), q{import_list}, $tracelevel) if defined $::RD_TRACE; $item{q{comma_list_item(s?)}} = $_tok; push @item, $_tok; Parse::RecDescent::_trace(q{Trying terminal: [/[)]?/]}, Parse::RecDescent::_tracefirst($text), q{import_list}, $tracelevel) if defined $::RD_TRACE; undef $lastsep; $expectation->is(q{/[)]?/})->at($text); unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:[)]?)/) { $text = $lastsep . $text if defined $lastsep; $expectation->failed(); Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; last; } $current_match = substr($text, $-[0], $+[0] - $-[0]); substr($text,0,length($current_match),q{}); Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} . $current_match . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $item{__PATTERN2__}=$current_match; Parse::RecDescent::_trace(q{Trying action}, Parse::RecDescent::_tracefirst($text), q{import_list}, $tracelevel) if defined $::RD_TRACE; $_tok = ($_noactions) ? 0 : do { $return=$item[2]; $return.=" ".join(" ",@{$item[3]}) if $item[3]; }; unless (defined $_tok) { Parse::RecDescent::_trace(q{<> (return value: [undef])}) if defined $::RD_TRACE; last; } Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} . $_tok . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $_tok; $item{__ACTION1__}=$_tok; Parse::RecDescent::_trace(q{>>Matched production: [/[(]?/ list_item comma_list_item /[)]?/]<<}, Parse::RecDescent::_tracefirst($text), q{import_list}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: [/[(]\\s*[)]/]}, Parse::RecDescent::_tracefirst($_[1]), q{import_list}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[1]; $text = $_[1]; my $_savetext; @item = (q{import_list}); %item = (__RULE__ => q{import_list}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying terminal: [/[(]\\s*[)]/]}, Parse::RecDescent::_tracefirst($text), q{import_list}, $tracelevel) if defined $::RD_TRACE; undef $lastsep; $expectation->is(q{})->at($text); unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:[(]\s*[)])/) { $text = $lastsep . $text if defined $lastsep; $expectation->failed(); Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; last; } $current_match = substr($text, $-[0], $+[0] - $-[0]); substr($text,0,length($current_match),q{}); Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} . $current_match . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $item{__PATTERN1__}=$current_match; Parse::RecDescent::_trace(q{Trying action}, Parse::RecDescent::_tracefirst($text), q{import_list}, $tracelevel) if defined $::RD_TRACE; $_tok = ($_noactions) ? 0 : do { $return='' }; unless (defined $_tok) { Parse::RecDescent::_trace(q{<> (return value: [undef])}) if defined $::RD_TRACE; last; } Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} . $_tok . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $_tok; $item{__ACTION1__}=$_tok; Parse::RecDescent::_trace(q{>>Matched production: [/[(]\\s*[)]/]<<}, Parse::RecDescent::_tracefirst($text), q{import_list}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } unless ( $_matched || defined($score) ) { $_[1] = $text; # NOT SURE THIS IS NEEDED Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($_[1]), q{import_list}, $tracelevel) if defined $::RD_TRACE; return undef; } if (!defined($return) && defined($score)) { Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", q{import_list}, $tracelevel) if defined $::RD_TRACE; $return = $score_return; } splice @{$thisparser->{errors}}, $err_at; $return = $item[$#item] unless defined $return; if (defined $::RD_TRACE) { Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . $return . q{])}, "", q{import_list}, $tracelevel); Parse::RecDescent::_trace(q{(consumed: [} . Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, Parse::RecDescent::_tracefirst($text), , q{import_list}, $tracelevel) } $_[1] = $text; return $return; } # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) sub Parse::RecDescent::Module::ExtractUse::Grammar::list_item { my $thisparser = $_[0]; use vars q{$tracelevel}; local $tracelevel = ($tracelevel||0)+1; $ERRORS = 0; my $thisrule = $thisparser->{"rules"}{"list_item"}; Parse::RecDescent::_trace(q{Trying rule: [list_item]}, Parse::RecDescent::_tracefirst($_[1]), q{list_item}, $tracelevel) if defined $::RD_TRACE; my $err_at = @{$thisparser->{errors}}; my $score; my $score_return; my $_tok; my $return = undef; my $_matched=0; my $commit=0; my @item = (); my %item = (); my $repeating = $_[2]; my $_noactions = $_[3]; my @arg = defined $_[4] ? @{ &{$_[4]} } : (); my $_itempos = $_[5]; my %arg = ($#arg & 01) ? @arg : (@arg, undef); my $text; my $lastsep; my $current_match; my $expectation = new Parse::RecDescent::Expectation(q{/-?\\w+/}); $expectation->at($_[1]); my $thisline; tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: []}, Parse::RecDescent::_tracefirst($_[1]), q{list_item}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[0]; $text = $_[1]; my $_savetext; @item = (q{list_item}); %item = (__RULE__ => q{list_item}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying directive: []}, Parse::RecDescent::_tracefirst($text), q{list_item}, $tracelevel) if defined $::RD_TRACE; $_tok = do { my ($match,@res); ($match,$text,undef,@res) = Text::Balanced::extract_quotelike($text,$skip); $match ? \@res : undef; }; if (defined($_tok)) { Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} . $_tok . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; } else { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; } last unless defined $_tok; push @item, $item{__DIRECTIVE1__}=$_tok; Parse::RecDescent::_trace(q{Trying action}, Parse::RecDescent::_tracefirst($text), q{list_item}, $tracelevel) if defined $::RD_TRACE; $_tok = ($_noactions) ? 0 : do { $return=$item[1][2] }; unless (defined $_tok) { Parse::RecDescent::_trace(q{<> (return value: [undef])}) if defined $::RD_TRACE; last; } Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} . $_tok . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $_tok; $item{__ACTION1__}=$_tok; Parse::RecDescent::_trace(q{>>Matched production: []<<}, Parse::RecDescent::_tracefirst($text), q{list_item}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: []}, Parse::RecDescent::_tracefirst($_[1]), q{list_item}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[1]; $text = $_[1]; my $_savetext; @item = (q{list_item}); %item = (__RULE__ => q{list_item}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying directive: []}, Parse::RecDescent::_tracefirst($text), q{list_item}, $tracelevel) if defined $::RD_TRACE; $_tok = do { Text::Balanced::extract_codeblock($text,undef,$skip,'(){}[]'); }; if (defined($_tok)) { Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} . $_tok . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; } else { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; } last unless defined $_tok; push @item, $item{__DIRECTIVE1__}=$_tok; Parse::RecDescent::_trace(q{Trying action}, Parse::RecDescent::_tracefirst($text), q{list_item}, $tracelevel) if defined $::RD_TRACE; $_tok = ($_noactions) ? 0 : do { $return=$item[1] }; unless (defined $_tok) { Parse::RecDescent::_trace(q{<> (return value: [undef])}) if defined $::RD_TRACE; last; } Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} . $_tok . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $_tok; $item{__ACTION1__}=$_tok; Parse::RecDescent::_trace(q{>>Matched production: []<<}, Parse::RecDescent::_tracefirst($text), q{list_item}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: [/-?\\w+/]}, Parse::RecDescent::_tracefirst($_[1]), q{list_item}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[2]; $text = $_[1]; my $_savetext; @item = (q{list_item}); %item = (__RULE__ => q{list_item}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying terminal: [/-?\\w+/]}, Parse::RecDescent::_tracefirst($text), q{list_item}, $tracelevel) if defined $::RD_TRACE; undef $lastsep; $expectation->is(q{})->at($text); unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:-?\w+)/) { $text = $lastsep . $text if defined $lastsep; $expectation->failed(); Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; last; } $current_match = substr($text, $-[0], $+[0] - $-[0]); substr($text,0,length($current_match),q{}); Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} . $current_match . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $item{__PATTERN1__}=$current_match; Parse::RecDescent::_trace(q{Trying action}, Parse::RecDescent::_tracefirst($text), q{list_item}, $tracelevel) if defined $::RD_TRACE; $_tok = ($_noactions) ? 0 : do { $return=$item[1] }; unless (defined $_tok) { Parse::RecDescent::_trace(q{<> (return value: [undef])}) if defined $::RD_TRACE; last; } Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} . $_tok . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $_tok; $item{__ACTION1__}=$_tok; Parse::RecDescent::_trace(q{>>Matched production: [/-?\\w+/]<<}, Parse::RecDescent::_tracefirst($text), q{list_item}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } unless ( $_matched || defined($score) ) { $_[1] = $text; # NOT SURE THIS IS NEEDED Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($_[1]), q{list_item}, $tracelevel) if defined $::RD_TRACE; return undef; } if (!defined($return) && defined($score)) { Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", q{list_item}, $tracelevel) if defined $::RD_TRACE; $return = $score_return; } splice @{$thisparser->{errors}}, $err_at; $return = $item[$#item] unless defined $return; if (defined $::RD_TRACE) { Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . $return . q{])}, "", q{list_item}, $tracelevel); Parse::RecDescent::_trace(q{(consumed: [} . Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, Parse::RecDescent::_tracefirst($text), , q{list_item}, $tracelevel) } $_[1] = $text; return $return; } # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) sub Parse::RecDescent::Module::ExtractUse::Grammar::module { my $thisparser = $_[0]; use vars q{$tracelevel}; local $tracelevel = ($tracelevel||0)+1; $ERRORS = 0; my $thisrule = $thisparser->{"rules"}{"module"}; Parse::RecDescent::_trace(q{Trying rule: [module]}, Parse::RecDescent::_tracefirst($_[1]), q{module}, $tracelevel) if defined $::RD_TRACE; my $err_at = @{$thisparser->{errors}}; my $score; my $score_return; my $_tok; my $return = undef; my $_matched=0; my $commit=0; my @item = (); my %item = (); my $repeating = $_[2]; my $_noactions = $_[3]; my @arg = defined $_[4] ? @{ &{$_[4]} } : (); my $_itempos = $_[5]; my %arg = ($#arg & 01) ? @arg : (@arg, undef); my $text; my $lastsep; my $current_match; my $expectation = new Parse::RecDescent::Expectation(q{module_name}); $expectation->at($_[1]); my $thisline; tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: [module_name module_more]}, Parse::RecDescent::_tracefirst($_[1]), q{module}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[0]; $text = $_[1]; my $_savetext; @item = (q{module}); %item = (__RULE__ => q{module}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying subrule: [module_name]}, Parse::RecDescent::_tracefirst($text), q{module}, $tracelevel) if defined $::RD_TRACE; if (1) { no strict qw{refs}; $expectation->is(q{})->at($text); unless (defined ($_tok = Parse::RecDescent::Module::ExtractUse::Grammar::module_name($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{module}, $tracelevel) if defined $::RD_TRACE; $expectation->failed(); last; } Parse::RecDescent::_trace(q{>>Matched subrule: [module_name]<< (return value: [} . $_tok . q{]}, Parse::RecDescent::_tracefirst($text), q{module}, $tracelevel) if defined $::RD_TRACE; $item{q{module_name}} = $_tok; push @item, $_tok; } Parse::RecDescent::_trace(q{Trying subrule: [module_more]}, Parse::RecDescent::_tracefirst($text), q{module}, $tracelevel) if defined $::RD_TRACE; if (1) { no strict qw{refs}; $expectation->is(q{module_more})->at($text); unless (defined ($_tok = Parse::RecDescent::Module::ExtractUse::Grammar::module_more($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{module}, $tracelevel) if defined $::RD_TRACE; $expectation->failed(); last; } Parse::RecDescent::_trace(q{>>Matched subrule: [module_more]<< (return value: [} . $_tok . q{]}, Parse::RecDescent::_tracefirst($text), q{module}, $tracelevel) if defined $::RD_TRACE; $item{q{module_more}} = $_tok; push @item, $_tok; } Parse::RecDescent::_trace(q{Trying action}, Parse::RecDescent::_tracefirst($text), q{module}, $tracelevel) if defined $::RD_TRACE; $_tok = ($_noactions) ? 0 : do { $return=$item{module_name} }; unless (defined $_tok) { Parse::RecDescent::_trace(q{<> (return value: [undef])}) if defined $::RD_TRACE; last; } Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} . $_tok . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $_tok; $item{__ACTION1__}=$_tok; Parse::RecDescent::_trace(q{>>Matched production: [module_name module_more]<<}, Parse::RecDescent::_tracefirst($text), q{module}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } unless ( $_matched || defined($score) ) { $_[1] = $text; # NOT SURE THIS IS NEEDED Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($_[1]), q{module}, $tracelevel) if defined $::RD_TRACE; return undef; } if (!defined($return) && defined($score)) { Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", q{module}, $tracelevel) if defined $::RD_TRACE; $return = $score_return; } splice @{$thisparser->{errors}}, $err_at; $return = $item[$#item] unless defined $return; if (defined $::RD_TRACE) { Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . $return . q{])}, "", q{module}, $tracelevel); Parse::RecDescent::_trace(q{(consumed: [} . Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, Parse::RecDescent::_tracefirst($text), , q{module}, $tracelevel) } $_[1] = $text; return $return; } # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) sub Parse::RecDescent::Module::ExtractUse::Grammar::module_more { my $thisparser = $_[0]; use vars q{$tracelevel}; local $tracelevel = ($tracelevel||0)+1; $ERRORS = 0; my $thisrule = $thisparser->{"rules"}{"module_more"}; Parse::RecDescent::_trace(q{Trying rule: [module_more]}, Parse::RecDescent::_tracefirst($_[1]), q{module_more}, $tracelevel) if defined $::RD_TRACE; my $err_at = @{$thisparser->{errors}}; my $score; my $score_return; my $_tok; my $return = undef; my $_matched=0; my $commit=0; my @item = (); my %item = (); my $repeating = $_[2]; my $_noactions = $_[3]; my @arg = defined $_[4] ? @{ &{$_[4]} } : (); my $_itempos = $_[5]; my %arg = ($#arg & 01) ? @arg : (@arg, undef); my $text; my $lastsep; my $current_match; my $expectation = new Parse::RecDescent::Expectation(q{eos, or version}); $expectation->at($_[1]); my $thisline; tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: [eos]}, Parse::RecDescent::_tracefirst($_[1]), q{module_more}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[0]; $text = $_[1]; my $_savetext; @item = (q{module_more}); %item = (__RULE__ => q{module_more}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying subrule: [eos]}, Parse::RecDescent::_tracefirst($text), q{module_more}, $tracelevel) if defined $::RD_TRACE; if (1) { no strict qw{refs}; $expectation->is(q{})->at($text); unless (defined ($_tok = Parse::RecDescent::Module::ExtractUse::Grammar::eos($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{module_more}, $tracelevel) if defined $::RD_TRACE; $expectation->failed(); last; } Parse::RecDescent::_trace(q{>>Matched subrule: [eos]<< (return value: [} . $_tok . q{]}, Parse::RecDescent::_tracefirst($text), q{module_more}, $tracelevel) if defined $::RD_TRACE; $item{q{eos}} = $_tok; push @item, $_tok; } Parse::RecDescent::_trace(q{>>Matched production: [eos]<<}, Parse::RecDescent::_tracefirst($text), q{module_more}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: [version var import_list]}, Parse::RecDescent::_tracefirst($_[1]), q{module_more}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[1]; $text = $_[1]; my $_savetext; @item = (q{module_more}); %item = (__RULE__ => q{module_more}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying repeated subrule: [version]}, Parse::RecDescent::_tracefirst($text), q{module_more}, $tracelevel) if defined $::RD_TRACE; $expectation->is(q{})->at($text); unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Module::ExtractUse::Grammar::version, 0, 1, $_noactions,$expectation,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{module_more}, $tracelevel) if defined $::RD_TRACE; last; } Parse::RecDescent::_trace(q{>>Matched repeated subrule: [version]<< (} . @$_tok . q{ times)}, Parse::RecDescent::_tracefirst($text), q{module_more}, $tracelevel) if defined $::RD_TRACE; $item{q{version(?)}} = $_tok; push @item, $_tok; Parse::RecDescent::_trace(q{Trying repeated subrule: [var]}, Parse::RecDescent::_tracefirst($text), q{module_more}, $tracelevel) if defined $::RD_TRACE; $expectation->is(q{var})->at($text); unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Module::ExtractUse::Grammar::var, 0, 1, $_noactions,$expectation,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{module_more}, $tracelevel) if defined $::RD_TRACE; last; } Parse::RecDescent::_trace(q{>>Matched repeated subrule: [var]<< (} . @$_tok . q{ times)}, Parse::RecDescent::_tracefirst($text), q{module_more}, $tracelevel) if defined $::RD_TRACE; $item{q{var(?)}} = $_tok; push @item, $_tok; Parse::RecDescent::_trace(q{Trying repeated subrule: [import_list]}, Parse::RecDescent::_tracefirst($text), q{module_more}, $tracelevel) if defined $::RD_TRACE; $expectation->is(q{import_list})->at($text); unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Module::ExtractUse::Grammar::import_list, 0, 1, $_noactions,$expectation,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{module_more}, $tracelevel) if defined $::RD_TRACE; last; } Parse::RecDescent::_trace(q{>>Matched repeated subrule: [import_list]<< (} . @$_tok . q{ times)}, Parse::RecDescent::_tracefirst($text), q{module_more}, $tracelevel) if defined $::RD_TRACE; $item{q{import_list(?)}} = $_tok; push @item, $_tok; Parse::RecDescent::_trace(q{>>Matched production: [version var import_list]<<}, Parse::RecDescent::_tracefirst($text), q{module_more}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } unless ( $_matched || defined($score) ) { $_[1] = $text; # NOT SURE THIS IS NEEDED Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($_[1]), q{module_more}, $tracelevel) if defined $::RD_TRACE; return undef; } if (!defined($return) && defined($score)) { Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", q{module_more}, $tracelevel) if defined $::RD_TRACE; $return = $score_return; } splice @{$thisparser->{errors}}, $err_at; $return = $item[$#item] unless defined $return; if (defined $::RD_TRACE) { Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . $return . q{])}, "", q{module_more}, $tracelevel); Parse::RecDescent::_trace(q{(consumed: [} . Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, Parse::RecDescent::_tracefirst($text), , q{module_more}, $tracelevel) } $_[1] = $text; return $return; } # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) sub Parse::RecDescent::Module::ExtractUse::Grammar::module_name { my $thisparser = $_[0]; use vars q{$tracelevel}; local $tracelevel = ($tracelevel||0)+1; $ERRORS = 0; my $thisrule = $thisparser->{"rules"}{"module_name"}; Parse::RecDescent::_trace(q{Trying rule: [module_name]}, Parse::RecDescent::_tracefirst($_[1]), q{module_name}, $tracelevel) if defined $::RD_TRACE; my $err_at = @{$thisparser->{errors}}; my $score; my $score_return; my $_tok; my $return = undef; my $_matched=0; my $commit=0; my @item = (); my %item = (); my $repeating = $_[2]; my $_noactions = $_[3]; my @arg = defined $_[4] ? @{ &{$_[4]} } : (); my $_itempos = $_[5]; my %arg = ($#arg & 01) ? @arg : (@arg, undef); my $text; my $lastsep; my $current_match; my $expectation = new Parse::RecDescent::Expectation(q{/[\\w:]+/}); $expectation->at($_[1]); my $thisline; tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: [/[\\w:]+/]}, Parse::RecDescent::_tracefirst($_[1]), q{module_name}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[0]; $text = $_[1]; my $_savetext; @item = (q{module_name}); %item = (__RULE__ => q{module_name}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying terminal: [/[\\w:]+/]}, Parse::RecDescent::_tracefirst($text), q{module_name}, $tracelevel) if defined $::RD_TRACE; undef $lastsep; $expectation->is(q{})->at($text); unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:[\w:]+)/) { $text = $lastsep . $text if defined $lastsep; $expectation->failed(); Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; last; } $current_match = substr($text, $-[0], $+[0] - $-[0]); substr($text,0,length($current_match),q{}); Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} . $current_match . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $item{__PATTERN1__}=$current_match; Parse::RecDescent::_trace(q{>>Matched production: [/[\\w:]+/]<<}, Parse::RecDescent::_tracefirst($text), q{module_name}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } unless ( $_matched || defined($score) ) { $_[1] = $text; # NOT SURE THIS IS NEEDED Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($_[1]), q{module_name}, $tracelevel) if defined $::RD_TRACE; return undef; } if (!defined($return) && defined($score)) { Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", q{module_name}, $tracelevel) if defined $::RD_TRACE; $return = $score_return; } splice @{$thisparser->{errors}}, $err_at; $return = $item[$#item] unless defined $return; if (defined $::RD_TRACE) { Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . $return . q{])}, "", q{module_name}, $tracelevel); Parse::RecDescent::_trace(q{(consumed: [} . Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, Parse::RecDescent::_tracefirst($text), , q{module_name}, $tracelevel) } $_[1] = $text; return $return; } # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) sub Parse::RecDescent::Module::ExtractUse::Grammar::module_runtime_require_module { my $thisparser = $_[0]; use vars q{$tracelevel}; local $tracelevel = ($tracelevel||0)+1; $ERRORS = 0; my $thisrule = $thisparser->{"rules"}{"module_runtime_require_module"}; Parse::RecDescent::_trace(q{Trying rule: [module_runtime_require_module]}, Parse::RecDescent::_tracefirst($_[1]), q{module_runtime_require_module}, $tracelevel) if defined $::RD_TRACE; my $err_at = @{$thisparser->{errors}}; my $score; my $score_return; my $_tok; my $return = undef; my $_matched=0; my $commit=0; my @item = (); my %item = (); my $repeating = $_[2]; my $_noactions = $_[3]; my @arg = defined $_[4] ? @{ &{$_[4]} } : (); my $_itempos = $_[5]; my %arg = ($#arg & 01) ? @arg : (@arg, undef); my $text; my $lastsep; my $current_match; my $expectation = new Parse::RecDescent::Expectation(q{'Module::Runtime::require_module(', or /\\brequire_module\\(/}); $expectation->at($_[1]); my $thisline; tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: ['Module::Runtime::require_module(', or /\\brequire_module\\(/ ')']}, Parse::RecDescent::_tracefirst($_[1]), q{module_runtime_require_module}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[0]; $text = $_[1]; my $_savetext; @item = (q{module_runtime_require_module}); %item = (__RULE__ => q{module_runtime_require_module}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying subrule: [_alternation_1_of_production_1_of_rule_module_runtime_require_module]}, Parse::RecDescent::_tracefirst($text), q{module_runtime_require_module}, $tracelevel) if defined $::RD_TRACE; if (1) { no strict qw{refs}; $expectation->is(q{})->at($text); unless (defined ($_tok = Parse::RecDescent::Module::ExtractUse::Grammar::_alternation_1_of_production_1_of_rule_module_runtime_require_module($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{module_runtime_require_module}, $tracelevel) if defined $::RD_TRACE; $expectation->failed(); last; } Parse::RecDescent::_trace(q{>>Matched subrule: [_alternation_1_of_production_1_of_rule_module_runtime_require_module]<< (return value: [} . $_tok . q{]}, Parse::RecDescent::_tracefirst($text), q{module_runtime_require_module}, $tracelevel) if defined $::RD_TRACE; $item{q{_alternation_1_of_production_1_of_rule_module_runtime_require_module}} = $_tok; push @item, $_tok; } Parse::RecDescent::_trace(q{Trying directive: []}, Parse::RecDescent::_tracefirst($text), q{module_runtime_require_module}, $tracelevel) if defined $::RD_TRACE; $_tok = do { my ($match,@res); ($match,$text,undef,@res) = Text::Balanced::extract_quotelike($text,$skip); $match ? \@res : undef; }; if (defined($_tok)) { Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} . $_tok . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; } else { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; } last unless defined $_tok; push @item, $item{__DIRECTIVE1__}=$_tok; Parse::RecDescent::_trace(q{Trying terminal: [')']}, Parse::RecDescent::_tracefirst($text), q{module_runtime_require_module}, $tracelevel) if defined $::RD_TRACE; undef $lastsep; $expectation->is(q{')'})->at($text); unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\)/) { $text = $lastsep . $text if defined $lastsep; $expectation->failed(); Parse::RecDescent::_trace(qq{<>}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; last; } $current_match = substr($text, $-[0], $+[0] - $-[0]); substr($text,0,length($current_match),q{}); Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} . $current_match . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $item{__STRING1__}=$current_match; Parse::RecDescent::_trace(q{Trying action}, Parse::RecDescent::_tracefirst($text), q{module_runtime_require_module}, $tracelevel) if defined $::RD_TRACE; $_tok = ($_noactions) ? 0 : do { $return = $item[2][2] }; unless (defined $_tok) { Parse::RecDescent::_trace(q{<> (return value: [undef])}) if defined $::RD_TRACE; last; } Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} . $_tok . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $_tok; $item{__ACTION1__}=$_tok; Parse::RecDescent::_trace(q{>>Matched production: ['Module::Runtime::require_module(', or /\\brequire_module\\(/ ')']<<}, Parse::RecDescent::_tracefirst($text), q{module_runtime_require_module}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } unless ( $_matched || defined($score) ) { $_[1] = $text; # NOT SURE THIS IS NEEDED Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($_[1]), q{module_runtime_require_module}, $tracelevel) if defined $::RD_TRACE; return undef; } if (!defined($return) && defined($score)) { Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", q{module_runtime_require_module}, $tracelevel) if defined $::RD_TRACE; $return = $score_return; } splice @{$thisparser->{errors}}, $err_at; $return = $item[$#item] unless defined $return; if (defined $::RD_TRACE) { Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . $return . q{])}, "", q{module_runtime_require_module}, $tracelevel); Parse::RecDescent::_trace(q{(consumed: [} . Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, Parse::RecDescent::_tracefirst($text), , q{module_runtime_require_module}, $tracelevel) } $_[1] = $text; return $return; } # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) sub Parse::RecDescent::Module::ExtractUse::Grammar::module_runtime_use { my $thisparser = $_[0]; use vars q{$tracelevel}; local $tracelevel = ($tracelevel||0)+1; $ERRORS = 0; my $thisrule = $thisparser->{"rules"}{"module_runtime_use"}; Parse::RecDescent::_trace(q{Trying rule: [module_runtime_use]}, Parse::RecDescent::_tracefirst($_[1]), q{module_runtime_use}, $tracelevel) if defined $::RD_TRACE; my $err_at = @{$thisparser->{errors}}; my $score; my $score_return; my $_tok; my $return = undef; my $_matched=0; my $commit=0; my @item = (); my %item = (); my $repeating = $_[2]; my $_noactions = $_[3]; my @arg = defined $_[4] ? @{ &{$_[4]} } : (); my $_itempos = $_[5]; my %arg = ($#arg & 01) ? @arg : (@arg, undef); my $text; my $lastsep; my $current_match; my $expectation = new Parse::RecDescent::Expectation(q{'Module::Runtime::', or /\\b/}); $expectation->at($_[1]); my $thisline; tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: ['Module::Runtime::', or /\\b/ module_runtime_version ')']}, Parse::RecDescent::_tracefirst($_[1]), q{module_runtime_use}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[0]; $text = $_[1]; my $_savetext; @item = (q{module_runtime_use}); %item = (__RULE__ => q{module_runtime_use}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying subrule: [_alternation_1_of_production_1_of_rule_module_runtime_use]}, Parse::RecDescent::_tracefirst($text), q{module_runtime_use}, $tracelevel) if defined $::RD_TRACE; if (1) { no strict qw{refs}; $expectation->is(q{})->at($text); unless (defined ($_tok = Parse::RecDescent::Module::ExtractUse::Grammar::_alternation_1_of_production_1_of_rule_module_runtime_use($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{module_runtime_use}, $tracelevel) if defined $::RD_TRACE; $expectation->failed(); last; } Parse::RecDescent::_trace(q{>>Matched subrule: [_alternation_1_of_production_1_of_rule_module_runtime_use]<< (return value: [} . $_tok . q{]}, Parse::RecDescent::_tracefirst($text), q{module_runtime_use}, $tracelevel) if defined $::RD_TRACE; $item{q{_alternation_1_of_production_1_of_rule_module_runtime_use}} = $_tok; push @item, $_tok; } Parse::RecDescent::_trace(q{Trying directive: []}, Parse::RecDescent::_tracefirst($text), q{module_runtime_use}, $tracelevel) if defined $::RD_TRACE; $_tok = do { my ($match,@res); ($match,$text,undef,@res) = Text::Balanced::extract_quotelike($text,$skip); $match ? \@res : undef; }; if (defined($_tok)) { Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} . $_tok . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; } else { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; } last unless defined $_tok; push @item, $item{__DIRECTIVE1__}=$_tok; Parse::RecDescent::_trace(q{Trying repeated subrule: [module_runtime_version]}, Parse::RecDescent::_tracefirst($text), q{module_runtime_use}, $tracelevel) if defined $::RD_TRACE; $expectation->is(q{module_runtime_version})->at($text); unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Module::ExtractUse::Grammar::module_runtime_version, 0, 1, $_noactions,$expectation,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{module_runtime_use}, $tracelevel) if defined $::RD_TRACE; last; } Parse::RecDescent::_trace(q{>>Matched repeated subrule: [module_runtime_version]<< (} . @$_tok . q{ times)}, Parse::RecDescent::_tracefirst($text), q{module_runtime_use}, $tracelevel) if defined $::RD_TRACE; $item{q{module_runtime_version(?)}} = $_tok; push @item, $_tok; Parse::RecDescent::_trace(q{Trying terminal: [')']}, Parse::RecDescent::_tracefirst($text), q{module_runtime_use}, $tracelevel) if defined $::RD_TRACE; undef $lastsep; $expectation->is(q{')'})->at($text); unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\)/) { $text = $lastsep . $text if defined $lastsep; $expectation->failed(); Parse::RecDescent::_trace(qq{<>}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; last; } $current_match = substr($text, $-[0], $+[0] - $-[0]); substr($text,0,length($current_match),q{}); Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} . $current_match . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $item{__STRING1__}=$current_match; Parse::RecDescent::_trace(q{Trying action}, Parse::RecDescent::_tracefirst($text), q{module_runtime_use}, $tracelevel) if defined $::RD_TRACE; $_tok = ($_noactions) ? 0 : do { $return = $item[2][2] }; unless (defined $_tok) { Parse::RecDescent::_trace(q{<> (return value: [undef])}) if defined $::RD_TRACE; last; } Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} . $_tok . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $_tok; $item{__ACTION1__}=$_tok; Parse::RecDescent::_trace(q{>>Matched production: ['Module::Runtime::', or /\\b/ module_runtime_version ')']<<}, Parse::RecDescent::_tracefirst($text), q{module_runtime_use}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } unless ( $_matched || defined($score) ) { $_[1] = $text; # NOT SURE THIS IS NEEDED Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($_[1]), q{module_runtime_use}, $tracelevel) if defined $::RD_TRACE; return undef; } if (!defined($return) && defined($score)) { Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", q{module_runtime_use}, $tracelevel) if defined $::RD_TRACE; $return = $score_return; } splice @{$thisparser->{errors}}, $err_at; $return = $item[$#item] unless defined $return; if (defined $::RD_TRACE) { Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . $return . q{])}, "", q{module_runtime_use}, $tracelevel); Parse::RecDescent::_trace(q{(consumed: [} . Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, Parse::RecDescent::_tracefirst($text), , q{module_runtime_use}, $tracelevel) } $_[1] = $text; return $return; } # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) sub Parse::RecDescent::Module::ExtractUse::Grammar::module_runtime_use_fcn { my $thisparser = $_[0]; use vars q{$tracelevel}; local $tracelevel = ($tracelevel||0)+1; $ERRORS = 0; my $thisrule = $thisparser->{"rules"}{"module_runtime_use_fcn"}; Parse::RecDescent::_trace(q{Trying rule: [module_runtime_use_fcn]}, Parse::RecDescent::_tracefirst($_[1]), q{module_runtime_use_fcn}, $tracelevel) if defined $::RD_TRACE; my $err_at = @{$thisparser->{errors}}; my $score; my $score_return; my $_tok; my $return = undef; my $_matched=0; my $commit=0; my @item = (); my %item = (); my $repeating = $_[2]; my $_noactions = $_[3]; my @arg = defined $_[4] ? @{ &{$_[4]} } : (); my $_itempos = $_[5]; my %arg = ($#arg & 01) ? @arg : (@arg, undef); my $text; my $lastsep; my $current_match; my $expectation = new Parse::RecDescent::Expectation(q{'use_module', or 'use_package_optimistically'}); $expectation->at($_[1]); my $thisline; tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: ['use_module', or 'use_package_optimistically']}, Parse::RecDescent::_tracefirst($_[1]), q{module_runtime_use_fcn}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[0]; $text = $_[1]; my $_savetext; @item = (q{module_runtime_use_fcn}); %item = (__RULE__ => q{module_runtime_use_fcn}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying subrule: [_alternation_1_of_production_1_of_rule_module_runtime_use_fcn]}, Parse::RecDescent::_tracefirst($text), q{module_runtime_use_fcn}, $tracelevel) if defined $::RD_TRACE; if (1) { no strict qw{refs}; $expectation->is(q{})->at($text); unless (defined ($_tok = Parse::RecDescent::Module::ExtractUse::Grammar::_alternation_1_of_production_1_of_rule_module_runtime_use_fcn($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{module_runtime_use_fcn}, $tracelevel) if defined $::RD_TRACE; $expectation->failed(); last; } Parse::RecDescent::_trace(q{>>Matched subrule: [_alternation_1_of_production_1_of_rule_module_runtime_use_fcn]<< (return value: [} . $_tok . q{]}, Parse::RecDescent::_tracefirst($text), q{module_runtime_use_fcn}, $tracelevel) if defined $::RD_TRACE; $item{q{_alternation_1_of_production_1_of_rule_module_runtime_use_fcn}} = $_tok; push @item, $_tok; } Parse::RecDescent::_trace(q{>>Matched production: ['use_module', or 'use_package_optimistically']<<}, Parse::RecDescent::_tracefirst($text), q{module_runtime_use_fcn}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } unless ( $_matched || defined($score) ) { $_[1] = $text; # NOT SURE THIS IS NEEDED Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($_[1]), q{module_runtime_use_fcn}, $tracelevel) if defined $::RD_TRACE; return undef; } if (!defined($return) && defined($score)) { Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", q{module_runtime_use_fcn}, $tracelevel) if defined $::RD_TRACE; $return = $score_return; } splice @{$thisparser->{errors}}, $err_at; $return = $item[$#item] unless defined $return; if (defined $::RD_TRACE) { Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . $return . q{])}, "", q{module_runtime_use_fcn}, $tracelevel); Parse::RecDescent::_trace(q{(consumed: [} . Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, Parse::RecDescent::_tracefirst($text), , q{module_runtime_use_fcn}, $tracelevel) } $_[1] = $text; return $return; } # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) sub Parse::RecDescent::Module::ExtractUse::Grammar::module_runtime_version { my $thisparser = $_[0]; use vars q{$tracelevel}; local $tracelevel = ($tracelevel||0)+1; $ERRORS = 0; my $thisrule = $thisparser->{"rules"}{"module_runtime_version"}; Parse::RecDescent::_trace(q{Trying rule: [module_runtime_version]}, Parse::RecDescent::_tracefirst($_[1]), q{module_runtime_version}, $tracelevel) if defined $::RD_TRACE; my $err_at = @{$thisparser->{errors}}; my $score; my $score_return; my $_tok; my $return = undef; my $_matched=0; my $commit=0; my @item = (); my %item = (); my $repeating = $_[2]; my $_noactions = $_[3]; my @arg = defined $_[4] ? @{ &{$_[4]} } : (); my $_itempos = $_[5]; my %arg = ($#arg & 01) ? @arg : (@arg, undef); my $text; my $lastsep; my $current_match; my $expectation = new Parse::RecDescent::Expectation(q{','}); $expectation->at($_[1]); my $thisline; tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: [',' /\\s*/ version]}, Parse::RecDescent::_tracefirst($_[1]), q{module_runtime_version}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[0]; $text = $_[1]; my $_savetext; @item = (q{module_runtime_version}); %item = (__RULE__ => q{module_runtime_version}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying terminal: [',']}, Parse::RecDescent::_tracefirst($text), q{module_runtime_version}, $tracelevel) if defined $::RD_TRACE; undef $lastsep; $expectation->is(q{})->at($text); unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\,/) { $text = $lastsep . $text if defined $lastsep; $expectation->failed(); Parse::RecDescent::_trace(qq{<>}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; last; } $current_match = substr($text, $-[0], $+[0] - $-[0]); substr($text,0,length($current_match),q{}); Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} . $current_match . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $item{__STRING1__}=$current_match; Parse::RecDescent::_trace(q{Trying terminal: [/\\s*/]}, Parse::RecDescent::_tracefirst($text), q{module_runtime_version}, $tracelevel) if defined $::RD_TRACE; undef $lastsep; $expectation->is(q{/\\s*/})->at($text); unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\s*)/) { $text = $lastsep . $text if defined $lastsep; $expectation->failed(); Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; last; } $current_match = substr($text, $-[0], $+[0] - $-[0]); substr($text,0,length($current_match),q{}); Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} . $current_match . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $item{__PATTERN1__}=$current_match; Parse::RecDescent::_trace(q{Trying subrule: [version]}, Parse::RecDescent::_tracefirst($text), q{module_runtime_version}, $tracelevel) if defined $::RD_TRACE; if (1) { no strict qw{refs}; $expectation->is(q{version})->at($text); unless (defined ($_tok = Parse::RecDescent::Module::ExtractUse::Grammar::version($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{module_runtime_version}, $tracelevel) if defined $::RD_TRACE; $expectation->failed(); last; } Parse::RecDescent::_trace(q{>>Matched subrule: [version]<< (return value: [} . $_tok . q{]}, Parse::RecDescent::_tracefirst($text), q{module_runtime_version}, $tracelevel) if defined $::RD_TRACE; $item{q{version}} = $_tok; push @item, $_tok; } Parse::RecDescent::_trace(q{>>Matched production: [',' /\\s*/ version]<<}, Parse::RecDescent::_tracefirst($text), q{module_runtime_version}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } unless ( $_matched || defined($score) ) { $_[1] = $text; # NOT SURE THIS IS NEEDED Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($_[1]), q{module_runtime_version}, $tracelevel) if defined $::RD_TRACE; return undef; } if (!defined($return) && defined($score)) { Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", q{module_runtime_version}, $tracelevel) if defined $::RD_TRACE; $return = $score_return; } splice @{$thisparser->{errors}}, $err_at; $return = $item[$#item] unless defined $return; if (defined $::RD_TRACE) { Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . $return . q{])}, "", q{module_runtime_version}, $tracelevel); Parse::RecDescent::_trace(q{(consumed: [} . Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, Parse::RecDescent::_tracefirst($text), , q{module_runtime_version}, $tracelevel) } $_[1] = $text; return $return; } # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) sub Parse::RecDescent::Module::ExtractUse::Grammar::no_stuff { my $thisparser = $_[0]; use vars q{$tracelevel}; local $tracelevel = ($tracelevel||0)+1; $ERRORS = 0; my $thisrule = $thisparser->{"rules"}{"no_stuff"}; Parse::RecDescent::_trace(q{Trying rule: [no_stuff]}, Parse::RecDescent::_tracefirst($_[1]), q{no_stuff}, $tracelevel) if defined $::RD_TRACE; my $err_at = @{$thisparser->{errors}}; my $score; my $score_return; my $_tok; my $return = undef; my $_matched=0; my $commit=0; my @item = (); my %item = (); my $repeating = $_[2]; my $_noactions = $_[3]; my @arg = defined $_[4] ? @{ &{$_[4]} } : (); my $_itempos = $_[5]; my %arg = ($#arg & 01) ? @arg : (@arg, undef); my $text; my $lastsep; my $current_match; my $expectation = new Parse::RecDescent::Expectation(q{base, or version, or module}); $expectation->at($_[1]); my $thisline; tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: [base, or version, or module]}, Parse::RecDescent::_tracefirst($_[1]), q{no_stuff}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[0]; $text = $_[1]; my $_savetext; @item = (q{no_stuff}); %item = (__RULE__ => q{no_stuff}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying subrule: [_alternation_1_of_production_1_of_rule_no_stuff]}, Parse::RecDescent::_tracefirst($text), q{no_stuff}, $tracelevel) if defined $::RD_TRACE; if (1) { no strict qw{refs}; $expectation->is(q{})->at($text); unless (defined ($_tok = Parse::RecDescent::Module::ExtractUse::Grammar::_alternation_1_of_production_1_of_rule_no_stuff($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{no_stuff}, $tracelevel) if defined $::RD_TRACE; $expectation->failed(); last; } Parse::RecDescent::_trace(q{>>Matched subrule: [_alternation_1_of_production_1_of_rule_no_stuff]<< (return value: [} . $_tok . q{]}, Parse::RecDescent::_tracefirst($text), q{no_stuff}, $tracelevel) if defined $::RD_TRACE; $item{q{_alternation_1_of_production_1_of_rule_no_stuff}} = $_tok; push @item, $_tok; } Parse::RecDescent::_trace(q{>>Matched production: [base, or version, or module]<<}, Parse::RecDescent::_tracefirst($text), q{no_stuff}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } unless ( $_matched || defined($score) ) { $_[1] = $text; # NOT SURE THIS IS NEEDED Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($_[1]), q{no_stuff}, $tracelevel) if defined $::RD_TRACE; return undef; } if (!defined($return) && defined($score)) { Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", q{no_stuff}, $tracelevel) if defined $::RD_TRACE; $return = $score_return; } splice @{$thisparser->{errors}}, $err_at; $return = $item[$#item] unless defined $return; if (defined $::RD_TRACE) { Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . $return . q{])}, "", q{no_stuff}, $tracelevel); Parse::RecDescent::_trace(q{(consumed: [} . Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, Parse::RecDescent::_tracefirst($text), , q{no_stuff}, $tracelevel) } $_[1] = $text; return $return; } # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) sub Parse::RecDescent::Module::ExtractUse::Grammar::parent { my $thisparser = $_[0]; use vars q{$tracelevel}; local $tracelevel = ($tracelevel||0)+1; $ERRORS = 0; my $thisrule = $thisparser->{"rules"}{"parent"}; Parse::RecDescent::_trace(q{Trying rule: [parent]}, Parse::RecDescent::_tracefirst($_[1]), q{parent}, $tracelevel) if defined $::RD_TRACE; my $err_at = @{$thisparser->{errors}}; my $score; my $score_return; my $_tok; my $return = undef; my $_matched=0; my $commit=0; my @item = (); my %item = (); my $repeating = $_[2]; my $_noactions = $_[3]; my @arg = defined $_[4] ? @{ &{$_[4]} } : (); my $_itempos = $_[5]; my %arg = ($#arg & 01) ? @arg : (@arg, undef); my $text; my $lastsep; my $current_match; my $expectation = new Parse::RecDescent::Expectation(q{'parent'}); $expectation->at($_[1]); my $thisline; tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: ['parent' import_list]}, Parse::RecDescent::_tracefirst($_[1]), q{parent}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[0]; $text = $_[1]; my $_savetext; @item = (q{parent}); %item = (__RULE__ => q{parent}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying terminal: ['parent']}, Parse::RecDescent::_tracefirst($text), q{parent}, $tracelevel) if defined $::RD_TRACE; undef $lastsep; $expectation->is(q{})->at($text); unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and do { $_tok = "parent"; 1 } and substr($text,0,length($_tok)) eq $_tok and do { substr($text,0,length($_tok)) = ""; 1; } ) { $text = $lastsep . $text if defined $lastsep; $expectation->failed(); Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; last; } Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} . $_tok . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $item{__STRING1__}=$_tok; Parse::RecDescent::_trace(q{Trying subrule: [import_list]}, Parse::RecDescent::_tracefirst($text), q{parent}, $tracelevel) if defined $::RD_TRACE; if (1) { no strict qw{refs}; $expectation->is(q{import_list})->at($text); unless (defined ($_tok = Parse::RecDescent::Module::ExtractUse::Grammar::import_list($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{parent}, $tracelevel) if defined $::RD_TRACE; $expectation->failed(); last; } Parse::RecDescent::_trace(q{>>Matched subrule: [import_list]<< (return value: [} . $_tok . q{]}, Parse::RecDescent::_tracefirst($text), q{parent}, $tracelevel) if defined $::RD_TRACE; $item{q{import_list}} = $_tok; push @item, $_tok; } Parse::RecDescent::_trace(q{Trying action}, Parse::RecDescent::_tracefirst($text), q{parent}, $tracelevel) if defined $::RD_TRACE; $_tok = ($_noactions) ? 0 : do { $return='parent'; $return.=' '.$item[2] if $item[2] !~ /^\s*-norequire\b/; }; unless (defined $_tok) { Parse::RecDescent::_trace(q{<> (return value: [undef])}) if defined $::RD_TRACE; last; } Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} . $_tok . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $_tok; $item{__ACTION1__}=$_tok; Parse::RecDescent::_trace(q{>>Matched production: ['parent' import_list]<<}, Parse::RecDescent::_tracefirst($text), q{parent}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } unless ( $_matched || defined($score) ) { $_[1] = $text; # NOT SURE THIS IS NEEDED Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($_[1]), q{parent}, $tracelevel) if defined $::RD_TRACE; return undef; } if (!defined($return) && defined($score)) { Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", q{parent}, $tracelevel) if defined $::RD_TRACE; $return = $score_return; } splice @{$thisparser->{errors}}, $err_at; $return = $item[$#item] unless defined $return; if (defined $::RD_TRACE) { Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . $return . q{])}, "", q{parent}, $tracelevel); Parse::RecDescent::_trace(q{(consumed: [} . Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, Parse::RecDescent::_tracefirst($text), , q{parent}, $tracelevel) } $_[1] = $text; return $return; } # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) sub Parse::RecDescent::Module::ExtractUse::Grammar::require_name { my $thisparser = $_[0]; use vars q{$tracelevel}; local $tracelevel = ($tracelevel||0)+1; $ERRORS = 0; my $thisrule = $thisparser->{"rules"}{"require_name"}; Parse::RecDescent::_trace(q{Trying rule: [require_name]}, Parse::RecDescent::_tracefirst($_[1]), q{require_name}, $tracelevel) if defined $::RD_TRACE; my $err_at = @{$thisparser->{errors}}; my $score; my $score_return; my $_tok; my $return = undef; my $_matched=0; my $commit=0; my @item = (); my %item = (); my $repeating = $_[2]; my $_noactions = $_[3]; my @arg = defined $_[4] ? @{ &{$_[4]} } : (); my $_itempos = $_[5]; my %arg = ($#arg & 01) ? @arg : (@arg, undef); my $text; my $lastsep; my $current_match; my $expectation = new Parse::RecDescent::Expectation(q{}); $expectation->at($_[1]); my $thisline; tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: []}, Parse::RecDescent::_tracefirst($_[1]), q{require_name}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[0]; $text = $_[1]; my $_savetext; @item = (q{require_name}); %item = (__RULE__ => q{require_name}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying directive: []}, Parse::RecDescent::_tracefirst($text), q{require_name}, $tracelevel) if defined $::RD_TRACE; $_tok = do { my ($match,@res); ($match,$text,undef,@res) = Text::Balanced::extract_quotelike($text,$skip); $match ? \@res : undef; }; if (defined($_tok)) { Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} . $_tok . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; } else { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; } last unless defined $_tok; push @item, $item{__DIRECTIVE1__}=$_tok; Parse::RecDescent::_trace(q{Trying action}, Parse::RecDescent::_tracefirst($text), q{require_name}, $tracelevel) if defined $::RD_TRACE; $_tok = ($_noactions) ? 0 : do { my $name=$item[1][2]; return 1 if ($name=~/\.pl$/); $name=~s(/)(::)g; $name=~s/\.pm//; $return=$name; }; unless (defined $_tok) { Parse::RecDescent::_trace(q{<> (return value: [undef])}) if defined $::RD_TRACE; last; } Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} . $_tok . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $_tok; $item{__ACTION1__}=$_tok; Parse::RecDescent::_trace(q{>>Matched production: []<<}, Parse::RecDescent::_tracefirst($text), q{require_name}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } unless ( $_matched || defined($score) ) { $_[1] = $text; # NOT SURE THIS IS NEEDED Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($_[1]), q{require_name}, $tracelevel) if defined $::RD_TRACE; return undef; } if (!defined($return) && defined($score)) { Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", q{require_name}, $tracelevel) if defined $::RD_TRACE; $return = $score_return; } splice @{$thisparser->{errors}}, $err_at; $return = $item[$#item] unless defined $return; if (defined $::RD_TRACE) { Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . $return . q{])}, "", q{require_name}, $tracelevel); Parse::RecDescent::_trace(q{(consumed: [} . Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, Parse::RecDescent::_tracefirst($text), , q{require_name}, $tracelevel) } $_[1] = $text; return $return; } # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) sub Parse::RecDescent::Module::ExtractUse::Grammar::require_stuff { my $thisparser = $_[0]; use vars q{$tracelevel}; local $tracelevel = ($tracelevel||0)+1; $ERRORS = 0; my $thisrule = $thisparser->{"rules"}{"require_stuff"}; Parse::RecDescent::_trace(q{Trying rule: [require_stuff]}, Parse::RecDescent::_tracefirst($_[1]), q{require_stuff}, $tracelevel) if defined $::RD_TRACE; my $err_at = @{$thisparser->{errors}}; my $score; my $score_return; my $_tok; my $return = undef; my $_matched=0; my $commit=0; my @item = (); my %item = (); my $repeating = $_[2]; my $_noactions = $_[3]; my @arg = defined $_[4] ? @{ &{$_[4]} } : (); my $_itempos = $_[5]; my %arg = ($#arg & 01) ? @arg : (@arg, undef); my $text; my $lastsep; my $current_match; my $expectation = new Parse::RecDescent::Expectation(q{version, or require_name, or module}); $expectation->at($_[1]); my $thisline; tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: [version, or require_name, or module]}, Parse::RecDescent::_tracefirst($_[1]), q{require_stuff}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[0]; $text = $_[1]; my $_savetext; @item = (q{require_stuff}); %item = (__RULE__ => q{require_stuff}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying subrule: [_alternation_1_of_production_1_of_rule_require_stuff]}, Parse::RecDescent::_tracefirst($text), q{require_stuff}, $tracelevel) if defined $::RD_TRACE; if (1) { no strict qw{refs}; $expectation->is(q{})->at($text); unless (defined ($_tok = Parse::RecDescent::Module::ExtractUse::Grammar::_alternation_1_of_production_1_of_rule_require_stuff($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{require_stuff}, $tracelevel) if defined $::RD_TRACE; $expectation->failed(); last; } Parse::RecDescent::_trace(q{>>Matched subrule: [_alternation_1_of_production_1_of_rule_require_stuff]<< (return value: [} . $_tok . q{]}, Parse::RecDescent::_tracefirst($text), q{require_stuff}, $tracelevel) if defined $::RD_TRACE; $item{q{_alternation_1_of_production_1_of_rule_require_stuff}} = $_tok; push @item, $_tok; } Parse::RecDescent::_trace(q{>>Matched production: [version, or require_name, or module]<<}, Parse::RecDescent::_tracefirst($text), q{require_stuff}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } unless ( $_matched || defined($score) ) { $_[1] = $text; # NOT SURE THIS IS NEEDED Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($_[1]), q{require_stuff}, $tracelevel) if defined $::RD_TRACE; return undef; } if (!defined($return) && defined($score)) { Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", q{require_stuff}, $tracelevel) if defined $::RD_TRACE; $return = $score_return; } splice @{$thisparser->{errors}}, $err_at; $return = $item[$#item] unless defined $return; if (defined $::RD_TRACE) { Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . $return . q{])}, "", q{require_stuff}, $tracelevel); Parse::RecDescent::_trace(q{(consumed: [} . Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, Parse::RecDescent::_tracefirst($text), , q{require_stuff}, $tracelevel) } $_[1] = $text; return $return; } # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) sub Parse::RecDescent::Module::ExtractUse::Grammar::token_class_load { my $thisparser = $_[0]; use vars q{$tracelevel}; local $tracelevel = ($tracelevel||0)+1; $ERRORS = 0; my $thisrule = $thisparser->{"rules"}{"token_class_load"}; Parse::RecDescent::_trace(q{Trying rule: [token_class_load]}, Parse::RecDescent::_tracefirst($_[1]), q{token_class_load}, $tracelevel) if defined $::RD_TRACE; my $err_at = @{$thisparser->{errors}}; my $score; my $score_return; my $_tok; my $return = undef; my $_matched=0; my $commit=0; my @item = (); my %item = (); my $repeating = $_[2]; my $_noactions = $_[3]; my @arg = defined $_[4] ? @{ &{$_[4]} } : (); my $_itempos = $_[5]; my %arg = ($#arg & 01) ? @arg : (@arg, undef); my $text; my $lastsep; my $current_match; my $expectation = new Parse::RecDescent::Expectation(q{class_load, or class_load_first_existing}); $expectation->at($_[1]); my $thisline; tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: [class_load]}, Parse::RecDescent::_tracefirst($_[1]), q{token_class_load}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[0]; $text = $_[1]; my $_savetext; @item = (q{token_class_load}); %item = (__RULE__ => q{token_class_load}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying subrule: [class_load]}, Parse::RecDescent::_tracefirst($text), q{token_class_load}, $tracelevel) if defined $::RD_TRACE; if (1) { no strict qw{refs}; $expectation->is(q{})->at($text); unless (defined ($_tok = Parse::RecDescent::Module::ExtractUse::Grammar::class_load($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{token_class_load}, $tracelevel) if defined $::RD_TRACE; $expectation->failed(); last; } Parse::RecDescent::_trace(q{>>Matched subrule: [class_load]<< (return value: [} . $_tok . q{]}, Parse::RecDescent::_tracefirst($text), q{token_class_load}, $tracelevel) if defined $::RD_TRACE; $item{q{class_load}} = $_tok; push @item, $_tok; } Parse::RecDescent::_trace(q{>>Matched production: [class_load]<<}, Parse::RecDescent::_tracefirst($text), q{token_class_load}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: [class_load_first_existing]}, Parse::RecDescent::_tracefirst($_[1]), q{token_class_load}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[1]; $text = $_[1]; my $_savetext; @item = (q{token_class_load}); %item = (__RULE__ => q{token_class_load}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying subrule: [class_load_first_existing]}, Parse::RecDescent::_tracefirst($text), q{token_class_load}, $tracelevel) if defined $::RD_TRACE; if (1) { no strict qw{refs}; $expectation->is(q{})->at($text); unless (defined ($_tok = Parse::RecDescent::Module::ExtractUse::Grammar::class_load_first_existing($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{token_class_load}, $tracelevel) if defined $::RD_TRACE; $expectation->failed(); last; } Parse::RecDescent::_trace(q{>>Matched subrule: [class_load_first_existing]<< (return value: [} . $_tok . q{]}, Parse::RecDescent::_tracefirst($text), q{token_class_load}, $tracelevel) if defined $::RD_TRACE; $item{q{class_load_first_existing}} = $_tok; push @item, $_tok; } Parse::RecDescent::_trace(q{>>Matched production: [class_load_first_existing]<<}, Parse::RecDescent::_tracefirst($text), q{token_class_load}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } unless ( $_matched || defined($score) ) { $_[1] = $text; # NOT SURE THIS IS NEEDED Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($_[1]), q{token_class_load}, $tracelevel) if defined $::RD_TRACE; return undef; } if (!defined($return) && defined($score)) { Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", q{token_class_load}, $tracelevel) if defined $::RD_TRACE; $return = $score_return; } splice @{$thisparser->{errors}}, $err_at; $return = $item[$#item] unless defined $return; if (defined $::RD_TRACE) { Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . $return . q{])}, "", q{token_class_load}, $tracelevel); Parse::RecDescent::_trace(q{(consumed: [} . Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, Parse::RecDescent::_tracefirst($text), , q{token_class_load}, $tracelevel) } $_[1] = $text; return $return; } # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) sub Parse::RecDescent::Module::ExtractUse::Grammar::token_module_runtime { my $thisparser = $_[0]; use vars q{$tracelevel}; local $tracelevel = ($tracelevel||0)+1; $ERRORS = 0; my $thisrule = $thisparser->{"rules"}{"token_module_runtime"}; Parse::RecDescent::_trace(q{Trying rule: [token_module_runtime]}, Parse::RecDescent::_tracefirst($_[1]), q{token_module_runtime}, $tracelevel) if defined $::RD_TRACE; my $err_at = @{$thisparser->{errors}}; my $score; my $score_return; my $_tok; my $return = undef; my $_matched=0; my $commit=0; my @item = (); my %item = (); my $repeating = $_[2]; my $_noactions = $_[3]; my @arg = defined $_[4] ? @{ &{$_[4]} } : (); my $_itempos = $_[5]; my %arg = ($#arg & 01) ? @arg : (@arg, undef); my $text; my $lastsep; my $current_match; my $expectation = new Parse::RecDescent::Expectation(q{module_runtime_require_module, or module_runtime_use}); $expectation->at($_[1]); my $thisline; tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: [module_runtime_require_module]}, Parse::RecDescent::_tracefirst($_[1]), q{token_module_runtime}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[0]; $text = $_[1]; my $_savetext; @item = (q{token_module_runtime}); %item = (__RULE__ => q{token_module_runtime}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying subrule: [module_runtime_require_module]}, Parse::RecDescent::_tracefirst($text), q{token_module_runtime}, $tracelevel) if defined $::RD_TRACE; if (1) { no strict qw{refs}; $expectation->is(q{})->at($text); unless (defined ($_tok = Parse::RecDescent::Module::ExtractUse::Grammar::module_runtime_require_module($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{token_module_runtime}, $tracelevel) if defined $::RD_TRACE; $expectation->failed(); last; } Parse::RecDescent::_trace(q{>>Matched subrule: [module_runtime_require_module]<< (return value: [} . $_tok . q{]}, Parse::RecDescent::_tracefirst($text), q{token_module_runtime}, $tracelevel) if defined $::RD_TRACE; $item{q{module_runtime_require_module}} = $_tok; push @item, $_tok; } Parse::RecDescent::_trace(q{>>Matched production: [module_runtime_require_module]<<}, Parse::RecDescent::_tracefirst($text), q{token_module_runtime}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: [module_runtime_use]}, Parse::RecDescent::_tracefirst($_[1]), q{token_module_runtime}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[1]; $text = $_[1]; my $_savetext; @item = (q{token_module_runtime}); %item = (__RULE__ => q{token_module_runtime}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying subrule: [module_runtime_use]}, Parse::RecDescent::_tracefirst($text), q{token_module_runtime}, $tracelevel) if defined $::RD_TRACE; if (1) { no strict qw{refs}; $expectation->is(q{})->at($text); unless (defined ($_tok = Parse::RecDescent::Module::ExtractUse::Grammar::module_runtime_use($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{token_module_runtime}, $tracelevel) if defined $::RD_TRACE; $expectation->failed(); last; } Parse::RecDescent::_trace(q{>>Matched subrule: [module_runtime_use]<< (return value: [} . $_tok . q{]}, Parse::RecDescent::_tracefirst($text), q{token_module_runtime}, $tracelevel) if defined $::RD_TRACE; $item{q{module_runtime_use}} = $_tok; push @item, $_tok; } Parse::RecDescent::_trace(q{>>Matched production: [module_runtime_use]<<}, Parse::RecDescent::_tracefirst($text), q{token_module_runtime}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } unless ( $_matched || defined($score) ) { $_[1] = $text; # NOT SURE THIS IS NEEDED Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($_[1]), q{token_module_runtime}, $tracelevel) if defined $::RD_TRACE; return undef; } if (!defined($return) && defined($score)) { Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", q{token_module_runtime}, $tracelevel) if defined $::RD_TRACE; $return = $score_return; } splice @{$thisparser->{errors}}, $err_at; $return = $item[$#item] unless defined $return; if (defined $::RD_TRACE) { Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . $return . q{])}, "", q{token_module_runtime}, $tracelevel); Parse::RecDescent::_trace(q{(consumed: [} . Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, Parse::RecDescent::_tracefirst($text), , q{token_module_runtime}, $tracelevel) } $_[1] = $text; return $return; } # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) sub Parse::RecDescent::Module::ExtractUse::Grammar::token_no { my $thisparser = $_[0]; use vars q{$tracelevel}; local $tracelevel = ($tracelevel||0)+1; $ERRORS = 0; my $thisrule = $thisparser->{"rules"}{"token_no"}; Parse::RecDescent::_trace(q{Trying rule: [token_no]}, Parse::RecDescent::_tracefirst($_[1]), q{token_no}, $tracelevel) if defined $::RD_TRACE; my $err_at = @{$thisparser->{errors}}; my $score; my $score_return; my $_tok; my $return = undef; my $_matched=0; my $commit=0; my @item = (); my %item = (); my $repeating = $_[2]; my $_noactions = $_[3]; my @arg = defined $_[4] ? @{ &{$_[4]} } : (); my $_itempos = $_[5]; my %arg = ($#arg & 01) ? @arg : (@arg, undef); my $text; my $lastsep; my $current_match; my $expectation = new Parse::RecDescent::Expectation(q{/\\bno\\s/}); $expectation->at($_[1]); my $thisline; tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: [/\\bno\\s/ no_stuff /[;\}]/]}, Parse::RecDescent::_tracefirst($_[1]), q{token_no}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[0]; $text = $_[1]; my $_savetext; @item = (q{token_no}); %item = (__RULE__ => q{token_no}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying terminal: [/\\bno\\s/]}, Parse::RecDescent::_tracefirst($text), q{token_no}, $tracelevel) if defined $::RD_TRACE; undef $lastsep; $expectation->is(q{})->at($text); unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\bno\s)/) { $text = $lastsep . $text if defined $lastsep; $expectation->failed(); Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; last; } $current_match = substr($text, $-[0], $+[0] - $-[0]); substr($text,0,length($current_match),q{}); Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} . $current_match . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $item{__PATTERN1__}=$current_match; Parse::RecDescent::_trace(q{Trying subrule: [no_stuff]}, Parse::RecDescent::_tracefirst($text), q{token_no}, $tracelevel) if defined $::RD_TRACE; if (1) { no strict qw{refs}; $expectation->is(q{no_stuff})->at($text); unless (defined ($_tok = Parse::RecDescent::Module::ExtractUse::Grammar::no_stuff($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{token_no}, $tracelevel) if defined $::RD_TRACE; $expectation->failed(); last; } Parse::RecDescent::_trace(q{>>Matched subrule: [no_stuff]<< (return value: [} . $_tok . q{]}, Parse::RecDescent::_tracefirst($text), q{token_no}, $tracelevel) if defined $::RD_TRACE; $item{q{no_stuff}} = $_tok; push @item, $_tok; } Parse::RecDescent::_trace(q{Trying terminal: [/[;\}]/]}, Parse::RecDescent::_tracefirst($text), q{token_no}, $tracelevel) if defined $::RD_TRACE; undef $lastsep; $expectation->is(q{/[;\}]/})->at($text); unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:[;}])/) { $text = $lastsep . $text if defined $lastsep; $expectation->failed(); Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; last; } $current_match = substr($text, $-[0], $+[0] - $-[0]); substr($text,0,length($current_match),q{}); Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} . $current_match . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $item{__PATTERN2__}=$current_match; Parse::RecDescent::_trace(q{Trying action}, Parse::RecDescent::_tracefirst($text), q{token_no}, $tracelevel) if defined $::RD_TRACE; $_tok = ($_noactions) ? 0 : do { $return=$item{no_stuff} }; unless (defined $_tok) { Parse::RecDescent::_trace(q{<> (return value: [undef])}) if defined $::RD_TRACE; last; } Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} . $_tok . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $_tok; $item{__ACTION1__}=$_tok; Parse::RecDescent::_trace(q{>>Matched production: [/\\bno\\s/ no_stuff /[;\}]/]<<}, Parse::RecDescent::_tracefirst($text), q{token_no}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } unless ( $_matched || defined($score) ) { $_[1] = $text; # NOT SURE THIS IS NEEDED Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($_[1]), q{token_no}, $tracelevel) if defined $::RD_TRACE; return undef; } if (!defined($return) && defined($score)) { Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", q{token_no}, $tracelevel) if defined $::RD_TRACE; $return = $score_return; } splice @{$thisparser->{errors}}, $err_at; $return = $item[$#item] unless defined $return; if (defined $::RD_TRACE) { Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . $return . q{])}, "", q{token_no}, $tracelevel); Parse::RecDescent::_trace(q{(consumed: [} . Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, Parse::RecDescent::_tracefirst($text), , q{token_no}, $tracelevel) } $_[1] = $text; return $return; } # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) sub Parse::RecDescent::Module::ExtractUse::Grammar::token_require { my $thisparser = $_[0]; use vars q{$tracelevel}; local $tracelevel = ($tracelevel||0)+1; $ERRORS = 0; my $thisrule = $thisparser->{"rules"}{"token_require"}; Parse::RecDescent::_trace(q{Trying rule: [token_require]}, Parse::RecDescent::_tracefirst($_[1]), q{token_require}, $tracelevel) if defined $::RD_TRACE; my $err_at = @{$thisparser->{errors}}; my $score; my $score_return; my $_tok; my $return = undef; my $_matched=0; my $commit=0; my @item = (); my %item = (); my $repeating = $_[2]; my $_noactions = $_[3]; my @arg = defined $_[4] ? @{ &{$_[4]} } : (); my $_itempos = $_[5]; my %arg = ($#arg & 01) ? @arg : (@arg, undef); my $text; my $lastsep; my $current_match; my $expectation = new Parse::RecDescent::Expectation(q{/\\brequire\\s/}); $expectation->at($_[1]); my $thisline; tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: [/\\brequire\\s/ require_stuff /[;\}]/]}, Parse::RecDescent::_tracefirst($_[1]), q{token_require}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[0]; $text = $_[1]; my $_savetext; @item = (q{token_require}); %item = (__RULE__ => q{token_require}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying terminal: [/\\brequire\\s/]}, Parse::RecDescent::_tracefirst($text), q{token_require}, $tracelevel) if defined $::RD_TRACE; undef $lastsep; $expectation->is(q{})->at($text); unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\brequire\s)/) { $text = $lastsep . $text if defined $lastsep; $expectation->failed(); Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; last; } $current_match = substr($text, $-[0], $+[0] - $-[0]); substr($text,0,length($current_match),q{}); Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} . $current_match . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $item{__PATTERN1__}=$current_match; Parse::RecDescent::_trace(q{Trying subrule: [require_stuff]}, Parse::RecDescent::_tracefirst($text), q{token_require}, $tracelevel) if defined $::RD_TRACE; if (1) { no strict qw{refs}; $expectation->is(q{require_stuff})->at($text); unless (defined ($_tok = Parse::RecDescent::Module::ExtractUse::Grammar::require_stuff($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{token_require}, $tracelevel) if defined $::RD_TRACE; $expectation->failed(); last; } Parse::RecDescent::_trace(q{>>Matched subrule: [require_stuff]<< (return value: [} . $_tok . q{]}, Parse::RecDescent::_tracefirst($text), q{token_require}, $tracelevel) if defined $::RD_TRACE; $item{q{require_stuff}} = $_tok; push @item, $_tok; } Parse::RecDescent::_trace(q{Trying terminal: [/[;\}]/]}, Parse::RecDescent::_tracefirst($text), q{token_require}, $tracelevel) if defined $::RD_TRACE; undef $lastsep; $expectation->is(q{/[;\}]/})->at($text); unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:[;}])/) { $text = $lastsep . $text if defined $lastsep; $expectation->failed(); Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; last; } $current_match = substr($text, $-[0], $+[0] - $-[0]); substr($text,0,length($current_match),q{}); Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} . $current_match . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $item{__PATTERN2__}=$current_match; Parse::RecDescent::_trace(q{Trying action}, Parse::RecDescent::_tracefirst($text), q{token_require}, $tracelevel) if defined $::RD_TRACE; $_tok = ($_noactions) ? 0 : do { $return=$item{require_stuff} }; unless (defined $_tok) { Parse::RecDescent::_trace(q{<> (return value: [undef])}) if defined $::RD_TRACE; last; } Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} . $_tok . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $_tok; $item{__ACTION1__}=$_tok; Parse::RecDescent::_trace(q{>>Matched production: [/\\brequire\\s/ require_stuff /[;\}]/]<<}, Parse::RecDescent::_tracefirst($text), q{token_require}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } unless ( $_matched || defined($score) ) { $_[1] = $text; # NOT SURE THIS IS NEEDED Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($_[1]), q{token_require}, $tracelevel) if defined $::RD_TRACE; return undef; } if (!defined($return) && defined($score)) { Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", q{token_require}, $tracelevel) if defined $::RD_TRACE; $return = $score_return; } splice @{$thisparser->{errors}}, $err_at; $return = $item[$#item] unless defined $return; if (defined $::RD_TRACE) { Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . $return . q{])}, "", q{token_require}, $tracelevel); Parse::RecDescent::_trace(q{(consumed: [} . Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, Parse::RecDescent::_tracefirst($text), , q{token_require}, $tracelevel) } $_[1] = $text; return $return; } # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) sub Parse::RecDescent::Module::ExtractUse::Grammar::token_use { my $thisparser = $_[0]; use vars q{$tracelevel}; local $tracelevel = ($tracelevel||0)+1; $ERRORS = 0; my $thisrule = $thisparser->{"rules"}{"token_use"}; Parse::RecDescent::_trace(q{Trying rule: [token_use]}, Parse::RecDescent::_tracefirst($_[1]), q{token_use}, $tracelevel) if defined $::RD_TRACE; my $err_at = @{$thisparser->{errors}}; my $score; my $score_return; my $_tok; my $return = undef; my $_matched=0; my $commit=0; my @item = (); my %item = (); my $repeating = $_[2]; my $_noactions = $_[3]; my @arg = defined $_[4] ? @{ &{$_[4]} } : (); my $_itempos = $_[5]; my %arg = ($#arg & 01) ? @arg : (@arg, undef); my $text; my $lastsep; my $current_match; my $expectation = new Parse::RecDescent::Expectation(q{/\\buse\\s/}); $expectation->at($_[1]); my $thisline; tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: [/\\buse\\s/ use_stuff /[;\}]/]}, Parse::RecDescent::_tracefirst($_[1]), q{token_use}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[0]; $text = $_[1]; my $_savetext; @item = (q{token_use}); %item = (__RULE__ => q{token_use}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying terminal: [/\\buse\\s/]}, Parse::RecDescent::_tracefirst($text), q{token_use}, $tracelevel) if defined $::RD_TRACE; undef $lastsep; $expectation->is(q{})->at($text); unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\buse\s)/) { $text = $lastsep . $text if defined $lastsep; $expectation->failed(); Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; last; } $current_match = substr($text, $-[0], $+[0] - $-[0]); substr($text,0,length($current_match),q{}); Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} . $current_match . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $item{__PATTERN1__}=$current_match; Parse::RecDescent::_trace(q{Trying subrule: [use_stuff]}, Parse::RecDescent::_tracefirst($text), q{token_use}, $tracelevel) if defined $::RD_TRACE; if (1) { no strict qw{refs}; $expectation->is(q{use_stuff})->at($text); unless (defined ($_tok = Parse::RecDescent::Module::ExtractUse::Grammar::use_stuff($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{token_use}, $tracelevel) if defined $::RD_TRACE; $expectation->failed(); last; } Parse::RecDescent::_trace(q{>>Matched subrule: [use_stuff]<< (return value: [} . $_tok . q{]}, Parse::RecDescent::_tracefirst($text), q{token_use}, $tracelevel) if defined $::RD_TRACE; $item{q{use_stuff}} = $_tok; push @item, $_tok; } Parse::RecDescent::_trace(q{Trying terminal: [/[;\}]/]}, Parse::RecDescent::_tracefirst($text), q{token_use}, $tracelevel) if defined $::RD_TRACE; undef $lastsep; $expectation->is(q{/[;\}]/})->at($text); unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:[;}])/) { $text = $lastsep . $text if defined $lastsep; $expectation->failed(); Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; last; } $current_match = substr($text, $-[0], $+[0] - $-[0]); substr($text,0,length($current_match),q{}); Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} . $current_match . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $item{__PATTERN2__}=$current_match; Parse::RecDescent::_trace(q{Trying action}, Parse::RecDescent::_tracefirst($text), q{token_use}, $tracelevel) if defined $::RD_TRACE; $_tok = ($_noactions) ? 0 : do { $return=$item{use_stuff} }; unless (defined $_tok) { Parse::RecDescent::_trace(q{<> (return value: [undef])}) if defined $::RD_TRACE; last; } Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} . $_tok . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $_tok; $item{__ACTION1__}=$_tok; Parse::RecDescent::_trace(q{>>Matched production: [/\\buse\\s/ use_stuff /[;\}]/]<<}, Parse::RecDescent::_tracefirst($text), q{token_use}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } unless ( $_matched || defined($score) ) { $_[1] = $text; # NOT SURE THIS IS NEEDED Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($_[1]), q{token_use}, $tracelevel) if defined $::RD_TRACE; return undef; } if (!defined($return) && defined($score)) { Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", q{token_use}, $tracelevel) if defined $::RD_TRACE; $return = $score_return; } splice @{$thisparser->{errors}}, $err_at; $return = $item[$#item] unless defined $return; if (defined $::RD_TRACE) { Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . $return . q{])}, "", q{token_use}, $tracelevel); Parse::RecDescent::_trace(q{(consumed: [} . Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, Parse::RecDescent::_tracefirst($text), , q{token_use}, $tracelevel) } $_[1] = $text; return $return; } # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) sub Parse::RecDescent::Module::ExtractUse::Grammar::use_stuff { my $thisparser = $_[0]; use vars q{$tracelevel}; local $tracelevel = ($tracelevel||0)+1; $ERRORS = 0; my $thisrule = $thisparser->{"rules"}{"use_stuff"}; Parse::RecDescent::_trace(q{Trying rule: [use_stuff]}, Parse::RecDescent::_tracefirst($_[1]), q{use_stuff}, $tracelevel) if defined $::RD_TRACE; my $err_at = @{$thisparser->{errors}}; my $score; my $score_return; my $_tok; my $return = undef; my $_matched=0; my $commit=0; my @item = (); my %item = (); my $repeating = $_[2]; my $_noactions = $_[3]; my @arg = defined $_[4] ? @{ &{$_[4]} } : (); my $_itempos = $_[5]; my %arg = ($#arg & 01) ? @arg : (@arg, undef); my $text; my $lastsep; my $current_match; my $expectation = new Parse::RecDescent::Expectation(q{base, or parent, or version, or module}); $expectation->at($_[1]); my $thisline; tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: [base, or parent, or version, or module]}, Parse::RecDescent::_tracefirst($_[1]), q{use_stuff}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[0]; $text = $_[1]; my $_savetext; @item = (q{use_stuff}); %item = (__RULE__ => q{use_stuff}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying subrule: [_alternation_1_of_production_1_of_rule_use_stuff]}, Parse::RecDescent::_tracefirst($text), q{use_stuff}, $tracelevel) if defined $::RD_TRACE; if (1) { no strict qw{refs}; $expectation->is(q{})->at($text); unless (defined ($_tok = Parse::RecDescent::Module::ExtractUse::Grammar::_alternation_1_of_production_1_of_rule_use_stuff($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) { Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text), q{use_stuff}, $tracelevel) if defined $::RD_TRACE; $expectation->failed(); last; } Parse::RecDescent::_trace(q{>>Matched subrule: [_alternation_1_of_production_1_of_rule_use_stuff]<< (return value: [} . $_tok . q{]}, Parse::RecDescent::_tracefirst($text), q{use_stuff}, $tracelevel) if defined $::RD_TRACE; $item{q{_alternation_1_of_production_1_of_rule_use_stuff}} = $_tok; push @item, $_tok; } Parse::RecDescent::_trace(q{>>Matched production: [base, or parent, or version, or module]<<}, Parse::RecDescent::_tracefirst($text), q{use_stuff}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } unless ( $_matched || defined($score) ) { $_[1] = $text; # NOT SURE THIS IS NEEDED Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($_[1]), q{use_stuff}, $tracelevel) if defined $::RD_TRACE; return undef; } if (!defined($return) && defined($score)) { Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", q{use_stuff}, $tracelevel) if defined $::RD_TRACE; $return = $score_return; } splice @{$thisparser->{errors}}, $err_at; $return = $item[$#item] unless defined $return; if (defined $::RD_TRACE) { Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . $return . q{])}, "", q{use_stuff}, $tracelevel); Parse::RecDescent::_trace(q{(consumed: [} . Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, Parse::RecDescent::_tracefirst($text), , q{use_stuff}, $tracelevel) } $_[1] = $text; return $return; } # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) sub Parse::RecDescent::Module::ExtractUse::Grammar::var { my $thisparser = $_[0]; use vars q{$tracelevel}; local $tracelevel = ($tracelevel||0)+1; $ERRORS = 0; my $thisrule = $thisparser->{"rules"}{"var"}; Parse::RecDescent::_trace(q{Trying rule: [var]}, Parse::RecDescent::_tracefirst($_[1]), q{var}, $tracelevel) if defined $::RD_TRACE; my $err_at = @{$thisparser->{errors}}; my $score; my $score_return; my $_tok; my $return = undef; my $_matched=0; my $commit=0; my @item = (); my %item = (); my $repeating = $_[2]; my $_noactions = $_[3]; my @arg = defined $_[4] ? @{ &{$_[4]} } : (); my $_itempos = $_[5]; my %arg = ($#arg & 01) ? @arg : (@arg, undef); my $text; my $lastsep; my $current_match; my $expectation = new Parse::RecDescent::Expectation(q{/\\$[\\w+]/}); $expectation->at($_[1]); my $thisline; tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: [/\\$[\\w+]/]}, Parse::RecDescent::_tracefirst($_[1]), q{var}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[0]; $text = $_[1]; my $_savetext; @item = (q{var}); %item = (__RULE__ => q{var}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying terminal: [/\\$[\\w+]/]}, Parse::RecDescent::_tracefirst($text), q{var}, $tracelevel) if defined $::RD_TRACE; undef $lastsep; $expectation->is(q{})->at($text); unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\$[\w+])/) { $text = $lastsep . $text if defined $lastsep; $expectation->failed(); Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; last; } $current_match = substr($text, $-[0], $+[0] - $-[0]); substr($text,0,length($current_match),q{}); Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} . $current_match . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $item{__PATTERN1__}=$current_match; Parse::RecDescent::_trace(q{>>Matched production: [/\\$[\\w+]/]<<}, Parse::RecDescent::_tracefirst($text), q{var}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } unless ( $_matched || defined($score) ) { $_[1] = $text; # NOT SURE THIS IS NEEDED Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($_[1]), q{var}, $tracelevel) if defined $::RD_TRACE; return undef; } if (!defined($return) && defined($score)) { Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", q{var}, $tracelevel) if defined $::RD_TRACE; $return = $score_return; } splice @{$thisparser->{errors}}, $err_at; $return = $item[$#item] unless defined $return; if (defined $::RD_TRACE) { Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . $return . q{])}, "", q{var}, $tracelevel); Parse::RecDescent::_trace(q{(consumed: [} . Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, Parse::RecDescent::_tracefirst($text), , q{var}, $tracelevel) } $_[1] = $text; return $return; } # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) sub Parse::RecDescent::Module::ExtractUse::Grammar::version { my $thisparser = $_[0]; use vars q{$tracelevel}; local $tracelevel = ($tracelevel||0)+1; $ERRORS = 0; my $thisrule = $thisparser->{"rules"}{"version"}; Parse::RecDescent::_trace(q{Trying rule: [version]}, Parse::RecDescent::_tracefirst($_[1]), q{version}, $tracelevel) if defined $::RD_TRACE; my $err_at = @{$thisparser->{errors}}; my $score; my $score_return; my $_tok; my $return = undef; my $_matched=0; my $commit=0; my @item = (); my %item = (); my $repeating = $_[2]; my $_noactions = $_[3]; my @arg = defined $_[4] ? @{ &{$_[4]} } : (); my $_itempos = $_[5]; my %arg = ($#arg & 01) ? @arg : (@arg, undef); my $text; my $lastsep; my $current_match; my $expectation = new Parse::RecDescent::Expectation(q{/v?[\\d\\._]+/}); $expectation->at($_[1]); my $thisline; tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; while (!$_matched && !$commit) { Parse::RecDescent::_trace(q{Trying production: [/v?[\\d\\._]+/]}, Parse::RecDescent::_tracefirst($_[1]), q{version}, $tracelevel) if defined $::RD_TRACE; my $thisprod = $thisrule->{"prods"}[0]; $text = $_[1]; my $_savetext; @item = (q{version}); %item = (__RULE__ => q{version}); my $repcount = 0; Parse::RecDescent::_trace(q{Trying terminal: [/v?[\\d\\._]+/]}, Parse::RecDescent::_tracefirst($text), q{version}, $tracelevel) if defined $::RD_TRACE; undef $lastsep; $expectation->is(q{})->at($text); unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:v?[\d\._]+)/) { $text = $lastsep . $text if defined $lastsep; $expectation->failed(); Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; last; } $current_match = substr($text, $-[0], $+[0] - $-[0]); substr($text,0,length($current_match),q{}); Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} . $current_match . q{])}, Parse::RecDescent::_tracefirst($text)) if defined $::RD_TRACE; push @item, $item{__PATTERN1__}=$current_match; Parse::RecDescent::_trace(q{>>Matched production: [/v?[\\d\\._]+/]<<}, Parse::RecDescent::_tracefirst($text), q{version}, $tracelevel) if defined $::RD_TRACE; $_matched = 1; last; } unless ( $_matched || defined($score) ) { $_[1] = $text; # NOT SURE THIS IS NEEDED Parse::RecDescent::_trace(q{<>}, Parse::RecDescent::_tracefirst($_[1]), q{version}, $tracelevel) if defined $::RD_TRACE; return undef; } if (!defined($return) && defined($score)) { Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", q{version}, $tracelevel) if defined $::RD_TRACE; $return = $score_return; } splice @{$thisparser->{errors}}, $err_at; $return = $item[$#item] unless defined $return; if (defined $::RD_TRACE) { Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . $return . q{])}, "", q{version}, $tracelevel); Parse::RecDescent::_trace(q{(consumed: [} . Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, Parse::RecDescent::_tracefirst($text), , q{version}, $tracelevel) } $_[1] = $text; return $return; } } package Module::ExtractUse::Grammar; sub new { my $self = bless( { '_AUTOACTION' => undef, '_AUTOTREE' => undef, '_check' => { 'itempos' => '', 'prevcolumn' => '', 'prevline' => '', 'prevoffset' => '', 'thiscolumn' => '', 'thisoffset' => '' }, 'localvars' => '', 'namespace' => 'Parse::RecDescent::Module::ExtractUse::Grammar', 'rules' => { '_alternation_1_of_production_1_of_rule__alternation_1_of_production_1_of_rule_class_load' => bless( { 'calls' => [ 'class_load_functions' ], 'changed' => 0, 'impcount' => 0, 'line' => 125, 'name' => '_alternation_1_of_production_1_of_rule__alternation_1_of_production_1_of_rule_class_load', 'opcount' => 0, 'prods' => [ bless( { 'actcount' => 0, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'description' => '\'Class::Load::\'', 'hashname' => '__STRING1__', 'line' => 125, 'lookahead' => 0, 'pattern' => 'Class::Load::' }, 'Parse::RecDescent::Literal' ), bless( { 'argcode' => undef, 'implicit' => undef, 'line' => 125, 'lookahead' => 0, 'matchrule' => 0, 'subrule' => 'class_load_functions' }, 'Parse::RecDescent::Subrule' ) ], 'line' => undef, 'number' => 0, 'patcount' => 0, 'strcount' => 1, 'uncommit' => undef }, 'Parse::RecDescent::Production' ) ], 'vars' => '' }, 'Parse::RecDescent::Rule' ), '_alternation_1_of_production_1_of_rule__alternation_1_of_production_1_of_rule_module_runtime_use' => bless( { 'calls' => [ 'module_runtime_use_fcn' ], 'changed' => 0, 'impcount' => 0, 'line' => 125, 'name' => '_alternation_1_of_production_1_of_rule__alternation_1_of_production_1_of_rule_module_runtime_use', 'opcount' => 0, 'prods' => [ bless( { 'actcount' => 0, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'description' => '\'Module::Runtime::\'', 'hashname' => '__STRING1__', 'line' => 125, 'lookahead' => 0, 'pattern' => 'Module::Runtime::' }, 'Parse::RecDescent::Literal' ), bless( { 'argcode' => undef, 'implicit' => undef, 'line' => 125, 'lookahead' => 0, 'matchrule' => 0, 'subrule' => 'module_runtime_use_fcn' }, 'Parse::RecDescent::Subrule' ), bless( { 'description' => '\'(\'', 'hashname' => '__STRING2__', 'line' => 125, 'lookahead' => 0, 'pattern' => '(' }, 'Parse::RecDescent::Literal' ) ], 'line' => undef, 'number' => 0, 'patcount' => 0, 'strcount' => 2, 'uncommit' => undef }, 'Parse::RecDescent::Production' ) ], 'vars' => '' }, 'Parse::RecDescent::Rule' ), '_alternation_1_of_production_1_of_rule_class_load' => bless( { 'calls' => [ '_alternation_1_of_production_1_of_rule__alternation_1_of_production_1_of_rule_class_load', '_alternation_1_of_production_2_of_rule__alternation_1_of_production_1_of_rule_class_load' ], 'changed' => 0, 'impcount' => 1, 'line' => 125, 'name' => '_alternation_1_of_production_1_of_rule_class_load', 'opcount' => 0, 'prods' => [ bless( { 'actcount' => 0, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'argcode' => undef, 'implicit' => '\'Class::Load::\'', 'line' => 125, 'lookahead' => 0, 'matchrule' => 0, 'subrule' => '_alternation_1_of_production_1_of_rule__alternation_1_of_production_1_of_rule_class_load' }, 'Parse::RecDescent::Subrule' ) ], 'line' => undef, 'number' => 0, 'patcount' => 0, 'strcount' => 0, 'uncommit' => undef }, 'Parse::RecDescent::Production' ), bless( { 'actcount' => 0, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'argcode' => undef, 'implicit' => '/\\\\b/', 'line' => 125, 'lookahead' => 0, 'matchrule' => 0, 'subrule' => '_alternation_1_of_production_2_of_rule__alternation_1_of_production_1_of_rule_class_load' }, 'Parse::RecDescent::Subrule' ) ], 'line' => 125, 'number' => 1, 'patcount' => 0, 'strcount' => 0, 'uncommit' => undef }, 'Parse::RecDescent::Production' ) ], 'vars' => '' }, 'Parse::RecDescent::Rule' ), '_alternation_1_of_production_1_of_rule_class_load_first_existing' => bless( { 'calls' => [], 'changed' => 0, 'impcount' => 0, 'line' => 125, 'name' => '_alternation_1_of_production_1_of_rule_class_load_first_existing', 'opcount' => 0, 'prods' => [ bless( { 'actcount' => 0, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'description' => '\'Class::Load::load_first_existing_class\'', 'hashname' => '__STRING1__', 'line' => 125, 'lookahead' => 0, 'pattern' => 'Class::Load::load_first_existing_class' }, 'Parse::RecDescent::Literal' ) ], 'line' => undef, 'number' => 0, 'patcount' => 0, 'strcount' => 1, 'uncommit' => undef }, 'Parse::RecDescent::Production' ), bless( { 'actcount' => 0, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'description' => '/\\\\bload_first_existing_class/', 'hashname' => '__PATTERN1__', 'ldelim' => '/', 'line' => 125, 'lookahead' => 0, 'mod' => '', 'pattern' => '\\bload_first_existing_class', 'rdelim' => '/' }, 'Parse::RecDescent::Token' ) ], 'line' => 125, 'number' => 1, 'patcount' => 1, 'strcount' => 0, 'uncommit' => undef }, 'Parse::RecDescent::Production' ) ], 'vars' => '' }, 'Parse::RecDescent::Rule' ), '_alternation_1_of_production_1_of_rule_comma' => bless( { 'calls' => [], 'changed' => 0, 'impcount' => 0, 'line' => 125, 'name' => '_alternation_1_of_production_1_of_rule_comma', 'opcount' => 0, 'prods' => [ bless( { 'actcount' => 0, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'description' => '\',\'', 'hashname' => '__STRING1__', 'line' => 125, 'lookahead' => 0, 'pattern' => ',' }, 'Parse::RecDescent::Literal' ) ], 'line' => undef, 'number' => 0, 'patcount' => 0, 'strcount' => 1, 'uncommit' => undef }, 'Parse::RecDescent::Production' ), bless( { 'actcount' => 0, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'description' => '\'=>\'', 'hashname' => '__STRING1__', 'line' => 125, 'lookahead' => 0, 'pattern' => '=>' }, 'Parse::RecDescent::Literal' ) ], 'line' => 125, 'number' => 1, 'patcount' => 0, 'strcount' => 1, 'uncommit' => undef }, 'Parse::RecDescent::Production' ) ], 'vars' => '' }, 'Parse::RecDescent::Rule' ), '_alternation_1_of_production_1_of_rule_hash_pair' => bless( { 'calls' => [], 'changed' => 0, 'impcount' => 0, 'line' => 125, 'name' => '_alternation_1_of_production_1_of_rule_hash_pair', 'opcount' => 0, 'prods' => [ bless( { 'actcount' => 0, 'dircount' => 1, 'error' => undef, 'items' => [ bless( { 'code' => 'my ($match,@res); ($match,$text,undef,@res) = Text::Balanced::extract_quotelike($text,$skip); $match ? \\@res : undef; ', 'hashname' => '__DIRECTIVE1__', 'line' => 125, 'lookahead' => 0, 'name' => '' }, 'Parse::RecDescent::Directive' ) ], 'line' => undef, 'number' => 0, 'patcount' => 0, 'strcount' => 0, 'uncommit' => undef }, 'Parse::RecDescent::Production' ), bless( { 'actcount' => 0, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'description' => '/[^\\\\s,\\}]+/', 'hashname' => '__PATTERN1__', 'ldelim' => '/', 'line' => 125, 'lookahead' => 0, 'mod' => '', 'pattern' => '[^\\s,}]+', 'rdelim' => '/' }, 'Parse::RecDescent::Token' ) ], 'line' => 125, 'number' => 1, 'patcount' => 1, 'strcount' => 0, 'uncommit' => undef }, 'Parse::RecDescent::Production' ) ], 'vars' => '' }, 'Parse::RecDescent::Rule' ), '_alternation_1_of_production_1_of_rule_module_runtime_require_module' => bless( { 'calls' => [], 'changed' => 0, 'impcount' => 0, 'line' => 125, 'name' => '_alternation_1_of_production_1_of_rule_module_runtime_require_module', 'opcount' => 0, 'prods' => [ bless( { 'actcount' => 0, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'description' => '\'Module::Runtime::require_module(\'', 'hashname' => '__STRING1__', 'line' => 125, 'lookahead' => 0, 'pattern' => 'Module::Runtime::require_module(' }, 'Parse::RecDescent::Literal' ) ], 'line' => undef, 'number' => 0, 'patcount' => 0, 'strcount' => 1, 'uncommit' => undef }, 'Parse::RecDescent::Production' ), bless( { 'actcount' => 0, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'description' => '/\\\\brequire_module\\\\(/', 'hashname' => '__PATTERN1__', 'ldelim' => '/', 'line' => 125, 'lookahead' => 0, 'mod' => '', 'pattern' => '\\brequire_module\\(', 'rdelim' => '/' }, 'Parse::RecDescent::Token' ) ], 'line' => 125, 'number' => 1, 'patcount' => 1, 'strcount' => 0, 'uncommit' => undef }, 'Parse::RecDescent::Production' ) ], 'vars' => '' }, 'Parse::RecDescent::Rule' ), '_alternation_1_of_production_1_of_rule_module_runtime_use' => bless( { 'calls' => [ '_alternation_1_of_production_1_of_rule__alternation_1_of_production_1_of_rule_module_runtime_use', '_alternation_1_of_production_2_of_rule__alternation_1_of_production_1_of_rule_module_runtime_use' ], 'changed' => 0, 'impcount' => 1, 'line' => 125, 'name' => '_alternation_1_of_production_1_of_rule_module_runtime_use', 'opcount' => 0, 'prods' => [ bless( { 'actcount' => 0, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'argcode' => undef, 'implicit' => '\'Module::Runtime::\'', 'line' => 125, 'lookahead' => 0, 'matchrule' => 0, 'subrule' => '_alternation_1_of_production_1_of_rule__alternation_1_of_production_1_of_rule_module_runtime_use' }, 'Parse::RecDescent::Subrule' ) ], 'line' => undef, 'number' => 0, 'patcount' => 0, 'strcount' => 0, 'uncommit' => undef }, 'Parse::RecDescent::Production' ), bless( { 'actcount' => 0, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'argcode' => undef, 'implicit' => '/\\\\b/', 'line' => 125, 'lookahead' => 0, 'matchrule' => 0, 'subrule' => '_alternation_1_of_production_2_of_rule__alternation_1_of_production_1_of_rule_module_runtime_use' }, 'Parse::RecDescent::Subrule' ) ], 'line' => 125, 'number' => 1, 'patcount' => 0, 'strcount' => 0, 'uncommit' => undef }, 'Parse::RecDescent::Production' ) ], 'vars' => '' }, 'Parse::RecDescent::Rule' ), '_alternation_1_of_production_1_of_rule_module_runtime_use_fcn' => bless( { 'calls' => [], 'changed' => 0, 'impcount' => 0, 'line' => 125, 'name' => '_alternation_1_of_production_1_of_rule_module_runtime_use_fcn', 'opcount' => 0, 'prods' => [ bless( { 'actcount' => 0, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'description' => '\'use_module\'', 'hashname' => '__STRING1__', 'line' => 125, 'lookahead' => 0, 'pattern' => 'use_module' }, 'Parse::RecDescent::Literal' ) ], 'line' => undef, 'number' => 0, 'patcount' => 0, 'strcount' => 1, 'uncommit' => undef }, 'Parse::RecDescent::Production' ), bless( { 'actcount' => 0, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'description' => '\'use_package_optimistically\'', 'hashname' => '__STRING1__', 'line' => 125, 'lookahead' => 0, 'pattern' => 'use_package_optimistically' }, 'Parse::RecDescent::Literal' ) ], 'line' => 125, 'number' => 1, 'patcount' => 0, 'strcount' => 1, 'uncommit' => undef }, 'Parse::RecDescent::Production' ) ], 'vars' => '' }, 'Parse::RecDescent::Rule' ), '_alternation_1_of_production_1_of_rule_no_stuff' => bless( { 'calls' => [ 'base', 'version', 'module' ], 'changed' => 0, 'impcount' => 0, 'line' => 125, 'name' => '_alternation_1_of_production_1_of_rule_no_stuff', 'opcount' => 0, 'prods' => [ bless( { 'actcount' => 0, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'argcode' => undef, 'implicit' => undef, 'line' => 125, 'lookahead' => 0, 'matchrule' => 0, 'subrule' => 'base' }, 'Parse::RecDescent::Subrule' ) ], 'line' => undef, 'number' => 0, 'patcount' => 0, 'strcount' => 0, 'uncommit' => undef }, 'Parse::RecDescent::Production' ), bless( { 'actcount' => 0, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'argcode' => undef, 'implicit' => undef, 'line' => 125, 'lookahead' => 0, 'matchrule' => 0, 'subrule' => 'version' }, 'Parse::RecDescent::Subrule' ) ], 'line' => 125, 'number' => 1, 'patcount' => 0, 'strcount' => 0, 'uncommit' => undef }, 'Parse::RecDescent::Production' ), bless( { 'actcount' => 0, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'argcode' => undef, 'implicit' => undef, 'line' => 125, 'lookahead' => 0, 'matchrule' => 0, 'subrule' => 'module' }, 'Parse::RecDescent::Subrule' ) ], 'line' => 125, 'number' => 2, 'patcount' => 0, 'strcount' => 0, 'uncommit' => undef }, 'Parse::RecDescent::Production' ) ], 'vars' => '' }, 'Parse::RecDescent::Rule' ), '_alternation_1_of_production_1_of_rule_require_stuff' => bless( { 'calls' => [ 'version', 'require_name', 'module' ], 'changed' => 0, 'impcount' => 0, 'line' => 125, 'name' => '_alternation_1_of_production_1_of_rule_require_stuff', 'opcount' => 0, 'prods' => [ bless( { 'actcount' => 0, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'argcode' => undef, 'implicit' => undef, 'line' => 125, 'lookahead' => 0, 'matchrule' => 0, 'subrule' => 'version' }, 'Parse::RecDescent::Subrule' ) ], 'line' => undef, 'number' => 0, 'patcount' => 0, 'strcount' => 0, 'uncommit' => undef }, 'Parse::RecDescent::Production' ), bless( { 'actcount' => 0, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'argcode' => undef, 'implicit' => undef, 'line' => 125, 'lookahead' => 0, 'matchrule' => 0, 'subrule' => 'require_name' }, 'Parse::RecDescent::Subrule' ) ], 'line' => 125, 'number' => 1, 'patcount' => 0, 'strcount' => 0, 'uncommit' => undef }, 'Parse::RecDescent::Production' ), bless( { 'actcount' => 0, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'argcode' => undef, 'implicit' => undef, 'line' => 125, 'lookahead' => 0, 'matchrule' => 0, 'subrule' => 'module' }, 'Parse::RecDescent::Subrule' ) ], 'line' => 125, 'number' => 2, 'patcount' => 0, 'strcount' => 0, 'uncommit' => undef }, 'Parse::RecDescent::Production' ) ], 'vars' => '' }, 'Parse::RecDescent::Rule' ), '_alternation_1_of_production_1_of_rule_use_stuff' => bless( { 'calls' => [ 'base', 'parent', 'version', 'module' ], 'changed' => 0, 'impcount' => 0, 'line' => 125, 'name' => '_alternation_1_of_production_1_of_rule_use_stuff', 'opcount' => 0, 'prods' => [ bless( { 'actcount' => 0, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'argcode' => undef, 'implicit' => undef, 'line' => 125, 'lookahead' => 0, 'matchrule' => 0, 'subrule' => 'base' }, 'Parse::RecDescent::Subrule' ) ], 'line' => undef, 'number' => 0, 'patcount' => 0, 'strcount' => 0, 'uncommit' => undef }, 'Parse::RecDescent::Production' ), bless( { 'actcount' => 0, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'argcode' => undef, 'implicit' => undef, 'line' => 125, 'lookahead' => 0, 'matchrule' => 0, 'subrule' => 'parent' }, 'Parse::RecDescent::Subrule' ) ], 'line' => 125, 'number' => 1, 'patcount' => 0, 'strcount' => 0, 'uncommit' => undef }, 'Parse::RecDescent::Production' ), bless( { 'actcount' => 0, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'argcode' => undef, 'implicit' => undef, 'line' => 125, 'lookahead' => 0, 'matchrule' => 0, 'subrule' => 'version' }, 'Parse::RecDescent::Subrule' ) ], 'line' => 125, 'number' => 2, 'patcount' => 0, 'strcount' => 0, 'uncommit' => undef }, 'Parse::RecDescent::Production' ), bless( { 'actcount' => 0, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'argcode' => undef, 'implicit' => undef, 'line' => 125, 'lookahead' => 0, 'matchrule' => 0, 'subrule' => 'module' }, 'Parse::RecDescent::Subrule' ) ], 'line' => 125, 'number' => 3, 'patcount' => 0, 'strcount' => 0, 'uncommit' => undef }, 'Parse::RecDescent::Production' ) ], 'vars' => '' }, 'Parse::RecDescent::Rule' ), '_alternation_1_of_production_2_of_rule__alternation_1_of_production_1_of_rule_class_load' => bless( { 'calls' => [ 'class_load_functions' ], 'changed' => 0, 'impcount' => 0, 'line' => 125, 'name' => '_alternation_1_of_production_2_of_rule__alternation_1_of_production_1_of_rule_class_load', 'opcount' => 0, 'prods' => [ bless( { 'actcount' => 0, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'description' => '/\\\\b/', 'hashname' => '__PATTERN1__', 'ldelim' => '/', 'line' => 125, 'lookahead' => 0, 'mod' => '', 'pattern' => '\\b', 'rdelim' => '/' }, 'Parse::RecDescent::Token' ), bless( { 'argcode' => undef, 'implicit' => undef, 'line' => 125, 'lookahead' => 0, 'matchrule' => 0, 'subrule' => 'class_load_functions' }, 'Parse::RecDescent::Subrule' ) ], 'line' => undef, 'number' => 0, 'patcount' => 1, 'strcount' => 0, 'uncommit' => undef }, 'Parse::RecDescent::Production' ) ], 'vars' => '' }, 'Parse::RecDescent::Rule' ), '_alternation_1_of_production_2_of_rule__alternation_1_of_production_1_of_rule_module_runtime_use' => bless( { 'calls' => [ 'module_runtime_use_fcn' ], 'changed' => 0, 'impcount' => 0, 'line' => 125, 'name' => '_alternation_1_of_production_2_of_rule__alternation_1_of_production_1_of_rule_module_runtime_use', 'opcount' => 0, 'prods' => [ bless( { 'actcount' => 0, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'description' => '/\\\\b/', 'hashname' => '__PATTERN1__', 'ldelim' => '/', 'line' => 125, 'lookahead' => 0, 'mod' => '', 'pattern' => '\\b', 'rdelim' => '/' }, 'Parse::RecDescent::Token' ), bless( { 'argcode' => undef, 'implicit' => undef, 'line' => 125, 'lookahead' => 0, 'matchrule' => 0, 'subrule' => 'module_runtime_use_fcn' }, 'Parse::RecDescent::Subrule' ), bless( { 'description' => '\'(\'', 'hashname' => '__STRING1__', 'line' => 125, 'lookahead' => 0, 'pattern' => '(' }, 'Parse::RecDescent::Literal' ) ], 'line' => undef, 'number' => 0, 'patcount' => 1, 'strcount' => 1, 'uncommit' => undef }, 'Parse::RecDescent::Production' ) ], 'vars' => '' }, 'Parse::RecDescent::Rule' ), 'base' => bless( { 'calls' => [ 'import_list' ], 'changed' => 0, 'impcount' => 0, 'line' => 10, 'name' => 'base', 'opcount' => 0, 'prods' => [ bless( { 'actcount' => 0, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'description' => '\'base\'', 'hashname' => '__STRING1__', 'line' => 10, 'lookahead' => 0, 'pattern' => 'base' }, 'Parse::RecDescent::InterpLit' ), bless( { 'argcode' => undef, 'implicit' => undef, 'line' => 10, 'lookahead' => 0, 'matchrule' => 0, 'subrule' => 'import_list' }, 'Parse::RecDescent::Subrule' ) ], 'line' => undef, 'number' => 0, 'patcount' => 0, 'strcount' => 1, 'uncommit' => undef }, 'Parse::RecDescent::Production' ) ], 'vars' => '' }, 'Parse::RecDescent::Rule' ), 'class_load' => bless( { 'calls' => [ '_alternation_1_of_production_1_of_rule_class_load', 'comma_hashref' ], 'changed' => 0, 'impcount' => 1, 'line' => 78, 'name' => 'class_load', 'opcount' => 0, 'prods' => [ bless( { 'actcount' => 1, 'dircount' => 1, 'error' => undef, 'items' => [ bless( { 'argcode' => undef, 'implicit' => '\'Class::Load::\', or /\\\\b/', 'line' => 78, 'lookahead' => 0, 'matchrule' => 0, 'subrule' => '_alternation_1_of_production_1_of_rule_class_load' }, 'Parse::RecDescent::Subrule' ), bless( { 'description' => '\'(\'', 'hashname' => '__STRING1__', 'line' => 78, 'lookahead' => 0, 'pattern' => '(' }, 'Parse::RecDescent::Literal' ), bless( { 'code' => 'my ($match,@res); ($match,$text,undef,@res) = Text::Balanced::extract_quotelike($text,$skip); $match ? \\@res : undef; ', 'hashname' => '__DIRECTIVE1__', 'line' => 78, 'lookahead' => 0, 'name' => '' }, 'Parse::RecDescent::Directive' ), bless( { 'argcode' => undef, 'expected' => undef, 'line' => 78, 'lookahead' => 0, 'matchrule' => 0, 'max' => 1, 'min' => 0, 'repspec' => '?', 'subrule' => 'comma_hashref' }, 'Parse::RecDescent::Repetition' ), bless( { 'description' => '\')\'', 'hashname' => '__STRING2__', 'line' => 78, 'lookahead' => 0, 'pattern' => ')' }, 'Parse::RecDescent::Literal' ), bless( { 'code' => '{ $return = $item[3][2] }', 'hashname' => '__ACTION1__', 'line' => 79, 'lookahead' => 0 }, 'Parse::RecDescent::Action' ) ], 'line' => undef, 'number' => 0, 'patcount' => 0, 'strcount' => 2, 'uncommit' => undef }, 'Parse::RecDescent::Production' ) ], 'vars' => '' }, 'Parse::RecDescent::Rule' ), 'class_load_first_existing' => bless( { 'calls' => [ '_alternation_1_of_production_1_of_rule_class_load_first_existing', 'first_existing_arg', 'comma_first_existing_arg' ], 'changed' => 0, 'impcount' => 1, 'line' => 87, 'name' => 'class_load_first_existing', 'opcount' => 0, 'prods' => [ bless( { 'actcount' => 1, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'argcode' => undef, 'implicit' => '\'Class::Load::load_first_existing_class\', or /\\\\bload_first_existing_class/', 'line' => 87, 'lookahead' => 0, 'matchrule' => 0, 'subrule' => '_alternation_1_of_production_1_of_rule_class_load_first_existing' }, 'Parse::RecDescent::Subrule' ), bless( { 'description' => '\'(\'', 'hashname' => '__STRING1__', 'line' => 87, 'lookahead' => 0, 'pattern' => '(' }, 'Parse::RecDescent::Literal' ), bless( { 'argcode' => undef, 'implicit' => undef, 'line' => 87, 'lookahead' => 0, 'matchrule' => 0, 'subrule' => 'first_existing_arg' }, 'Parse::RecDescent::Subrule' ), bless( { 'argcode' => undef, 'expected' => undef, 'line' => 87, 'lookahead' => 0, 'matchrule' => 0, 'max' => 100000000, 'min' => 0, 'repspec' => 's?', 'subrule' => 'comma_first_existing_arg' }, 'Parse::RecDescent::Repetition' ), bless( { 'description' => '\')\'', 'hashname' => '__STRING2__', 'line' => 87, 'lookahead' => 0, 'pattern' => ')' }, 'Parse::RecDescent::Literal' ), bless( { 'code' => '{ $return = $item{first_existing_arg}; $return .= " " . join(" ", @{$item{\'comma_first_existing_arg(s?)\'}}) if $item{\'comma_first_existing_arg(s?)\'}; 1; }', 'hashname' => '__ACTION1__', 'line' => 88, 'lookahead' => 0 }, 'Parse::RecDescent::Action' ) ], 'line' => undef, 'number' => 0, 'patcount' => 0, 'strcount' => 2, 'uncommit' => undef }, 'Parse::RecDescent::Production' ) ], 'vars' => '' }, 'Parse::RecDescent::Rule' ), 'class_load_functions' => bless( { 'calls' => [], 'changed' => 0, 'impcount' => 0, 'line' => 76, 'name' => 'class_load_functions', 'opcount' => 0, 'prods' => [ bless( { 'actcount' => 0, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'description' => '\'load_class\'', 'hashname' => '__STRING1__', 'line' => 76, 'lookahead' => 0, 'pattern' => 'load_class' }, 'Parse::RecDescent::Literal' ) ], 'line' => undef, 'number' => 0, 'patcount' => 0, 'strcount' => 1, 'uncommit' => undef }, 'Parse::RecDescent::Production' ), bless( { 'actcount' => 0, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'description' => '\'try_load_class\'', 'hashname' => '__STRING1__', 'line' => 76, 'lookahead' => 0, 'pattern' => 'try_load_class' }, 'Parse::RecDescent::Literal' ) ], 'line' => 76, 'number' => 1, 'patcount' => 0, 'strcount' => 1, 'uncommit' => undef }, 'Parse::RecDescent::Production' ), bless( { 'actcount' => 0, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'description' => '\'load_optional_class\'', 'hashname' => '__STRING1__', 'line' => 76, 'lookahead' => 0, 'pattern' => 'load_optional_class' }, 'Parse::RecDescent::Literal' ) ], 'line' => 76, 'number' => 2, 'patcount' => 0, 'strcount' => 1, 'uncommit' => undef }, 'Parse::RecDescent::Production' ) ], 'vars' => '' }, 'Parse::RecDescent::Rule' ), 'comma' => bless( { 'calls' => [ '_alternation_1_of_production_1_of_rule_comma' ], 'changed' => 0, 'impcount' => 1, 'line' => 124, 'name' => 'comma', 'opcount' => 0, 'prods' => [ bless( { 'actcount' => 0, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'argcode' => undef, 'implicit' => '\',\', or \'=>\'', 'line' => 124, 'lookahead' => 0, 'matchrule' => 0, 'subrule' => '_alternation_1_of_production_1_of_rule_comma' }, 'Parse::RecDescent::Subrule' ) ], 'line' => undef, 'number' => 0, 'patcount' => 0, 'strcount' => 0, 'uncommit' => undef }, 'Parse::RecDescent::Production' ) ], 'vars' => '' }, 'Parse::RecDescent::Rule' ), 'comma_first_existing_arg' => bless( { 'calls' => [ 'comma', 'first_existing_arg' ], 'changed' => 0, 'impcount' => 0, 'line' => 84, 'name' => 'comma_first_existing_arg', 'opcount' => 0, 'prods' => [ bless( { 'actcount' => 1, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'argcode' => undef, 'implicit' => undef, 'line' => 84, 'lookahead' => 0, 'matchrule' => 0, 'subrule' => 'comma' }, 'Parse::RecDescent::Subrule' ), bless( { 'argcode' => undef, 'implicit' => undef, 'line' => 84, 'lookahead' => 0, 'matchrule' => 0, 'subrule' => 'first_existing_arg' }, 'Parse::RecDescent::Subrule' ), bless( { 'code' => '{ $return = $item{first_existing_arg} }', 'hashname' => '__ACTION1__', 'line' => 85, 'lookahead' => 0 }, 'Parse::RecDescent::Action' ) ], 'line' => undef, 'number' => 0, 'patcount' => 0, 'strcount' => 0, 'uncommit' => undef }, 'Parse::RecDescent::Production' ) ], 'vars' => '' }, 'Parse::RecDescent::Rule' ), 'comma_hash_pair' => bless( { 'calls' => [ 'comma', 'hash_pair' ], 'changed' => 0, 'impcount' => 0, 'line' => 70, 'name' => 'comma_hash_pair', 'opcount' => 0, 'prods' => [ bless( { 'actcount' => 0, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'argcode' => undef, 'implicit' => undef, 'line' => 70, 'lookahead' => 0, 'matchrule' => 0, 'subrule' => 'comma' }, 'Parse::RecDescent::Subrule' ), bless( { 'argcode' => undef, 'implicit' => undef, 'line' => 70, 'lookahead' => 0, 'matchrule' => 0, 'subrule' => 'hash_pair' }, 'Parse::RecDescent::Subrule' ) ], 'line' => undef, 'number' => 0, 'patcount' => 0, 'strcount' => 0, 'uncommit' => undef }, 'Parse::RecDescent::Production' ) ], 'vars' => '' }, 'Parse::RecDescent::Rule' ), 'comma_hashref' => bless( { 'calls' => [ 'comma', 'hashref' ], 'changed' => 0, 'impcount' => 0, 'line' => 74, 'name' => 'comma_hashref', 'opcount' => 0, 'prods' => [ bless( { 'actcount' => 0, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'argcode' => undef, 'implicit' => undef, 'line' => 74, 'lookahead' => 0, 'matchrule' => 0, 'subrule' => 'comma' }, 'Parse::RecDescent::Subrule' ), bless( { 'argcode' => undef, 'implicit' => undef, 'line' => 74, 'lookahead' => 0, 'matchrule' => 0, 'subrule' => 'hashref' }, 'Parse::RecDescent::Subrule' ) ], 'line' => undef, 'number' => 0, 'patcount' => 0, 'strcount' => 0, 'uncommit' => undef }, 'Parse::RecDescent::Production' ) ], 'vars' => '' }, 'Parse::RecDescent::Rule' ), 'comma_list_item' => bless( { 'calls' => [ 'comma', 'list_item' ], 'changed' => 0, 'impcount' => 0, 'line' => 121, 'name' => 'comma_list_item', 'opcount' => 0, 'prods' => [ bless( { 'actcount' => 1, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'argcode' => undef, 'implicit' => undef, 'line' => 121, 'lookahead' => 0, 'matchrule' => 0, 'subrule' => 'comma' }, 'Parse::RecDescent::Subrule' ), bless( { 'argcode' => undef, 'implicit' => undef, 'line' => 121, 'lookahead' => 0, 'matchrule' => 0, 'subrule' => 'list_item' }, 'Parse::RecDescent::Subrule' ), bless( { 'code' => '{ $return=$item{list_item} }', 'hashname' => '__ACTION1__', 'line' => 122, 'lookahead' => 0 }, 'Parse::RecDescent::Action' ) ], 'line' => undef, 'number' => 0, 'patcount' => 0, 'strcount' => 0, 'uncommit' => undef }, 'Parse::RecDescent::Production' ) ], 'vars' => '' }, 'Parse::RecDescent::Rule' ), 'eos' => bless( { 'calls' => [], 'changed' => 0, 'impcount' => 0, 'line' => 101, 'name' => 'eos', 'opcount' => 0, 'prods' => [ bless( { 'actcount' => 1, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'code' => '{ $text=~/^[\\s;]+$/ ? 1 : undef;}', 'hashname' => '__ACTION1__', 'line' => 101, 'lookahead' => 0 }, 'Parse::RecDescent::Action' ) ], 'line' => undef, 'number' => 0, 'patcount' => 0, 'strcount' => 0, 'uncommit' => undef }, 'Parse::RecDescent::Production' ) ], 'vars' => '' }, 'Parse::RecDescent::Rule' ), 'first_existing_arg' => bless( { 'calls' => [ 'comma_hashref' ], 'changed' => 0, 'impcount' => 0, 'line' => 81, 'name' => 'first_existing_arg', 'opcount' => 0, 'prods' => [ bless( { 'actcount' => 1, 'dircount' => 1, 'error' => undef, 'items' => [ bless( { 'code' => 'my ($match,@res); ($match,$text,undef,@res) = Text::Balanced::extract_quotelike($text,$skip); $match ? \\@res : undef; ', 'hashname' => '__DIRECTIVE1__', 'line' => 81, 'lookahead' => 0, 'name' => '' }, 'Parse::RecDescent::Directive' ), bless( { 'argcode' => undef, 'expected' => undef, 'line' => 81, 'lookahead' => 0, 'matchrule' => 0, 'max' => 1, 'min' => 0, 'repspec' => '?', 'subrule' => 'comma_hashref' }, 'Parse::RecDescent::Repetition' ), bless( { 'code' => '{ $return = $item[1][2] }', 'hashname' => '__ACTION1__', 'line' => 82, 'lookahead' => 0 }, 'Parse::RecDescent::Action' ) ], 'line' => undef, 'number' => 0, 'patcount' => 0, 'strcount' => 0, 'uncommit' => undef }, 'Parse::RecDescent::Production' ) ], 'vars' => '' }, 'Parse::RecDescent::Rule' ), 'hash_pair' => bless( { 'calls' => [ 'comma', '_alternation_1_of_production_1_of_rule_hash_pair' ], 'changed' => 0, 'impcount' => 1, 'line' => 66, 'name' => 'hash_pair', 'opcount' => 0, 'prods' => [ bless( { 'actcount' => 0, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'description' => '/\\\\S+/', 'hashname' => '__PATTERN1__', 'ldelim' => '/', 'line' => 68, 'lookahead' => 0, 'mod' => '', 'pattern' => '\\S+', 'rdelim' => '/' }, 'Parse::RecDescent::Token' ), bless( { 'argcode' => undef, 'implicit' => undef, 'line' => 68, 'lookahead' => 0, 'matchrule' => 0, 'subrule' => 'comma' }, 'Parse::RecDescent::Subrule' ), bless( { 'argcode' => undef, 'implicit' => '/[^\\\\s,\\}]+/', 'line' => 68, 'lookahead' => 0, 'matchrule' => 0, 'subrule' => '_alternation_1_of_production_1_of_rule_hash_pair' }, 'Parse::RecDescent::Subrule' ) ], 'line' => undef, 'number' => 0, 'patcount' => 1, 'strcount' => 0, 'uncommit' => undef }, 'Parse::RecDescent::Production' ) ], 'vars' => '' }, 'Parse::RecDescent::Rule' ), 'hashref' => bless( { 'calls' => [ 'hash_pair', 'comma_hash_pair' ], 'changed' => 0, 'impcount' => 0, 'line' => 72, 'name' => 'hashref', 'opcount' => 0, 'prods' => [ bless( { 'actcount' => 0, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'description' => '\'\\{\'', 'hashname' => '__STRING1__', 'line' => 72, 'lookahead' => 0, 'pattern' => '{' }, 'Parse::RecDescent::Literal' ), bless( { 'argcode' => undef, 'implicit' => undef, 'line' => 72, 'lookahead' => 0, 'matchrule' => 0, 'subrule' => 'hash_pair' }, 'Parse::RecDescent::Subrule' ), bless( { 'argcode' => undef, 'expected' => undef, 'line' => 72, 'lookahead' => 0, 'matchrule' => 0, 'max' => 100000000, 'min' => 0, 'repspec' => 's?', 'subrule' => 'comma_hash_pair' }, 'Parse::RecDescent::Repetition' ), bless( { 'description' => '\'\\}\'', 'hashname' => '__STRING2__', 'line' => 72, 'lookahead' => 0, 'pattern' => '}' }, 'Parse::RecDescent::Literal' ) ], 'line' => undef, 'number' => 0, 'patcount' => 0, 'strcount' => 2, 'uncommit' => undef }, 'Parse::RecDescent::Production' ) ], 'vars' => '' }, 'Parse::RecDescent::Rule' ), 'import_list' => bless( { 'calls' => [ 'list_item', 'comma_list_item' ], 'changed' => 0, 'impcount' => 0, 'line' => 105, 'name' => 'import_list', 'opcount' => 0, 'prods' => [ bless( { 'actcount' => 1, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'description' => '/[(]?/', 'hashname' => '__PATTERN1__', 'ldelim' => '/', 'line' => 105, 'lookahead' => 0, 'mod' => '', 'pattern' => '[(]?', 'rdelim' => '/' }, 'Parse::RecDescent::Token' ), bless( { 'argcode' => undef, 'implicit' => undef, 'line' => 106, 'lookahead' => 0, 'matchrule' => 0, 'subrule' => 'list_item' }, 'Parse::RecDescent::Subrule' ), bless( { 'argcode' => undef, 'expected' => undef, 'line' => 107, 'lookahead' => 0, 'matchrule' => 0, 'max' => 100000000, 'min' => 0, 'repspec' => 's?', 'subrule' => 'comma_list_item' }, 'Parse::RecDescent::Repetition' ), bless( { 'description' => '/[)]?/', 'hashname' => '__PATTERN2__', 'ldelim' => '/', 'line' => 108, 'lookahead' => 0, 'mod' => '', 'pattern' => '[)]?', 'rdelim' => '/' }, 'Parse::RecDescent::Token' ), bless( { 'code' => '{ $return=$item[2]; $return.=" ".join(" ",@{$item[3]}) if $item[3]; }', 'hashname' => '__ACTION1__', 'line' => 109, 'lookahead' => 0 }, 'Parse::RecDescent::Action' ) ], 'line' => undef, 'number' => 0, 'patcount' => 2, 'strcount' => 0, 'uncommit' => undef }, 'Parse::RecDescent::Production' ), bless( { 'actcount' => 1, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'description' => '/[(]\\\\s*[)]/', 'hashname' => '__PATTERN1__', 'ldelim' => '/', 'line' => 113, 'lookahead' => 0, 'mod' => '', 'pattern' => '[(]\\s*[)]', 'rdelim' => '/' }, 'Parse::RecDescent::Token' ), bless( { 'code' => '{ $return=\'\' }', 'hashname' => '__ACTION1__', 'line' => 113, 'lookahead' => 0 }, 'Parse::RecDescent::Action' ) ], 'line' => 112, 'number' => 1, 'patcount' => 1, 'strcount' => 0, 'uncommit' => undef }, 'Parse::RecDescent::Production' ) ], 'vars' => '' }, 'Parse::RecDescent::Rule' ), 'list_item' => bless( { 'calls' => [], 'changed' => 0, 'impcount' => 0, 'line' => 115, 'name' => 'list_item', 'opcount' => 0, 'prods' => [ bless( { 'actcount' => 1, 'dircount' => 1, 'error' => undef, 'items' => [ bless( { 'code' => 'my ($match,@res); ($match,$text,undef,@res) = Text::Balanced::extract_quotelike($text,$skip); $match ? \\@res : undef; ', 'hashname' => '__DIRECTIVE1__', 'line' => 115, 'lookahead' => 0, 'name' => '' }, 'Parse::RecDescent::Directive' ), bless( { 'code' => '{ $return=$item[1][2] }', 'hashname' => '__ACTION1__', 'line' => 115, 'lookahead' => 0 }, 'Parse::RecDescent::Action' ) ], 'line' => undef, 'number' => 0, 'patcount' => 0, 'strcount' => 0, 'uncommit' => undef }, 'Parse::RecDescent::Production' ), bless( { 'actcount' => 1, 'dircount' => 1, 'error' => undef, 'items' => [ bless( { 'code' => 'Text::Balanced::extract_codeblock($text,undef,$skip,\'(){}[]\'); ', 'hashname' => '__DIRECTIVE1__', 'line' => 117, 'lookahead' => 0, 'name' => '' }, 'Parse::RecDescent::Directive' ), bless( { 'code' => '{ $return=$item[1] }', 'hashname' => '__ACTION1__', 'line' => 117, 'lookahead' => 0 }, 'Parse::RecDescent::Action' ) ], 'line' => 116, 'number' => 1, 'patcount' => 0, 'strcount' => 0, 'uncommit' => undef }, 'Parse::RecDescent::Production' ), bless( { 'actcount' => 1, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'description' => '/-?\\\\w+/', 'hashname' => '__PATTERN1__', 'ldelim' => '/', 'line' => 119, 'lookahead' => 0, 'mod' => '', 'pattern' => '-?\\w+', 'rdelim' => '/' }, 'Parse::RecDescent::Token' ), bless( { 'code' => '{ $return=$item[1] }', 'hashname' => '__ACTION1__', 'line' => 119, 'lookahead' => 0 }, 'Parse::RecDescent::Action' ) ], 'line' => 118, 'number' => 2, 'patcount' => 1, 'strcount' => 0, 'uncommit' => undef }, 'Parse::RecDescent::Production' ) ], 'vars' => '' }, 'Parse::RecDescent::Rule' ), 'module' => bless( { 'calls' => [ 'module_name', 'module_more' ], 'changed' => 0, 'impcount' => 0, 'line' => 15, 'name' => 'module', 'opcount' => 0, 'prods' => [ bless( { 'actcount' => 1, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'argcode' => undef, 'implicit' => undef, 'line' => 15, 'lookahead' => 0, 'matchrule' => 0, 'subrule' => 'module_name' }, 'Parse::RecDescent::Subrule' ), bless( { 'argcode' => undef, 'implicit' => undef, 'line' => 15, 'lookahead' => 0, 'matchrule' => 0, 'subrule' => 'module_more' }, 'Parse::RecDescent::Subrule' ), bless( { 'code' => '{ $return=$item{module_name} }', 'hashname' => '__ACTION1__', 'line' => 16, 'lookahead' => 0 }, 'Parse::RecDescent::Action' ) ], 'line' => undef, 'number' => 0, 'patcount' => 0, 'strcount' => 0, 'uncommit' => undef }, 'Parse::RecDescent::Production' ) ], 'vars' => '' }, 'Parse::RecDescent::Rule' ), 'module_more' => bless( { 'calls' => [ 'eos', 'version', 'var', 'import_list' ], 'changed' => 0, 'impcount' => 0, 'line' => 20, 'name' => 'module_more', 'opcount' => 0, 'prods' => [ bless( { 'actcount' => 0, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'argcode' => undef, 'implicit' => undef, 'line' => 20, 'lookahead' => 0, 'matchrule' => 0, 'subrule' => 'eos' }, 'Parse::RecDescent::Subrule' ) ], 'line' => undef, 'number' => 0, 'patcount' => 0, 'strcount' => 0, 'uncommit' => undef }, 'Parse::RecDescent::Production' ), bless( { 'actcount' => 0, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'argcode' => undef, 'expected' => undef, 'line' => 20, 'lookahead' => 0, 'matchrule' => 0, 'max' => 1, 'min' => 0, 'repspec' => '?', 'subrule' => 'version' }, 'Parse::RecDescent::Repetition' ), bless( { 'argcode' => undef, 'expected' => undef, 'line' => 20, 'lookahead' => 0, 'matchrule' => 0, 'max' => 1, 'min' => 0, 'repspec' => '?', 'subrule' => 'var' }, 'Parse::RecDescent::Repetition' ), bless( { 'argcode' => undef, 'expected' => undef, 'line' => 20, 'lookahead' => 0, 'matchrule' => 0, 'max' => 1, 'min' => 0, 'repspec' => '?', 'subrule' => 'import_list' }, 'Parse::RecDescent::Repetition' ) ], 'line' => 20, 'number' => 1, 'patcount' => 0, 'strcount' => 0, 'uncommit' => undef }, 'Parse::RecDescent::Production' ) ], 'vars' => '' }, 'Parse::RecDescent::Rule' ), 'module_name' => bless( { 'calls' => [], 'changed' => 0, 'impcount' => 0, 'line' => 18, 'name' => 'module_name', 'opcount' => 0, 'prods' => [ bless( { 'actcount' => 0, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'description' => '/[\\\\w:]+/', 'hashname' => '__PATTERN1__', 'ldelim' => '/', 'line' => 18, 'lookahead' => 0, 'mod' => '', 'pattern' => '[\\w:]+', 'rdelim' => '/' }, 'Parse::RecDescent::Token' ) ], 'line' => undef, 'number' => 0, 'patcount' => 1, 'strcount' => 0, 'uncommit' => undef }, 'Parse::RecDescent::Production' ) ], 'vars' => '' }, 'Parse::RecDescent::Rule' ), 'module_runtime_require_module' => bless( { 'calls' => [ '_alternation_1_of_production_1_of_rule_module_runtime_require_module' ], 'changed' => 0, 'impcount' => 1, 'line' => 50, 'name' => 'module_runtime_require_module', 'opcount' => 0, 'prods' => [ bless( { 'actcount' => 1, 'dircount' => 1, 'error' => undef, 'items' => [ bless( { 'argcode' => undef, 'implicit' => '\'Module::Runtime::require_module(\', or /\\\\brequire_module\\\\(/', 'line' => 52, 'lookahead' => 0, 'matchrule' => 0, 'subrule' => '_alternation_1_of_production_1_of_rule_module_runtime_require_module' }, 'Parse::RecDescent::Subrule' ), bless( { 'code' => 'my ($match,@res); ($match,$text,undef,@res) = Text::Balanced::extract_quotelike($text,$skip); $match ? \\@res : undef; ', 'hashname' => '__DIRECTIVE1__', 'line' => 52, 'lookahead' => 0, 'name' => '' }, 'Parse::RecDescent::Directive' ), bless( { 'description' => '\')\'', 'hashname' => '__STRING1__', 'line' => 52, 'lookahead' => 0, 'pattern' => ')' }, 'Parse::RecDescent::Literal' ), bless( { 'code' => '{ $return = $item[2][2] }', 'hashname' => '__ACTION1__', 'line' => 53, 'lookahead' => 0 }, 'Parse::RecDescent::Action' ) ], 'line' => undef, 'number' => 0, 'patcount' => 0, 'strcount' => 1, 'uncommit' => undef }, 'Parse::RecDescent::Production' ) ], 'vars' => '' }, 'Parse::RecDescent::Rule' ), 'module_runtime_use' => bless( { 'calls' => [ '_alternation_1_of_production_1_of_rule_module_runtime_use', 'module_runtime_version' ], 'changed' => 0, 'impcount' => 1, 'line' => 59, 'name' => 'module_runtime_use', 'opcount' => 0, 'prods' => [ bless( { 'actcount' => 1, 'dircount' => 1, 'error' => undef, 'items' => [ bless( { 'argcode' => undef, 'implicit' => '\'Module::Runtime::\', or /\\\\b/', 'line' => 59, 'lookahead' => 0, 'matchrule' => 0, 'subrule' => '_alternation_1_of_production_1_of_rule_module_runtime_use' }, 'Parse::RecDescent::Subrule' ), bless( { 'code' => 'my ($match,@res); ($match,$text,undef,@res) = Text::Balanced::extract_quotelike($text,$skip); $match ? \\@res : undef; ', 'hashname' => '__DIRECTIVE1__', 'line' => 59, 'lookahead' => 0, 'name' => '' }, 'Parse::RecDescent::Directive' ), bless( { 'argcode' => undef, 'expected' => undef, 'line' => 59, 'lookahead' => 0, 'matchrule' => 0, 'max' => 1, 'min' => 0, 'repspec' => '?', 'subrule' => 'module_runtime_version' }, 'Parse::RecDescent::Repetition' ), bless( { 'description' => '\')\'', 'hashname' => '__STRING1__', 'line' => 59, 'lookahead' => 0, 'pattern' => ')' }, 'Parse::RecDescent::Literal' ), bless( { 'code' => '{ $return = $item[2][2] }', 'hashname' => '__ACTION1__', 'line' => 60, 'lookahead' => 0 }, 'Parse::RecDescent::Action' ) ], 'line' => undef, 'number' => 0, 'patcount' => 0, 'strcount' => 1, 'uncommit' => undef }, 'Parse::RecDescent::Production' ) ], 'vars' => '' }, 'Parse::RecDescent::Rule' ), 'module_runtime_use_fcn' => bless( { 'calls' => [ '_alternation_1_of_production_1_of_rule_module_runtime_use_fcn' ], 'changed' => 0, 'impcount' => 1, 'line' => 55, 'name' => 'module_runtime_use_fcn', 'opcount' => 0, 'prods' => [ bless( { 'actcount' => 0, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'argcode' => undef, 'implicit' => '\'use_module\', or \'use_package_optimistically\'', 'line' => 55, 'lookahead' => 0, 'matchrule' => 0, 'subrule' => '_alternation_1_of_production_1_of_rule_module_runtime_use_fcn' }, 'Parse::RecDescent::Subrule' ) ], 'line' => undef, 'number' => 0, 'patcount' => 0, 'strcount' => 0, 'uncommit' => undef }, 'Parse::RecDescent::Production' ) ], 'vars' => '' }, 'Parse::RecDescent::Rule' ), 'module_runtime_version' => bless( { 'calls' => [ 'version' ], 'changed' => 0, 'impcount' => 0, 'line' => 57, 'name' => 'module_runtime_version', 'opcount' => 0, 'prods' => [ bless( { 'actcount' => 0, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'description' => '\',\'', 'hashname' => '__STRING1__', 'line' => 57, 'lookahead' => 0, 'pattern' => ',' }, 'Parse::RecDescent::Literal' ), bless( { 'description' => '/\\\\s*/', 'hashname' => '__PATTERN1__', 'ldelim' => '/', 'line' => 57, 'lookahead' => 0, 'mod' => '', 'pattern' => '\\s*', 'rdelim' => '/' }, 'Parse::RecDescent::Token' ), bless( { 'argcode' => undef, 'implicit' => undef, 'line' => 57, 'lookahead' => 0, 'matchrule' => 0, 'subrule' => 'version' }, 'Parse::RecDescent::Subrule' ) ], 'line' => undef, 'number' => 0, 'patcount' => 1, 'strcount' => 1, 'uncommit' => undef }, 'Parse::RecDescent::Production' ) ], 'vars' => '' }, 'Parse::RecDescent::Rule' ), 'no_stuff' => bless( { 'calls' => [ '_alternation_1_of_production_1_of_rule_no_stuff' ], 'changed' => 0, 'impcount' => 1, 'line' => 46, 'name' => 'no_stuff', 'opcount' => 0, 'prods' => [ bless( { 'actcount' => 0, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'argcode' => undef, 'implicit' => 'base, or version, or module', 'line' => 46, 'lookahead' => 0, 'matchrule' => 0, 'subrule' => '_alternation_1_of_production_1_of_rule_no_stuff' }, 'Parse::RecDescent::Subrule' ) ], 'line' => undef, 'number' => 0, 'patcount' => 0, 'strcount' => 0, 'uncommit' => undef }, 'Parse::RecDescent::Production' ) ], 'vars' => '' }, 'Parse::RecDescent::Rule' ), 'parent' => bless( { 'calls' => [ 'import_list' ], 'changed' => 0, 'impcount' => 0, 'line' => 12, 'name' => 'parent', 'opcount' => 0, 'prods' => [ bless( { 'actcount' => 1, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'description' => '\'parent\'', 'hashname' => '__STRING1__', 'line' => 12, 'lookahead' => 0, 'pattern' => 'parent' }, 'Parse::RecDescent::InterpLit' ), bless( { 'argcode' => undef, 'implicit' => undef, 'line' => 12, 'lookahead' => 0, 'matchrule' => 0, 'subrule' => 'import_list' }, 'Parse::RecDescent::Subrule' ), bless( { 'code' => '{ $return=\'parent\'; $return.=\' \'.$item[2] if $item[2] !~ /^\\s*-norequire\\b/; }', 'hashname' => '__ACTION1__', 'line' => 13, 'lookahead' => 0 }, 'Parse::RecDescent::Action' ) ], 'line' => undef, 'number' => 0, 'patcount' => 0, 'strcount' => 1, 'uncommit' => undef }, 'Parse::RecDescent::Production' ) ], 'vars' => '' }, 'Parse::RecDescent::Rule' ), 'require_name' => bless( { 'calls' => [], 'changed' => 0, 'impcount' => 0, 'line' => 31, 'name' => 'require_name', 'opcount' => 0, 'prods' => [ bless( { 'actcount' => 1, 'dircount' => 1, 'error' => undef, 'items' => [ bless( { 'code' => 'my ($match,@res); ($match,$text,undef,@res) = Text::Balanced::extract_quotelike($text,$skip); $match ? \\@res : undef; ', 'hashname' => '__DIRECTIVE1__', 'line' => 31, 'lookahead' => 0, 'name' => '' }, 'Parse::RecDescent::Directive' ), bless( { 'code' => '{ my $name=$item[1][2]; return 1 if ($name=~/\\.pl$/); $name=~s(/)(::)g; $name=~s/\\.pm//; $return=$name; }', 'hashname' => '__ACTION1__', 'line' => 32, 'lookahead' => 0 }, 'Parse::RecDescent::Action' ) ], 'line' => undef, 'number' => 0, 'patcount' => 0, 'strcount' => 0, 'uncommit' => undef }, 'Parse::RecDescent::Production' ) ], 'vars' => '' }, 'Parse::RecDescent::Rule' ), 'require_stuff' => bless( { 'calls' => [ '_alternation_1_of_production_1_of_rule_require_stuff' ], 'changed' => 0, 'impcount' => 1, 'line' => 29, 'name' => 'require_stuff', 'opcount' => 0, 'prods' => [ bless( { 'actcount' => 0, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'argcode' => undef, 'implicit' => 'version, or require_name, or module', 'line' => 29, 'lookahead' => 0, 'matchrule' => 0, 'subrule' => '_alternation_1_of_production_1_of_rule_require_stuff' }, 'Parse::RecDescent::Subrule' ) ], 'line' => undef, 'number' => 0, 'patcount' => 0, 'strcount' => 0, 'uncommit' => undef }, 'Parse::RecDescent::Production' ) ], 'vars' => '' }, 'Parse::RecDescent::Rule' ), 'token_class_load' => bless( { 'calls' => [ 'class_load', 'class_load_first_existing' ], 'changed' => 0, 'impcount' => 0, 'line' => 93, 'name' => 'token_class_load', 'opcount' => 0, 'prods' => [ bless( { 'actcount' => 0, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'argcode' => undef, 'implicit' => undef, 'line' => 93, 'lookahead' => 0, 'matchrule' => 0, 'subrule' => 'class_load' }, 'Parse::RecDescent::Subrule' ) ], 'line' => undef, 'number' => 0, 'patcount' => 0, 'strcount' => 0, 'uncommit' => undef }, 'Parse::RecDescent::Production' ), bless( { 'actcount' => 0, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'argcode' => undef, 'implicit' => undef, 'line' => 93, 'lookahead' => 0, 'matchrule' => 0, 'subrule' => 'class_load_first_existing' }, 'Parse::RecDescent::Subrule' ) ], 'line' => 93, 'number' => 1, 'patcount' => 0, 'strcount' => 0, 'uncommit' => undef }, 'Parse::RecDescent::Production' ) ], 'vars' => '' }, 'Parse::RecDescent::Rule' ), 'token_module_runtime' => bless( { 'calls' => [ 'module_runtime_require_module', 'module_runtime_use' ], 'changed' => 0, 'impcount' => 0, 'line' => 62, 'name' => 'token_module_runtime', 'opcount' => 0, 'prods' => [ bless( { 'actcount' => 0, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'argcode' => undef, 'implicit' => undef, 'line' => 62, 'lookahead' => 0, 'matchrule' => 0, 'subrule' => 'module_runtime_require_module' }, 'Parse::RecDescent::Subrule' ) ], 'line' => undef, 'number' => 0, 'patcount' => 0, 'strcount' => 0, 'uncommit' => undef }, 'Parse::RecDescent::Production' ), bless( { 'actcount' => 0, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'argcode' => undef, 'implicit' => undef, 'line' => 62, 'lookahead' => 0, 'matchrule' => 0, 'subrule' => 'module_runtime_use' }, 'Parse::RecDescent::Subrule' ) ], 'line' => 62, 'number' => 1, 'patcount' => 0, 'strcount' => 0, 'uncommit' => undef }, 'Parse::RecDescent::Production' ) ], 'vars' => '' }, 'Parse::RecDescent::Rule' ), 'token_no' => bless( { 'calls' => [ 'no_stuff' ], 'changed' => 0, 'impcount' => 0, 'line' => 41, 'name' => 'token_no', 'opcount' => 0, 'prods' => [ bless( { 'actcount' => 1, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'description' => '/\\\\bno\\\\s/', 'hashname' => '__PATTERN1__', 'ldelim' => '/', 'line' => 43, 'lookahead' => 0, 'mod' => '', 'pattern' => '\\bno\\s', 'rdelim' => '/' }, 'Parse::RecDescent::Token' ), bless( { 'argcode' => undef, 'implicit' => undef, 'line' => 43, 'lookahead' => 0, 'matchrule' => 0, 'subrule' => 'no_stuff' }, 'Parse::RecDescent::Subrule' ), bless( { 'description' => '/[;\\}]/', 'hashname' => '__PATTERN2__', 'ldelim' => '/', 'line' => 43, 'lookahead' => 0, 'mod' => '', 'pattern' => '[;}]', 'rdelim' => '/' }, 'Parse::RecDescent::Token' ), bless( { 'code' => '{ $return=$item{no_stuff} }', 'hashname' => '__ACTION1__', 'line' => 44, 'lookahead' => 0 }, 'Parse::RecDescent::Action' ) ], 'line' => undef, 'number' => 0, 'patcount' => 2, 'strcount' => 0, 'uncommit' => undef }, 'Parse::RecDescent::Production' ) ], 'vars' => '' }, 'Parse::RecDescent::Rule' ), 'token_require' => bless( { 'calls' => [ 'require_stuff' ], 'changed' => 0, 'impcount' => 0, 'line' => 24, 'name' => 'token_require', 'opcount' => 0, 'prods' => [ bless( { 'actcount' => 1, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'description' => '/\\\\brequire\\\\s/', 'hashname' => '__PATTERN1__', 'ldelim' => '/', 'line' => 26, 'lookahead' => 0, 'mod' => '', 'pattern' => '\\brequire\\s', 'rdelim' => '/' }, 'Parse::RecDescent::Token' ), bless( { 'argcode' => undef, 'implicit' => undef, 'line' => 26, 'lookahead' => 0, 'matchrule' => 0, 'subrule' => 'require_stuff' }, 'Parse::RecDescent::Subrule' ), bless( { 'description' => '/[;\\}]/', 'hashname' => '__PATTERN2__', 'ldelim' => '/', 'line' => 26, 'lookahead' => 0, 'mod' => '', 'pattern' => '[;}]', 'rdelim' => '/' }, 'Parse::RecDescent::Token' ), bless( { 'code' => '{ $return=$item{require_stuff} }', 'hashname' => '__ACTION1__', 'line' => 27, 'lookahead' => 0 }, 'Parse::RecDescent::Action' ) ], 'line' => undef, 'number' => 0, 'patcount' => 2, 'strcount' => 0, 'uncommit' => undef }, 'Parse::RecDescent::Production' ) ], 'vars' => '' }, 'Parse::RecDescent::Rule' ), 'token_use' => bless( { 'calls' => [ 'use_stuff' ], 'changed' => 0, 'impcount' => 0, 'line' => 3, 'name' => 'token_use', 'opcount' => 0, 'prods' => [ bless( { 'actcount' => 1, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'description' => '/\\\\buse\\\\s/', 'hashname' => '__PATTERN1__', 'ldelim' => '/', 'line' => 5, 'lookahead' => 0, 'mod' => '', 'pattern' => '\\buse\\s', 'rdelim' => '/' }, 'Parse::RecDescent::Token' ), bless( { 'argcode' => undef, 'implicit' => undef, 'line' => 5, 'lookahead' => 0, 'matchrule' => 0, 'subrule' => 'use_stuff' }, 'Parse::RecDescent::Subrule' ), bless( { 'description' => '/[;\\}]/', 'hashname' => '__PATTERN2__', 'ldelim' => '/', 'line' => 5, 'lookahead' => 0, 'mod' => '', 'pattern' => '[;}]', 'rdelim' => '/' }, 'Parse::RecDescent::Token' ), bless( { 'code' => '{ $return=$item{use_stuff} }', 'hashname' => '__ACTION1__', 'line' => 6, 'lookahead' => 0 }, 'Parse::RecDescent::Action' ) ], 'line' => undef, 'number' => 0, 'patcount' => 2, 'strcount' => 0, 'uncommit' => undef }, 'Parse::RecDescent::Production' ) ], 'vars' => '' }, 'Parse::RecDescent::Rule' ), 'use_stuff' => bless( { 'calls' => [ '_alternation_1_of_production_1_of_rule_use_stuff' ], 'changed' => 0, 'impcount' => 1, 'line' => 8, 'name' => 'use_stuff', 'opcount' => 0, 'prods' => [ bless( { 'actcount' => 0, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'argcode' => undef, 'implicit' => 'base, or parent, or version, or module', 'line' => 8, 'lookahead' => 0, 'matchrule' => 0, 'subrule' => '_alternation_1_of_production_1_of_rule_use_stuff' }, 'Parse::RecDescent::Subrule' ) ], 'line' => undef, 'number' => 0, 'patcount' => 0, 'strcount' => 0, 'uncommit' => undef }, 'Parse::RecDescent::Production' ) ], 'vars' => '' }, 'Parse::RecDescent::Rule' ), 'var' => bless( { 'calls' => [], 'changed' => 0, 'impcount' => 0, 'line' => 103, 'name' => 'var', 'opcount' => 0, 'prods' => [ bless( { 'actcount' => 0, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'description' => '/\\\\$[\\\\w+]/', 'hashname' => '__PATTERN1__', 'ldelim' => '/', 'line' => 103, 'lookahead' => 0, 'mod' => '', 'pattern' => '\\$[\\w+]', 'rdelim' => '/' }, 'Parse::RecDescent::Token' ) ], 'line' => undef, 'number' => 0, 'patcount' => 1, 'strcount' => 0, 'uncommit' => undef }, 'Parse::RecDescent::Production' ) ], 'vars' => '' }, 'Parse::RecDescent::Rule' ), 'version' => bless( { 'calls' => [], 'changed' => 0, 'impcount' => 0, 'line' => 97, 'name' => 'version', 'opcount' => 0, 'prods' => [ bless( { 'actcount' => 0, 'dircount' => 0, 'error' => undef, 'items' => [ bless( { 'description' => '/v?[\\\\d\\\\._]+/', 'hashname' => '__PATTERN1__', 'ldelim' => '/', 'line' => 99, 'lookahead' => 0, 'mod' => '', 'pattern' => 'v?[\\d\\._]+', 'rdelim' => '/' }, 'Parse::RecDescent::Token' ) ], 'line' => undef, 'number' => 0, 'patcount' => 1, 'strcount' => 0, 'uncommit' => undef }, 'Parse::RecDescent::Production' ) ], 'vars' => '' }, 'Parse::RecDescent::Rule' ) }, 'startcode' => '' }, 'Parse::RecDescent' ); } __END__ =pod =encoding UTF-8 =head1 NAME Module::ExtractUse::Grammar =head1 VERSION version 0.344 =head1 AUTHORS =over 4 =item * Thomas Klausner =item * Kenichi Ishigaki =back =head1 COPYRIGHT AND LICENSE This software is copyright (c) 2014 - 2021 by Thomas Klausner. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. =cut