3 # This file is automatically generated by racc 1.4.5
4 # from racc grammer file "parser.y".
7 # parser.rb: generated by racc (runtime embedded)
9 ###### racc/parser.rb begin
10 unless $
".index 'racc/parser.rb'
11 $".push
'racc/parser.rb'
13 self.class.module_eval
<<'..end racc/parser.rb modeval..id8076474214', 'racc/parser.rb', 1
15 # $Id: parser.rb,v 1.7 2005/11/20 17:31:32 aamine Exp $
17 # Copyright (c) 1999-2005 Minero Aoki
19 # This program is free software.
20 # You can distribute/modify this program under the same terms of ruby.
22 # As a special exception, when this code is copied by Racc
23 # into a Racc output file, you may use that output file
24 # without restriction.
27 unless defined?(NotImplementedError
)
28 NotImplementedError
= NotImplementError
32 class ParseError
< StandardError
; end
34 unless defined?(::ParseError)
35 ParseError
= Racc
::ParseError
40 unless defined?(Racc_No_Extentions
)
41 Racc_No_Extentions
= false
46 Racc_Runtime_Version
= '1.4.5'
47 Racc_Runtime_Revision
= '$Revision: 1.7 $'.split
[1]
49 Racc_Runtime_Core_Version_R
= '1.4.5'
50 Racc_Runtime_Core_Revision_R
= '$Revision: 1.7 $'.split
[1]
53 # Racc_Runtime_Core_Version_C = (defined in extention)
54 Racc_Runtime_Core_Revision_C
= Racc_Runtime_Core_Id_C
.split
[2]
55 unless new
.respond_to
?(:_racc_do_parse_c, true)
56 raise LoadError
, 'old cparse.so'
59 raise LoadError
, 'selecting ruby version of racc runtime core'
62 Racc_Main_Parsing_Routine
= :_racc_do_parse_c
63 Racc_YY_Parse_Method
= :_racc_yyparse_c
64 Racc_Runtime_Core_Version
= Racc_Runtime_Core_Version_C
65 Racc_Runtime_Core_Revision
= Racc_Runtime_Core_Revision_C
66 Racc_Runtime_Type
= 'c'
68 Racc_Main_Parsing_Routine
= :_racc_do_parse_rb
69 Racc_YY_Parse_Method
= :_racc_yyparse_rb
70 Racc_Runtime_Core_Version
= Racc_Runtime_Core_Version_R
71 Racc_Runtime_Core_Revision
= Racc_Runtime_Core_Revision_R
72 Racc_Runtime_Type
= 'ruby'
75 def Parser
.racc_runtime_type
82 @yydebug = false unless self.class::Racc_debug_parser
83 @yydebug = false unless defined?(@yydebug)
85 @racc_debug_out = $stderr unless defined?(@racc_debug_out)
86 @racc_debug_out ||= $stderr
88 arg
= self.class::Racc_arg
89 arg
[13] = true if arg
.size
< 14
93 def _racc_init_sysvars
101 @racc_read_next = true
103 @racc_user_yyerror = false
104 @racc_error_status = 0
112 __send__(Racc_Main_Parsing_Routine
, _racc_setup(), false)
116 raise NotImplementedError
, "#{self.class}\#next_token is not defined"
119 def _racc_do_parse_rb(arg
, in_debug
)
120 action_table
, action_check
, action_default
, action_pointer
,
121 goto_table
, goto_check
, goto_default
, goto_pointer
,
122 nt_base
, reduce_table
, token_table
, shift_n
,
123 reduce_n
, use_result
, * = arg
129 catch(:racc_end_parse) {
131 if i
= action_pointer
[@racc_state[-1]]
133 if @racc_t != 0 # not EOF
134 tok
, @racc_val = next_token()
138 @racc_t = (token_table
[tok
] or 1) # error token
140 racc_read_token(@racc_t, tok
, @racc_val) if @yydebug
141 @racc_read_next = false
146 act
= action_table
[i
] and
147 action_check
[i
] == @racc_state[-1]
148 act
= action_default
[@racc_state[-1]]
151 act
= action_default
[@racc_state[-1]]
153 while act
= _racc_evalact(act
, arg
)
164 def yyparse(recv
, mid
)
165 __send__(Racc_YY_Parse_Method
, recv
, mid
, _racc_setup(), true)
168 def _racc_yyparse_rb(recv
, mid
, arg
, c_debug
)
169 action_table
, action_check
, action_default
, action_pointer
,
170 goto_table
, goto_check
, goto_default
, goto_pointer
,
171 nt_base
, reduce_table
, token_table
, shift_n
,
172 reduce_n
, use_result
, * = arg
180 catch(:racc_end_parse) {
181 until i
= action_pointer
[@racc_state[-1]]
182 while act
= _racc_evalact(action_default
[@racc_state[-1]], arg
)
186 recv
.__send__(mid
) do |tok
, val
|
190 @racc_t = (token_table
[tok
] or 1) # error token
193 @racc_read_next = false
197 act
= action_table
[i
] and
198 action_check
[i
] == @racc_state[-1]
199 act
= action_default
[@racc_state[-1]]
201 while act
= _racc_evalact(act
, arg
)
205 while not (i
= action_pointer
[@racc_state[-1]]) or
206 not @racc_read_next or
208 unless i
and i
+= @racc_t and
210 act
= action_table
[i
] and
211 action_check
[i
] == @racc_state[-1]
212 act
= action_default
[@racc_state[-1]]
214 while act
= _racc_evalact(act
, arg
)
226 def _racc_evalact(act
, arg
)
227 action_table
, action_check
, action_default
, action_pointer
,
228 goto_table
, goto_check
, goto_default
, goto_pointer
,
229 nt_base
, reduce_table
, token_table
, shift_n
,
230 reduce_n
, use_result
, * = arg
233 if act
> 0 and act
< shift_n
237 if @racc_error_status > 0
238 @racc_error_status -= 1 unless @racc_t == 1 # error token
240 @racc_vstack.push
@racc_val
242 @racc_read_next = true
244 @racc_tstack.push
@racc_t
245 racc_shift
@racc_t, @racc_tstack, @racc_vstack
248 elsif act
< 0 and act
> -reduce_n
252 code
= catch(:racc_jump) {
253 @racc_state.push
_racc_do_reduce(arg
, act
)
259 @racc_user_yyerror = true # user_yyerror
264 raise '[Racc Bug] unknown jump code'
272 racc_accept
if @yydebug
273 throw :racc_end_parse, @racc_vstack[0]
275 elsif act
== -reduce_n
279 case @racc_error_status
281 unless arg
[21] # user_yyerror
283 on_error
@racc_t, @racc_val, @racc_vstack
286 if @racc_t == 0 # is $
287 throw :racc_end_parse, nil
289 @racc_read_next = true
291 @racc_user_yyerror = false
292 @racc_error_status = 3
294 if i
= action_pointer
[@racc_state[-1]]
297 (act
= action_table
[i
]) and
298 action_check
[i
] == @racc_state[-1]
302 throw :racc_end_parse, nil if @racc_state.size
<= 1
307 racc_e_pop
@racc_state, @racc_tstack, @racc_vstack
313 raise "[Racc Bug] unknown action #{act.inspect}"
316 racc_next_state(@racc_state[-1], @racc_state) if @yydebug
321 def _racc_do_reduce(arg
, act
)
322 action_table
, action_check
, action_default
, action_pointer
,
323 goto_table
, goto_check
, goto_default
, goto_pointer
,
324 nt_base
, reduce_table
, token_table
, shift_n
,
325 reduce_n
, use_result
, * = arg
327 vstack
= @racc_vstack
328 tstack
= @racc_tstack
331 len
= reduce_table
[i
]
332 reduce_to
= reduce_table
[i
+1]
333 method_id
= reduce_table
[i
+2]
336 tmp_t
= tstack
[-len
, len
] if @yydebug
337 tmp_v
= vstack
[-len
, len
]
338 tstack
[-len
, len
] = void_array
if @yydebug
339 vstack
[-len
, len
] = void_array
340 state
[-len
, len
] = void_array
342 # tstack must be updated AFTER method call
344 vstack
.push
__send__(method_id
, tmp_v
, vstack
, tmp_v
[0])
346 vstack
.push
__send__(method_id
, tmp_v
, vstack
)
348 tstack
.push reduce_to
350 racc_reduce(tmp_t
, reduce_to
, tstack
, vstack
) if @yydebug
352 k1
= reduce_to
- nt_base
353 if i
= goto_pointer
[k1
]
355 if i
>= 0 and (curstate
= goto_table
[i
]) and goto_check
[i
] == k1
362 def on_error(t
, val
, vstack
)
363 raise ParseError
, sprintf("\nparse error on value %s (%s)",
364 val
.inspect
, token_to_str(t
) || '?')
376 @racc_error_status = 0
380 # for debugging output
383 def racc_read_token(t
, tok
, val
)
384 @racc_debug_out.print
'read '
385 @racc_debug_out.print tok
.inspect
, '(', racc_token2str(t
), ') '
386 @racc_debug_out.puts val
.inspect
390 def racc_shift(tok
, tstack
, vstack
)
391 @racc_debug_out.puts
"shift #{racc_token2str tok}"
392 racc_print_stacks tstack
, vstack
396 def racc_reduce(toks
, sim
, tstack
, vstack
)
397 out
= @racc_debug_out
402 toks
.each
{|t
| out
.print
' ', racc_token2str(t
) }
404 out
.puts
" --> #{racc_token2str(sim)}"
406 racc_print_stacks tstack
, vstack
411 @racc_debug_out.puts
'accept'
415 def racc_e_pop(state
, tstack
, vstack
)
416 @racc_debug_out.puts
'error recovering mode: pop token'
417 racc_print_states state
418 racc_print_stacks tstack
, vstack
422 def racc_next_state(curstate
, state
)
423 @racc_debug_out.puts
"goto #{curstate}"
424 racc_print_states state
428 def racc_print_stacks(t
, v
)
429 out
= @racc_debug_out
432 out
.print
' (', racc_token2str(t
[i
]), ' ', v
[i
].inspect
, ')'
437 def racc_print_states(s
)
438 out
= @racc_debug_out
440 s
.each
{|st
| out
.print
' ', st
}
444 def racc_token2str(tok
)
445 self.class::Racc_token_to_s_table[tok
] or
446 raise "[Racc Bug] can't convert token #{tok} to string"
450 self.class::Racc_token_to_s_table[t
]
456 ..end racc
/parser
.rb modeval
..id8076474214
458 ###### racc/parser.rb end
464 # Copyright (c) 1998-2007 Minero Aoki
466 # This program is free software.
467 # You can distribute/modify this program under the terms of
468 # the GNU Lesser General Public License version 2.1.
471 require 'tmail/scanner'
472 require 'tmail/utils'
477 class Parser
< Racc
::Parser
479 module_eval
<<'..end parser.y modeval..id7b0b3dccb7', 'parser.y', 340
483 def self.parse( ident
, str
, cmt
= nil )
484 new
.parse(ident
, str
, cmt
)
490 self.debug
= MAILP_DEBUG
494 @yydebug = flag
&& Racc_debug_parser
495 @scanner_debug = flag
502 def parse( ident
, str
, comments
= nil )
503 @scanner = Scanner
.new(str
, ident
, comments
)
504 @scanner.debug
= @scanner_debug
505 @first = [ident
, ident
]
506 result
= yyparse(self, :parse_in)
507 comments
.map
! {|c
| to_kcode(c
) } if comments
513 def parse_in( &block
)
515 @scanner.scan(&block
)
518 def on_error( t
, val
, vstack
)
519 raise SyntaxError
, "parse error on token #{racc_token2str t}"
522 ..end parser
.y modeval
..id7b0b3dccb7
524 ##### racc 1.4.5 generates ###
526 racc_reduce_table
= [
541 0, 48, :_reduce_none,
542 2, 48, :_reduce_none,
547 0, 51, :_reduce_none,
549 0, 52, :_reduce_none,
554 0, 53, :_reduce_none,
558 0, 55, :_reduce_none,
561 0, 56, :_reduce_none,
565 0, 57, :_reduce_none,
567 1, 38, :_reduce_none,
568 1, 38, :_reduce_none,
569 3, 38, :_reduce_none,
570 1, 46, :_reduce_none,
571 1, 46, :_reduce_none,
572 1, 46, :_reduce_none,
573 1, 39, :_reduce_none,
577 1, 68, :_reduce_none,
578 1, 68, :_reduce_none,
581 1, 47, :_reduce_none,
582 1, 47, :_reduce_none,
584 2, 67, :_reduce_none,
591 2, 72, :_reduce_none,
596 1, 74, :_reduce_none,
604 1, 75, :_reduce_none,
605 1, 75, :_reduce_none,
606 1, 75, :_reduce_none,
607 1, 77, :_reduce_none,
608 1, 77, :_reduce_none,
609 1, 77, :_reduce_none,
610 1, 66, :_reduce_none,
611 2, 66, :_reduce_none,
615 1, 79, :_reduce_none,
627 0, 81, :_reduce_none,
628 1, 81, :_reduce_none,
629 1, 78, :_reduce_none,
630 1, 78, :_reduce_none,
631 1, 78, :_reduce_none,
632 1, 78, :_reduce_none,
633 1, 78, :_reduce_none,
634 1, 78, :_reduce_none,
635 1, 78, :_reduce_none ]
641 racc_action_table
= [
642 -70, -69, 23, 25, 145, 146, 29, 31, 105, 106,
643 16, 17, 20, 22, 136, 27, -70, -69, 32, 101,
644 -70, -69, 153, 100, 113, 115, -70, -69, -70, 109,
645 75, 23, 25, 101, 154, 29, 31, 142, 143, 16,
646 17, 20, 22, 107, 27, 23, 25, 32, 98, 29,
647 31, 96, 94, 16, 17, 20, 22, 78, 27, 23,
648 25, 32, 112, 29, 31, 74, 91, 16, 17, 20,
649 22, 88, 117, 92, 81, 32, 23, 25, 80, 123,
650 29, 31, 100, 125, 16, 17, 20, 22, 126, 23,
651 25, 109, 32, 29, 31, 91, 128, 16, 17, 20,
652 22, 129, 27, 23, 25, 32, 101, 29, 31, 101,
653 130, 16, 17, 20, 22, 79, 52, 23, 25, 32,
654 78, 29, 31, 133, 78, 16, 17, 20, 22, 77,
655 23, 25, 75, 32, 29, 31, 65, 62, 16, 17,
656 20, 22, 139, 23, 25, 101, 32, 29, 31, 60,
657 100, 16, 17, 20, 22, 44, 27, 101, 147, 32,
658 23, 25, 120, 148, 29, 31, 151, 152, 16, 17,
659 20, 22, 42, 27, 156, 158, 32, 23, 25, 120,
660 40, 29, 31, 15, 163, 16, 17, 20, 22, 40,
661 27, 23, 25, 32, 68, 29, 31, 165, 166, 16,
662 17, 20, 22, nil, 27, 23, 25, 32, nil, 29,
663 31, 74, nil, 16, 17, 20, 22, nil, 23, 25,
664 nil, 32, 29, 31, nil, nil, 16, 17, 20, 22,
665 nil, 23, 25, nil, 32, 29, 31, nil, nil, 16,
666 17, 20, 22, nil, 23, 25, nil, 32, 29, 31,
667 nil, nil, 16, 17, 20, 22, nil, 23, 25, nil,
668 32, 29, 31, nil, nil, 16, 17, 20, 22, nil,
669 27, 23, 25, 32, nil, 29, 31, nil, nil, 16,
670 17, 20, 22, nil, 23, 25, nil, 32, 29, 31,
671 nil, nil, 16, 17, 20, 22, nil, 23, 25, nil,
672 32, 29, 31, nil, nil, 16, 17, 20, 22, nil,
673 84, 25, nil, 32, 29, 31, nil, 87, 16, 17,
674 20, 22, 4, 6, 7, 8, 9, 10, 11, 12,
675 13, 1, 2, 3, 84, 25, nil, nil, 29, 31,
676 nil, 87, 16, 17, 20, 22, 84, 25, nil, nil,
677 29, 31, nil, 87, 16, 17, 20, 22, 84, 25,
678 nil, nil, 29, 31, nil, 87, 16, 17, 20, 22,
679 84, 25, nil, nil, 29, 31, nil, 87, 16, 17,
680 20, 22, 84, 25, nil, nil, 29, 31, nil, 87,
681 16, 17, 20, 22, 84, 25, nil, nil, 29, 31,
682 nil, 87, 16, 17, 20, 22 ]
684 racc_action_check
= [
685 75, 28, 68, 68, 136, 136, 68, 68, 72, 72,
686 68, 68, 68, 68, 126, 68, 75, 28, 68, 67,
687 75, 28, 143, 66, 86, 86, 75, 28, 75, 75,
688 28, 3, 3, 86, 143, 3, 3, 134, 134, 3,
689 3, 3, 3, 73, 3, 151, 151, 3, 62, 151,
690 151, 60, 56, 151, 151, 151, 151, 51, 151, 52,
691 52, 151, 80, 52, 52, 52, 50, 52, 52, 52,
692 52, 45, 89, 52, 42, 52, 71, 71, 41, 96,
693 71, 71, 97, 98, 71, 71, 71, 71, 100, 7,
694 7, 101, 71, 7, 7, 102, 104, 7, 7, 7,
695 7, 105, 7, 8, 8, 7, 108, 8, 8, 111,
696 112, 8, 8, 8, 8, 40, 8, 9, 9, 8,
697 36, 9, 9, 117, 121, 9, 9, 9, 9, 33,
698 10, 10, 70, 9, 10, 10, 13, 12, 10, 10,
699 10, 10, 130, 2, 2, 131, 10, 2, 2, 11,
700 135, 2, 2, 2, 2, 6, 2, 138, 139, 2,
701 90, 90, 90, 140, 90, 90, 141, 142, 90, 90,
702 90, 90, 5, 90, 147, 150, 90, 127, 127, 127,
703 4, 127, 127, 1, 156, 127, 127, 127, 127, 158,
704 127, 26, 26, 127, 26, 26, 26, 162, 163, 26,
705 26, 26, 26, nil, 26, 27, 27, 26, nil, 27,
706 27, 27, nil, 27, 27, 27, 27, nil, 154, 154,
707 nil, 27, 154, 154, nil, nil, 154, 154, 154, 154,
708 nil, 122, 122, nil, 154, 122, 122, nil, nil, 122,
709 122, 122, 122, nil, 76, 76, nil, 122, 76, 76,
710 nil, nil, 76, 76, 76, 76, nil, 38, 38, nil,
711 76, 38, 38, nil, nil, 38, 38, 38, 38, nil,
712 38, 55, 55, 38, nil, 55, 55, nil, nil, 55,
713 55, 55, 55, nil, 94, 94, nil, 55, 94, 94,
714 nil, nil, 94, 94, 94, 94, nil, 59, 59, nil,
715 94, 59, 59, nil, nil, 59, 59, 59, 59, nil,
716 114, 114, nil, 59, 114, 114, nil, 114, 114, 114,
717 114, 114, 0, 0, 0, 0, 0, 0, 0, 0,
718 0, 0, 0, 0, 77, 77, nil, nil, 77, 77,
719 nil, 77, 77, 77, 77, 77, 44, 44, nil, nil,
720 44, 44, nil, 44, 44, 44, 44, 44, 113, 113,
721 nil, nil, 113, 113, nil, 113, 113, 113, 113, 113,
722 88, 88, nil, nil, 88, 88, nil, 88, 88, 88,
723 88, 88, 74, 74, nil, nil, 74, 74, nil, 74,
724 74, 74, 74, 74, 129, 129, nil, nil, 129, 129,
725 nil, 129, 129, 129, 129, 129 ]
727 racc_action_pointer
= [
728 320, 152, 129, 17, 165, 172, 137, 75, 89, 103,
729 116, 135, 106, 105, nil, nil, nil, nil, nil, nil,
730 nil, nil, nil, nil, nil, nil, 177, 191, 1, nil,
731 nil, nil, nil, 109, nil, nil, 94, nil, 243, nil,
732 99, 64, 74, nil, 332, 52, nil, nil, nil, nil,
733 50, 31, 45, nil, nil, 257, 36, nil, nil, 283,
734 22, nil, 16, nil, nil, nil, -3, -10, -12, nil,
735 103, 62, -8, 15, 368, 0, 230, 320, nil, nil,
736 47, nil, nil, nil, nil, nil, 4, nil, 356, 50,
737 146, nil, nil, nil, 270, nil, 65, 56, 52, nil,
738 57, 62, 79, nil, 68, 81, nil, nil, 77, nil,
739 nil, 80, 96, 344, 296, nil, nil, 108, nil, nil,
740 nil, 98, 217, nil, nil, nil, -19, 163, nil, 380,
741 128, 116, nil, nil, 14, 124, -26, nil, 128, 141,
742 148, 141, 152, 7, nil, nil, nil, 160, nil, nil,
743 149, 31, nil, nil, 204, nil, 167, nil, 174, nil,
744 nil, nil, 169, 184, nil, nil, nil ]
746 racc_action_default
= [
747 -109, -109, -109, -109, -14, -109, -20, -109, -109, -109,
748 -109, -109, -109, -109, -10, -95, -105, -106, -77, -44,
749 -107, -11, -108, -79, -43, -102, -109, -109, -60, -103,
750 -55, -104, -78, -68, -54, -71, -45, -12, -109, -1,
751 -109, -109, -109, -2, -109, -22, -51, -48, -50, -3,
752 -40, -41, -109, -46, -4, -86, -5, -88, -6, -90,
753 -109, -7, -95, -8, -9, -98, -100, -61, -59, -56,
754 -69, -109, -109, -109, -109, -75, -109, -109, -57, -15,
755 -109, 167, -73, -80, -82, -21, -24, -81, -109, -27,
756 -109, -83, -47, -89, -109, -91, -109, -100, -109, -99,
757 -101, -75, -58, -52, -109, -109, -64, -63, -65, -76,
758 -72, -67, -109, -109, -109, -26, -23, -109, -29, -49,
759 -84, -42, -87, -92, -94, -95, -109, -109, -62, -109,
760 -109, -25, -74, -28, -31, -100, -109, -53, -66, -109,
761 -109, -34, -109, -109, -93, -96, -97, -109, -18, -13,
762 -38, -109, -30, -33, -109, -32, -16, -19, -14, -35,
763 -36, -37, -109, -109, -39, -85, -17 ]
766 39, 67, 70, 73, 38, 66, 69, 24, 37, 57,
767 59, 36, 55, 67, 99, 90, 85, 157, 69, 108,
768 83, 134, 111, 76, 49, 53, 141, 70, 73, 150,
769 118, 89, 45, 155, 159, 149, 140, 21, 14, 19,
770 119, 102, 64, 63, 61, 124, 70, 104, 58, 132,
771 83, 56, 97, 83, 54, 93, 43, 5, 131, 95,
772 116, nil, 76, nil, 83, 76, nil, 127, nil, 38,
773 nil, nil, nil, 103, 138, nil, 110, nil, nil, nil,
774 nil, nil, nil, 144, nil, nil, nil, nil, nil, 83,
775 83, nil, nil, nil, 57, nil, nil, 122, nil, 121,
776 nil, nil, nil, nil, nil, 83, nil, nil, nil, nil,
777 nil, nil, nil, nil, nil, 135, nil, nil, nil, nil,
778 nil, nil, 93, nil, nil, nil, 70, 161, 38, 70,
779 162, 160, 137, nil, nil, nil, nil, nil, nil, nil,
780 nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
781 nil, nil, nil, nil, 164 ]
784 2, 37, 37, 29, 36, 46, 28, 13, 13, 41,
785 41, 31, 45, 37, 47, 32, 24, 23, 28, 25,
786 44, 20, 25, 42, 4, 4, 21, 37, 29, 22,
787 19, 18, 17, 26, 27, 16, 15, 12, 11, 33,
788 34, 35, 10, 9, 8, 47, 37, 29, 7, 43,
789 44, 6, 46, 44, 5, 41, 3, 1, 25, 41,
790 24, nil, 42, nil, 44, 42, nil, 32, nil, 36,
791 nil, nil, nil, 13, 25, nil, 41, nil, nil, nil,
792 nil, nil, nil, 47, nil, nil, nil, nil, nil, 44,
793 44, nil, nil, nil, 41, nil, nil, 45, nil, 31,
794 nil, nil, nil, nil, nil, 44, nil, nil, nil, nil,
795 nil, nil, nil, nil, nil, 46, nil, nil, nil, nil,
796 nil, nil, 41, nil, nil, nil, 37, 29, 36, 37,
797 29, 28, 13, nil, nil, nil, nil, nil, nil, nil,
798 nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
799 nil, nil, nil, nil, 2 ]
801 racc_goto_pointer
= [
802 nil, 57, -4, 50, 17, 46, 42, 38, 33, 31,
803 29, 37, 35, 5, nil, -94, -105, 26, -14, -59,
804 -97, -108, -112, -133, -28, -55, -110, -117, -20, -24,
805 nil, 9, -35, 37, -50, -27, 1, -25, nil, nil,
806 nil, 0, -5, -65, -24, 3, -10, -52 ]
808 racc_goto_default
= [
809 nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
810 nil, nil, nil, 48, 41, nil, nil, nil, nil, nil,
811 nil, nil, nil, nil, nil, 86, nil, nil, 30, 34,
812 50, 51, nil, 46, 47, nil, 26, 28, 71, 72,
813 33, 35, 114, 82, 18, nil, nil, nil ]
851 racc_use_result_var
= false
869 racc_use_result_var
]
871 Racc_token_to_s_table
= [
955 Racc_debug_parser
= false
957 ##### racc system variables end #####
961 module_eval
<<'.,.,', 'parser.y', 16
962 def _reduce_1( val
, _values
)
967 module_eval
<<'.,.,', 'parser.y', 17
968 def _reduce_2( val
, _values
)
973 module_eval
<<'.,.,', 'parser.y', 18
974 def _reduce_3( val
, _values
)
979 module_eval
<<'.,.,', 'parser.y', 19
980 def _reduce_4( val
, _values
)
985 module_eval
<<'.,.,', 'parser.y', 20
986 def _reduce_5( val
, _values
)
991 module_eval
<<'.,.,', 'parser.y', 21
992 def _reduce_6( val
, _values
)
997 module_eval
<<'.,.,', 'parser.y', 22
998 def _reduce_7( val
, _values
)
1003 module_eval
<<'.,.,', 'parser.y', 23
1004 def _reduce_8( val
, _values
)
1009 module_eval
<<'.,.,', 'parser.y', 24
1010 def _reduce_9( val
, _values
)
1015 module_eval
<<'.,.,', 'parser.y', 25
1016 def _reduce_10( val
, _values
)
1021 module_eval
<<'.,.,', 'parser.y', 26
1022 def _reduce_11( val
, _values
)
1027 module_eval
<<'.,.,', 'parser.y', 27
1028 def _reduce_12( val
, _values
)
1033 module_eval
<<'.,.,', 'parser.y', 36
1034 def _reduce_13( val
, _values
)
1035 t
= Time
.gm(val
[3].to_i
, val
[2], val
[1].to_i
, 0, 0, 0)
1036 (t
+ val
[4] - val
[5]).localtime
1044 module_eval
<<'.,.,', 'parser.y', 45
1045 def _reduce_16( val
, _values
)
1046 (val
[0].to_i
* 60 * 60) +
1051 module_eval
<<'.,.,', 'parser.y', 51
1052 def _reduce_17( val
, _values
)
1053 (val
[0].to_i
* 60 * 60) +
1054 (val
[2].to_i
* 60) +
1059 module_eval
<<'.,.,', 'parser.y', 56
1060 def _reduce_18( val
, _values
)
1061 timezone_string_to_unixtime(val
[0])
1065 module_eval
<<'.,.,', 'parser.y', 61
1066 def _reduce_19( val
, _values
)
1073 module_eval
<<'.,.,', 'parser.y', 67
1074 def _reduce_21( val
, _values
)
1081 module_eval
<<'.,.,', 'parser.y', 73
1082 def _reduce_23( val
, _values
)
1087 module_eval
<<'.,.,', 'parser.y', 79
1088 def _reduce_24( val
, _values
)
1093 module_eval
<<'.,.,', 'parser.y', 83
1094 def _reduce_25( val
, _values
)
1099 module_eval
<<'.,.,', 'parser.y', 87
1100 def _reduce_26( val
, _values
)
1107 module_eval
<<'.,.,', 'parser.y', 93
1108 def _reduce_28( val
, _values
)
1113 module_eval
<<'.,.,', 'parser.y', 98
1114 def _reduce_29( val
, _values
)
1119 module_eval
<<'.,.,', 'parser.y', 103
1120 def _reduce_30( val
, _values
)
1128 module_eval
<<'.,.,', 'parser.y', 109
1129 def _reduce_32( val
, _values
)
1134 module_eval
<<'.,.,', 'parser.y', 113
1135 def _reduce_33( val
, _values
)
1142 module_eval
<<'.,.,', 'parser.y', 119
1143 def _reduce_35( val
, _values
)
1148 module_eval
<<'.,.,', 'parser.y', 125
1149 def _reduce_36( val
, _values
)
1154 module_eval
<<'.,.,', 'parser.y', 129
1155 def _reduce_37( val
, _values
)
1162 module_eval
<<'.,.,', 'parser.y', 136
1163 def _reduce_39( val
, _values
)
1182 module_eval
<<'.,.,', 'parser.y', 146
1183 def _reduce_47( val
, _values
)
1184 [ Address
.new(nil, nil) ]
1188 module_eval
<<'.,.,', 'parser.y', 152
1189 def _reduce_48( val
, _values
)
1194 module_eval
<<'.,.,', 'parser.y', 157
1195 def _reduce_49( val
, _values
)
1205 module_eval
<<'.,.,', 'parser.y', 165
1206 def _reduce_52( val
, _values
)
1211 module_eval
<<'.,.,', 'parser.y', 170
1212 def _reduce_53( val
, _values
)
1222 module_eval
<<'.,.,', 'parser.y', 178
1223 def _reduce_56( val
, _values
)
1224 val
[1].phrase
= Decoder
.decode(val
[0])
1231 module_eval
<<'.,.,', 'parser.y', 185
1232 def _reduce_58( val
, _values
)
1233 AddressGroup
.new(val
[0], val
[2])
1237 module_eval
<<'.,.,', 'parser.y', 185
1238 def _reduce_59( val
, _values
)
1239 AddressGroup
.new(val
[0], [])
1243 module_eval
<<'.,.,', 'parser.y', 188
1244 def _reduce_60( val
, _values
)
1249 module_eval
<<'.,.,', 'parser.y', 189
1250 def _reduce_61( val
, _values
)
1251 val
[0] << ' ' << val
[1].join('.')
1255 module_eval
<<'.,.,', 'parser.y', 196
1256 def _reduce_62( val
, _values
)
1257 val
[2].routes
.replace val
[1]
1262 module_eval
<<'.,.,', 'parser.y', 200
1263 def _reduce_63( val
, _values
)
1270 module_eval
<<'.,.,', 'parser.y', 203
1271 def _reduce_65( val
, _values
)
1272 [ val
[1].join('.') ]
1276 module_eval
<<'.,.,', 'parser.y', 204
1277 def _reduce_66( val
, _values
)
1278 val
[0].push val
[3].join('.'); val
[0]
1282 module_eval
<<'.,.,', 'parser.y', 206
1283 def _reduce_67( val
, _values
)
1284 Address
.new( val
[0], val
[2] )
1288 module_eval
<<'.,.,', 'parser.y', 207
1289 def _reduce_68( val
, _values
)
1290 Address
.new( val
[0], nil )
1296 module_eval
<<'.,.,', 'parser.y', 210
1297 def _reduce_70( val
, _values
)
1298 val
[0].push
''; val
[0]
1302 module_eval
<<'.,.,', 'parser.y', 213
1303 def _reduce_71( val
, _values
)
1308 module_eval
<<'.,.,', 'parser.y', 222
1309 def _reduce_72( val
, _values
)
1318 module_eval
<<'.,.,', 'parser.y', 224
1319 def _reduce_73( val
, _values
)
1324 module_eval
<<'.,.,', 'parser.y', 233
1325 def _reduce_74( val
, _values
)
1334 module_eval
<<'.,.,', 'parser.y', 234
1335 def _reduce_75( val
, _values
)
1340 module_eval
<<'.,.,', 'parser.y', 235
1341 def _reduce_76( val
, _values
)
1362 module_eval
<<'.,.,', 'parser.y', 253
1363 def _reduce_85( val
, _values
)
1364 val
[1] = val
[1].spec
1369 module_eval
<<'.,.,', 'parser.y', 254
1370 def _reduce_86( val
, _values
)
1375 module_eval
<<'.,.,', 'parser.y', 255
1376 def _reduce_87( val
, _values
)
1377 val
[0].push val
[2]; val
[0]
1383 module_eval
<<'.,.,', 'parser.y', 258
1384 def _reduce_89( val
, _values
)
1385 val
[0] << ' ' << val
[1]
1389 module_eval
<<'.,.,', 'parser.y', 265
1390 def _reduce_90( val
, _values
)
1396 module_eval
<<'.,.,', 'parser.y', 269
1397 def _reduce_91( val
, _values
)
1402 module_eval
<<'.,.,', 'parser.y', 274
1403 def _reduce_92( val
, _values
)
1404 [ val
[0].to_i
, val
[2].to_i
]
1408 module_eval
<<'.,.,', 'parser.y', 279
1409 def _reduce_93( val
, _values
)
1410 [ val
[0].downcase
, val
[2].downcase
, decode_params(val
[3]) ]
1414 module_eval
<<'.,.,', 'parser.y', 283
1415 def _reduce_94( val
, _values
)
1416 [ val
[0].downcase
, nil, decode_params(val
[1]) ]
1420 module_eval
<<'.,.,', 'parser.y', 288
1421 def _reduce_95( val
, _values
)
1426 module_eval
<<'.,.,', 'parser.y', 293
1427 def _reduce_96( val
, _values
)
1428 val
[0][ val
[2].downcase
] = ('"' + val
[4].to_s
+ '"')
1433 module_eval
<<'.,.,', 'parser.y', 298
1434 def _reduce_97( val
, _values
)
1435 val
[0][ val
[2].downcase
] = val
[4]
1440 module_eval
<<'.,.,', 'parser.y', 303
1441 def _reduce_98( val
, _values
)
1446 module_eval
<<'.,.,', 'parser.y', 308
1447 def _reduce_99( val
, _values
)
1448 [ val
[0].downcase
, decode_params(val
[1]) ]
1452 # reduce 100 omitted
1454 # reduce 101 omitted
1456 # reduce 102 omitted
1458 # reduce 103 omitted
1460 # reduce 104 omitted
1462 # reduce 105 omitted
1464 # reduce 106 omitted
1466 # reduce 107 omitted
1468 # reduce 108 omitted
1470 def _reduce_none( val
, _values
)