blib/lib/App/GitFind/cmdline.pm

filter: Statementstmt 100% 10 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 13 / 13 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/App/GitFind/Runner.pm ↑ Summary
1 ####################################################################
2 #
3 # This file was generated using Parse::Yapp version 1.21.
4 #
5 # Don't edit this file, use source file instead.
6 #
7 # ANY CHANGE MADE HERE WILL BE LOST !
8 #
9 ####################################################################
10 package App::GitFind::cmdline;
11 1 ▶use vars qw ( @ISA );
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 1 @ISA= qw ( Parse::Yapp::Driver );
15 1 ▶use Parse::Yapp::Driver;
Subroutine BEGIN: called CC=1 SCAR=0.0
16  
17 #line 9 "support/cmdline.yp"
18  
19  
20 # Imports {{{1
21  
22 use 5.010;
23 use strict;
24 use warnings;
25  
26 use App::GitFind::Base;
27 use App::GitFind::Actions ();
28 use Hash::Merge;
29  
30 # }}}1
31 # Documentation {{{1
32  
33 =head1 NAME
34  
35 App::GitFind::cmdline - Command-line parser for git-find
36  
37 =head1 SYNOPSIS
38  
39 Generate the .pm file:
40  
41 yapp -m App::GitFind::cmdline -o lib/App/GitFind/cmdline.pm support/cmdline.yp
42  
43 And then:
44  
45 use App::GitFind::cmdline;
46 App::GitFind::cmdline::Parse(\@ARGV);
47  
48 =head1 FUNCTIONS
49  
50 =cut
51  
52 # }}}1
53 # Helpers for the parser {{{1
54  
55 # Merge any number of hashrefs together and return a hashref
56 sub _merge {
57 state $merger = Hash::Merge->new('RETAINMENT_PRECEDENT');
58 $merger->set_clone_behavior(false); # No cloning
59 my $retval = {};
60 for(@_) {
61 next unless ref eq 'HASH';
62 $retval = $merger->merge($retval, $_);
63 }
64 return $retval;
65 }
66  
67 # }}}1
68  
69  
70  
71 sub new {
72 my($class)=shift;
73 ref($class)
74 and $class=ref($class);
75  
76 my($self)=$class->SUPER::new( yyversion => '1.21',
77 yystates =>
78 [
79 {#State 0
80 ACTIONS => {
81 'NOT' => 7,
82 'REV' => 4,
83 'LPAREN' => 1,
84 'ACTION' => 3,
85 'SWITCH' => 6,
86 'TEST' => 5
87 },
88 DEFAULT => -1,
89 GOTOS => {
90 'cmdline' => 2,
91 'expr' => 9,
92 'switches_and_revs' => 8,
93 'element' => 10
94 }
95 },
96 {#State 1
97 ACTIONS => {
98 'LPAREN' => 1,
99 'ACTION' => 3,
100 'NOT' => 7,
101 'TEST' => 5
102 },
103 GOTOS => {
104 'element' => 10,
105 'expr' => 11
106 }
107 },
108 {#State 2
109 ACTIONS => {
110 '' => 12
111 }
112 },
113 {#State 3
114 DEFAULT => -22
115 },
116 {#State 4
117 DEFAULT => -5
118 },
119 {#State 5
120 DEFAULT => -21
121 },
122 {#State 6
123 DEFAULT => -4
124 },
125 {#State 7
126 ACTIONS => {
127 'expr4' => 13
128 }
129 },
130 {#State 8
131 ACTIONS => {
132 'TEST' => 5,
133 'SWITCH' => 14,
134 'LPAREN' => 1,
135 'ACTION' => 3,
136 'REV' => 15,
137 'NOT' => 7
138 },
139 DEFAULT => -8,
140 GOTOS => {
141 'maybeexprplus' => 16,
142 'expr' => 17,
143 'element' => 10
144 }
145 },
146 {#State 9
147 ACTIONS => {
148 'COMMA' => 23,
149 'LPAREN' => 24,
150 'ACTION' => 3,
151 'AND' => 22,
152 'TEST' => 5,
153 'NOT' => 21,
154 'OR' => 19
155 },
156 DEFAULT => -2,
157 GOTOS => {
158 'element' => 20,
159 'subsequent_expr' => 18
160 }
161 },
162 {#State 10
163 DEFAULT => -11
164 },
165 {#State 11
166 ACTIONS => {
167 'OR' => 19,
168 'RPAREN' => 25,
169 'NOT' => 21,
170 'AND' => 22,
171 'TEST' => 5,
172 'LPAREN' => 24,
173 'COMMA' => 23,
174 'ACTION' => 3
175 },
176 GOTOS => {
177 'subsequent_expr' => 18,
178 'element' => 20
179 }
180 },
181 {#State 12
182 DEFAULT => 0
183 },
184 {#State 13
185 DEFAULT => -16
186 },
187 {#State 14
188 DEFAULT => -6
189 },
190 {#State 15
191 DEFAULT => -7
192 },
193 {#State 16
194 DEFAULT => -3
195 },
196 {#State 17
197 ACTIONS => {
198 'REV' => 4,
199 'LPAREN' => 24,
200 'COMMA' => 23,
201 'ACTION' => 3,
202 'SWITCH' => 6,
203 'AND' => 22,
204 'TEST' => 5,
205 'NOT' => 21,
206 'OR' => 19
207 },
208 DEFAULT => -9,
209 GOTOS => {
210 'subsequent_expr' => 18,
211 'element' => 20,
212 'switches_and_revs' => 26
213 }
214 },
215 {#State 18
216 DEFAULT => -14
217 },
218 {#State 19
219 ACTIONS => {
220 'TEST' => 5,
221 'NOT' => 7,
222 'ACTION' => 3,
223 'LPAREN' => 1
224 },
225 GOTOS => {
226 'expr' => 27,
227 'element' => 10
228 }
229 },
230 {#State 20
231 DEFAULT => -18
232 },
233 {#State 21
234 ACTIONS => {
235 'expr4' => 28
236 }
237 },
238 {#State 22
239 ACTIONS => {
240 'TEST' => 5,
241 'NOT' => 7,
242 'ACTION' => 3,
243 'LPAREN' => 1
244 },
245 GOTOS => {
246 'expr' => 29,
247 'element' => 10
248 }
249 },
250 {#State 23
251 ACTIONS => {
252 'TEST' => 5,
253 'NOT' => 7,
254 'ACTION' => 3,
255 'LPAREN' => 1
256 },
257 GOTOS => {
258 'element' => 10,
259 'expr' => 30
260 }
261 },
262 {#State 24
263 ACTIONS => {
264 'TEST' => 5,
265 'NOT' => 7,
266 'ACTION' => 3,
267 'LPAREN' => 1
268 },
269 GOTOS => {
270 'element' => 10,
271 'expr' => 31
272 }
273 },
274 {#State 25
275 DEFAULT => -17
276 },
277 {#State 26
278 ACTIONS => {
279 'REV' => 15,
280 'SWITCH' => 14
281 },
282 DEFAULT => -10
283 },
284 {#State 27
285 ACTIONS => {
286 'NOT' => 21,
287 'LPAREN' => 24,
288 'ACTION' => 3,
289 'AND' => 22,
290 'TEST' => 5
291 },
292 DEFAULT => -13,
293 GOTOS => {
294 'subsequent_expr' => 18,
295 'element' => 20
296 }
297 },
298 {#State 28
299 DEFAULT => -19
300 },
301 {#State 29
302 ACTIONS => {
303 'NOT' => 21,
304 'LPAREN' => 24,
305 'ACTION' => 3,
306 'TEST' => 5
307 },
308 DEFAULT => -15,
309 GOTOS => {
310 'element' => 20,
311 'subsequent_expr' => 18
312 }
313 },
314 {#State 30
315 ACTIONS => {
316 'LPAREN' => 24,
317 'ACTION' => 3,
318 'AND' => 22,
319 'TEST' => 5,
320 'NOT' => 21,
321 'OR' => 19
322 },
323 DEFAULT => -12,
324 GOTOS => {
325 'subsequent_expr' => 18,
326 'element' => 20
327 }
328 },
329 {#State 31
330 ACTIONS => {
331 'ACTION' => 3,
332 'LPAREN' => 24,
333 'COMMA' => 23,
334 'TEST' => 5,
335 'AND' => 22,
336 'NOT' => 21,
337 'RPAREN' => 32,
338 'OR' => 19
339 },
340 GOTOS => {
341 'element' => 20,
342 'subsequent_expr' => 18
343 }
344 },
345 {#State 32
346 DEFAULT => -20
347 }
348 ],
349 yyrules =>
350 [
351 [#Rule 0
352 '$start', 2, undef
353 ],
354 [#Rule 1
355 'cmdline', 0,
356 sub
357 #line 90 "support/cmdline.yp"
358 { +{} }
359 ],
360 [#Rule 2
361 'cmdline', 1,
362 sub
363 #line 91 "support/cmdline.yp"
364 { +{ expr => $_[1] } }
365 ],
366 [#Rule 3
367 'cmdline', 2,
368 sub
369 #line 93 "support/cmdline.yp"
370 { _merge($_[1], $_[2]) }
371 ],
372 [#Rule 4
373 'switches_and_revs', 1,
374 sub
375 #line 98 "support/cmdline.yp"
376 { +{ switches => {$_[1]=>[true]} } }
377 ],
378 [#Rule 5
379 'switches_and_revs', 1,
380 sub
381 #line 103 "support/cmdline.yp"
382 { +{ revs => [$_[1]] } }
383 ],
384 [#Rule 6
385 'switches_and_revs', 2,
386 sub
387 #line 105 "support/cmdline.yp"
388 { _merge($_[1], +{ switches => {$_[2]=>[true]} }) }
389 ],
390 [#Rule 7
391 'switches_and_revs', 2,
392 sub
393 #line 107 "support/cmdline.yp"
394 { _merge($_[1], +{ revs => [$_[2]] }) }
395 ],
396 [#Rule 8
397 'maybeexprplus', 0,
398 sub
399 #line 113 "support/cmdline.yp"
400 { +{} }
401 ],
402 [#Rule 9
403 'maybeexprplus', 1,
404 sub
405 #line 114 "support/cmdline.yp"
406 { +{ expr => $_[1] } }
407 ],
408 [#Rule 10
409 'maybeexprplus', 2,
410 sub
411 #line 115 "support/cmdline.yp"
412 { +{ expr => $_[1], %{$_[2]} } }
413 ],
414 [#Rule 11
415 'expr', 1, undef
416 ],
417 [#Rule 12
418 'expr', 3,
419 sub
420 #line 122 "support/cmdline.yp"
421 { +{ SEQ => [@_[1,3]] } }
422 ],
423 [#Rule 13
424 'expr', 3,
425 sub
426 #line 123 "support/cmdline.yp"
427 { +{ OR => [@_[1,3]] } }
428 ],
429 [#Rule 14
430 'expr', 2,
431 sub
432 #line 133 "support/cmdline.yp"
433 { +{ AND => [@_[1,2]] } }
434 ],
435 [#Rule 15
436 'expr', 3,
437 sub
438 #line 134 "support/cmdline.yp"
439 { +{ AND => [@_[1,3]] } }
440 ],
441 [#Rule 16
442 'expr', 2,
443 sub
444 #line 135 "support/cmdline.yp"
445 { +{ NOT => $_[2] } }
446 ],
447 [#Rule 17
448 'expr', 3,
449 sub
450 #line 136 "support/cmdline.yp"
451 { $_[2] }
452 ],
453 [#Rule 18
454 'subsequent_expr', 1, undef
455 ],
456 [#Rule 19
457 'subsequent_expr', 2,
458 sub
459 #line 141 "support/cmdline.yp"
460 { +{ NOT => $_[2] } }
461 ],
462 [#Rule 20
463 'subsequent_expr', 3,
464 sub
465 #line 142 "support/cmdline.yp"
466 { $_[2] }
467 ],
468 [#Rule 21
469 'element', 1, undef
470 ],
471 [#Rule 22
472 'element', 1,
473 sub
474 #line 148 "support/cmdline.yp"
475 {
476 $_[0]->YYData->{SAW_NON_PRUNE_ACTION} = true if $_[1] ne 'prune';
477 $_[1];
478 }
479 ]
480 ],
481 @_);
482 bless($self,$class);
483 }
484  
485 #line 154 "support/cmdline.yp"
486  
487  
488 #############################################################################
489 # Footer
490  
491 # Helpers for the tokenizer {{{1
492  
493 # Flag a ref as invalid without using regexes.
494 # Implements https://git-scm.com/docs/git-check-ref-format as archived at
495 # https://web.archive.org/web/20190725153529/https://git-scm.com/docs/git-check-ref-format
496  
497 sub _is_ref_ok {
498 my $arg = @_ ? $_[0] : $_;
499  
500 return false unless defined $arg and length($arg)>0;
501  
502 #1 - restrictions on slash-separated components
503 if(index($arg, '/') != -1) {
504 return false if index($arg, '/.') != -1 #internal components
505 || index($arg, '.lock/') != -1
506 || substr($arg, 0, 1) eq '.' #components at start/end
507 || substr($arg, -5) eq '.lock';
508 }
509  
510 # Ignore #2 - assume --allow-onelevel
511  
512 #3
513 return false if index($arg, '..') != -1;
514  
515 #4 - require the caller to check that
516 #5 - require the caller to check that - assume NOT --refspec-pattern
517  
518 #6 - assume NOT --normalize
519 return false if substr($arg, 0, 1) eq '/'
520 || substr($arg, -1) eq '/'
521 || index($arg, '//') != -1;
522  
523 # #7. Also prohibits ".", which is OK for git-find since it is
524 # fairly ambiguous between a ref/rev and a path.
525 return false if substr($arg, -1) eq '.';
526  
527 #8
528 return false if index($arg, '@{') != -1;
529  
530 #9 ('@') - ignore this one for simplicity in the rev test below.
531  
532 #10 - require the caller to check that
533  
534 # Extra: Prohibit refs that start with '--' since they are arguably
535 # ambiguous with command-line options (and I can't make them work
536 # with git anyway).
537 return false if substr($arg, 0, 2) eq '--';
538  
539 return true; # It's OK if we got here
540 } #_is_ref_ok()
541  
542 #use re 'debug';
543  
544 # Regex to match a rev or range of revs, i.e., something we should pass to git
545 my $_rev_regex =
546 qr`(?xi) # backtick delimiter because it doesn't occur in the regex text
547 (?&RevRange)
548  
549 (?(DEFINE)
550  
551 (?<RevRange> ^(?:
552 # :/text, :/!-text, :/!!text
553 (?::/ #(?{ print "# saw colon slash\n"; })
554 (?:
555 ![!\-](?:.+) #(?{print "# 4\n";})
556 | [^!].* #(?{print "# 5\u";})
557 )
558 )
559  
560 # :[n:]path. NOTE: we prohibit starting the path with
561 # / if there is no number, in order to disambiguate
562 # the :/ text-search cases.
563 | :\d+:(?:.+) #(?{print "# 2\n";})
564 | :[^/].* #(?{print "# 3\n";})
565  
566 # ^<rev>
567 | \^(?&Rev) #(?{print "# 6\n";})
568  
569 # rev:path
570 | (?&Rev):(?:.+) #(?{print "# 7\n";})
571  
572 # .. and ... differences, including x.., x..., x..y,
573 # and x...y. Also handles the fallthrough
574 # of revrange->rev->ref.
575 | (?&Rev)(?:\.{2,3}(?&Rev)?)?
576 #(?{print "# 8\n";})
577  
578 # ..rev and ...rev
579 | \.{2,3}(?&Rev)
580  
581 # at sign followed by braced item, and possibly
582 # preceded by a REF (not a rev). E.g.,
583 # HEAD@{1}@{1} doesn't work.
584 # refname - at sign - braced item (date, #, branch, "push")
585 | (?&Ref)?\@\{[^\}]+\}
586 #(?{print "# 9\n";})
587  
588 # git-rev-parse "Options for Objects" forms
589 | --all
590 | --(?:branches|tags|remotes)(?:=.+)?
591 | --(?:glob|exclude)=.+
592 | --disambiguate=[0-9a-f]{4,40}
593  
594 # git-rev-parse "Other Options" forms
595 | --(since|after|until|before)=.+
596  
597 )$) # End of RevRange
598  
599 (?<Rev> (?&Ref)(?&RefTrailer)* )
600 # This handles most of the cases.
601 # SHA1s, possibly abbreviated, are refs,
602 # as are git-describe outputs, whence RefTrailer*
603 # instead of RefTrailer+.
604  
605 (?<RefTrailer>
606 # For rev^[#] and rev~[#] forms
607 [~\^]\d*
608  
609 # For rev^{} forms (empty braces OK)
610 | \^\{[^\}]*\}
611  
612 # For rev^[@!] and rev^-n
613 | \^(?: \@ | ! | -\d* )
614 ) # End of RefTrailer
615  
616 (?<Ref>
617 ( \@ # '@' from git-rev-parse
618 | (?:[^\000-\037\177\ ~\^:\\?*\[.@/]
619 # git-check-ref-format #4, #5.
620 # [.@/] are handled below
621 | \.(?!\.) # . ok, but .. prohibited
622 | \@(?!\{) # @ ok, but @{ prohibited
623 | /(?!/) # / ok, but // prohibited
624  
625 )+?
626 )
627 (?(?{ _is_ref_ok($+) })|(?!))
628 # NOTE: $+ used since I couldn't get named capture groups
629 # with either %+ or %- to work
630 ) # End of <Ref>
631  
632 ) #End of (DEFINE)
633  
634 `xi; # End of qr`...` and an extra backtick to unconfuse vim-eyapp: `
635  
636 sub _is_valid_rev {
637 my $arg = @_ ? $_[0] : $_;
638  
639 return false unless defined $arg and length($arg)>0;
640 return scalar($arg =~ m{$_rev_regex});
641 } #_is_valid_rev()
642  
643 # Get an expression element from the array passed in $_[0].
644 my $ARGTEST_cached = App::GitFind::Actions::ARGTEST();
645 sub _consume_expression_element {
646 my $lrArgv = shift;
647 my @retval;
648  
649 #say STDERR "# Trying >>$lrArgv->[0]<<";
650 # TODO find(1) positional options, global options?
651  
652 # Regular options
653 if($lrArgv->[0] =~ $ARGTEST_cached) {
654 #say STDERR "# - matched";
655 my $arg = $1;
656 my %opts = %{App::GitFind::Actions::argdetails($arg)};
657  
658 # No-argument tests or actions
659 unless($opts{nparam}>0) {
660 #say STDERR "# - No parameters";
661 shift @$lrArgv;
662 return ($opts{token} => $arg)
663 }
664  
665 # Consume additional arguments
666 #say STDERR "# - $opts{nparam} parameters";
667 die "Not enough parameters after --$arg (need $opts{nparam})"
668 unless @$lrArgv >= ($opts{nparam}+1); # +1 for $arg itself
669  
670 @retval = ($opts{token} => {
671 name => $arg,
672 params => [ @{$lrArgv}[1..$opts{nparam}] ]
673 });
674 splice @$lrArgv, 0, $opts{nparam}+1;
675 return @retval;
676 }
677  
678 # Operators
679 my $arg = $lrArgv->[0];
680  
681 @retval = (COMMA => ',') if $arg eq ',';
682 @retval = (OR => '-o') if $arg =~ /^(?:-o|--o|-or|--or|\|\|)$/;
683 @retval = (AND => '-a') if $arg =~ /^(?:-a|--a|-and|--and|&&)$/;
684 @retval = (NOT => '!') if $arg =~ /^(?:-not|--not|!|\^)$/;
685 @retval = (LPAREN => '(') if $arg =~ /^[([]$/;
686 @retval = (RPAREN => ')') if $arg =~ /^[])]$/;
687  
688 if(@retval) {
689 shift @$lrArgv;
690 return @retval;
691 }
692  
693 return (); # Not an expression element
694 } #_consume_expression_element
695  
696 # Get a switch from the array passed in $_[0], if any.
697 # Removes the switch from the array if successful.
698 # Returns the token on success, and () on failure.
699 # TODO un-bundle switches; handle switches with args.
700 sub _consume_switch {
701 my $lrArgv = shift;
702 if($lrArgv->[0] =~ /^-([a-zA-z0-9\?])$/) { # non-bundled switch
703 shift @$lrArgv;
704 return (SWITCH => $1)
705 } elsif($lrArgv->[0] =~ /^--?(help|man|usage|version)$/) { # long switch
706 shift @$lrArgv;
707 return (SWITCH => $1);
708 }
709  
710 return ();
711 } #_consume_switch()
712  
713 # Consume a rev from the array in $_[0]
714 sub _consume_rev {
715 my $lrArgv = shift;
716 my $arg = $lrArgv->[0];
717 if(_is_valid_rev($arg)) {
718 shift @$lrArgv;
719 return (REV => $arg);
720 }
721  
722 return ();
723 } #_consume_rev()
724  
725 # }}}1
726 # Tokenizer and error-reporting routine for Parse::Yapp {{{1
727  
728 # The lexer
729 sub _next_token {
730 my $parser = shift;
731 my $lrArgv = $parser->YYData->{ARGV};
732 return ('', undef) unless @$lrArgv; # EOF
733 my @retval; # The eventual token we will return
734  
735 # TODO? in the expression, split trailing commas into their
736 # own arguments
737  
738 # Check for '--'
739 if($lrArgv->[0] eq '--') {
740 $parser->YYData->{ONLY_EXPRESSIONS} = true;
741 return ('', undef) unless @$lrArgv > 1;
742 # We are about to shift, so return EOF if this was the last arg.
743 shift(@$lrArgv);
744 }
745  
746 if($parser->YYData->{HAS_DASH_DASH}) {
747 # Split-arg mode: don't look for expressions before '--', or
748 # for switches or refs after '--'.
749 if(!$parser->YYData->{ONLY_EXPRESSIONS}) { # Look for switches/refs
750  
751 @retval = _consume_switch($lrArgv);
752 return @retval if @retval;
753  
754 @retval = _consume_rev($lrArgv);
755 return @retval if @retval;
756  
757 die "I don't understand argument '$lrArgv->[0]' before --";
758  
759 } else { # Look for expressions
760 @retval = _consume_expression_element($lrArgv);
761 return @retval if @retval;
762 die "I don't understand argument '$lrArgv->[0]' after --";
763 }
764  
765 } else {
766 # Merged-arg mode: any arg could be anything
767  
768 # Check for expressions. Look for these before checking for refs so
769 # that an expression that happens to look like a ref will be considered
770 # an expression instead of a ref.
771 my @retval = _consume_expression_element($lrArgv);
772 return @retval if @retval;
773  
774 # Next, look for switches. These are after expression elements
775 # so that -a and -o will not be parsed as switches.
776 @retval = _consume_switch($lrArgv);
777 return @retval if @retval;
778  
779 # Last of all, revs.
780 @retval = _consume_rev($lrArgv);
781 return @retval if @retval;
782  
783 die "I don't understand argument $lrArgv->[0]";
784 }
785  
786 die "Unexpected error while processing argument $lrArgv->[0]"; # Shouldn't happen
787 } #_next_token()
788  
789 # Report an error
790 sub _report_error {
791 my $parser = shift;
792 my $got = $parser->YYCurtok || '<end of input>';
793 my $val='';
794 $val = ' (' . $parser->YYCurval . ')' if $parser->YYCurval;
795 print 'Syntax error: could not understand ', $got, $val, "\n";
796 if(ref($parser->YYExpect) eq 'ARRAY') {
797 print 'Expected one of: ', join(',', @{$parser->YYExpect}), "\n";
798 }
799 return;
800 } #_report_error()
801  
802 # }}}1
803 # Top-level parse function {{{1
804  
805 =head2 Parse
806  
807 Parse arguments. Usage:
808  
809 my $hrArgs = App::GitFind::cmdline::Parse(\@ARGV);
810  
811 =cut
812  
813 sub Parse {
814 my $lrArgv = shift or croak 'Parse: Need an argument list';
815  
816 my $parser = __PACKAGE__->new;
817 my $hrData = $parser->YYData;
818  
819 $hrData->{HAS_DASH_DASH} = !!(scalar grep { $_ eq '--' } @$lrArgv);
820 $hrData->{ONLY_EXPRESSIONS} = false; # true once we hit '--'
821 $hrData->{ARGV} = $lrArgv;
822  
823 # Keep track of whether an action other than -prune has been seen.
824 # If not, -print is added automatically.
825 $hrData->{SAW_NON_PRUNE_ACTION} = false;
826  
827 my $hrRetval = $parser->YYParse(yylex => \&_next_token,
828 yyerror => \&_report_error,
829 (@_ ? (yydebug => $_[0]) : ()),
830 );
831 $hrRetval->{sawnpa} = $hrData->{SAW_NON_PRUNE_ACTION} if $hrRetval;
832 return $hrRetval;
833 } #Parse()
834  
835 # }}}1
836 # Rest of the docs {{{1
837  
838 =head1 AUTHOR
839  
840 Christopher White C<< <cxw@cpan.org> >>
841  
842 =head1 COPYRIGHT
843  
844 MIT
845  
846 =cut
847  
848 # }}}1
849  
850 # vi: set fdm=marker: #
851  
852 1;
« blib/lib/App/GitFind/Runner.pm ↑ Summary