# File lib/racc/grammar.rb, line 759 def empty? not @proc and not @source end
# File lib/racc/grammar.rb, line 763 def name "{action type=#{@source || @proc || 'nil'}}" end
# File lib/racc/grammar.rb, line 755 def proc? not @source end
# File lib/racc/grammar.rb, line 751 def source? not @proc end
# File lib/racc/grammar.rb, line 737 def UserAction.empty new(nil, nil) end
# File lib/racc/grammar.rb, line 743 def initialize(src, proc) @source = src @proc = proc end
# File lib/racc/grammar.rb, line 730 def UserAction.proc(pr = nil, &block) if pr and block raise ArgumentError, "both of argument and block given" end new(nil, pr || block) end
# File lib/racc/grammar.rb, line 726 def UserAction.source_text(src) new(src, nil) end