class MODL::Parser::Parsed::ParsedValueItem
Class to represent a parsed grammar object
Attributes
value[RW]
valueConditional[RW]
Public Class Methods
new(global)
click to toggle source
# File lib/modl/parser/parsed.rb, line 548 def initialize(global) @global = global end
Public Instance Methods
enterModl_value_item(ctx)
click to toggle source
# File lib/modl/parser/parsed.rb, line 556 def enterModl_value_item(ctx) modl_value_conditional = ctx.modl_value_conditional unless modl_value_conditional.nil? @valueConditional = ParsedValueConditional.new @global modl_value_conditional.enter_rule(@valueConditional) end modl_value = ctx.modl_value return if modl_value.nil? @value = ParsedValue.new @global modl_value.enter_rule(@value) end
extract_hash()
click to toggle source
# File lib/modl/parser/parsed.rb, line 568 def extract_hash return @value.extract_hash if @value return @valueConditional.extract_hash if @valueConditional end
find_property(key)
click to toggle source
# File lib/modl/parser/parsed.rb, line 552 def find_property(key) @value.find_property(key) if @value end