Method: MODL::Parser::MODLParser#modl_map

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

#modl_mapObject



365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
# File 'lib/modl/parser/MODLParser.rb', line 365

def modl_map()
  _localctx =  Modl_mapContext.new(@_ctx, @_state_number)
  enter_rule(_localctx, 4, RULE_modl_map)
  _la = 0
  begin
    enter_outer_alt(_localctx, 1)

    @_state_number = 72
    match(LBRAC)
    @_state_number = 81
    @_err_handler.sync(self)
    _la = @_input.la(1)
     if ((((_la) & ~0x3f) == 0 && ((1 << _la) & ((1 << QUOTED) | (1 << STRING) | (1 << LCBRAC))) != 0))

      @_state_number = 73
      modl_map_item()
      @_state_number = 78
      @_err_handler.sync(self)
      _la = @_input.la(1)
      while (_la==STRUCT_SEP)


        @_state_number = 74
        match(STRUCT_SEP)
        @_state_number = 75
        modl_map_item()
        @_state_number = 80
        @_err_handler.sync(self)
        _la = @_input.la(1)
      end
     end

    @_state_number = 83
    match(RBRAC)
  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