1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
|
# File 'lib/modl/parser/MODLParser.rb', line 1210
def modl_map_item()
_localctx = Modl_map_itemContext.new(@_ctx, @_state_number)
enter_rule(_localctx, 22, RULE_modl_map_item)
begin
@_state_number = 193
@_err_handler.sync(self)
case (@_input.la(1))
when MODLParser::QUOTED, MODLParser::STRING
enter_outer_alt(_localctx, 1)
@_state_number = 191
modl_pair()
when MODLParser::LCBRAC
enter_outer_alt(_localctx, 2)
@_state_number = 192
modl_map_conditional()
else
raise Antlr4::Runtime::NoViableAltException, self
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
|