Method: MODL::Parser::MODLParser#modl_primitive

Defined in:
lib/modl/parser/MODLParser.rb

#modl_primitiveObject



2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
# File 'lib/modl/parser/MODLParser.rb', line 2322

def modl_primitive()
  _localctx =  Modl_primitiveContext.new(@_ctx, @_state_number)
  enter_rule(_localctx, 46, RULE_modl_primitive)
  _la = 0
  begin
    enter_outer_alt(_localctx, 1)

    @_state_number = 320
    _la = @_input.la(1)
     if (!((((_la) & ~0x3f) == 0 && ((1 << _la) & ((1 << NULL) | (1 << TRUE) | (1 << FALSE) | (1 << NUMBER) | (1 << QUOTED) | (1 << STRING))) != 0)))
    @_err_handler.recover_in_line(self)

     else
      if ( @_input.la(1)==Antlr4::Runtime::Token::EOF )
        @matchedEOF = true
      end
      @_err_handler.report_match(self)
      consume()
     end
  rescue Antlr4::Runtime::RecognitionException => re
    _localctx.exception = re
    @_err_handler.report_error(self, re)
    @_err_handler.recover(self, re)
  ensure
    exit_rule()
  end
  return _localctx
end