#################################################################### # # ANY CHANGE MADE HERE WILL BE LOST ! # # This file was generated using Parse::Yapp version 1.05. # Don't edit this file, edit template.skel.pm and template.yp instead. # #################################################################### package VMXTemplate::Parser; use strict; use VMXTemplate::Compiler; use VMXTemplate::Utils; #Included Parse/Yapp/Driver.pm file---------------------------------------- { # # Module Parse::Yapp::Driver # # This module is part of the Parse::Yapp package available on your # nearest CPAN # # Any use of this module in a standalone parser make the included # text under the same copyright as the Parse::Yapp module itself. # # This notice should remain unchanged. # # (c) Copyright 1998-2001 Francois Desarmenien, all rights reserved. # (see the pod text in Parse::Yapp module for use and distribution rights) # package Parse::Yapp::Driver; require 5.004; use strict; use vars qw ( $VERSION $COMPATIBLE $FILENAME ); $VERSION = '1.05'; $COMPATIBLE = '0.07'; $FILENAME=__FILE__; use Carp; #Known parameters, all starting with YY (leading YY will be discarded) my(%params)=(YYLEX => 'CODE', 'YYERROR' => 'CODE', YYVERSION => '', YYRULES => 'ARRAY', YYSTATES => 'ARRAY', YYDEBUG => ''); #Mandatory parameters my(@params)=('LEX','RULES','STATES'); sub new { my($class)=shift; my($errst,$nberr,$token,$value,$check,$dotpos); my($self)={ ERROR => \&_Error, ERRST => \$errst, NBERR => \$nberr, TOKEN => \$token, VALUE => \$value, DOTPOS => \$dotpos, STACK => [], DEBUG => 0, CHECK => \$check }; _CheckParams( [], \%params, \@_, $self ); exists($$self{VERSION}) and $$self{VERSION} < $COMPATIBLE and croak "Yapp driver version $VERSION ". "incompatible with version $$self{VERSION}:\n". "Please recompile parser module."; ref($class) and $class=ref($class); bless($self,$class); } sub YYParse { my($self)=shift; my($retval); _CheckParams( \@params, \%params, \@_, $self ); if($$self{DEBUG}) { _DBLoad(); $retval = eval '$self->_DBParse()';#Do not create stab entry on compile $@ and die $@; } else { $retval = $self->_Parse(); } $retval } sub YYData { my($self)=shift; exists($$self{USER}) or $$self{USER}={}; $$self{USER}; } sub YYErrok { my($self)=shift; ${$$self{ERRST}}=0; undef; } sub YYNberr { my($self)=shift; ${$$self{NBERR}}; } sub YYRecovering { my($self)=shift; ${$$self{ERRST}} != 0; } sub YYAbort { my($self)=shift; ${$$self{CHECK}}='ABORT'; undef; } sub YYAccept { my($self)=shift; ${$$self{CHECK}}='ACCEPT'; undef; } sub YYError { my($self)=shift; ${$$self{CHECK}}='ERROR'; undef; } sub YYSemval { my($self)=shift; my($index)= $_[0] - ${$$self{DOTPOS}} - 1; $index < 0 and -$index <= @{$$self{STACK}} and return $$self{STACK}[$index][1]; undef; #Invalid index } sub YYCurtok { my($self)=shift; @_ and ${$$self{TOKEN}}=$_[0]; ${$$self{TOKEN}}; } sub YYCurval { my($self)=shift; @_ and ${$$self{VALUE}}=$_[0]; ${$$self{VALUE}}; } sub YYExpect { my($self)=shift; keys %{$self->{STATES}[$self->{STACK}[-1][0]]{ACTIONS}} } sub YYLexer { my($self)=shift; $$self{LEX}; } ################# # Private stuff # ################# sub _CheckParams { my($mandatory,$checklist,$inarray,$outhash)=@_; my($prm,$value); my($prmlst)={}; while(($prm,$value)=splice(@$inarray,0,2)) { $prm=uc($prm); exists($$checklist{$prm}) or croak("Unknow parameter '$prm'"); ref($value) eq $$checklist{$prm} or croak("Invalid value for parameter '$prm'"); $prm=unpack('@2A*',$prm); $$outhash{$prm}=$value; } for (@$mandatory) { exists($$outhash{$_}) or croak("Missing mandatory parameter '".lc($_)."'"); } } sub _Error { print "Parse error.\n"; } sub _DBLoad { { no strict 'refs'; exists(${__PACKAGE__.'::'}{_DBParse})#Already loaded ? and return; } my($fname)=__FILE__; my(@drv); open(DRV,"<$fname") or die "Report this as a BUG: Cannot open $fname"; while() { /^\s*sub\s+_Parse\s*{\s*$/ .. /^\s*}\s*#\s*_Parse\s*$/ and do { s/^#DBG>//; push(@drv,$_); } } close(DRV); $drv[0]=~s/_P/_DBP/; eval join('',@drv); } #Note that for loading debugging version of the driver, #this file will be parsed from 'sub _Parse' up to '}#_Parse' inclusive. #So, DO NOT remove comment at end of sub !!! sub _Parse { my($self)=shift; my($rules,$states,$lex,$error) = @$self{ 'RULES', 'STATES', 'LEX', 'ERROR' }; my($errstatus,$nberror,$token,$value,$stack,$check,$dotpos) = @$self{ 'ERRST', 'NBERR', 'TOKEN', 'VALUE', 'STACK', 'CHECK', 'DOTPOS' }; #DBG> my($debug)=$$self{DEBUG}; #DBG> my($dbgerror)=0; #DBG> my($ShowCurToken) = sub { #DBG> my($tok)='>'; #DBG> for (split('',$$token)) { #DBG> $tok.= (ord($_) < 32 or ord($_) > 126) #DBG> ? sprintf('<%02X>',ord($_)) #DBG> : $_; #DBG> } #DBG> $tok.='<'; #DBG> }; $$errstatus=0; $$nberror=0; ($$token,$$value)=(undef,undef); @$stack=( [ 0, undef ] ); $$check=''; while(1) { my($actions,$act,$stateno); $stateno=$$stack[-1][0]; $actions=$$states[$stateno]; #DBG> print STDERR ('-' x 40),"\n"; #DBG> $debug & 0x2 #DBG> and print STDERR "In state $stateno:\n"; #DBG> $debug & 0x08 #DBG> and print STDERR "Stack:[". #DBG> join(',',map { $$_[0] } @$stack). #DBG> "]\n"; if (exists($$actions{ACTIONS})) { defined($$token) or do { ($$token,$$value)=&$lex($self); #DBG> $debug & 0x01 #DBG> and print STDERR "Need token. Got ".&$ShowCurToken."\n"; }; $act= exists($$actions{ACTIONS}{$$token}) ? $$actions{ACTIONS}{$$token} : exists($$actions{DEFAULT}) ? $$actions{DEFAULT} : undef; } else { $act=$$actions{DEFAULT}; #DBG> $debug & 0x01 #DBG> and print STDERR "Don't need token.\n"; } defined($act) and do { $act > 0 and do { #shift #DBG> $debug & 0x04 #DBG> and print STDERR "Shift and go to state $act.\n"; $$errstatus and do { --$$errstatus; #DBG> $debug & 0x10 #DBG> and $dbgerror #DBG> and $$errstatus == 0 #DBG> and do { #DBG> print STDERR "**End of Error recovery.\n"; #DBG> $dbgerror=0; #DBG> }; }; push(@$stack,[ $act, $$value ]); $$token ne '' #Don't eat the eof and $$token=$$value=undef; next; }; #reduce my($lhs,$len,$code,@sempar,$semval); ($lhs,$len,$code)=@{$$rules[-$act]}; #DBG> $debug & 0x04 #DBG> and $act #DBG> and print STDERR "Reduce using rule ".-$act." ($lhs,$len): "; $act or $self->YYAccept(); $$dotpos=$len; unpack('A1',$lhs) eq '@' #In line rule and do { $lhs =~ /^\@[0-9]+\-([0-9]+)$/ or die "In line rule name '$lhs' ill formed: ". "report it as a BUG.\n"; $$dotpos = $1; }; @sempar = $$dotpos ? map { $$_[1] } @$stack[ -$$dotpos .. -1 ] : (); $semval = $code ? &$code( $self, @sempar ) : @sempar ? $sempar[0] : undef; splice(@$stack,-$len,$len); $$check eq 'ACCEPT' and do { #DBG> $debug & 0x04 #DBG> and print STDERR "Accept.\n"; return($semval); }; $$check eq 'ABORT' and do { #DBG> $debug & 0x04 #DBG> and print STDERR "Abort.\n"; return(undef); }; #DBG> $debug & 0x04 #DBG> and print STDERR "Back to state $$stack[-1][0], then "; $$check eq 'ERROR' or do { #DBG> $debug & 0x04 #DBG> and print STDERR #DBG> "go to state $$states[$$stack[-1][0]]{GOTOS}{$lhs}.\n"; #DBG> $debug & 0x10 #DBG> and $dbgerror #DBG> and $$errstatus == 0 #DBG> and do { #DBG> print STDERR "**End of Error recovery.\n"; #DBG> $dbgerror=0; #DBG> }; push(@$stack, [ $$states[$$stack[-1][0]]{GOTOS}{$lhs}, $semval ]); $$check=''; next; }; #DBG> $debug & 0x04 #DBG> and print STDERR "Forced Error recovery.\n"; $$check=''; }; #Error $$errstatus or do { $$errstatus = 1; &$error($self); $$errstatus # if 0, then YYErrok has been called or next; # so continue parsing #DBG> $debug & 0x10 #DBG> and do { #DBG> print STDERR "**Entering Error recovery.\n"; #DBG> ++$dbgerror; #DBG> }; ++$$nberror; }; $$errstatus == 3 #The next token is not valid: discard it and do { $$token eq '' # End of input: no hope and do { #DBG> $debug & 0x10 #DBG> and print STDERR "**At eof: aborting.\n"; return(undef); }; #DBG> $debug & 0x10 #DBG> and print STDERR "**Dicard invalid token ".&$ShowCurToken.".\n"; $$token=$$value=undef; }; $$errstatus=3; while( @$stack and ( not exists($$states[$$stack[-1][0]]{ACTIONS}) or not exists($$states[$$stack[-1][0]]{ACTIONS}{error}) or $$states[$$stack[-1][0]]{ACTIONS}{error} <= 0)) { #DBG> $debug & 0x10 #DBG> and print STDERR "**Pop state $$stack[-1][0].\n"; pop(@$stack); } @$stack or do { #DBG> $debug & 0x10 #DBG> and print STDERR "**No state left on stack: aborting.\n"; return(undef); }; #shift the error token #DBG> $debug & 0x10 #DBG> and print STDERR "**Shift \$error token and go to state ". #DBG> $$states[$$stack[-1][0]]{ACTIONS}{error}. #DBG> ".\n"; push(@$stack, [ $$states[$$stack[-1][0]]{ACTIONS}{error}, undef ]); } #never reached croak("Error in driver logic. Please, report it as a BUG"); }#_Parse #DO NOT remove comment 1; } #End of include-------------------------------------------------- our @ISA = qw(Parse::Yapp::Driver VMXTemplate::Compiler); sub new { my $class = shift; $class = ref($class) || $class; my ($options) = @_; my $self = bless $class->SUPER::new( yyversion => '1.05', yystates => [ {#State 0 DEFAULT => -2, GOTOS => { 'chunks' => 2, 'template' => 1 } }, {#State 1 ACTIONS => { '' => 3 } }, {#State 2 ACTIONS => { 'error' => 7, "{{" => 4, '' => -1, 'literal' => 6, "" => 72 } }, {#State 33 ACTIONS => { 'name' => 70 }, GOTOS => { 'varref' => 74 } }, {#State 34 ACTIONS => { "-->" => 75 } }, {#State 35 ACTIONS => { "{" => 12, "!" => 11, 'name' => 19, "NOT" => 18, 'literal' => 10, "(" => 17, "-" => 14 }, GOTOS => { 'p11' => 13, 'nonbrace' => 9, 'p10' => 15, 'exp' => 76, 'varref' => 16 } }, {#State 36 DEFAULT => -8 }, {#State 37 DEFAULT => -56 }, {#State 38 ACTIONS => { "||" => 63, "%" => 62, "AND" => 64, ".." => 59, "*" => 60, ">=" => 68, "-" => 65, "&&" => 67, "==" => 66, "," => 77, "!=" => 50, "&" => 51, ">" => 55, "=>" => 78, "/" => 56, "+" => 57, "OR" => 58, "XOR" => 52, "<" => 53, "<=" => 54 } }, {#State 39 DEFAULT => -76 }, {#State 40 ACTIONS => { "," => 79 }, DEFAULT => -70 }, {#State 41 ACTIONS => { "}" => 80 } }, {#State 42 DEFAULT => -53 }, {#State 43 DEFAULT => -79 }, {#State 44 ACTIONS => { "(" => 17, "-" => 14, "!" => 11, "{" => 12, "NOT" => 18, 'name' => 19, 'literal' => 10 }, GOTOS => { 'varref' => 16, 'exp' => 81, 'p10' => 15, 'p11' => 13, 'nonbrace' => 9 } }, {#State 45 ACTIONS => { 'name' => 82 } }, {#State 46 ACTIONS => { "&" => 51, "!=" => 50, "<=" => 54, "<" => 53, "XOR" => 52, ")" => 83, "OR" => 58, "+" => 57, "/" => 56, ">" => 55, "*" => 60, ".." => 59, "AND" => 64, "||" => 63, "%" => 62, "==" => 66, "-" => 65, "&&" => 67, ">=" => 68 } }, {#State 47 DEFAULT => -57 }, {#State 48 ACTIONS => { "{" => 12, "!" => 11, 'literal' => 10, ")" => 87, "(" => 17, "-" => 14, "NOT" => 18, 'name' => 19 }, GOTOS => { 'varref' => 16, 'p10' => 15, 'gthash' => 88, 'gtpair' => 86, 'p11' => 13, 'nonbrace' => 9, 'list' => 85, 'exp' => 84 } }, {#State 49 DEFAULT => -64 }, {#State 50 ACTIONS => { "-" => 14, "(" => 17, 'literal' => 10, "NOT" => 18, 'name' => 19, "!" => 11, "{" => 12 }, GOTOS => { 'varref' => 16, 'p10' => 15, 'exp' => 89, 'nonbrace' => 9, 'p11' => 13 } }, {#State 51 ACTIONS => { "-" => 14, "(" => 17, 'literal' => 10, "NOT" => 18, 'name' => 19, "!" => 11, "{" => 12 }, GOTOS => { 'p10' => 15, 'exp' => 90, 'varref' => 16, 'nonbrace' => 9, 'p11' => 13 } }, {#State 52 ACTIONS => { "-" => 14, "(" => 17, 'literal' => 10, "!" => 11, "{" => 12, "NOT" => 18, 'name' => 19 }, GOTOS => { 'exp' => 91, 'p10' => 15, 'varref' => 16, 'nonbrace' => 9, 'p11' => 13 } }, {#State 53 ACTIONS => { "{" => 12, "!" => 11, "NOT" => 18, 'name' => 19, 'literal' => 10, "(" => 17, "-" => 14 }, GOTOS => { 'varref' => 16, 'p10' => 15, 'exp' => 92, 'nonbrace' => 9, 'p11' => 13 } }, {#State 54 ACTIONS => { "-" => 14, "(" => 17, 'literal' => 10, "NOT" => 18, 'name' => 19, "!" => 11, "{" => 12 }, GOTOS => { 'nonbrace' => 9, 'p11' => 13, 'p10' => 15, 'exp' => 93, 'varref' => 16 } }, {#State 55 ACTIONS => { "(" => 17, "-" => 14, "{" => 12, "!" => 11, "NOT" => 18, 'name' => 19, 'literal' => 10 }, GOTOS => { 'p11' => 13, 'nonbrace' => 9, 'varref' => 16, 'exp' => 94, 'p10' => 15 } }, {#State 56 ACTIONS => { "(" => 17, "-" => 14, "{" => 12, "!" => 11, "NOT" => 18, 'name' => 19, 'literal' => 10 }, GOTOS => { 'p11' => 13, 'nonbrace' => 9, 'varref' => 16, 'p10' => 15, 'exp' => 95 } }, {#State 57 ACTIONS => { "(" => 17, "-" => 14, "!" => 11, "{" => 12, "NOT" => 18, 'name' => 19, 'literal' => 10 }, GOTOS => { 'varref' => 16, 'exp' => 96, 'p10' => 15, 'p11' => 13, 'nonbrace' => 9 } }, {#State 58 ACTIONS => { "!" => 11, "{" => 12, 'name' => 19, "NOT" => 18, 'literal' => 10, "(" => 17, "-" => 14 }, GOTOS => { 'p10' => 15, 'exp' => 97, 'varref' => 16, 'nonbrace' => 9, 'p11' => 13 } }, {#State 59 ACTIONS => { "-" => 14, "(" => 17, 'literal' => 10, "NOT" => 18, 'name' => 19, "!" => 11, "{" => 12 }, GOTOS => { 'varref' => 16, 'exp' => 98, 'p10' => 15, 'p11' => 13, 'nonbrace' => 9 } }, {#State 60 ACTIONS => { 'name' => 19, "NOT" => 18, "{" => 12, "!" => 11, 'literal' => 10, "(" => 17, "-" => 14 }, GOTOS => { 'nonbrace' => 9, 'p11' => 13, 'varref' => 16, 'exp' => 99, 'p10' => 15 } }, {#State 61 DEFAULT => -7 }, {#State 62 ACTIONS => { "(" => 17, "-" => 14, 'name' => 19, "NOT" => 18, "!" => 11, "{" => 12, 'literal' => 10 }, GOTOS => { 'p11' => 13, 'nonbrace' => 9, 'exp' => 100, 'p10' => 15, 'varref' => 16 } }, {#State 63 ACTIONS => { "(" => 17, "-" => 14, "!" => 11, "{" => 12, "NOT" => 18, 'name' => 19, 'literal' => 10 }, GOTOS => { 'nonbrace' => 9, 'p11' => 13, 'varref' => 16, 'p10' => 15, 'exp' => 101 } }, {#State 64 ACTIONS => { 'name' => 19, "NOT" => 18, "!" => 11, "{" => 12, 'literal' => 10, "(" => 17, "-" => 14 }, GOTOS => { 'nonbrace' => 9, 'p11' => 13, 'varref' => 16, 'exp' => 102, 'p10' => 15 } }, {#State 65 ACTIONS => { "(" => 17, "-" => 14, 'name' => 19, "NOT" => 18, "!" => 11, "{" => 12, 'literal' => 10 }, GOTOS => { 'p11' => 13, 'nonbrace' => 9, 'p10' => 15, 'exp' => 103, 'varref' => 16 } }, {#State 66 ACTIONS => { 'literal' => 10, "!" => 11, "{" => 12, 'name' => 19, "NOT" => 18, "-" => 14, "(" => 17 }, GOTOS => { 'varref' => 16, 'exp' => 104, 'p10' => 15, 'nonbrace' => 9, 'p11' => 13 } }, {#State 67 ACTIONS => { "!" => 11, "{" => 12, 'name' => 19, "NOT" => 18, 'literal' => 10, "(" => 17, "-" => 14 }, GOTOS => { 'exp' => 105, 'p10' => 15, 'varref' => 16, 'p11' => 13, 'nonbrace' => 9 } }, {#State 68 ACTIONS => { "NOT" => 18, 'name' => 19, "{" => 12, "!" => 11, 'literal' => 10, "(" => 17, "-" => 14 }, GOTOS => { 'p11' => 13, 'nonbrace' => 9, 'exp' => 106, 'p10' => 15, 'varref' => 16 } }, {#State 69 ACTIONS => { "[" => 44, "-->" => 108, "=" => 107, "." => 45 }, GOTOS => { 'varpart' => 43 } }, {#State 70 DEFAULT => -78 }, {#State 71 ACTIONS => { "(" => 109 } }, {#State 72 DEFAULT => -2, GOTOS => { 'chunks' => 110 } }, {#State 73 ACTIONS => { "-" => 14, "(" => 17, 'literal' => 10, "!" => 11, "{" => 12, "NOT" => 18, 'name' => 19 }, GOTOS => { 'p11' => 13, 'nonbrace' => 9, 'varref' => 16, 'p10' => 15, 'exp' => 111 } }, {#State 74 ACTIONS => { "[" => 44, "." => 45, "=" => 112 }, GOTOS => { 'varpart' => 43 } }, {#State 75 DEFAULT => -6 }, {#State 76 ACTIONS => { "-->" => 113, "!=" => 50, "&" => 51, ">" => 55, "/" => 56, "+" => 57, "OR" => 58, "XOR" => 52, "<" => 53, "<=" => 54, "%" => 62, "||" => 63, "AND" => 64, ".." => 59, "*" => 60, ">=" => 68, "&&" => 67, "-" => 65, "==" => 66 } }, {#State 77 ACTIONS => { "-" => 14, "(" => 17, 'literal' => 10, "NOT" => 18, 'name' => 19, "!" => 11, "{" => 12 }, GOTOS => { 'nonbrace' => 9, 'p11' => 13, 'varref' => 16, 'exp' => 114, 'p10' => 15 } }, {#State 78 ACTIONS => { "-" => 14, "(" => 17, 'literal' => 10, "NOT" => 18, 'name' => 19, "!" => 11, "{" => 12 }, GOTOS => { 'p10' => 15, 'exp' => 115, 'varref' => 16, 'nonbrace' => 9, 'p11' => 13 } }, {#State 79 ACTIONS => { "-" => 14, "(" => 17, 'literal' => 10, "!" => 11, "{" => 12, "NOT" => 18, 'name' => 19 }, DEFAULT => -72, GOTOS => { 'varref' => 16, 'pair' => 40, 'gtpair' => 39, 'p10' => 15, 'p11' => 13, 'nonbrace' => 9, 'hash' => 116, 'exp' => 38 } }, {#State 80 DEFAULT => -58 }, {#State 81 ACTIONS => { "&" => 51, "]" => 117, "!=" => 50, "<=" => 54, "<" => 53, "XOR" => 52, "OR" => 58, "+" => 57, "/" => 56, ">" => 55, "*" => 60, ".." => 59, "AND" => 64, "%" => 62, "||" => 63, "&&" => 67, "-" => 65, "==" => 66, ">=" => 68 } }, {#State 82 ACTIONS => { "(" => 118 }, DEFAULT => -80 }, {#State 83 DEFAULT => -84, GOTOS => { 'varpath' => 119 } }, {#State 84 ACTIONS => { "XOR" => 52, "<=" => 54, "<" => 53, "+" => 57, ">" => 55, "/" => 56, "=>" => 78, "OR" => 58, "!=" => 50, "&" => 51, "," => 120, "==" => 66, "&&" => 67, "-" => 65, ">=" => 68, "*" => 60, ".." => 59, "AND" => 64, "%" => 62, "||" => 63 }, DEFAULT => -65 }, {#State 85 ACTIONS => { ")" => 121 } }, {#State 86 ACTIONS => { "," => 122 }, DEFAULT => -73 }, {#State 87 DEFAULT => -61 }, {#State 88 ACTIONS => { ")" => 123 } }, {#State 89 ACTIONS => { "<=" => undef, "<" => undef, "+" => 57, ">" => undef, "/" => 56, "!=" => undef, "&" => 51, "==" => undef, "-" => 65, ">=" => undef, "*" => 60, "%" => 62 }, DEFAULT => -40 }, {#State 90 ACTIONS => { "%" => 62, "*" => 60, "/" => 56 }, DEFAULT => -47 }, {#State 91 ACTIONS => { "*" => 60, "AND" => 64, "%" => 62, "&&" => 67, "-" => 65, "==" => 66, ">=" => 68, "&" => 51, "!=" => 50, "<=" => 54, "<" => 53, "+" => 57, "/" => 56, ">" => 55 }, DEFAULT => -36 }, {#State 92 ACTIONS => { ">=" => undef, "==" => undef, "-" => 65, "%" => 62, "*" => 60, ">" => undef, "/" => 56, "+" => 57, "<" => undef, "<=" => undef, "&" => 51, "!=" => undef }, DEFAULT => -41 }, {#State 93 ACTIONS => { "*" => 60, "%" => 62, "==" => undef, "-" => 65, ">=" => undef, "!=" => undef, "&" => 51, "<=" => undef, "<" => undef, "+" => 57, ">" => undef, "/" => 56 }, DEFAULT => -43 }, {#State 94 ACTIONS => { "<=" => undef, "<" => undef, "+" => 57, "/" => 56, ">" => undef, "&" => 51, "!=" => undef, "==" => undef, "-" => 65, ">=" => undef, "*" => 60, "%" => 62 }, DEFAULT => -42 }, {#State 95 DEFAULT => -49 }, {#State 96 ACTIONS => { "/" => 56, "&" => 51, "*" => 60, "%" => 62 }, DEFAULT => -45 }, {#State 97 ACTIONS => { "*" => 60, "%" => 62, "AND" => 64, "&&" => 67, "-" => 65, "==" => 66, ">=" => 68, "&" => 51, "!=" => 50, "<" => 53, "<=" => 54, ">" => 55, "/" => 56, "+" => 57 }, DEFAULT => -35 }, {#State 98 ACTIONS => { "==" => 66, "&&" => 67, "-" => 65, ">=" => 68, "*" => 60, "%" => 62, "||" => 63, "AND" => 64, "XOR" => 52, "<" => 53, "<=" => 54, ">" => 55, "/" => 56, "+" => 57, "OR" => 58, "!=" => 50, "&" => 51 }, DEFAULT => -33 }, {#State 99 DEFAULT => -48 }, {#State 100 DEFAULT => -50 }, {#State 101 ACTIONS => { "!=" => 50, "&" => 51, "+" => 57, ">" => 55, "/" => 56, "<=" => 54, "<" => 53, "AND" => 64, "%" => 62, "*" => 60, ">=" => 68, "==" => 66, "-" => 65, "&&" => 67 }, DEFAULT => -34 }, {#State 102 ACTIONS => { "<" => 53, "<=" => 54, ">" => 55, "/" => 56, "+" => 57, "&" => 51, "!=" => 50, "==" => 66, "-" => 65, ">=" => 68, "*" => 60, "%" => 62 }, DEFAULT => -38 }, {#State 103 ACTIONS => { "&" => 51, "/" => 56, "*" => 60, "%" => 62 }, DEFAULT => -46 }, {#State 104 ACTIONS => { "!=" => undef, "&" => 51, "/" => 56, ">" => undef, "+" => 57, "<" => undef, "<=" => undef, "%" => 62, "*" => 60, ">=" => undef, "==" => undef, "-" => 65 }, DEFAULT => -39 }, {#State 105 ACTIONS => { "*" => 60, "%" => 62, "-" => 65, "==" => 66, ">=" => 68, "!=" => 50, "&" => 51, "<=" => 54, "<" => 53, "+" => 57, ">" => 55, "/" => 56 }, DEFAULT => -37 }, {#State 106 ACTIONS => { "+" => 57, "/" => 56, ">" => undef, "<=" => undef, "<" => undef, "!=" => undef, "&" => 51, ">=" => undef, "-" => 65, "==" => undef, "%" => 62, "*" => 60 }, DEFAULT => -44 }, {#State 107 ACTIONS => { "{" => 12, "!" => 11, "NOT" => 18, 'name' => 19, 'literal' => 10, "(" => 17, "-" => 14 }, GOTOS => { 'varref' => 16, 'exp' => 124, 'p10' => 15, 'nonbrace' => 9, 'p11' => 13 } }, {#State 108 DEFAULT => -2, GOTOS => { 'chunks' => 125 } }, {#State 109 ACTIONS => { 'name' => 127 }, DEFAULT => -69, GOTOS => { 'arglist' => 126 } }, {#State 110 ACTIONS => { 'error' => 7, 'literal' => 6, "" => 142, "<" => 53, "<=" => 54, "XOR" => 52, "OR" => 58, ">" => 55, "/" => 56, "+" => 57, ".." => 59, "*" => 60, "%" => 62, "||" => 63, "AND" => 64, "==" => 66, "&&" => 67, "-" => 65, ">=" => 68 } }, {#State 130 ACTIONS => { "{{" => 4, 'literal' => 6, "" => 158, "IF" => 159 } }, {#State 155 ACTIONS => { "-" => 14, "(" => 17, 'literal' => 10, "BLOCK" => 25, "{" => 12, "!" => 11, "FUNCTION" => 21, "FOR" => 22, "IF" => 35, "MACRO" => 23, "END" => 160, "SET" => 29, "FOREACH" => 31, 'name' => 19, "NOT" => 18 }, GOTOS => { 'c_set' => 26, 'c_fn' => 27, 'varref' => 16, 'p10' => 15, 'nonbrace' => 9, 'p11' => 13, 'code_chunk' => 34, 'for' => 33, 'c_if' => 36, 'exp' => 24, 'c_for' => 28, 'fn' => 30, 'fn_def' => 32 } }, {#State 156 ACTIONS => { "MACRO" => 23, "FOR" => 22, "NOT" => 18, 'name' => 19, "ELSIF" => 151, "-" => 14, "FUNCTION" => 21, 'literal' => 10, "IF" => 35, "ELSE" => 162, "FOREACH" => 31, "END" => 163, "SET" => 29, "(" => 17, "ELSEIF" => 150, "{" => 12, "!" => 11, "BLOCK" => 25 }, GOTOS => { 'exp' => 24, 'c_if' => 36, 'for' => 33, 'code_chunk' => 34, 'fn_def' => 32, 'fn' => 30, 'c_for' => 28, 'p10' => 15, 'varref' => 16, 'c_fn' => 27, 'c_set' => 26, 'p11' => 13, 'elseif' => 161, 'nonbrace' => 9 } }, {#State 157 ACTIONS => { "OR" => 58, ">" => 55, "/" => 56, "+" => 57, "<" => 53, "<=" => 54, "XOR" => 52, "-->" => 164, "&" => 51, "!=" => 50, ">=" => 68, "-" => 65, "&&" => 67, "==" => 66, "%" => 62, "||" => 63, "AND" => 64, ".." => 59, "*" => 60 } }, {#State 158 DEFAULT => -2, GOTOS => { 'chunks' => 165 } }, {#State 159 DEFAULT => -30 }, {#State 160 DEFAULT => -24 }, {#State 161 ACTIONS => { 'name' => 19, "NOT" => 18, "{" => 12, "!" => 11, 'literal' => 10, "(" => 17, "-" => 14 }, GOTOS => { 'nonbrace' => 9, 'p11' => 13, 'exp' => 166, 'p10' => 15, 'varref' => 16 } }, {#State 162 ACTIONS => { "-->" => 167, "IF" => 159 } }, {#State 163 DEFAULT => -15 }, {#State 164 DEFAULT => -17 }, {#State 165 ACTIONS => { 'error' => 7, 'literal' => 6, "" => 169, "XOR" => 52, "<=" => 54, "<" => 53, "+" => 57, ">" => 55, "/" => 56, "OR" => 58, "*" => 60, ".." => 59, "AND" => 64, "||" => 63, "%" => 62, "==" => 66, "&&" => 67, "-" => 65, ">=" => 68 } }, {#State 167 DEFAULT => -2, GOTOS => { 'chunks' => 170 } }, {#State 168 ACTIONS => { "FUNCTION" => 21, "{" => 12, "!" => 11, "BLOCK" => 25, 'literal' => 10, "(" => 17, "-" => 14, 'name' => 19, "NOT" => 18, "FOREACH" => 31, "SET" => 29, "END" => 171, "IF" => 35, "MACRO" => 23, "FOR" => 22 }, GOTOS => { 'c_fn' => 27, 'c_set' => 26, 'p10' => 15, 'varref' => 16, 'nonbrace' => 9, 'p11' => 13, 'c_if' => 36, 'exp' => 24, 'for' => 33, 'code_chunk' => 34, 'fn' => 30, 'c_for' => 28, 'fn_def' => 32 } }, {#State 169 DEFAULT => -18 }, {#State 170 ACTIONS => { 'error' => 7, "