Class: MODL::Parser::MODLParser::Modl_primitiveContext

Inherits:
Antlr4::Runtime::ParserRuleContext
  • Object
show all
Defined in:
lib/modl/parser/MODLParser.rb

Instance Method Summary collapse

Constructor Details

#initialize(parent, invokingState) ⇒ Modl_primitiveContext

Returns a new instance of Modl_primitiveContext.



2310
2311
2312
# File 'lib/modl/parser/MODLParser.rb', line 2310

def initialize( parent,  invokingState)
	super(parent, invokingState)
end

Instance Method Details

#accept(visitor) ⇒ Object



2327
2328
2329
2330
2331
2332
2333
# File 'lib/modl/parser/MODLParser.rb', line 2327

def accept(visitor)
	if ( visitor.is_a? MODLParserVisitor )
	  return visitor.visitModl_primitive(self)
	else
	 return visitor.visit_children(self)
	end
end

#enter_rule(listener) ⇒ Object



2316
2317
2318
2319
2320
# File 'lib/modl/parser/MODLParser.rb', line 2316

def enter_rule( listener)
	if ( listener.is_a? MODLParserListener )
	  listener.enterModl_primitive(self)
	end
end

#exit_rule(listener) ⇒ Object



2321
2322
2323
2324
2325
# File 'lib/modl/parser/MODLParser.rb', line 2321

def exit_rule( listener)
	if ( listener.is_a? MODLParserListener )
	  listener.exitModl_primitive(self)
	end
end

#FALSEObject



2304
2305
2306
# File 'lib/modl/parser/MODLParser.rb', line 2304

def FALSE()
  return token(MODLParser::FALSE, 0)
end

#getRuleIndexObject



2313
2314
2315
# File 'lib/modl/parser/MODLParser.rb', line 2313

def getRuleIndex()
 return RULE_modl_primitive
end

#NULLObject



2307
2308
2309
# File 'lib/modl/parser/MODLParser.rb', line 2307

def NULL()
  return token(MODLParser::NULL, 0)
end

#NUMBERObject



2295
2296
2297
# File 'lib/modl/parser/MODLParser.rb', line 2295

def NUMBER()
  return token(MODLParser::NUMBER, 0)
end

#QUOTEDObject



2292
2293
2294
# File 'lib/modl/parser/MODLParser.rb', line 2292

def QUOTED()
  return token(MODLParser::QUOTED, 0)
end

#STRINGObject



2298
2299
2300
# File 'lib/modl/parser/MODLParser.rb', line 2298

def STRING()
  return token(MODLParser::STRING, 0)
end

#TRUEObject



2301
2302
2303
# File 'lib/modl/parser/MODLParser.rb', line 2301

def TRUE()
  return token(MODLParser::TRUE, 0)
end