Class: Jejune::TreeParser

Inherits:
ANTLR3::TreeParser
  • Object
show all
Includes:
ANTLR3::ASTBuilder, TokenData
Defined in:
lib/jejune/grammar/tree.rb

Constant Summary collapse

RULE_METHODS =
[ :program, :block, :statement_block, :statement_list, 
:clause, :statement, :labelled_statement, :try_statement, 
:catch_clause, :with_statement, :variable_statement, 
:variable_declaration, :declaration_target, :declaration_key, 
:if_statement, :switch_statement, :case_clause, :default_clause, 
:do_while_statement, :while_statement, :for_loop, :continue_statement, 
:break_statement, :return_statement, :yield_statement, 
:throw_statement, :expression_list, :expression, :arguments, 
:argument, :parameters, :parameter, :literal, :property_definition, 
:property_name ].freeze
ProgramReturnValue =
                        • Rules - - - - - - - - - - - - -

define_return_scope
BlockReturnValue =
define_return_scope
StatementBlockReturnValue =
define_return_scope
StatementListReturnValue =
define_return_scope
ClauseReturnValue =
define_return_scope
StatementReturnValue =
define_return_scope
LabelledStatementReturnValue =
define_return_scope
TryStatementReturnValue =
define_return_scope
CatchClauseReturnValue =
define_return_scope
WithStatementReturnValue =
define_return_scope
VariableStatementReturnValue =
define_return_scope
VariableDeclarationReturnValue =
define_return_scope
DeclarationTargetReturnValue =
define_return_scope
DeclarationKeyReturnValue =
define_return_scope
IfStatementReturnValue =
define_return_scope
SwitchStatementReturnValue =
define_return_scope
CaseClauseReturnValue =
define_return_scope
DefaultClauseReturnValue =
define_return_scope
DoWhileStatementReturnValue =
define_return_scope
WhileStatementReturnValue =
define_return_scope
ForLoopReturnValue =
define_return_scope
ContinueStatementReturnValue =
define_return_scope
BreakStatementReturnValue =
define_return_scope
ReturnStatementReturnValue =
define_return_scope
YieldStatementReturnValue =
define_return_scope
ThrowStatementReturnValue =
define_return_scope
ExpressionListReturnValue =
define_return_scope
ExpressionReturnValue =
define_return_scope
ArgumentsReturnValue =
define_return_scope
ArgumentReturnValue =
define_return_scope
ParametersReturnValue =
define_return_scope
ParameterReturnValue =
define_return_scope
LiteralReturnValue =
define_return_scope
PropertyDefinitionReturnValue =
define_return_scope
PropertyNameReturnValue =
define_return_scope
TOKENS_FOLLOWING_statement_IN_program_43 =
TOKENS_FOLLOWING_statement_block_IN_block_59 =
TOKENS_FOLLOWING_statement_IN_block_65 =
TOKENS_FOLLOWING_BLOCK_IN_statement_block_80 =
TOKENS_FOLLOWING_statement_list_IN_statement_block_82 =
TOKENS_FOLLOWING_statement_IN_statement_list_100 =
TOKENS_FOLLOWING_expression_IN_clause_114 =
TOKENS_FOLLOWING_variable_statement_IN_statement_127 =
TOKENS_FOLLOWING_labelled_statement_IN_statement_133 =
TOKENS_FOLLOWING_if_statement_IN_statement_139 =
TOKENS_FOLLOWING_while_statement_IN_statement_145 =
TOKENS_FOLLOWING_do_while_statement_IN_statement_151 =
TOKENS_FOLLOWING_for_loop_IN_statement_157 =
TOKENS_FOLLOWING_continue_statement_IN_statement_163 =
TOKENS_FOLLOWING_break_statement_IN_statement_169 =
TOKENS_FOLLOWING_yield_statement_IN_statement_175 =
TOKENS_FOLLOWING_return_statement_IN_statement_181 =
TOKENS_FOLLOWING_with_statement_IN_statement_187 =
TOKENS_FOLLOWING_switch_statement_IN_statement_193 =
TOKENS_FOLLOWING_throw_statement_IN_statement_199 =
TOKENS_FOLLOWING_try_statement_IN_statement_205 =
TOKENS_FOLLOWING_expression_IN_statement_211 =
TOKENS_FOLLOWING_LABEL_IN_labelled_statement_226 =
TOKENS_FOLLOWING_ID_IN_labelled_statement_228 =
TOKENS_FOLLOWING_block_IN_labelled_statement_230 =
TOKENS_FOLLOWING_catch_clause_IN_try_statement_245 =
TOKENS_FOLLOWING_FINALLY_IN_try_statement_253 =
TOKENS_FOLLOWING_catch_clause_IN_try_statement_257 =
TOKENS_FOLLOWING_statement_block_IN_try_statement_261 =
TOKENS_FOLLOWING_statement_block_IN_try_statement_265 =
TOKENS_FOLLOWING_CATCH_IN_catch_clause_282 =
TOKENS_FOLLOWING_statement_block_IN_catch_clause_284 =
TOKENS_FOLLOWING_ID_IN_catch_clause_286 =
TOKENS_FOLLOWING_statement_block_IN_catch_clause_288 =
TOKENS_FOLLOWING_WITH_IN_with_statement_305 =
TOKENS_FOLLOWING_clause_IN_with_statement_307 =
TOKENS_FOLLOWING_block_IN_with_statement_309 =
TOKENS_FOLLOWING_VAR_IN_variable_statement_326 =
TOKENS_FOLLOWING_variable_declaration_IN_variable_statement_328 =
TOKENS_FOLLOWING_ASGN_IN_variable_declaration_347 =
TOKENS_FOLLOWING_declaration_target_IN_variable_declaration_349 =
TOKENS_FOLLOWING_expression_IN_variable_declaration_351 =
TOKENS_FOLLOWING_ID_IN_variable_declaration_359 =
TOKENS_FOLLOWING_ARRAY_IN_declaration_target_374 =
TOKENS_FOLLOWING_declaration_target_IN_declaration_target_376 =
TOKENS_FOLLOWING_OBJECT_IN_declaration_target_387 =
TOKENS_FOLLOWING_declaration_key_IN_declaration_target_389 =
TOKENS_FOLLOWING_ID_IN_declaration_target_398 =
TOKENS_FOLLOWING_COLON_IN_declaration_key_415 =
TOKENS_FOLLOWING_property_name_IN_declaration_key_417 =
TOKENS_FOLLOWING_declaration_target_IN_declaration_key_419 =
TOKENS_FOLLOWING_IF_IN_if_statement_436 =
TOKENS_FOLLOWING_clause_IN_if_statement_438 =
TOKENS_FOLLOWING_block_IN_if_statement_440 =
TOKENS_FOLLOWING_block_IN_if_statement_442 =
TOKENS_FOLLOWING_UNLESS_IN_if_statement_453 =
TOKENS_FOLLOWING_clause_IN_if_statement_455 =
TOKENS_FOLLOWING_block_IN_if_statement_457 =
TOKENS_FOLLOWING_block_IN_if_statement_459 =
TOKENS_FOLLOWING_SWITCH_IN_switch_statement_477 =
TOKENS_FOLLOWING_expression_IN_switch_statement_479 =
TOKENS_FOLLOWING_case_clause_IN_switch_statement_481 =
TOKENS_FOLLOWING_default_clause_IN_switch_statement_484 =
TOKENS_FOLLOWING_CASE_IN_case_clause_504 =
TOKENS_FOLLOWING_expression_IN_case_clause_506 =
TOKENS_FOLLOWING_statement_list_IN_case_clause_509 =
TOKENS_FOLLOWING_DEFAULT_IN_default_clause_529 =
TOKENS_FOLLOWING_statement_list_IN_default_clause_531 =
TOKENS_FOLLOWING_DO_IN_do_while_statement_549 =
TOKENS_FOLLOWING_while_statement_IN_do_while_statement_551 =
TOKENS_FOLLOWING_WHILE_IN_while_statement_568 =
TOKENS_FOLLOWING_clause_IN_while_statement_570 =
TOKENS_FOLLOWING_block_IN_while_statement_572 =
TOKENS_FOLLOWING_UNTIL_IN_while_statement_582 =
TOKENS_FOLLOWING_clause_IN_while_statement_584 =
TOKENS_FOLLOWING_block_IN_while_statement_586 =
TOKENS_FOLLOWING_FOR_IN_for_loop_603 =
TOKENS_FOLLOWING_variable_statement_IN_for_loop_608 =
TOKENS_FOLLOWING_expression_IN_for_loop_612 =
TOKENS_FOLLOWING_expression_IN_for_loop_616 =
TOKENS_FOLLOWING_expression_IN_for_loop_618 =
TOKENS_FOLLOWING_block_IN_for_loop_620 =
TOKENS_FOLLOWING_EACH_IN_for_loop_630 =
TOKENS_FOLLOWING_variable_statement_IN_for_loop_634 =
TOKENS_FOLLOWING_ID_IN_for_loop_638 =
TOKENS_FOLLOWING_expression_IN_for_loop_642 =
TOKENS_FOLLOWING_block_IN_for_loop_644 =
TOKENS_FOLLOWING_FOR_IN_IN_for_loop_654 =
TOKENS_FOLLOWING_variable_statement_IN_for_loop_658 =
TOKENS_FOLLOWING_ID_IN_for_loop_662 =
TOKENS_FOLLOWING_expression_IN_for_loop_666 =
TOKENS_FOLLOWING_block_IN_for_loop_668 =
TOKENS_FOLLOWING_CONTINUE_IN_continue_statement_685 =
TOKENS_FOLLOWING_ID_IN_continue_statement_687 =
TOKENS_FOLLOWING_BREAK_IN_break_statement_705 =
TOKENS_FOLLOWING_ID_IN_break_statement_707 =
TOKENS_FOLLOWING_RETURN_IN_return_statement_725 =
TOKENS_FOLLOWING_expression_IN_return_statement_727 =
TOKENS_FOLLOWING_YIELD_IN_yield_statement_745 =
TOKENS_FOLLOWING_expression_IN_yield_statement_747 =
TOKENS_FOLLOWING_THROW_IN_throw_statement_767 =
TOKENS_FOLLOWING_expression_IN_throw_statement_769 =
TOKENS_FOLLOWING_expression_IN_expression_list_788 =
TOKENS_FOLLOWING_COMMA_IN_expression_list_792 =
TOKENS_FOLLOWING_expression_IN_expression_list_795 =
TOKENS_FOLLOWING_QMARK_IN_expression_813 =
TOKENS_FOLLOWING_expression_IN_expression_815 =
TOKENS_FOLLOWING_expression_IN_expression_817 =
TOKENS_FOLLOWING_expression_IN_expression_819 =
TOKENS_FOLLOWING_ASGN_IN_expression_829 =
TOKENS_FOLLOWING_expression_IN_expression_831 =
TOKENS_FOLLOWING_expression_IN_expression_833 =
TOKENS_FOLLOWING_STAR_ASGN_IN_expression_843 =
TOKENS_FOLLOWING_expression_IN_expression_845 =
TOKENS_FOLLOWING_expression_IN_expression_847 =
TOKENS_FOLLOWING_SLASH_ASGN_IN_expression_857 =
TOKENS_FOLLOWING_expression_IN_expression_859 =
TOKENS_FOLLOWING_expression_IN_expression_861 =
TOKENS_FOLLOWING_MOD_ASGN_IN_expression_871 =
TOKENS_FOLLOWING_expression_IN_expression_873 =
TOKENS_FOLLOWING_expression_IN_expression_875 =
TOKENS_FOLLOWING_PLUS_ASGN_IN_expression_885 =
TOKENS_FOLLOWING_expression_IN_expression_887 =
TOKENS_FOLLOWING_expression_IN_expression_889 =
TOKENS_FOLLOWING_MINUS_ASGN_IN_expression_899 =
TOKENS_FOLLOWING_expression_IN_expression_901 =
TOKENS_FOLLOWING_expression_IN_expression_903 =
TOKENS_FOLLOWING_LSHIFT_ASGN_IN_expression_913 =
TOKENS_FOLLOWING_expression_IN_expression_915 =
TOKENS_FOLLOWING_expression_IN_expression_917 =
TOKENS_FOLLOWING_RSHIFT_ASGN_IN_expression_927 =
TOKENS_FOLLOWING_expression_IN_expression_929 =
TOKENS_FOLLOWING_expression_IN_expression_931 =
TOKENS_FOLLOWING_RSHIFT3_ASGN_IN_expression_941 =
TOKENS_FOLLOWING_expression_IN_expression_943 =
TOKENS_FOLLOWING_expression_IN_expression_945 =
TOKENS_FOLLOWING_AMP_ASGN_IN_expression_955 =
TOKENS_FOLLOWING_expression_IN_expression_957 =
TOKENS_FOLLOWING_expression_IN_expression_959 =
TOKENS_FOLLOWING_HAT_ASGN_IN_expression_969 =
TOKENS_FOLLOWING_expression_IN_expression_971 =
TOKENS_FOLLOWING_expression_IN_expression_973 =
TOKENS_FOLLOWING_OR_ASGN_IN_expression_983 =
TOKENS_FOLLOWING_expression_IN_expression_985 =
TOKENS_FOLLOWING_expression_IN_expression_987 =
TOKENS_FOLLOWING_PIPE_ASGN_IN_expression_997 =
TOKENS_FOLLOWING_expression_IN_expression_999 =
TOKENS_FOLLOWING_expression_IN_expression_1001 =
TOKENS_FOLLOWING_PIPE_IN_expression_1011 =
TOKENS_FOLLOWING_expression_IN_expression_1013 =
TOKENS_FOLLOWING_expression_IN_expression_1015 =
TOKENS_FOLLOWING_OR_IN_expression_1025 =
TOKENS_FOLLOWING_expression_IN_expression_1027 =
TOKENS_FOLLOWING_expression_IN_expression_1029 =
TOKENS_FOLLOWING_AMP_IN_expression_1039 =
TOKENS_FOLLOWING_expression_IN_expression_1041 =
TOKENS_FOLLOWING_expression_IN_expression_1043 =
TOKENS_FOLLOWING_HAT_IN_expression_1053 =
TOKENS_FOLLOWING_expression_IN_expression_1055 =
TOKENS_FOLLOWING_expression_IN_expression_1057 =
TOKENS_FOLLOWING_RSHIFT_IN_expression_1067 =
TOKENS_FOLLOWING_expression_IN_expression_1069 =
TOKENS_FOLLOWING_expression_IN_expression_1071 =
TOKENS_FOLLOWING_LSHIFT_IN_expression_1081 =
TOKENS_FOLLOWING_expression_IN_expression_1083 =
TOKENS_FOLLOWING_expression_IN_expression_1085 =
TOKENS_FOLLOWING_RSHIFT3_IN_expression_1095 =
TOKENS_FOLLOWING_expression_IN_expression_1097 =
TOKENS_FOLLOWING_expression_IN_expression_1099 =
TOKENS_FOLLOWING_MINUS_IN_expression_1109 =
TOKENS_FOLLOWING_expression_IN_expression_1111 =
TOKENS_FOLLOWING_expression_IN_expression_1113 =
TOKENS_FOLLOWING_PLUS_IN_expression_1123 =
TOKENS_FOLLOWING_expression_IN_expression_1125 =
TOKENS_FOLLOWING_expression_IN_expression_1127 =
TOKENS_FOLLOWING_MOD_IN_expression_1137 =
TOKENS_FOLLOWING_expression_IN_expression_1139 =
TOKENS_FOLLOWING_expression_IN_expression_1141 =
TOKENS_FOLLOWING_SLASH_IN_expression_1151 =
TOKENS_FOLLOWING_expression_IN_expression_1153 =
TOKENS_FOLLOWING_expression_IN_expression_1155 =
TOKENS_FOLLOWING_STAR_IN_expression_1165 =
TOKENS_FOLLOWING_expression_IN_expression_1167 =
TOKENS_FOLLOWING_expression_IN_expression_1169 =
TOKENS_FOLLOWING_EQ_IN_expression_1179 =
TOKENS_FOLLOWING_expression_IN_expression_1181 =
TOKENS_FOLLOWING_expression_IN_expression_1183 =
TOKENS_FOLLOWING_EQQ_IN_expression_1193 =
TOKENS_FOLLOWING_expression_IN_expression_1195 =
TOKENS_FOLLOWING_expression_IN_expression_1197 =
TOKENS_FOLLOWING_NEQ_IN_expression_1207 =
TOKENS_FOLLOWING_expression_IN_expression_1209 =
TOKENS_FOLLOWING_expression_IN_expression_1211 =
TOKENS_FOLLOWING_NEQQ_IN_expression_1221 =
TOKENS_FOLLOWING_expression_IN_expression_1223 =
TOKENS_FOLLOWING_expression_IN_expression_1225 =
TOKENS_FOLLOWING_GEQ_IN_expression_1235 =
TOKENS_FOLLOWING_expression_IN_expression_1237 =
TOKENS_FOLLOWING_expression_IN_expression_1239 =
TOKENS_FOLLOWING_LEQ_IN_expression_1249 =
TOKENS_FOLLOWING_expression_IN_expression_1251 =
TOKENS_FOLLOWING_expression_IN_expression_1253 =
TOKENS_FOLLOWING_GREATER_IN_expression_1263 =
TOKENS_FOLLOWING_expression_IN_expression_1265 =
TOKENS_FOLLOWING_expression_IN_expression_1267 =
TOKENS_FOLLOWING_LESS_IN_expression_1277 =
TOKENS_FOLLOWING_expression_IN_expression_1279 =
TOKENS_FOLLOWING_expression_IN_expression_1281 =
TOKENS_FOLLOWING_INSTANCEOF_IN_expression_1291 =
TOKENS_FOLLOWING_expression_IN_expression_1293 =
TOKENS_FOLLOWING_expression_IN_expression_1295 =
TOKENS_FOLLOWING_IN_IN_expression_1305 =
TOKENS_FOLLOWING_expression_IN_expression_1307 =
TOKENS_FOLLOWING_expression_IN_expression_1309 =
TOKENS_FOLLOWING_DELETE_IN_expression_1319 =
TOKENS_FOLLOWING_expression_IN_expression_1321 =
TOKENS_FOLLOWING_VOID_IN_expression_1331 =
TOKENS_FOLLOWING_expression_IN_expression_1333 =
TOKENS_FOLLOWING_TYPEOF_IN_expression_1343 =
TOKENS_FOLLOWING_expression_IN_expression_1345 =
TOKENS_FOLLOWING_INCR_IN_expression_1355 =
TOKENS_FOLLOWING_expression_IN_expression_1357 =
TOKENS_FOLLOWING_DECR_IN_expression_1367 =
TOKENS_FOLLOWING_expression_IN_expression_1369 =
TOKENS_FOLLOWING_UPLUS_IN_expression_1379 =
TOKENS_FOLLOWING_expression_IN_expression_1381 =
TOKENS_FOLLOWING_UMINUS_IN_expression_1391 =
TOKENS_FOLLOWING_expression_IN_expression_1393 =
TOKENS_FOLLOWING_TILDE_IN_expression_1403 =
TOKENS_FOLLOWING_expression_IN_expression_1405 =
TOKENS_FOLLOWING_NOT_IN_expression_1415 =
TOKENS_FOLLOWING_expression_IN_expression_1417 =
TOKENS_FOLLOWING_POST_INCR_IN_expression_1427 =
TOKENS_FOLLOWING_expression_IN_expression_1429 =
TOKENS_FOLLOWING_POST_DECR_IN_expression_1439 =
TOKENS_FOLLOWING_expression_IN_expression_1441 =
TOKENS_FOLLOWING_AREF_IN_expression_1451 =
TOKENS_FOLLOWING_expression_IN_expression_1453 =
TOKENS_FOLLOWING_expression_IN_expression_1455 =
TOKENS_FOLLOWING_DOT_IN_expression_1465 =
TOKENS_FOLLOWING_expression_IN_expression_1467 =
TOKENS_FOLLOWING_property_name_IN_expression_1469 =
TOKENS_FOLLOWING_CALL_IN_expression_1479 =
TOKENS_FOLLOWING_expression_IN_expression_1481 =
TOKENS_FOLLOWING_arguments_IN_expression_1483 =
TOKENS_FOLLOWING_ITER_IN_expression_1493 =
TOKENS_FOLLOWING_parameters_IN_expression_1495 =
TOKENS_FOLLOWING_block_IN_expression_1497 =
TOKENS_FOLLOWING_NEW_IN_expression_1507 =
TOKENS_FOLLOWING_expression_IN_expression_1509 =
TOKENS_FOLLOWING_arguments_IN_expression_1511 =
TOKENS_FOLLOWING_literal_IN_expression_1520 =
TOKENS_FOLLOWING_ARGUMENTS_IN_arguments_1535 =
TOKENS_FOLLOWING_argument_IN_arguments_1537 =
TOKENS_FOLLOWING_COLON_IN_argument_1555 =
TOKENS_FOLLOWING_property_name_IN_argument_1557 =
TOKENS_FOLLOWING_expression_IN_argument_1559 =
TOKENS_FOLLOWING_expression_IN_argument_1567 =
TOKENS_FOLLOWING_PARAMS_IN_parameters_1582 =
TOKENS_FOLLOWING_parameter_IN_parameters_1584 =
TOKENS_FOLLOWING_SPLAT_IN_parameter_1602 =
TOKENS_FOLLOWING_ID_IN_parameter_1604 =
TOKENS_FOLLOWING_ASGN_IN_parameter_1614 =
TOKENS_FOLLOWING_ID_IN_parameter_1616 =
TOKENS_FOLLOWING_expression_IN_parameter_1618 =
TOKENS_FOLLOWING_ID_IN_parameter_1626 =
TOKENS_FOLLOWING_THIS_IN_literal_1643 =
TOKENS_FOLLOWING_IVAR_IN_literal_1649 =
TOKENS_FOLLOWING_ID_IN_literal_1655 =
TOKENS_FOLLOWING_NULL_IN_literal_1661 =
TOKENS_FOLLOWING_TRUE_IN_literal_1667 =
TOKENS_FOLLOWING_FALSE_IN_literal_1673 =
TOKENS_FOLLOWING_UNDEFINED_IN_literal_1679 =
TOKENS_FOLLOWING_NUMBER_IN_literal_1685 =
TOKENS_FOLLOWING_STRING_IN_literal_1691 =
TOKENS_FOLLOWING_DOC_IN_literal_1697 =
TOKENS_FOLLOWING_REGEX_IN_literal_1703 =
TOKENS_FOLLOWING_ARRAY_IN_literal_1711 =
TOKENS_FOLLOWING_argument_IN_literal_1713 =
TOKENS_FOLLOWING_OBJECT_IN_literal_1724 =
TOKENS_FOLLOWING_property_definition_IN_literal_1726 =
TOKENS_FOLLOWING_FUNCTION_IN_literal_1737 =
TOKENS_FOLLOWING_ID_IN_literal_1739 =
TOKENS_FOLLOWING_parameters_IN_literal_1742 =
TOKENS_FOLLOWING_statement_block_IN_literal_1744 =
TOKENS_FOLLOWING_ARROW_IN_literal_1754 =
TOKENS_FOLLOWING_parameters_IN_literal_1756 =
TOKENS_FOLLOWING_statement_block_IN_literal_1759 =
TOKENS_FOLLOWING_GET_IN_property_definition_1776 =
TOKENS_FOLLOWING_ID_IN_property_definition_1778 =
TOKENS_FOLLOWING_parameters_IN_property_definition_1780 =
TOKENS_FOLLOWING_block_IN_property_definition_1782 =
TOKENS_FOLLOWING_SET_IN_property_definition_1792 =
TOKENS_FOLLOWING_ID_IN_property_definition_1794 =
TOKENS_FOLLOWING_parameters_IN_property_definition_1796 =
TOKENS_FOLLOWING_block_IN_property_definition_1798 =
TOKENS_FOLLOWING_COLON_IN_property_definition_1808 =
TOKENS_FOLLOWING_property_name_IN_property_definition_1810 =
TOKENS_FOLLOWING_expression_IN_property_definition_1812 =
TOKENS_FOLLOWING_set_IN_property_name_0 =

Instance Method Summary collapse

Constructor Details

#initialize(input, options = {}) ⇒ TreeParser

Returns a new instance of TreeParser.



163
164
165
166
167
# File 'lib/jejune/grammar/tree.rb', line 163

def initialize( input, options = {} )
  super( input, options )


end

Instance Method Details

#argumentObject

parser rule argument

(in JejuneTree.g) 209:1: argument : ( ^( ‘:’ property_name expression ) | expression );



5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
# File 'lib/jejune/grammar/tree.rb', line 5387

def argument
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 30 )
  return_value = ArgumentReturnValue.new

  # $rule.start = the first token seen before matching
  return_value.start = @input.look

  root_0 = nil

  _last = _first_0 = nil
  char_literal255 = nil
  property_name256 = nil
  expression257 = nil
  expression258 = nil

  tree_for_char_literal255 = nil

  begin
    # at line 210:3: ( ^( ':' property_name expression ) | expression )
    alt_34 = 2
    look_34_0 = @input.peek( 1 )

    if ( look_34_0 == COLON )
      alt_34 = 1
    elsif ( look_34_0.between?( AMP, AMP_ASGN ) || look_34_0 == POST_DECR || look_34_0.between?( GEQ, AREF ) || look_34_0.between?( GREATER, HAT ) || look_34_0.between?( ARROW, HAT_ASGN ) || look_34_0 == ASGN || look_34_0 == REGEX || look_34_0 == IN || look_34_0 == INCR || look_34_0.between?( INSTANCEOF, RSHIFT3 ) || look_34_0 == RSHIFT3_ASGN || look_34_0 == RSHIFT_ASGN || look_34_0 == LEQ || look_34_0.between?( LESS, SLASH ) || look_34_0 == SLASH_ASGN || look_34_0.between?( STAR, DECR ) || look_34_0 == STAR_ASGN || look_34_0 == LSHIFT || look_34_0.between?( DELETE, THIS ) || look_34_0.between?( MINUS, TILDE ) || look_34_0.between?( MINUS_ASGN, MOD ) || look_34_0.between?( MOD_ASGN, TYPEOF ) || look_34_0.between?( NEQ, UMINUS ) || look_34_0.between?( NEQQ, UNDEFINED ) || look_34_0 == NEW || look_34_0 == NOT || look_34_0.between?( NULL, UPLUS ) || look_34_0 == OBJECT || look_34_0.between?( EQ, OR_ASGN ) || look_34_0 == FALSE || look_34_0 == PIPE || look_34_0 == PIPE_ASGN || look_34_0 == PLUS || look_34_0.between?( ID, DOC ) )
      alt_34 = 2
    else
      raise NoViableAlternative( "", 34, 0 )
    end
    case alt_34
    when 1
      root_0 = @adaptor.create_flat_list


      # at line 210:5: ^( ':' property_name expression )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      char_literal255 = match( COLON, TOKENS_FOLLOWING_COLON_IN_argument_1555 )

      tree_for_char_literal255 = @adaptor.copy_node( char_literal255 )

      root_1 = @adaptor.become_root( tree_for_char_literal255, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_property_name_IN_argument_1557 )
      property_name256 = property_name
      @state.following.pop

      @adaptor.add_child( root_1, property_name256.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_argument_1559 )
      expression257 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression257.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 2
      root_0 = @adaptor.create_flat_list


      # at line 211:5: expression
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_argument_1567 )
      expression258 = expression
      @state.following.pop

      @adaptor.add_child( root_0, expression258.tree )


    end
    return_value.tree = @adaptor.rule_post_processing( root_0 )

  rescue ANTLR3::Error::RecognitionError => re
    report_error(re)
    recover(re)

  ensure
    # -> uncomment the next line to manually enable rule tracing
    # trace_out( __method__, 30 )

  end
  
  return return_value
end

#argumentsObject

parser rule arguments

(in JejuneTree.g) 205:1: arguments : ^( ARGUMENTS ( argument )* ) ;



5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
# File 'lib/jejune/grammar/tree.rb', line 5297

def arguments
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 29 )
  return_value = ArgumentsReturnValue.new

  # $rule.start = the first token seen before matching
  return_value.start = @input.look

  root_0 = nil

  _last = _first_0 = nil
  __ARGUMENTS253__ = nil
  argument254 = nil

  tree_for_ARGUMENTS253 = nil

  begin
    root_0 = @adaptor.create_flat_list


    # at line 206:5: ^( ARGUMENTS ( argument )* )
    _save_last_1 = _last = @input.look
    _first_1 = nil
    root_1 = @adaptor.create_flat_list
    _last = @input.look
    __ARGUMENTS253__ = match( ARGUMENTS, TOKENS_FOLLOWING_ARGUMENTS_IN_arguments_1535 )

    tree_for_ARGUMENTS253 = @adaptor.copy_node( __ARGUMENTS253__ )

    root_1 = @adaptor.become_root( tree_for_ARGUMENTS253, root_1 )



    if @input.peek == DOWN
      match( DOWN, nil )
      # at line 206:18: ( argument )*
      while true # decision 33
        alt_33 = 2
        look_33_0 = @input.peek( 1 )

        if ( look_33_0.between?( AMP, AMP_ASGN ) || look_33_0 == POST_DECR || look_33_0.between?( GEQ, AREF ) || look_33_0.between?( GREATER, HAT ) || look_33_0.between?( ARROW, HAT_ASGN ) || look_33_0 == ASGN || look_33_0 == REGEX || look_33_0 == IN || look_33_0 == INCR || look_33_0.between?( INSTANCEOF, RSHIFT3 ) || look_33_0 == RSHIFT3_ASGN || look_33_0.between?( RSHIFT_ASGN, COLON ) || look_33_0 == LEQ || look_33_0.between?( LESS, SLASH ) || look_33_0 == SLASH_ASGN || look_33_0.between?( STAR, DECR ) || look_33_0 == STAR_ASGN || look_33_0 == LSHIFT || look_33_0.between?( DELETE, THIS ) || look_33_0.between?( MINUS, TILDE ) || look_33_0.between?( MINUS_ASGN, MOD ) || look_33_0.between?( MOD_ASGN, TYPEOF ) || look_33_0.between?( NEQ, UMINUS ) || look_33_0.between?( NEQQ, UNDEFINED ) || look_33_0 == NEW || look_33_0 == NOT || look_33_0.between?( NULL, UPLUS ) || look_33_0 == OBJECT || look_33_0.between?( EQ, OR_ASGN ) || look_33_0 == FALSE || look_33_0 == PIPE || look_33_0 == PIPE_ASGN || look_33_0 == PLUS || look_33_0.between?( ID, DOC ) )
          alt_33 = 1

        end
        case alt_33
        when 1
          # at line 206:18: argument
          _last = @input.look
          @state.following.push( TOKENS_FOLLOWING_argument_IN_arguments_1537 )
          argument254 = argument
          @state.following.pop

          @adaptor.add_child( root_1, argument254.tree )


        else
          break # out of loop for decision 33
        end
      end # loop for decision 33

      match( UP, nil )
    end
    @adaptor.add_child( root_0, root_1 )
    _last = _save_last_1



    return_value.tree = @adaptor.rule_post_processing( root_0 )

  rescue ANTLR3::Error::RecognitionError => re
    report_error(re)
    recover(re)

  ensure
    # -> uncomment the next line to manually enable rule tracing
    # trace_out( __method__, 29 )

  end
  
  return return_value
end

#blockObject

parser rule block

(in JejuneTree.g) 17:1: block : ( statement_block | statement );



252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
# File 'lib/jejune/grammar/tree.rb', line 252

def block
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 2 )
  return_value = BlockReturnValue.new

  # $rule.start = the first token seen before matching
  return_value.start = @input.look

  root_0 = nil

  _last = _first_0 = nil
  statement_block2 = nil
  statement3 = nil


  begin
    # at line 18:3: ( statement_block | statement )
    alt_2 = 2
    look_2_0 = @input.peek( 1 )

    if ( look_2_0 == BLOCK )
      alt_2 = 1
    elsif ( look_2_0.between?( AMP, AMP_ASGN ) || look_2_0 == POST_DECR || look_2_0.between?( GEQ, AREF ) || look_2_0.between?( GREATER, HAT ) || look_2_0.between?( ARROW, HAT_ASGN ) || look_2_0.between?( ASGN, REGEX ) || look_2_0.between?( IN, RETURN ) || look_2_0 == INCR || look_2_0.between?( BREAK, RSHIFT3 ) || look_2_0.between?( LABEL, CATCH ) || look_2_0 == RSHIFT_ASGN || look_2_0 == LEQ || look_2_0.between?( LESS, SLASH ) || look_2_0.between?( SLASH_ASGN, CONTINUE ) || look_2_0.between?( STAR, DECR ) || look_2_0 == STAR_ASGN || look_2_0.between?( LSHIFT, THIS ) || look_2_0 == THROW || look_2_0.between?( MINUS, MOD ) || look_2_0.between?( MOD_ASGN, TYPEOF ) || look_2_0.between?( NEQ, UMINUS ) || look_2_0.between?( NEQQ, UNDEFINED ) || look_2_0.between?( NEW, UPLUS ) || look_2_0.between?( OBJECT, FALSE ) || look_2_0.between?( WITH, PLUS ) || look_2_0.between?( ID, DOC ) )
      alt_2 = 2
    else
      raise NoViableAlternative( "", 2, 0 )
    end
    case alt_2
    when 1
      root_0 = @adaptor.create_flat_list


      # at line 18:5: statement_block
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_statement_block_IN_block_59 )
      statement_block2 = statement_block
      @state.following.pop

      @adaptor.add_child( root_0, statement_block2.tree )


    when 2
      root_0 = @adaptor.create_flat_list


      # at line 19:5: statement
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_statement_IN_block_65 )
      statement3 = statement
      @state.following.pop

      @adaptor.add_child( root_0, statement3.tree )


    end
    return_value.tree = @adaptor.rule_post_processing( root_0 )

  rescue ANTLR3::Error::RecognitionError => re
    report_error(re)
    recover(re)

  ensure
    # -> uncomment the next line to manually enable rule tracing
    # trace_out( __method__, 2 )

  end
  
  return return_value
end

#break_statementObject

parser rule break_statement

(in JejuneTree.g) 125:1: break_statement : ^( ‘break’ ( ID )? ) ;



2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
# File 'lib/jejune/grammar/tree.rb', line 2684

def break_statement
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 23 )
  return_value = BreakStatementReturnValue.new

  # $rule.start = the first token seen before matching
  return_value.start = @input.look

  root_0 = nil

  _last = _first_0 = nil
  string_literal95 = nil
  __ID96__ = nil

  tree_for_string_literal95 = nil
  tree_for_ID96 = nil

  begin
    root_0 = @adaptor.create_flat_list


    # at line 126:5: ^( 'break' ( ID )? )
    _save_last_1 = _last = @input.look
    _first_1 = nil
    root_1 = @adaptor.create_flat_list
    _last = @input.look
    string_literal95 = match( BREAK, TOKENS_FOLLOWING_BREAK_IN_break_statement_705 )

    tree_for_string_literal95 = @adaptor.copy_node( string_literal95 )

    root_1 = @adaptor.become_root( tree_for_string_literal95, root_1 )



    if @input.peek == DOWN
      match( DOWN, nil )
      # at line 126:16: ( ID )?
      alt_26 = 2
      look_26_0 = @input.peek( 1 )

      if ( look_26_0 == ID )
        alt_26 = 1
      end
      case alt_26
      when 1
        # at line 126:16: ID
        _last = @input.look
        __ID96__ = match( ID, TOKENS_FOLLOWING_ID_IN_break_statement_707 )

        tree_for_ID96 = @adaptor.copy_node( __ID96__ )

        @adaptor.add_child( root_1, tree_for_ID96 )



      end

      match( UP, nil )
    end
    @adaptor.add_child( root_0, root_1 )
    _last = _save_last_1



    return_value.tree = @adaptor.rule_post_processing( root_0 )

  rescue ANTLR3::Error::RecognitionError => re
    report_error(re)
    recover(re)

  ensure
    # -> uncomment the next line to manually enable rule tracing
    # trace_out( __method__, 23 )

  end
  
  return return_value
end

#case_clauseObject

parser rule case_clause

(in JejuneTree.g) 98:1: case_clause : ^( ‘case’ expression ( statement_list )? ) ;



1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
# File 'lib/jejune/grammar/tree.rb', line 1933

def case_clause
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 17 )
  return_value = CaseClauseReturnValue.new

  # $rule.start = the first token seen before matching
  return_value.start = @input.look

  root_0 = nil

  _last = _first_0 = nil
  string_literal64 = nil
  expression65 = nil
  statement_list66 = nil

  tree_for_string_literal64 = nil

  begin
    root_0 = @adaptor.create_flat_list


    # at line 99:5: ^( 'case' expression ( statement_list )? )
    _save_last_1 = _last = @input.look
    _first_1 = nil
    root_1 = @adaptor.create_flat_list
    _last = @input.look
    string_literal64 = match( CASE, TOKENS_FOLLOWING_CASE_IN_case_clause_504 )

    tree_for_string_literal64 = @adaptor.copy_node( string_literal64 )

    root_1 = @adaptor.become_root( tree_for_string_literal64, root_1 )



    match( DOWN, nil )
    _last = @input.look
    @state.following.push( TOKENS_FOLLOWING_expression_IN_case_clause_506 )
    expression65 = expression
    @state.following.pop

    @adaptor.add_child( root_1, expression65.tree )
    # at line 99:27: ( statement_list )?
    alt_18 = 2
    look_18_0 = @input.peek( 1 )

    if ( look_18_0.between?( AMP, AMP_ASGN ) || look_18_0 == POST_DECR || look_18_0.between?( GEQ, AREF ) || look_18_0.between?( GREATER, HAT ) || look_18_0.between?( ARROW, HAT_ASGN ) || look_18_0.between?( ASGN, REGEX ) || look_18_0.between?( IN, RETURN ) || look_18_0 == INCR || look_18_0.between?( BREAK, RSHIFT3 ) || look_18_0.between?( LABEL, CATCH ) || look_18_0 == RSHIFT_ASGN || look_18_0 == LEQ || look_18_0.between?( LESS, SLASH ) || look_18_0.between?( SLASH_ASGN, CONTINUE ) || look_18_0.between?( STAR, DECR ) || look_18_0 == STAR_ASGN || look_18_0.between?( LSHIFT, THIS ) || look_18_0 == THROW || look_18_0.between?( MINUS, MOD ) || look_18_0.between?( MOD_ASGN, TYPEOF ) || look_18_0.between?( NEQ, UMINUS ) || look_18_0.between?( NEQQ, UNDEFINED ) || look_18_0.between?( NEW, UPLUS ) || look_18_0.between?( OBJECT, FALSE ) || look_18_0.between?( WITH, PLUS ) || look_18_0.between?( ID, DOC ) )
      alt_18 = 1
    end
    case alt_18
    when 1
      # at line 99:27: statement_list
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_statement_list_IN_case_clause_509 )
      statement_list66 = statement_list
      @state.following.pop

      @adaptor.add_child( root_1, statement_list66.tree )


    end

    match( UP, nil )
    @adaptor.add_child( root_0, root_1 )
    _last = _save_last_1



    return_value.tree = @adaptor.rule_post_processing( root_0 )

  rescue ANTLR3::Error::RecognitionError => re
    report_error(re)
    recover(re)

  ensure
    # -> uncomment the next line to manually enable rule tracing
    # trace_out( __method__, 17 )

  end
  
  return return_value
end

#catch_clauseObject

parser rule catch_clause

(in JejuneTree.g) 61:1: catch_clause : ^( ‘catch’ statement_block ID statement_block ) ;



1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
# File 'lib/jejune/grammar/tree.rb', line 1022

def catch_clause
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 9 )
  return_value = CatchClauseReturnValue.new

  # $rule.start = the first token seen before matching
  return_value.start = @input.look

  root_0 = nil

  _last = _first_0 = nil
  string_literal31 = nil
  __ID33__ = nil
  statement_block32 = nil
  statement_block34 = nil

  tree_for_string_literal31 = nil
  tree_for_ID33 = nil

  begin
    root_0 = @adaptor.create_flat_list


    # at line 62:5: ^( 'catch' statement_block ID statement_block )
    _save_last_1 = _last = @input.look
    _first_1 = nil
    root_1 = @adaptor.create_flat_list
    _last = @input.look
    string_literal31 = match( CATCH, TOKENS_FOLLOWING_CATCH_IN_catch_clause_282 )

    tree_for_string_literal31 = @adaptor.copy_node( string_literal31 )

    root_1 = @adaptor.become_root( tree_for_string_literal31, root_1 )



    match( DOWN, nil )
    _last = @input.look
    @state.following.push( TOKENS_FOLLOWING_statement_block_IN_catch_clause_284 )
    statement_block32 = statement_block
    @state.following.pop

    @adaptor.add_child( root_1, statement_block32.tree )
    _last = @input.look
    __ID33__ = match( ID, TOKENS_FOLLOWING_ID_IN_catch_clause_286 )

    tree_for_ID33 = @adaptor.copy_node( __ID33__ )

    @adaptor.add_child( root_1, tree_for_ID33 )

    _last = @input.look
    @state.following.push( TOKENS_FOLLOWING_statement_block_IN_catch_clause_288 )
    statement_block34 = statement_block
    @state.following.pop

    @adaptor.add_child( root_1, statement_block34.tree )

    match( UP, nil )
    @adaptor.add_child( root_0, root_1 )
    _last = _save_last_1



    return_value.tree = @adaptor.rule_post_processing( root_0 )

  rescue ANTLR3::Error::RecognitionError => re
    report_error(re)
    recover(re)

  ensure
    # -> uncomment the next line to manually enable rule tracing
    # trace_out( __method__, 9 )

  end
  
  return return_value
end

#clauseObject

parser rule clause

(in JejuneTree.g) 30:1: clause : expression ;



490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
# File 'lib/jejune/grammar/tree.rb', line 490

def clause
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 5 )
  return_value = ClauseReturnValue.new

  # $rule.start = the first token seen before matching
  return_value.start = @input.look

  root_0 = nil

  _last = _first_0 = nil
  expression7 = nil


  begin
    root_0 = @adaptor.create_flat_list


    # at line 31:5: expression
    _last = @input.look
    @state.following.push( TOKENS_FOLLOWING_expression_IN_clause_114 )
    expression7 = expression
    @state.following.pop

    @adaptor.add_child( root_0, expression7.tree )


    return_value.tree = @adaptor.rule_post_processing( root_0 )

  rescue ANTLR3::Error::RecognitionError => re
    report_error(re)
    recover(re)

  ensure
    # -> uncomment the next line to manually enable rule tracing
    # trace_out( __method__, 5 )

  end
  
  return return_value
end

#continue_statementObject

parser rule continue_statement

(in JejuneTree.g) 121:1: continue_statement : ^( ‘continue’ ( ID )? ) ;



2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
# File 'lib/jejune/grammar/tree.rb', line 2597

def continue_statement
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 22 )
  return_value = ContinueStatementReturnValue.new

  # $rule.start = the first token seen before matching
  return_value.start = @input.look

  root_0 = nil

  _last = _first_0 = nil
  string_literal93 = nil
  __ID94__ = nil

  tree_for_string_literal93 = nil
  tree_for_ID94 = nil

  begin
    root_0 = @adaptor.create_flat_list


    # at line 122:5: ^( 'continue' ( ID )? )
    _save_last_1 = _last = @input.look
    _first_1 = nil
    root_1 = @adaptor.create_flat_list
    _last = @input.look
    string_literal93 = match( CONTINUE, TOKENS_FOLLOWING_CONTINUE_IN_continue_statement_685 )

    tree_for_string_literal93 = @adaptor.copy_node( string_literal93 )

    root_1 = @adaptor.become_root( tree_for_string_literal93, root_1 )



    if @input.peek == DOWN
      match( DOWN, nil )
      # at line 122:19: ( ID )?
      alt_25 = 2
      look_25_0 = @input.peek( 1 )

      if ( look_25_0 == ID )
        alt_25 = 1
      end
      case alt_25
      when 1
        # at line 122:19: ID
        _last = @input.look
        __ID94__ = match( ID, TOKENS_FOLLOWING_ID_IN_continue_statement_687 )

        tree_for_ID94 = @adaptor.copy_node( __ID94__ )

        @adaptor.add_child( root_1, tree_for_ID94 )



      end

      match( UP, nil )
    end
    @adaptor.add_child( root_0, root_1 )
    _last = _save_last_1



    return_value.tree = @adaptor.rule_post_processing( root_0 )

  rescue ANTLR3::Error::RecognitionError => re
    report_error(re)
    recover(re)

  ensure
    # -> uncomment the next line to manually enable rule tracing
    # trace_out( __method__, 22 )

  end
  
  return return_value
end

#declaration_keyObject

parser rule declaration_key

(in JejuneTree.g) 85:1: declaration_key : ^( ‘:’ property_name declaration_target ) ;



1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
# File 'lib/jejune/grammar/tree.rb', line 1569

def declaration_key
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 14 )
  return_value = DeclarationKeyReturnValue.new

  # $rule.start = the first token seen before matching
  return_value.start = @input.look

  root_0 = nil

  _last = _first_0 = nil
  char_literal49 = nil
  property_name50 = nil
  declaration_target51 = nil

  tree_for_char_literal49 = nil

  begin
    root_0 = @adaptor.create_flat_list


    # at line 86:5: ^( ':' property_name declaration_target )
    _save_last_1 = _last = @input.look
    _first_1 = nil
    root_1 = @adaptor.create_flat_list
    _last = @input.look
    char_literal49 = match( COLON, TOKENS_FOLLOWING_COLON_IN_declaration_key_415 )

    tree_for_char_literal49 = @adaptor.copy_node( char_literal49 )

    root_1 = @adaptor.become_root( tree_for_char_literal49, root_1 )



    match( DOWN, nil )
    _last = @input.look
    @state.following.push( TOKENS_FOLLOWING_property_name_IN_declaration_key_417 )
    property_name50 = property_name
    @state.following.pop

    @adaptor.add_child( root_1, property_name50.tree )
    _last = @input.look
    @state.following.push( TOKENS_FOLLOWING_declaration_target_IN_declaration_key_419 )
    declaration_target51 = declaration_target
    @state.following.pop

    @adaptor.add_child( root_1, declaration_target51.tree )

    match( UP, nil )
    @adaptor.add_child( root_0, root_1 )
    _last = _save_last_1



    return_value.tree = @adaptor.rule_post_processing( root_0 )

  rescue ANTLR3::Error::RecognitionError => re
    report_error(re)
    recover(re)

  ensure
    # -> uncomment the next line to manually enable rule tracing
    # trace_out( __method__, 14 )

  end
  
  return return_value
end

#declaration_targetObject

parser rule declaration_target

(in JejuneTree.g) 79:1: declaration_target : ( ^( ARRAY ( declaration_target )+ ) | ^( OBJECT ( declaration_key )+ ) | ID );



1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
# File 'lib/jejune/grammar/tree.rb', line 1387

def declaration_target
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 13 )
  return_value = DeclarationTargetReturnValue.new

  # $rule.start = the first token seen before matching
  return_value.start = @input.look

  root_0 = nil

  _last = _first_0 = nil
  __ARRAY44__ = nil
  __OBJECT46__ = nil
  __ID48__ = nil
  declaration_target45 = nil
  declaration_key47 = nil

  tree_for_ARRAY44 = nil
  tree_for_OBJECT46 = nil
  tree_for_ID48 = nil

  begin
    # at line 80:3: ( ^( ARRAY ( declaration_target )+ ) | ^( OBJECT ( declaration_key )+ ) | ID )
    alt_12 = 3
    case look_12 = @input.peek( 1 )
    when ARRAY then alt_12 = 1
    when OBJECT then alt_12 = 2
    when ID then alt_12 = 3
    else
      raise NoViableAlternative( "", 12, 0 )
    end
    case alt_12
    when 1
      root_0 = @adaptor.create_flat_list


      # at line 80:5: ^( ARRAY ( declaration_target )+ )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      __ARRAY44__ = match( ARRAY, TOKENS_FOLLOWING_ARRAY_IN_declaration_target_374 )

      tree_for_ARRAY44 = @adaptor.copy_node( __ARRAY44__ )

      root_1 = @adaptor.become_root( tree_for_ARRAY44, root_1 )



      match( DOWN, nil )
      # at file 80:14: ( declaration_target )+
      match_count_10 = 0
      while true
        alt_10 = 2
        look_10_0 = @input.peek( 1 )

        if ( look_10_0 == ARRAY || look_10_0 == OBJECT || look_10_0 == ID )
          alt_10 = 1

        end
        case alt_10
        when 1
          # at line 80:14: declaration_target
          _last = @input.look
          @state.following.push( TOKENS_FOLLOWING_declaration_target_IN_declaration_target_376 )
          declaration_target45 = declaration_target
          @state.following.pop

          @adaptor.add_child( root_1, declaration_target45.tree )


        else
          match_count_10 > 0 and break
          eee = EarlyExit(10)


          raise eee
        end
        match_count_10 += 1
      end


      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 2
      root_0 = @adaptor.create_flat_list


      # at line 81:5: ^( OBJECT ( declaration_key )+ )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      __OBJECT46__ = match( OBJECT, TOKENS_FOLLOWING_OBJECT_IN_declaration_target_387 )

      tree_for_OBJECT46 = @adaptor.copy_node( __OBJECT46__ )

      root_1 = @adaptor.become_root( tree_for_OBJECT46, root_1 )



      match( DOWN, nil )
      # at file 81:15: ( declaration_key )+
      match_count_11 = 0
      while true
        alt_11 = 2
        look_11_0 = @input.peek( 1 )

        if ( look_11_0 == COLON )
          alt_11 = 1

        end
        case alt_11
        when 1
          # at line 81:15: declaration_key
          _last = @input.look
          @state.following.push( TOKENS_FOLLOWING_declaration_key_IN_declaration_target_389 )
          declaration_key47 = declaration_key
          @state.following.pop

          @adaptor.add_child( root_1, declaration_key47.tree )


        else
          match_count_11 > 0 and break
          eee = EarlyExit(11)


          raise eee
        end
        match_count_11 += 1
      end


      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 3
      root_0 = @adaptor.create_flat_list


      # at line 82:5: ID
      _last = @input.look
      __ID48__ = match( ID, TOKENS_FOLLOWING_ID_IN_declaration_target_398 )

      tree_for_ID48 = @adaptor.copy_node( __ID48__ )

      @adaptor.add_child( root_0, tree_for_ID48 )



    end
    return_value.tree = @adaptor.rule_post_processing( root_0 )

  rescue ANTLR3::Error::RecognitionError => re
    report_error(re)
    recover(re)

  ensure
    # -> uncomment the next line to manually enable rule tracing
    # trace_out( __method__, 13 )

  end
  
  return return_value
end

#default_clauseObject

parser rule default_clause

(in JejuneTree.g) 102:1: default_clause : ^( ‘default’ ( statement_list )? ) ;



2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
# File 'lib/jejune/grammar/tree.rb', line 2023

def default_clause
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 18 )
  return_value = DefaultClauseReturnValue.new

  # $rule.start = the first token seen before matching
  return_value.start = @input.look

  root_0 = nil

  _last = _first_0 = nil
  string_literal67 = nil
  statement_list68 = nil

  tree_for_string_literal67 = nil

  begin
    root_0 = @adaptor.create_flat_list


    # at line 103:5: ^( 'default' ( statement_list )? )
    _save_last_1 = _last = @input.look
    _first_1 = nil
    root_1 = @adaptor.create_flat_list
    _last = @input.look
    string_literal67 = match( DEFAULT, TOKENS_FOLLOWING_DEFAULT_IN_default_clause_529 )

    tree_for_string_literal67 = @adaptor.copy_node( string_literal67 )

    root_1 = @adaptor.become_root( tree_for_string_literal67, root_1 )



    if @input.peek == DOWN
      match( DOWN, nil )
      # at line 103:18: ( statement_list )?
      alt_19 = 2
      look_19_0 = @input.peek( 1 )

      if ( look_19_0.between?( AMP, AMP_ASGN ) || look_19_0 == POST_DECR || look_19_0.between?( GEQ, AREF ) || look_19_0.between?( GREATER, HAT ) || look_19_0.between?( ARROW, HAT_ASGN ) || look_19_0.between?( ASGN, REGEX ) || look_19_0.between?( IN, RETURN ) || look_19_0 == INCR || look_19_0.between?( BREAK, RSHIFT3 ) || look_19_0.between?( LABEL, CATCH ) || look_19_0 == RSHIFT_ASGN || look_19_0 == LEQ || look_19_0.between?( LESS, SLASH ) || look_19_0.between?( SLASH_ASGN, CONTINUE ) || look_19_0.between?( STAR, DECR ) || look_19_0 == STAR_ASGN || look_19_0.between?( LSHIFT, THIS ) || look_19_0 == THROW || look_19_0.between?( MINUS, MOD ) || look_19_0.between?( MOD_ASGN, TYPEOF ) || look_19_0.between?( NEQ, UMINUS ) || look_19_0.between?( NEQQ, UNDEFINED ) || look_19_0.between?( NEW, UPLUS ) || look_19_0.between?( OBJECT, FALSE ) || look_19_0.between?( WITH, PLUS ) || look_19_0.between?( ID, DOC ) )
        alt_19 = 1
      end
      case alt_19
      when 1
        # at line 103:18: statement_list
        _last = @input.look
        @state.following.push( TOKENS_FOLLOWING_statement_list_IN_default_clause_531 )
        statement_list68 = statement_list
        @state.following.pop

        @adaptor.add_child( root_1, statement_list68.tree )


      end

      match( UP, nil )
    end
    @adaptor.add_child( root_0, root_1 )
    _last = _save_last_1



    return_value.tree = @adaptor.rule_post_processing( root_0 )

  rescue ANTLR3::Error::RecognitionError => re
    report_error(re)
    recover(re)

  ensure
    # -> uncomment the next line to manually enable rule tracing
    # trace_out( __method__, 18 )

  end
  
  return return_value
end

#do_while_statementObject

parser rule do_while_statement

(in JejuneTree.g) 106:1: do_while_statement : ^( ‘do’ while_statement ) ;



2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
# File 'lib/jejune/grammar/tree.rb', line 2108

def do_while_statement
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 19 )
  return_value = DoWhileStatementReturnValue.new

  # $rule.start = the first token seen before matching
  return_value.start = @input.look

  root_0 = nil

  _last = _first_0 = nil
  string_literal69 = nil
  while_statement70 = nil

  tree_for_string_literal69 = nil

  begin
    root_0 = @adaptor.create_flat_list


    # at line 107:5: ^( 'do' while_statement )
    _save_last_1 = _last = @input.look
    _first_1 = nil
    root_1 = @adaptor.create_flat_list
    _last = @input.look
    string_literal69 = match( DO, TOKENS_FOLLOWING_DO_IN_do_while_statement_549 )

    tree_for_string_literal69 = @adaptor.copy_node( string_literal69 )

    root_1 = @adaptor.become_root( tree_for_string_literal69, root_1 )



    match( DOWN, nil )
    _last = @input.look
    @state.following.push( TOKENS_FOLLOWING_while_statement_IN_do_while_statement_551 )
    while_statement70 = while_statement
    @state.following.pop

    @adaptor.add_child( root_1, while_statement70.tree )

    match( UP, nil )
    @adaptor.add_child( root_0, root_1 )
    _last = _save_last_1



    return_value.tree = @adaptor.rule_post_processing( root_0 )

  rescue ANTLR3::Error::RecognitionError => re
    report_error(re)
    recover(re)

  ensure
    # -> uncomment the next line to manually enable rule tracing
    # trace_out( __method__, 19 )

  end
  
  return return_value
end

#expressionObject

parser rule expression

(in JejuneTree.g) 149:1: expression : ( ^( ‘?’ expression expression expression ) | ^( ‘=’ expression expression ) | ^( ‘*=’ expression expression ) | ^( SLASH_ASGN expression expression ) | ^( MOD_ASGN expression expression ) | ^( ‘+=’ expression expression ) | ^( ‘-=’ expression expression ) | ^( ‘<<=’ expression expression ) | ^( ‘>>=’ expression expression ) | ^( ‘>>>=’ expression expression ) | ^( ‘&=’ expression expression ) | ^( ‘^=’ expression expression ) | ^( ‘||=’ expression expression ) | ^( ‘|=’ expression expression ) | ^( ‘|’ expression expression ) | ^( ‘||’ expression expression ) | ^( ‘&’ expression expression ) | ^( ‘^’ expression expression ) | ^( ‘>>’ expression expression ) | ^( ‘<<’ expression expression ) | ^( ‘>>>’ expression expression ) | ^( ‘-’ expression expression ) | ^( ‘+’ expression expression ) | ^( MOD expression expression ) | ^( SLASH expression expression ) | ^( ‘*’ expression expression ) | ^( ‘==’ expression expression ) | ^( ‘===’ expression expression ) | ^( ‘!=’ expression expression ) | ^( ‘!==’ expression expression ) | ^( ‘>=’ expression expression ) | ^( ‘<=’ expression expression ) | ^( ‘>’ expression expression ) | ^( ‘<’ expression expression ) | ^( ‘instanceof’ expression expression ) | ^( ‘in’ expression expression ) | ^( ‘delete’ expression ) | ^( ‘void’ expression ) | ^( ‘typeof’ expression ) | ^( ‘++’ expression ) | ^( ‘–’ expression ) | ^( UPLUS expression ) | ^( UMINUS expression ) | ^( ‘~’ expression ) | ^( ‘!’ expression ) | ^( POST_INCR expression ) | ^( POST_DECR expression ) | ^( AREF expression expression ) | ^( ‘.’ expression property_name ) | ^( CALL expression arguments ) | ^( ITER parameters block ) | ^( ‘new’ expression ( arguments )? ) | literal );



3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
# File 'lib/jejune/grammar/tree.rb', line 3110

def expression
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 28 )
  return_value = ExpressionReturnValue.new

  # $rule.start = the first token seen before matching
  return_value.start = @input.look

  root_0 = nil

  _last = _first_0 = nil
  char_literal106 = nil
  char_literal110 = nil
  string_literal113 = nil
  __SLASH_ASGN116__ = nil
  __MOD_ASGN119__ = nil
  string_literal122 = nil
  string_literal125 = nil
  string_literal128 = nil
  string_literal131 = nil
  string_literal134 = nil
  string_literal137 = nil
  string_literal140 = nil
  string_literal143 = nil
  string_literal146 = nil
  char_literal149 = nil
  string_literal152 = nil
  char_literal155 = nil
  char_literal158 = nil
  string_literal161 = nil
  string_literal164 = nil
  string_literal167 = nil
  char_literal170 = nil
  char_literal173 = nil
  __MOD176__ = nil
  __SLASH179__ = nil
  char_literal182 = nil
  string_literal185 = nil
  string_literal188 = nil
  string_literal191 = nil
  string_literal194 = nil
  string_literal197 = nil
  string_literal200 = nil
  char_literal203 = nil
  char_literal206 = nil
  string_literal209 = nil
  string_literal212 = nil
  string_literal215 = nil
  string_literal217 = nil
  string_literal219 = nil
  string_literal221 = nil
  string_literal223 = nil
  __UPLUS225__ = nil
  __UMINUS227__ = nil
  char_literal229 = nil
  char_literal231 = nil
  __POST_INCR233__ = nil
  __POST_DECR235__ = nil
  __AREF237__ = nil
  char_literal240 = nil
  __CALL243__ = nil
  __ITER246__ = nil
  string_literal249 = nil
  expression107 = nil
  expression108 = nil
  expression109 = nil
  expression111 = nil
  expression112 = nil
  expression114 = nil
  expression115 = nil
  expression117 = nil
  expression118 = nil
  expression120 = nil
  expression121 = nil
  expression123 = nil
  expression124 = nil
  expression126 = nil
  expression127 = nil
  expression129 = nil
  expression130 = nil
  expression132 = nil
  expression133 = nil
  expression135 = nil
  expression136 = nil
  expression138 = nil
  expression139 = nil
  expression141 = nil
  expression142 = nil
  expression144 = nil
  expression145 = nil
  expression147 = nil
  expression148 = nil
  expression150 = nil
  expression151 = nil
  expression153 = nil
  expression154 = nil
  expression156 = nil
  expression157 = nil
  expression159 = nil
  expression160 = nil
  expression162 = nil
  expression163 = nil
  expression165 = nil
  expression166 = nil
  expression168 = nil
  expression169 = nil
  expression171 = nil
  expression172 = nil
  expression174 = nil
  expression175 = nil
  expression177 = nil
  expression178 = nil
  expression180 = nil
  expression181 = nil
  expression183 = nil
  expression184 = nil
  expression186 = nil
  expression187 = nil
  expression189 = nil
  expression190 = nil
  expression192 = nil
  expression193 = nil
  expression195 = nil
  expression196 = nil
  expression198 = nil
  expression199 = nil
  expression201 = nil
  expression202 = nil
  expression204 = nil
  expression205 = nil
  expression207 = nil
  expression208 = nil
  expression210 = nil
  expression211 = nil
  expression213 = nil
  expression214 = nil
  expression216 = nil
  expression218 = nil
  expression220 = nil
  expression222 = nil
  expression224 = nil
  expression226 = nil
  expression228 = nil
  expression230 = nil
  expression232 = nil
  expression234 = nil
  expression236 = nil
  expression238 = nil
  expression239 = nil
  expression241 = nil
  property_name242 = nil
  expression244 = nil
  arguments245 = nil
  parameters247 = nil
  block248 = nil
  expression250 = nil
  arguments251 = nil
  literal252 = nil

  tree_for_char_literal106 = nil
  tree_for_char_literal110 = nil
  tree_for_string_literal113 = nil
  tree_for_SLASH_ASGN116 = nil
  tree_for_MOD_ASGN119 = nil
  tree_for_string_literal122 = nil
  tree_for_string_literal125 = nil
  tree_for_string_literal128 = nil
  tree_for_string_literal131 = nil
  tree_for_string_literal134 = nil
  tree_for_string_literal137 = nil
  tree_for_string_literal140 = nil
  tree_for_string_literal143 = nil
  tree_for_string_literal146 = nil
  tree_for_char_literal149 = nil
  tree_for_string_literal152 = nil
  tree_for_char_literal155 = nil
  tree_for_char_literal158 = nil
  tree_for_string_literal161 = nil
  tree_for_string_literal164 = nil
  tree_for_string_literal167 = nil
  tree_for_char_literal170 = nil
  tree_for_char_literal173 = nil
  tree_for_MOD176 = nil
  tree_for_SLASH179 = nil
  tree_for_char_literal182 = nil
  tree_for_string_literal185 = nil
  tree_for_string_literal188 = nil
  tree_for_string_literal191 = nil
  tree_for_string_literal194 = nil
  tree_for_string_literal197 = nil
  tree_for_string_literal200 = nil
  tree_for_char_literal203 = nil
  tree_for_char_literal206 = nil
  tree_for_string_literal209 = nil
  tree_for_string_literal212 = nil
  tree_for_string_literal215 = nil
  tree_for_string_literal217 = nil
  tree_for_string_literal219 = nil
  tree_for_string_literal221 = nil
  tree_for_string_literal223 = nil
  tree_for_UPLUS225 = nil
  tree_for_UMINUS227 = nil
  tree_for_char_literal229 = nil
  tree_for_char_literal231 = nil
  tree_for_POST_INCR233 = nil
  tree_for_POST_DECR235 = nil
  tree_for_AREF237 = nil
  tree_for_char_literal240 = nil
  tree_for_CALL243 = nil
  tree_for_ITER246 = nil
  tree_for_string_literal249 = nil

  begin
    # at line 150:3: ( ^( '?' expression expression expression ) | ^( '=' expression expression ) | ^( '*=' expression expression ) | ^( SLASH_ASGN expression expression ) | ^( MOD_ASGN expression expression ) | ^( '+=' expression expression ) | ^( '-=' expression expression ) | ^( '<<=' expression expression ) | ^( '>>=' expression expression ) | ^( '>>>=' expression expression ) | ^( '&=' expression expression ) | ^( '^=' expression expression ) | ^( '||=' expression expression ) | ^( '|=' expression expression ) | ^( '|' expression expression ) | ^( '||' expression expression ) | ^( '&' expression expression ) | ^( '^' expression expression ) | ^( '>>' expression expression ) | ^( '<<' expression expression ) | ^( '>>>' expression expression ) | ^( '-' expression expression ) | ^( '+' expression expression ) | ^( MOD expression expression ) | ^( SLASH expression expression ) | ^( '*' expression expression ) | ^( '==' expression expression ) | ^( '===' expression expression ) | ^( '!=' expression expression ) | ^( '!==' expression expression ) | ^( '>=' expression expression ) | ^( '<=' expression expression ) | ^( '>' expression expression ) | ^( '<' expression expression ) | ^( 'instanceof' expression expression ) | ^( 'in' expression expression ) | ^( 'delete' expression ) | ^( 'void' expression ) | ^( 'typeof' expression ) | ^( '++' expression ) | ^( '--' expression ) | ^( UPLUS expression ) | ^( UMINUS expression ) | ^( '~' expression ) | ^( '!' expression ) | ^( POST_INCR expression ) | ^( POST_DECR expression ) | ^( AREF expression expression ) | ^( '.' expression property_name ) | ^( CALL expression arguments ) | ^( ITER parameters block ) | ^( 'new' expression ( arguments )? ) | literal )
    alt_32 = 53
    case look_32 = @input.peek( 1 )
    when QMARK then alt_32 = 1
    when ASGN then alt_32 = 2
    when STAR_ASGN then alt_32 = 3
    when SLASH_ASGN then alt_32 = 4
    when MOD_ASGN then alt_32 = 5
    when PLUS_ASGN then alt_32 = 6
    when MINUS_ASGN then alt_32 = 7
    when LSHIFT_ASGN then alt_32 = 8
    when RSHIFT_ASGN then alt_32 = 9
    when RSHIFT3_ASGN then alt_32 = 10
    when AMP_ASGN then alt_32 = 11
    when HAT_ASGN then alt_32 = 12
    when OR_ASGN then alt_32 = 13
    when PIPE_ASGN then alt_32 = 14
    when PIPE then alt_32 = 15
    when OR then alt_32 = 16
    when AMP then alt_32 = 17
    when HAT then alt_32 = 18
    when RSHIFT then alt_32 = 19
    when LSHIFT then alt_32 = 20
    when RSHIFT3 then alt_32 = 21
    when MINUS then alt_32 = 22
    when PLUS then alt_32 = 23
    when MOD then alt_32 = 24
    when SLASH then alt_32 = 25
    when STAR then alt_32 = 26
    when EQ then alt_32 = 27
    when EQQ then alt_32 = 28
    when NEQ then alt_32 = 29
    when NEQQ then alt_32 = 30
    when GEQ then alt_32 = 31
    when LEQ then alt_32 = 32
    when GREATER then alt_32 = 33
    when LESS then alt_32 = 34
    when INSTANCEOF then alt_32 = 35
    when IN then alt_32 = 36
    when DELETE then alt_32 = 37
    when VOID then alt_32 = 38
    when TYPEOF then alt_32 = 39
    when INCR then alt_32 = 40
    when DECR then alt_32 = 41
    when UPLUS then alt_32 = 42
    when UMINUS then alt_32 = 43
    when TILDE then alt_32 = 44
    when NOT then alt_32 = 45
    when POST_INCR then alt_32 = 46
    when POST_DECR then alt_32 = 47
    when AREF then alt_32 = 48
    when DOT then alt_32 = 49
    when CALL then alt_32 = 50
    when ITER then alt_32 = 51
    when NEW then alt_32 = 52
    when FUNCTION, ARRAY, ARROW, REGEX, THIS, TRUE, UNDEFINED, NULL, OBJECT, FALSE, ID, IVAR, NUMBER, STRING, DOC then alt_32 = 53
    else
      raise NoViableAlternative( "", 32, 0 )
    end
    case alt_32
    when 1
      root_0 = @adaptor.create_flat_list


      # at line 150:5: ^( '?' expression expression expression )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      char_literal106 = match( QMARK, TOKENS_FOLLOWING_QMARK_IN_expression_813 )

      tree_for_char_literal106 = @adaptor.copy_node( char_literal106 )

      root_1 = @adaptor.become_root( tree_for_char_literal106, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_815 )
      expression107 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression107.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_817 )
      expression108 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression108.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_819 )
      expression109 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression109.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 2
      root_0 = @adaptor.create_flat_list


      # at line 151:5: ^( '=' expression expression )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      char_literal110 = match( ASGN, TOKENS_FOLLOWING_ASGN_IN_expression_829 )

      tree_for_char_literal110 = @adaptor.copy_node( char_literal110 )

      root_1 = @adaptor.become_root( tree_for_char_literal110, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_831 )
      expression111 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression111.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_833 )
      expression112 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression112.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 3
      root_0 = @adaptor.create_flat_list


      # at line 152:5: ^( '*=' expression expression )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      string_literal113 = match( STAR_ASGN, TOKENS_FOLLOWING_STAR_ASGN_IN_expression_843 )

      tree_for_string_literal113 = @adaptor.copy_node( string_literal113 )

      root_1 = @adaptor.become_root( tree_for_string_literal113, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_845 )
      expression114 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression114.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_847 )
      expression115 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression115.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 4
      root_0 = @adaptor.create_flat_list


      # at line 153:5: ^( SLASH_ASGN expression expression )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      __SLASH_ASGN116__ = match( SLASH_ASGN, TOKENS_FOLLOWING_SLASH_ASGN_IN_expression_857 )

      tree_for_SLASH_ASGN116 = @adaptor.copy_node( __SLASH_ASGN116__ )

      root_1 = @adaptor.become_root( tree_for_SLASH_ASGN116, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_859 )
      expression117 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression117.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_861 )
      expression118 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression118.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 5
      root_0 = @adaptor.create_flat_list


      # at line 154:5: ^( MOD_ASGN expression expression )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      __MOD_ASGN119__ = match( MOD_ASGN, TOKENS_FOLLOWING_MOD_ASGN_IN_expression_871 )

      tree_for_MOD_ASGN119 = @adaptor.copy_node( __MOD_ASGN119__ )

      root_1 = @adaptor.become_root( tree_for_MOD_ASGN119, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_873 )
      expression120 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression120.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_875 )
      expression121 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression121.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 6
      root_0 = @adaptor.create_flat_list


      # at line 155:5: ^( '+=' expression expression )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      string_literal122 = match( PLUS_ASGN, TOKENS_FOLLOWING_PLUS_ASGN_IN_expression_885 )

      tree_for_string_literal122 = @adaptor.copy_node( string_literal122 )

      root_1 = @adaptor.become_root( tree_for_string_literal122, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_887 )
      expression123 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression123.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_889 )
      expression124 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression124.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 7
      root_0 = @adaptor.create_flat_list


      # at line 156:5: ^( '-=' expression expression )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      string_literal125 = match( MINUS_ASGN, TOKENS_FOLLOWING_MINUS_ASGN_IN_expression_899 )

      tree_for_string_literal125 = @adaptor.copy_node( string_literal125 )

      root_1 = @adaptor.become_root( tree_for_string_literal125, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_901 )
      expression126 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression126.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_903 )
      expression127 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression127.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 8
      root_0 = @adaptor.create_flat_list


      # at line 157:5: ^( '<<=' expression expression )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      string_literal128 = match( LSHIFT_ASGN, TOKENS_FOLLOWING_LSHIFT_ASGN_IN_expression_913 )

      tree_for_string_literal128 = @adaptor.copy_node( string_literal128 )

      root_1 = @adaptor.become_root( tree_for_string_literal128, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_915 )
      expression129 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression129.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_917 )
      expression130 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression130.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 9
      root_0 = @adaptor.create_flat_list


      # at line 158:5: ^( '>>=' expression expression )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      string_literal131 = match( RSHIFT_ASGN, TOKENS_FOLLOWING_RSHIFT_ASGN_IN_expression_927 )

      tree_for_string_literal131 = @adaptor.copy_node( string_literal131 )

      root_1 = @adaptor.become_root( tree_for_string_literal131, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_929 )
      expression132 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression132.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_931 )
      expression133 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression133.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 10
      root_0 = @adaptor.create_flat_list


      # at line 159:5: ^( '>>>=' expression expression )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      string_literal134 = match( RSHIFT3_ASGN, TOKENS_FOLLOWING_RSHIFT3_ASGN_IN_expression_941 )

      tree_for_string_literal134 = @adaptor.copy_node( string_literal134 )

      root_1 = @adaptor.become_root( tree_for_string_literal134, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_943 )
      expression135 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression135.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_945 )
      expression136 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression136.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 11
      root_0 = @adaptor.create_flat_list


      # at line 160:5: ^( '&=' expression expression )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      string_literal137 = match( AMP_ASGN, TOKENS_FOLLOWING_AMP_ASGN_IN_expression_955 )

      tree_for_string_literal137 = @adaptor.copy_node( string_literal137 )

      root_1 = @adaptor.become_root( tree_for_string_literal137, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_957 )
      expression138 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression138.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_959 )
      expression139 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression139.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 12
      root_0 = @adaptor.create_flat_list


      # at line 161:5: ^( '^=' expression expression )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      string_literal140 = match( HAT_ASGN, TOKENS_FOLLOWING_HAT_ASGN_IN_expression_969 )

      tree_for_string_literal140 = @adaptor.copy_node( string_literal140 )

      root_1 = @adaptor.become_root( tree_for_string_literal140, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_971 )
      expression141 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression141.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_973 )
      expression142 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression142.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 13
      root_0 = @adaptor.create_flat_list


      # at line 162:5: ^( '||=' expression expression )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      string_literal143 = match( OR_ASGN, TOKENS_FOLLOWING_OR_ASGN_IN_expression_983 )

      tree_for_string_literal143 = @adaptor.copy_node( string_literal143 )

      root_1 = @adaptor.become_root( tree_for_string_literal143, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_985 )
      expression144 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression144.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_987 )
      expression145 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression145.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 14
      root_0 = @adaptor.create_flat_list


      # at line 163:5: ^( '|=' expression expression )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      string_literal146 = match( PIPE_ASGN, TOKENS_FOLLOWING_PIPE_ASGN_IN_expression_997 )

      tree_for_string_literal146 = @adaptor.copy_node( string_literal146 )

      root_1 = @adaptor.become_root( tree_for_string_literal146, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_999 )
      expression147 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression147.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1001 )
      expression148 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression148.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 15
      root_0 = @adaptor.create_flat_list


      # at line 164:5: ^( '|' expression expression )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      char_literal149 = match( PIPE, TOKENS_FOLLOWING_PIPE_IN_expression_1011 )

      tree_for_char_literal149 = @adaptor.copy_node( char_literal149 )

      root_1 = @adaptor.become_root( tree_for_char_literal149, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1013 )
      expression150 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression150.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1015 )
      expression151 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression151.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 16
      root_0 = @adaptor.create_flat_list


      # at line 165:5: ^( '||' expression expression )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      string_literal152 = match( OR, TOKENS_FOLLOWING_OR_IN_expression_1025 )

      tree_for_string_literal152 = @adaptor.copy_node( string_literal152 )

      root_1 = @adaptor.become_root( tree_for_string_literal152, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1027 )
      expression153 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression153.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1029 )
      expression154 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression154.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 17
      root_0 = @adaptor.create_flat_list


      # at line 166:5: ^( '&' expression expression )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      char_literal155 = match( AMP, TOKENS_FOLLOWING_AMP_IN_expression_1039 )

      tree_for_char_literal155 = @adaptor.copy_node( char_literal155 )

      root_1 = @adaptor.become_root( tree_for_char_literal155, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1041 )
      expression156 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression156.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1043 )
      expression157 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression157.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 18
      root_0 = @adaptor.create_flat_list


      # at line 167:5: ^( '^' expression expression )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      char_literal158 = match( HAT, TOKENS_FOLLOWING_HAT_IN_expression_1053 )

      tree_for_char_literal158 = @adaptor.copy_node( char_literal158 )

      root_1 = @adaptor.become_root( tree_for_char_literal158, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1055 )
      expression159 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression159.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1057 )
      expression160 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression160.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 19
      root_0 = @adaptor.create_flat_list


      # at line 168:5: ^( '>>' expression expression )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      string_literal161 = match( RSHIFT, TOKENS_FOLLOWING_RSHIFT_IN_expression_1067 )

      tree_for_string_literal161 = @adaptor.copy_node( string_literal161 )

      root_1 = @adaptor.become_root( tree_for_string_literal161, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1069 )
      expression162 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression162.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1071 )
      expression163 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression163.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 20
      root_0 = @adaptor.create_flat_list


      # at line 169:5: ^( '<<' expression expression )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      string_literal164 = match( LSHIFT, TOKENS_FOLLOWING_LSHIFT_IN_expression_1081 )

      tree_for_string_literal164 = @adaptor.copy_node( string_literal164 )

      root_1 = @adaptor.become_root( tree_for_string_literal164, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1083 )
      expression165 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression165.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1085 )
      expression166 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression166.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 21
      root_0 = @adaptor.create_flat_list


      # at line 170:5: ^( '>>>' expression expression )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      string_literal167 = match( RSHIFT3, TOKENS_FOLLOWING_RSHIFT3_IN_expression_1095 )

      tree_for_string_literal167 = @adaptor.copy_node( string_literal167 )

      root_1 = @adaptor.become_root( tree_for_string_literal167, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1097 )
      expression168 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression168.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1099 )
      expression169 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression169.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 22
      root_0 = @adaptor.create_flat_list


      # at line 171:5: ^( '-' expression expression )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      char_literal170 = match( MINUS, TOKENS_FOLLOWING_MINUS_IN_expression_1109 )

      tree_for_char_literal170 = @adaptor.copy_node( char_literal170 )

      root_1 = @adaptor.become_root( tree_for_char_literal170, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1111 )
      expression171 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression171.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1113 )
      expression172 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression172.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 23
      root_0 = @adaptor.create_flat_list


      # at line 172:5: ^( '+' expression expression )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      char_literal173 = match( PLUS, TOKENS_FOLLOWING_PLUS_IN_expression_1123 )

      tree_for_char_literal173 = @adaptor.copy_node( char_literal173 )

      root_1 = @adaptor.become_root( tree_for_char_literal173, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1125 )
      expression174 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression174.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1127 )
      expression175 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression175.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 24
      root_0 = @adaptor.create_flat_list


      # at line 173:5: ^( MOD expression expression )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      __MOD176__ = match( MOD, TOKENS_FOLLOWING_MOD_IN_expression_1137 )

      tree_for_MOD176 = @adaptor.copy_node( __MOD176__ )

      root_1 = @adaptor.become_root( tree_for_MOD176, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1139 )
      expression177 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression177.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1141 )
      expression178 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression178.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 25
      root_0 = @adaptor.create_flat_list


      # at line 174:5: ^( SLASH expression expression )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      __SLASH179__ = match( SLASH, TOKENS_FOLLOWING_SLASH_IN_expression_1151 )

      tree_for_SLASH179 = @adaptor.copy_node( __SLASH179__ )

      root_1 = @adaptor.become_root( tree_for_SLASH179, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1153 )
      expression180 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression180.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1155 )
      expression181 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression181.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 26
      root_0 = @adaptor.create_flat_list


      # at line 175:5: ^( '*' expression expression )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      char_literal182 = match( STAR, TOKENS_FOLLOWING_STAR_IN_expression_1165 )

      tree_for_char_literal182 = @adaptor.copy_node( char_literal182 )

      root_1 = @adaptor.become_root( tree_for_char_literal182, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1167 )
      expression183 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression183.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1169 )
      expression184 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression184.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 27
      root_0 = @adaptor.create_flat_list


      # at line 176:5: ^( '==' expression expression )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      string_literal185 = match( EQ, TOKENS_FOLLOWING_EQ_IN_expression_1179 )

      tree_for_string_literal185 = @adaptor.copy_node( string_literal185 )

      root_1 = @adaptor.become_root( tree_for_string_literal185, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1181 )
      expression186 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression186.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1183 )
      expression187 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression187.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 28
      root_0 = @adaptor.create_flat_list


      # at line 177:5: ^( '===' expression expression )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      string_literal188 = match( EQQ, TOKENS_FOLLOWING_EQQ_IN_expression_1193 )

      tree_for_string_literal188 = @adaptor.copy_node( string_literal188 )

      root_1 = @adaptor.become_root( tree_for_string_literal188, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1195 )
      expression189 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression189.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1197 )
      expression190 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression190.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 29
      root_0 = @adaptor.create_flat_list


      # at line 178:5: ^( '!=' expression expression )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      string_literal191 = match( NEQ, TOKENS_FOLLOWING_NEQ_IN_expression_1207 )

      tree_for_string_literal191 = @adaptor.copy_node( string_literal191 )

      root_1 = @adaptor.become_root( tree_for_string_literal191, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1209 )
      expression192 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression192.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1211 )
      expression193 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression193.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 30
      root_0 = @adaptor.create_flat_list


      # at line 179:5: ^( '!==' expression expression )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      string_literal194 = match( NEQQ, TOKENS_FOLLOWING_NEQQ_IN_expression_1221 )

      tree_for_string_literal194 = @adaptor.copy_node( string_literal194 )

      root_1 = @adaptor.become_root( tree_for_string_literal194, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1223 )
      expression195 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression195.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1225 )
      expression196 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression196.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 31
      root_0 = @adaptor.create_flat_list


      # at line 180:5: ^( '>=' expression expression )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      string_literal197 = match( GEQ, TOKENS_FOLLOWING_GEQ_IN_expression_1235 )

      tree_for_string_literal197 = @adaptor.copy_node( string_literal197 )

      root_1 = @adaptor.become_root( tree_for_string_literal197, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1237 )
      expression198 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression198.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1239 )
      expression199 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression199.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 32
      root_0 = @adaptor.create_flat_list


      # at line 181:5: ^( '<=' expression expression )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      string_literal200 = match( LEQ, TOKENS_FOLLOWING_LEQ_IN_expression_1249 )

      tree_for_string_literal200 = @adaptor.copy_node( string_literal200 )

      root_1 = @adaptor.become_root( tree_for_string_literal200, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1251 )
      expression201 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression201.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1253 )
      expression202 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression202.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 33
      root_0 = @adaptor.create_flat_list


      # at line 182:5: ^( '>' expression expression )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      char_literal203 = match( GREATER, TOKENS_FOLLOWING_GREATER_IN_expression_1263 )

      tree_for_char_literal203 = @adaptor.copy_node( char_literal203 )

      root_1 = @adaptor.become_root( tree_for_char_literal203, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1265 )
      expression204 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression204.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1267 )
      expression205 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression205.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 34
      root_0 = @adaptor.create_flat_list


      # at line 183:5: ^( '<' expression expression )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      char_literal206 = match( LESS, TOKENS_FOLLOWING_LESS_IN_expression_1277 )

      tree_for_char_literal206 = @adaptor.copy_node( char_literal206 )

      root_1 = @adaptor.become_root( tree_for_char_literal206, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1279 )
      expression207 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression207.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1281 )
      expression208 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression208.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 35
      root_0 = @adaptor.create_flat_list


      # at line 184:5: ^( 'instanceof' expression expression )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      string_literal209 = match( INSTANCEOF, TOKENS_FOLLOWING_INSTANCEOF_IN_expression_1291 )

      tree_for_string_literal209 = @adaptor.copy_node( string_literal209 )

      root_1 = @adaptor.become_root( tree_for_string_literal209, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1293 )
      expression210 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression210.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1295 )
      expression211 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression211.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 36
      root_0 = @adaptor.create_flat_list


      # at line 185:5: ^( 'in' expression expression )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      string_literal212 = match( IN, TOKENS_FOLLOWING_IN_IN_expression_1305 )

      tree_for_string_literal212 = @adaptor.copy_node( string_literal212 )

      root_1 = @adaptor.become_root( tree_for_string_literal212, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1307 )
      expression213 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression213.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1309 )
      expression214 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression214.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 37
      root_0 = @adaptor.create_flat_list


      # at line 186:5: ^( 'delete' expression )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      string_literal215 = match( DELETE, TOKENS_FOLLOWING_DELETE_IN_expression_1319 )

      tree_for_string_literal215 = @adaptor.copy_node( string_literal215 )

      root_1 = @adaptor.become_root( tree_for_string_literal215, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1321 )
      expression216 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression216.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 38
      root_0 = @adaptor.create_flat_list


      # at line 187:5: ^( 'void' expression )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      string_literal217 = match( VOID, TOKENS_FOLLOWING_VOID_IN_expression_1331 )

      tree_for_string_literal217 = @adaptor.copy_node( string_literal217 )

      root_1 = @adaptor.become_root( tree_for_string_literal217, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1333 )
      expression218 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression218.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 39
      root_0 = @adaptor.create_flat_list


      # at line 188:5: ^( 'typeof' expression )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      string_literal219 = match( TYPEOF, TOKENS_FOLLOWING_TYPEOF_IN_expression_1343 )

      tree_for_string_literal219 = @adaptor.copy_node( string_literal219 )

      root_1 = @adaptor.become_root( tree_for_string_literal219, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1345 )
      expression220 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression220.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 40
      root_0 = @adaptor.create_flat_list


      # at line 189:5: ^( '++' expression )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      string_literal221 = match( INCR, TOKENS_FOLLOWING_INCR_IN_expression_1355 )

      tree_for_string_literal221 = @adaptor.copy_node( string_literal221 )

      root_1 = @adaptor.become_root( tree_for_string_literal221, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1357 )
      expression222 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression222.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 41
      root_0 = @adaptor.create_flat_list


      # at line 190:5: ^( '--' expression )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      string_literal223 = match( DECR, TOKENS_FOLLOWING_DECR_IN_expression_1367 )

      tree_for_string_literal223 = @adaptor.copy_node( string_literal223 )

      root_1 = @adaptor.become_root( tree_for_string_literal223, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1369 )
      expression224 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression224.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 42
      root_0 = @adaptor.create_flat_list


      # at line 191:5: ^( UPLUS expression )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      __UPLUS225__ = match( UPLUS, TOKENS_FOLLOWING_UPLUS_IN_expression_1379 )

      tree_for_UPLUS225 = @adaptor.copy_node( __UPLUS225__ )

      root_1 = @adaptor.become_root( tree_for_UPLUS225, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1381 )
      expression226 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression226.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 43
      root_0 = @adaptor.create_flat_list


      # at line 192:5: ^( UMINUS expression )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      __UMINUS227__ = match( UMINUS, TOKENS_FOLLOWING_UMINUS_IN_expression_1391 )

      tree_for_UMINUS227 = @adaptor.copy_node( __UMINUS227__ )

      root_1 = @adaptor.become_root( tree_for_UMINUS227, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1393 )
      expression228 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression228.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 44
      root_0 = @adaptor.create_flat_list


      # at line 193:5: ^( '~' expression )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      char_literal229 = match( TILDE, TOKENS_FOLLOWING_TILDE_IN_expression_1403 )

      tree_for_char_literal229 = @adaptor.copy_node( char_literal229 )

      root_1 = @adaptor.become_root( tree_for_char_literal229, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1405 )
      expression230 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression230.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 45
      root_0 = @adaptor.create_flat_list


      # at line 194:5: ^( '!' expression )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      char_literal231 = match( NOT, TOKENS_FOLLOWING_NOT_IN_expression_1415 )

      tree_for_char_literal231 = @adaptor.copy_node( char_literal231 )

      root_1 = @adaptor.become_root( tree_for_char_literal231, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1417 )
      expression232 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression232.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 46
      root_0 = @adaptor.create_flat_list


      # at line 195:5: ^( POST_INCR expression )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      __POST_INCR233__ = match( POST_INCR, TOKENS_FOLLOWING_POST_INCR_IN_expression_1427 )

      tree_for_POST_INCR233 = @adaptor.copy_node( __POST_INCR233__ )

      root_1 = @adaptor.become_root( tree_for_POST_INCR233, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1429 )
      expression234 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression234.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 47
      root_0 = @adaptor.create_flat_list


      # at line 196:5: ^( POST_DECR expression )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      __POST_DECR235__ = match( POST_DECR, TOKENS_FOLLOWING_POST_DECR_IN_expression_1439 )

      tree_for_POST_DECR235 = @adaptor.copy_node( __POST_DECR235__ )

      root_1 = @adaptor.become_root( tree_for_POST_DECR235, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1441 )
      expression236 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression236.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 48
      root_0 = @adaptor.create_flat_list


      # at line 197:5: ^( AREF expression expression )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      __AREF237__ = match( AREF, TOKENS_FOLLOWING_AREF_IN_expression_1451 )

      tree_for_AREF237 = @adaptor.copy_node( __AREF237__ )

      root_1 = @adaptor.become_root( tree_for_AREF237, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1453 )
      expression238 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression238.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1455 )
      expression239 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression239.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 49
      root_0 = @adaptor.create_flat_list


      # at line 198:5: ^( '.' expression property_name )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      char_literal240 = match( DOT, TOKENS_FOLLOWING_DOT_IN_expression_1465 )

      tree_for_char_literal240 = @adaptor.copy_node( char_literal240 )

      root_1 = @adaptor.become_root( tree_for_char_literal240, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1467 )
      expression241 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression241.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_property_name_IN_expression_1469 )
      property_name242 = property_name
      @state.following.pop

      @adaptor.add_child( root_1, property_name242.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 50
      root_0 = @adaptor.create_flat_list


      # at line 199:5: ^( CALL expression arguments )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      __CALL243__ = match( CALL, TOKENS_FOLLOWING_CALL_IN_expression_1479 )

      tree_for_CALL243 = @adaptor.copy_node( __CALL243__ )

      root_1 = @adaptor.become_root( tree_for_CALL243, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1481 )
      expression244 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression244.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_arguments_IN_expression_1483 )
      arguments245 = arguments
      @state.following.pop

      @adaptor.add_child( root_1, arguments245.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 51
      root_0 = @adaptor.create_flat_list


      # at line 200:5: ^( ITER parameters block )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      __ITER246__ = match( ITER, TOKENS_FOLLOWING_ITER_IN_expression_1493 )

      tree_for_ITER246 = @adaptor.copy_node( __ITER246__ )

      root_1 = @adaptor.become_root( tree_for_ITER246, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_parameters_IN_expression_1495 )
      parameters247 = parameters
      @state.following.pop

      @adaptor.add_child( root_1, parameters247.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_block_IN_expression_1497 )
      block248 = block
      @state.following.pop

      @adaptor.add_child( root_1, block248.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 52
      root_0 = @adaptor.create_flat_list


      # at line 201:5: ^( 'new' expression ( arguments )? )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      string_literal249 = match( NEW, TOKENS_FOLLOWING_NEW_IN_expression_1507 )

      tree_for_string_literal249 = @adaptor.copy_node( string_literal249 )

      root_1 = @adaptor.become_root( tree_for_string_literal249, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_1509 )
      expression250 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression250.tree )
      # at line 201:25: ( arguments )?
      alt_31 = 2
      look_31_0 = @input.peek( 1 )

      if ( look_31_0 == ARGUMENTS )
        alt_31 = 1
      end
      case alt_31
      when 1
        # at line 201:25: arguments
        _last = @input.look
        @state.following.push( TOKENS_FOLLOWING_arguments_IN_expression_1511 )
        arguments251 = arguments
        @state.following.pop

        @adaptor.add_child( root_1, arguments251.tree )


      end

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 53
      root_0 = @adaptor.create_flat_list


      # at line 202:5: literal
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_literal_IN_expression_1520 )
      literal252 = literal
      @state.following.pop

      @adaptor.add_child( root_0, literal252.tree )


    end
    return_value.tree = @adaptor.rule_post_processing( root_0 )

  rescue ANTLR3::Error::RecognitionError => re
    report_error(re)
    recover(re)

  ensure
    # -> uncomment the next line to manually enable rule tracing
    # trace_out( __method__, 28 )

  end
  
  return return_value
end

#expression_listObject

parser rule expression_list

(in JejuneTree.g) 141:1: expression_list : expression ( ‘,’ expression )* ;



3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
# File 'lib/jejune/grammar/tree.rb', line 3026

def expression_list
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 27 )
  return_value = ExpressionListReturnValue.new

  # $rule.start = the first token seen before matching
  return_value.start = @input.look

  root_0 = nil

  _last = _first_0 = nil
  char_literal104 = nil
  expression103 = nil
  expression105 = nil

  tree_for_char_literal104 = nil

  begin
    root_0 = @adaptor.create_flat_list


    # at line 146:5: expression ( ',' expression )*
    _last = @input.look
    @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_list_788 )
    expression103 = expression
    @state.following.pop

    @adaptor.add_child( root_0, expression103.tree )
    # at line 146:16: ( ',' expression )*
    while true # decision 30
      alt_30 = 2
      look_30_0 = @input.peek( 1 )

      if ( look_30_0 == COMMA )
        alt_30 = 1

      end
      case alt_30
      when 1
        # at line 146:18: ',' expression
        _last = @input.look
        char_literal104 = match( COMMA, TOKENS_FOLLOWING_COMMA_IN_expression_list_792 )

        tree_for_char_literal104 = @adaptor.copy_node( char_literal104 )

        root_0 = @adaptor.become_root( tree_for_char_literal104, root_0 )

        _last = @input.look
        @state.following.push( TOKENS_FOLLOWING_expression_IN_expression_list_795 )
        expression105 = expression
        @state.following.pop

        @adaptor.add_child( root_0, expression105.tree )


      else
        break # out of loop for decision 30
      end
    end # loop for decision 30


    return_value.tree = @adaptor.rule_post_processing( root_0 )

  rescue ANTLR3::Error::RecognitionError => re
    report_error(re)
    recover(re)

  ensure
    # -> uncomment the next line to manually enable rule tracing
    # trace_out( __method__, 27 )

  end
  
  return return_value
end

#for_loopObject

parser rule for_loop

(in JejuneTree.g) 115:1: for_loop : ( ^( ‘for’ ( variable_statement | expression ) expression expression block ) | ^( ‘each’ ( variable_statement | ID ) expression block ) | ^( FOR_IN ( variable_statement | ID ) expression block ) );



2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
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
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
# File 'lib/jejune/grammar/tree.rb', line 2310

def for_loop
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 21 )
  return_value = ForLoopReturnValue.new

  # $rule.start = the first token seen before matching
  return_value.start = @input.look

  root_0 = nil

  _last = _first_0 = nil
  string_literal77 = nil
  string_literal83 = nil
  __ID85__ = nil
  __FOR_IN88__ = nil
  __ID90__ = nil
  variable_statement78 = nil
  expression79 = nil
  expression80 = nil
  expression81 = nil
  block82 = nil
  variable_statement84 = nil
  expression86 = nil
  block87 = nil
  variable_statement89 = nil
  expression91 = nil
  block92 = nil

  tree_for_string_literal77 = nil
  tree_for_string_literal83 = nil
  tree_for_ID85 = nil
  tree_for_FOR_IN88 = nil
  tree_for_ID90 = nil

  begin
    # at line 116:3: ( ^( 'for' ( variable_statement | expression ) expression expression block ) | ^( 'each' ( variable_statement | ID ) expression block ) | ^( FOR_IN ( variable_statement | ID ) expression block ) )
    alt_24 = 3
    case look_24 = @input.peek( 1 )
    when FOR then alt_24 = 1
    when EACH then alt_24 = 2
    when FOR_IN then alt_24 = 3
    else
      raise NoViableAlternative( "", 24, 0 )
    end
    case alt_24
    when 1
      root_0 = @adaptor.create_flat_list


      # at line 116:5: ^( 'for' ( variable_statement | expression ) expression expression block )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      string_literal77 = match( FOR, TOKENS_FOLLOWING_FOR_IN_for_loop_603 )

      tree_for_string_literal77 = @adaptor.copy_node( string_literal77 )

      root_1 = @adaptor.become_root( tree_for_string_literal77, root_1 )



      match( DOWN, nil )
      # at line 116:15: ( variable_statement | expression )
      alt_21 = 2
      look_21_0 = @input.peek( 1 )

      if ( look_21_0 == VAR )
        alt_21 = 1
      elsif ( look_21_0.between?( AMP, AMP_ASGN ) || look_21_0 == POST_DECR || look_21_0.between?( GEQ, AREF ) || look_21_0.between?( GREATER, HAT ) || look_21_0.between?( ARROW, HAT_ASGN ) || look_21_0 == ASGN || look_21_0 == REGEX || look_21_0 == IN || look_21_0 == INCR || look_21_0.between?( INSTANCEOF, RSHIFT3 ) || look_21_0 == RSHIFT3_ASGN || look_21_0 == RSHIFT_ASGN || look_21_0 == LEQ || look_21_0.between?( LESS, SLASH ) || look_21_0 == SLASH_ASGN || look_21_0.between?( STAR, DECR ) || look_21_0 == STAR_ASGN || look_21_0 == LSHIFT || look_21_0.between?( DELETE, THIS ) || look_21_0.between?( MINUS, TILDE ) || look_21_0.between?( MINUS_ASGN, MOD ) || look_21_0.between?( MOD_ASGN, TYPEOF ) || look_21_0.between?( NEQ, UMINUS ) || look_21_0.between?( NEQQ, UNDEFINED ) || look_21_0 == NEW || look_21_0 == NOT || look_21_0.between?( NULL, UPLUS ) || look_21_0 == OBJECT || look_21_0.between?( EQ, OR_ASGN ) || look_21_0 == FALSE || look_21_0 == PIPE || look_21_0 == PIPE_ASGN || look_21_0 == PLUS || look_21_0.between?( ID, DOC ) )
        alt_21 = 2
      else
        raise NoViableAlternative( "", 21, 0 )
      end
      case alt_21
      when 1
        # at line 116:17: variable_statement
        _last = @input.look
        @state.following.push( TOKENS_FOLLOWING_variable_statement_IN_for_loop_608 )
        variable_statement78 = variable_statement
        @state.following.pop

        @adaptor.add_child( root_1, variable_statement78.tree )


      when 2
        # at line 116:38: expression
        _last = @input.look
        @state.following.push( TOKENS_FOLLOWING_expression_IN_for_loop_612 )
        expression79 = expression
        @state.following.pop

        @adaptor.add_child( root_1, expression79.tree )


      end
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_for_loop_616 )
      expression80 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression80.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_for_loop_618 )
      expression81 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression81.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_block_IN_for_loop_620 )
      block82 = block
      @state.following.pop

      @adaptor.add_child( root_1, block82.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 2
      root_0 = @adaptor.create_flat_list


      # at line 117:5: ^( 'each' ( variable_statement | ID ) expression block )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      string_literal83 = match( EACH, TOKENS_FOLLOWING_EACH_IN_for_loop_630 )

      tree_for_string_literal83 = @adaptor.copy_node( string_literal83 )

      root_1 = @adaptor.become_root( tree_for_string_literal83, root_1 )



      match( DOWN, nil )
      # at line 117:15: ( variable_statement | ID )
      alt_22 = 2
      look_22_0 = @input.peek( 1 )

      if ( look_22_0 == VAR )
        alt_22 = 1
      elsif ( look_22_0 == ID )
        alt_22 = 2
      else
        raise NoViableAlternative( "", 22, 0 )
      end
      case alt_22
      when 1
        # at line 117:17: variable_statement
        _last = @input.look
        @state.following.push( TOKENS_FOLLOWING_variable_statement_IN_for_loop_634 )
        variable_statement84 = variable_statement
        @state.following.pop

        @adaptor.add_child( root_1, variable_statement84.tree )


      when 2
        # at line 117:38: ID
        _last = @input.look
        __ID85__ = match( ID, TOKENS_FOLLOWING_ID_IN_for_loop_638 )

        tree_for_ID85 = @adaptor.copy_node( __ID85__ )

        @adaptor.add_child( root_1, tree_for_ID85 )



      end
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_for_loop_642 )
      expression86 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression86.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_block_IN_for_loop_644 )
      block87 = block
      @state.following.pop

      @adaptor.add_child( root_1, block87.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 3
      root_0 = @adaptor.create_flat_list


      # at line 118:5: ^( FOR_IN ( variable_statement | ID ) expression block )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      __FOR_IN88__ = match( FOR_IN, TOKENS_FOLLOWING_FOR_IN_IN_for_loop_654 )

      tree_for_FOR_IN88 = @adaptor.copy_node( __FOR_IN88__ )

      root_1 = @adaptor.become_root( tree_for_FOR_IN88, root_1 )



      match( DOWN, nil )
      # at line 118:15: ( variable_statement | ID )
      alt_23 = 2
      look_23_0 = @input.peek( 1 )

      if ( look_23_0 == VAR )
        alt_23 = 1
      elsif ( look_23_0 == ID )
        alt_23 = 2
      else
        raise NoViableAlternative( "", 23, 0 )
      end
      case alt_23
      when 1
        # at line 118:17: variable_statement
        _last = @input.look
        @state.following.push( TOKENS_FOLLOWING_variable_statement_IN_for_loop_658 )
        variable_statement89 = variable_statement
        @state.following.pop

        @adaptor.add_child( root_1, variable_statement89.tree )


      when 2
        # at line 118:38: ID
        _last = @input.look
        __ID90__ = match( ID, TOKENS_FOLLOWING_ID_IN_for_loop_662 )

        tree_for_ID90 = @adaptor.copy_node( __ID90__ )

        @adaptor.add_child( root_1, tree_for_ID90 )



      end
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_for_loop_666 )
      expression91 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression91.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_block_IN_for_loop_668 )
      block92 = block
      @state.following.pop

      @adaptor.add_child( root_1, block92.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    end
    return_value.tree = @adaptor.rule_post_processing( root_0 )

  rescue ANTLR3::Error::RecognitionError => re
    report_error(re)
    recover(re)

  ensure
    # -> uncomment the next line to manually enable rule tracing
    # trace_out( __method__, 21 )

  end
  
  return return_value
end

#if_statementObject

parser rule if_statement

(in JejuneTree.g) 89:1: if_statement : ( ^( ‘if’ clause block ( block )? ) | ^( ‘unless’ clause block ( block )? ) );



1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
# File 'lib/jejune/grammar/tree.rb', line 1646

def if_statement
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 15 )
  return_value = IfStatementReturnValue.new

  # $rule.start = the first token seen before matching
  return_value.start = @input.look

  root_0 = nil

  _last = _first_0 = nil
  string_literal52 = nil
  string_literal56 = nil
  clause53 = nil
  block54 = nil
  block55 = nil
  clause57 = nil
  block58 = nil
  block59 = nil

  tree_for_string_literal52 = nil
  tree_for_string_literal56 = nil

  begin
    # at line 90:3: ( ^( 'if' clause block ( block )? ) | ^( 'unless' clause block ( block )? ) )
    alt_15 = 2
    look_15_0 = @input.peek( 1 )

    if ( look_15_0 == IF )
      alt_15 = 1
    elsif ( look_15_0 == UNLESS )
      alt_15 = 2
    else
      raise NoViableAlternative( "", 15, 0 )
    end
    case alt_15
    when 1
      root_0 = @adaptor.create_flat_list


      # at line 90:5: ^( 'if' clause block ( block )? )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      string_literal52 = match( IF, TOKENS_FOLLOWING_IF_IN_if_statement_436 )

      tree_for_string_literal52 = @adaptor.copy_node( string_literal52 )

      root_1 = @adaptor.become_root( tree_for_string_literal52, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_clause_IN_if_statement_438 )
      clause53 = clause
      @state.following.pop

      @adaptor.add_child( root_1, clause53.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_block_IN_if_statement_440 )
      block54 = block
      @state.following.pop

      @adaptor.add_child( root_1, block54.tree )
      # at line 90:26: ( block )?
      alt_13 = 2
      look_13_0 = @input.peek( 1 )

      if ( look_13_0.between?( AMP, AMP_ASGN ) || look_13_0 == POST_DECR || look_13_0.between?( GEQ, AREF ) || look_13_0.between?( GREATER, HAT ) || look_13_0.between?( ARROW, HAT_ASGN ) || look_13_0.between?( ASGN, RETURN ) || look_13_0 == INCR || look_13_0.between?( BREAK, RSHIFT3 ) || look_13_0.between?( LABEL, CATCH ) || look_13_0 == RSHIFT_ASGN || look_13_0 == LEQ || look_13_0.between?( LESS, SLASH ) || look_13_0.between?( SLASH_ASGN, CONTINUE ) || look_13_0.between?( STAR, DECR ) || look_13_0 == STAR_ASGN || look_13_0.between?( LSHIFT, THIS ) || look_13_0 == THROW || look_13_0.between?( MINUS, MOD ) || look_13_0.between?( MOD_ASGN, TYPEOF ) || look_13_0.between?( NEQ, UMINUS ) || look_13_0.between?( NEQQ, UNDEFINED ) || look_13_0.between?( NEW, UPLUS ) || look_13_0.between?( OBJECT, FALSE ) || look_13_0.between?( WITH, PLUS ) || look_13_0.between?( ID, DOC ) )
        alt_13 = 1
      end
      case alt_13
      when 1
        # at line 90:26: block
        _last = @input.look
        @state.following.push( TOKENS_FOLLOWING_block_IN_if_statement_442 )
        block55 = block
        @state.following.pop

        @adaptor.add_child( root_1, block55.tree )


      end

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 2
      root_0 = @adaptor.create_flat_list


      # at line 91:5: ^( 'unless' clause block ( block )? )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      string_literal56 = match( UNLESS, TOKENS_FOLLOWING_UNLESS_IN_if_statement_453 )

      tree_for_string_literal56 = @adaptor.copy_node( string_literal56 )

      root_1 = @adaptor.become_root( tree_for_string_literal56, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_clause_IN_if_statement_455 )
      clause57 = clause
      @state.following.pop

      @adaptor.add_child( root_1, clause57.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_block_IN_if_statement_457 )
      block58 = block
      @state.following.pop

      @adaptor.add_child( root_1, block58.tree )
      # at line 91:30: ( block )?
      alt_14 = 2
      look_14_0 = @input.peek( 1 )

      if ( look_14_0.between?( AMP, AMP_ASGN ) || look_14_0 == POST_DECR || look_14_0.between?( GEQ, AREF ) || look_14_0.between?( GREATER, HAT ) || look_14_0.between?( ARROW, HAT_ASGN ) || look_14_0.between?( ASGN, RETURN ) || look_14_0 == INCR || look_14_0.between?( BREAK, RSHIFT3 ) || look_14_0.between?( LABEL, CATCH ) || look_14_0 == RSHIFT_ASGN || look_14_0 == LEQ || look_14_0.between?( LESS, SLASH ) || look_14_0.between?( SLASH_ASGN, CONTINUE ) || look_14_0.between?( STAR, DECR ) || look_14_0 == STAR_ASGN || look_14_0.between?( LSHIFT, THIS ) || look_14_0 == THROW || look_14_0.between?( MINUS, MOD ) || look_14_0.between?( MOD_ASGN, TYPEOF ) || look_14_0.between?( NEQ, UMINUS ) || look_14_0.between?( NEQQ, UNDEFINED ) || look_14_0.between?( NEW, UPLUS ) || look_14_0.between?( OBJECT, FALSE ) || look_14_0.between?( WITH, PLUS ) || look_14_0.between?( ID, DOC ) )
        alt_14 = 1
      end
      case alt_14
      when 1
        # at line 91:30: block
        _last = @input.look
        @state.following.push( TOKENS_FOLLOWING_block_IN_if_statement_459 )
        block59 = block
        @state.following.pop

        @adaptor.add_child( root_1, block59.tree )


      end

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    end
    return_value.tree = @adaptor.rule_post_processing( root_0 )

  rescue ANTLR3::Error::RecognitionError => re
    report_error(re)
    recover(re)

  ensure
    # -> uncomment the next line to manually enable rule tracing
    # trace_out( __method__, 15 )

  end
  
  return return_value
end

#labelled_statementObject

parser rule labelled_statement

(in JejuneTree.g) 52:1: labelled_statement : ^( LABEL ID block ) ;



810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
# File 'lib/jejune/grammar/tree.rb', line 810

def labelled_statement
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 7 )
  return_value = LabelledStatementReturnValue.new

  # $rule.start = the first token seen before matching
  return_value.start = @input.look

  root_0 = nil

  _last = _first_0 = nil
  __LABEL23__ = nil
  __ID24__ = nil
  block25 = nil

  tree_for_LABEL23 = nil
  tree_for_ID24 = nil

  begin
    root_0 = @adaptor.create_flat_list


    # at line 53:5: ^( LABEL ID block )
    _save_last_1 = _last = @input.look
    _first_1 = nil
    root_1 = @adaptor.create_flat_list
    _last = @input.look
    __LABEL23__ = match( LABEL, TOKENS_FOLLOWING_LABEL_IN_labelled_statement_226 )

    tree_for_LABEL23 = @adaptor.copy_node( __LABEL23__ )

    root_1 = @adaptor.become_root( tree_for_LABEL23, root_1 )



    match( DOWN, nil )
    _last = @input.look
    __ID24__ = match( ID, TOKENS_FOLLOWING_ID_IN_labelled_statement_228 )

    tree_for_ID24 = @adaptor.copy_node( __ID24__ )

    @adaptor.add_child( root_1, tree_for_ID24 )

    _last = @input.look
    @state.following.push( TOKENS_FOLLOWING_block_IN_labelled_statement_230 )
    block25 = block
    @state.following.pop

    @adaptor.add_child( root_1, block25.tree )

    match( UP, nil )
    @adaptor.add_child( root_0, root_1 )
    _last = _save_last_1



    return_value.tree = @adaptor.rule_post_processing( root_0 )

  rescue ANTLR3::Error::RecognitionError => re
    report_error(re)
    recover(re)

  ensure
    # -> uncomment the next line to manually enable rule tracing
    # trace_out( __method__, 7 )

  end
  
  return return_value
end

#literalObject

parser rule literal

(in JejuneTree.g) 228:1: literal : ( ‘this’ | IVAR | ID | ‘null’ | ‘true’ | ‘false’ | ‘undefined’ | NUMBER | STRING | DOC | REGEX | ^( ARRAY ( argument )* ) | ^( OBJECT ( property_definition )* ) | ^( ‘function’ ( ID )? parameters statement_block ) | ^( ‘->’ ( parameters )? statement_block ) );



5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
# File 'lib/jejune/grammar/tree.rb', line 5725

def literal
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 33 )
  return_value = LiteralReturnValue.new

  # $rule.start = the first token seen before matching
  return_value.start = @input.look

  root_0 = nil

  _last = _first_0 = nil
  string_literal267 = nil
  __IVAR268__ = nil
  __ID269__ = nil
  string_literal270 = nil
  string_literal271 = nil
  string_literal272 = nil
  string_literal273 = nil
  __NUMBER274__ = nil
  __STRING275__ = nil
  __DOC276__ = nil
  __REGEX277__ = nil
  __ARRAY278__ = nil
  __OBJECT280__ = nil
  string_literal282 = nil
  __ID283__ = nil
  string_literal286 = nil
  argument279 = nil
  property_definition281 = nil
  parameters284 = nil
  statement_block285 = nil
  parameters287 = nil
  statement_block288 = nil

  tree_for_string_literal267 = nil
  tree_for_IVAR268 = nil
  tree_for_ID269 = nil
  tree_for_string_literal270 = nil
  tree_for_string_literal271 = nil
  tree_for_string_literal272 = nil
  tree_for_string_literal273 = nil
  tree_for_NUMBER274 = nil
  tree_for_STRING275 = nil
  tree_for_DOC276 = nil
  tree_for_REGEX277 = nil
  tree_for_ARRAY278 = nil
  tree_for_OBJECT280 = nil
  tree_for_string_literal282 = nil
  tree_for_ID283 = nil
  tree_for_string_literal286 = nil

  begin
    # at line 229:3: ( 'this' | IVAR | ID | 'null' | 'true' | 'false' | 'undefined' | NUMBER | STRING | DOC | REGEX | ^( ARRAY ( argument )* ) | ^( OBJECT ( property_definition )* ) | ^( 'function' ( ID )? parameters statement_block ) | ^( '->' ( parameters )? statement_block ) )
    alt_41 = 15
    case look_41 = @input.peek( 1 )
    when THIS then alt_41 = 1
    when IVAR then alt_41 = 2
    when ID then alt_41 = 3
    when NULL then alt_41 = 4
    when TRUE then alt_41 = 5
    when FALSE then alt_41 = 6
    when UNDEFINED then alt_41 = 7
    when NUMBER then alt_41 = 8
    when STRING then alt_41 = 9
    when DOC then alt_41 = 10
    when REGEX then alt_41 = 11
    when ARRAY then alt_41 = 12
    when OBJECT then alt_41 = 13
    when FUNCTION then alt_41 = 14
    when ARROW then alt_41 = 15
    else
      raise NoViableAlternative( "", 41, 0 )
    end
    case alt_41
    when 1
      root_0 = @adaptor.create_flat_list


      # at line 229:5: 'this'
      _last = @input.look
      string_literal267 = match( THIS, TOKENS_FOLLOWING_THIS_IN_literal_1643 )

      tree_for_string_literal267 = @adaptor.copy_node( string_literal267 )

      @adaptor.add_child( root_0, tree_for_string_literal267 )



    when 2
      root_0 = @adaptor.create_flat_list


      # at line 230:5: IVAR
      _last = @input.look
      __IVAR268__ = match( IVAR, TOKENS_FOLLOWING_IVAR_IN_literal_1649 )

      tree_for_IVAR268 = @adaptor.copy_node( __IVAR268__ )

      @adaptor.add_child( root_0, tree_for_IVAR268 )



    when 3
      root_0 = @adaptor.create_flat_list


      # at line 231:5: ID
      _last = @input.look
      __ID269__ = match( ID, TOKENS_FOLLOWING_ID_IN_literal_1655 )

      tree_for_ID269 = @adaptor.copy_node( __ID269__ )

      @adaptor.add_child( root_0, tree_for_ID269 )



    when 4
      root_0 = @adaptor.create_flat_list


      # at line 232:5: 'null'
      _last = @input.look
      string_literal270 = match( NULL, TOKENS_FOLLOWING_NULL_IN_literal_1661 )

      tree_for_string_literal270 = @adaptor.copy_node( string_literal270 )

      @adaptor.add_child( root_0, tree_for_string_literal270 )



    when 5
      root_0 = @adaptor.create_flat_list


      # at line 233:5: 'true'
      _last = @input.look
      string_literal271 = match( TRUE, TOKENS_FOLLOWING_TRUE_IN_literal_1667 )

      tree_for_string_literal271 = @adaptor.copy_node( string_literal271 )

      @adaptor.add_child( root_0, tree_for_string_literal271 )



    when 6
      root_0 = @adaptor.create_flat_list


      # at line 234:5: 'false'
      _last = @input.look
      string_literal272 = match( FALSE, TOKENS_FOLLOWING_FALSE_IN_literal_1673 )

      tree_for_string_literal272 = @adaptor.copy_node( string_literal272 )

      @adaptor.add_child( root_0, tree_for_string_literal272 )



    when 7
      root_0 = @adaptor.create_flat_list


      # at line 235:5: 'undefined'
      _last = @input.look
      string_literal273 = match( UNDEFINED, TOKENS_FOLLOWING_UNDEFINED_IN_literal_1679 )

      tree_for_string_literal273 = @adaptor.copy_node( string_literal273 )

      @adaptor.add_child( root_0, tree_for_string_literal273 )



    when 8
      root_0 = @adaptor.create_flat_list


      # at line 236:5: NUMBER
      _last = @input.look
      __NUMBER274__ = match( NUMBER, TOKENS_FOLLOWING_NUMBER_IN_literal_1685 )

      tree_for_NUMBER274 = @adaptor.copy_node( __NUMBER274__ )

      @adaptor.add_child( root_0, tree_for_NUMBER274 )



    when 9
      root_0 = @adaptor.create_flat_list


      # at line 237:5: STRING
      _last = @input.look
      __STRING275__ = match( STRING, TOKENS_FOLLOWING_STRING_IN_literal_1691 )

      tree_for_STRING275 = @adaptor.copy_node( __STRING275__ )

      @adaptor.add_child( root_0, tree_for_STRING275 )



    when 10
      root_0 = @adaptor.create_flat_list


      # at line 238:5: DOC
      _last = @input.look
      __DOC276__ = match( DOC, TOKENS_FOLLOWING_DOC_IN_literal_1697 )

      tree_for_DOC276 = @adaptor.copy_node( __DOC276__ )

      @adaptor.add_child( root_0, tree_for_DOC276 )



    when 11
      root_0 = @adaptor.create_flat_list


      # at line 239:5: REGEX
      _last = @input.look
      __REGEX277__ = match( REGEX, TOKENS_FOLLOWING_REGEX_IN_literal_1703 )

      tree_for_REGEX277 = @adaptor.copy_node( __REGEX277__ )

      @adaptor.add_child( root_0, tree_for_REGEX277 )



    when 12
      root_0 = @adaptor.create_flat_list


      # at line 240:5: ^( ARRAY ( argument )* )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      __ARRAY278__ = match( ARRAY, TOKENS_FOLLOWING_ARRAY_IN_literal_1711 )

      tree_for_ARRAY278 = @adaptor.copy_node( __ARRAY278__ )

      root_1 = @adaptor.become_root( tree_for_ARRAY278, root_1 )



      if @input.peek == DOWN
        match( DOWN, nil )
        # at line 240:14: ( argument )*
        while true # decision 37
          alt_37 = 2
          look_37_0 = @input.peek( 1 )

          if ( look_37_0.between?( AMP, AMP_ASGN ) || look_37_0 == POST_DECR || look_37_0.between?( GEQ, AREF ) || look_37_0.between?( GREATER, HAT ) || look_37_0.between?( ARROW, HAT_ASGN ) || look_37_0 == ASGN || look_37_0 == REGEX || look_37_0 == IN || look_37_0 == INCR || look_37_0.between?( INSTANCEOF, RSHIFT3 ) || look_37_0 == RSHIFT3_ASGN || look_37_0.between?( RSHIFT_ASGN, COLON ) || look_37_0 == LEQ || look_37_0.between?( LESS, SLASH ) || look_37_0 == SLASH_ASGN || look_37_0.between?( STAR, DECR ) || look_37_0 == STAR_ASGN || look_37_0 == LSHIFT || look_37_0.between?( DELETE, THIS ) || look_37_0.between?( MINUS, TILDE ) || look_37_0.between?( MINUS_ASGN, MOD ) || look_37_0.between?( MOD_ASGN, TYPEOF ) || look_37_0.between?( NEQ, UMINUS ) || look_37_0.between?( NEQQ, UNDEFINED ) || look_37_0 == NEW || look_37_0 == NOT || look_37_0.between?( NULL, UPLUS ) || look_37_0 == OBJECT || look_37_0.between?( EQ, OR_ASGN ) || look_37_0 == FALSE || look_37_0 == PIPE || look_37_0 == PIPE_ASGN || look_37_0 == PLUS || look_37_0.between?( ID, DOC ) )
            alt_37 = 1

          end
          case alt_37
          when 1
            # at line 240:14: argument
            _last = @input.look
            @state.following.push( TOKENS_FOLLOWING_argument_IN_literal_1713 )
            argument279 = argument
            @state.following.pop

            @adaptor.add_child( root_1, argument279.tree )


          else
            break # out of loop for decision 37
          end
        end # loop for decision 37

        match( UP, nil )
      end
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 13
      root_0 = @adaptor.create_flat_list


      # at line 241:5: ^( OBJECT ( property_definition )* )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      __OBJECT280__ = match( OBJECT, TOKENS_FOLLOWING_OBJECT_IN_literal_1724 )

      tree_for_OBJECT280 = @adaptor.copy_node( __OBJECT280__ )

      root_1 = @adaptor.become_root( tree_for_OBJECT280, root_1 )



      if @input.peek == DOWN
        match( DOWN, nil )
        # at line 241:15: ( property_definition )*
        while true # decision 38
          alt_38 = 2
          look_38_0 = @input.peek( 1 )

          if ( look_38_0 == GET || look_38_0 == COLON || look_38_0 == SET )
            alt_38 = 1

          end
          case alt_38
          when 1
            # at line 241:15: property_definition
            _last = @input.look
            @state.following.push( TOKENS_FOLLOWING_property_definition_IN_literal_1726 )
            property_definition281 = property_definition
            @state.following.pop

            @adaptor.add_child( root_1, property_definition281.tree )


          else
            break # out of loop for decision 38
          end
        end # loop for decision 38

        match( UP, nil )
      end
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 14
      root_0 = @adaptor.create_flat_list


      # at line 242:5: ^( 'function' ( ID )? parameters statement_block )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      string_literal282 = match( FUNCTION, TOKENS_FOLLOWING_FUNCTION_IN_literal_1737 )

      tree_for_string_literal282 = @adaptor.copy_node( string_literal282 )

      root_1 = @adaptor.become_root( tree_for_string_literal282, root_1 )



      match( DOWN, nil )
      # at line 242:19: ( ID )?
      alt_39 = 2
      look_39_0 = @input.peek( 1 )

      if ( look_39_0 == ID )
        alt_39 = 1
      end
      case alt_39
      when 1
        # at line 242:19: ID
        _last = @input.look
        __ID283__ = match( ID, TOKENS_FOLLOWING_ID_IN_literal_1739 )

        tree_for_ID283 = @adaptor.copy_node( __ID283__ )

        @adaptor.add_child( root_1, tree_for_ID283 )



      end
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_parameters_IN_literal_1742 )
      parameters284 = parameters
      @state.following.pop

      @adaptor.add_child( root_1, parameters284.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_statement_block_IN_literal_1744 )
      statement_block285 = statement_block
      @state.following.pop

      @adaptor.add_child( root_1, statement_block285.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 15
      root_0 = @adaptor.create_flat_list


      # at line 243:5: ^( '->' ( parameters )? statement_block )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      string_literal286 = match( ARROW, TOKENS_FOLLOWING_ARROW_IN_literal_1754 )

      tree_for_string_literal286 = @adaptor.copy_node( string_literal286 )

      root_1 = @adaptor.become_root( tree_for_string_literal286, root_1 )



      match( DOWN, nil )
      # at line 243:13: ( parameters )?
      alt_40 = 2
      look_40_0 = @input.peek( 1 )

      if ( look_40_0 == PARAMS )
        alt_40 = 1
      end
      case alt_40
      when 1
        # at line 243:13: parameters
        _last = @input.look
        @state.following.push( TOKENS_FOLLOWING_parameters_IN_literal_1756 )
        parameters287 = parameters
        @state.following.pop

        @adaptor.add_child( root_1, parameters287.tree )


      end
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_statement_block_IN_literal_1759 )
      statement_block288 = statement_block
      @state.following.pop

      @adaptor.add_child( root_1, statement_block288.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    end
    return_value.tree = @adaptor.rule_post_processing( root_0 )

  rescue ANTLR3::Error::RecognitionError => re
    report_error(re)
    recover(re)

  ensure
    # -> uncomment the next line to manually enable rule tracing
    # trace_out( __method__, 33 )

  end
  
  return return_value
end

#parameterObject

parser rule parameter

(in JejuneTree.g) 218:1: parameter : ( ^( SPLAT ID ) | ^( ‘=’ ID expression ) | ID );



5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
# File 'lib/jejune/grammar/tree.rb', line 5582

def parameter
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 32 )
  return_value = ParameterReturnValue.new

  # $rule.start = the first token seen before matching
  return_value.start = @input.look

  root_0 = nil

  _last = _first_0 = nil
  __SPLAT261__ = nil
  __ID262__ = nil
  char_literal263 = nil
  __ID264__ = nil
  __ID266__ = nil
  expression265 = nil

  tree_for_SPLAT261 = nil
  tree_for_ID262 = nil
  tree_for_char_literal263 = nil
  tree_for_ID264 = nil
  tree_for_ID266 = nil

  begin
    # at line 219:3: ( ^( SPLAT ID ) | ^( '=' ID expression ) | ID )
    alt_36 = 3
    case look_36 = @input.peek( 1 )
    when SPLAT then alt_36 = 1
    when ASGN then alt_36 = 2
    when ID then alt_36 = 3
    else
      raise NoViableAlternative( "", 36, 0 )
    end
    case alt_36
    when 1
      root_0 = @adaptor.create_flat_list


      # at line 219:5: ^( SPLAT ID )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      __SPLAT261__ = match( SPLAT, TOKENS_FOLLOWING_SPLAT_IN_parameter_1602 )

      tree_for_SPLAT261 = @adaptor.copy_node( __SPLAT261__ )

      root_1 = @adaptor.become_root( tree_for_SPLAT261, root_1 )



      match( DOWN, nil )
      _last = @input.look
      __ID262__ = match( ID, TOKENS_FOLLOWING_ID_IN_parameter_1604 )

      tree_for_ID262 = @adaptor.copy_node( __ID262__ )

      @adaptor.add_child( root_1, tree_for_ID262 )


      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 2
      root_0 = @adaptor.create_flat_list


      # at line 220:5: ^( '=' ID expression )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      char_literal263 = match( ASGN, TOKENS_FOLLOWING_ASGN_IN_parameter_1614 )

      tree_for_char_literal263 = @adaptor.copy_node( char_literal263 )

      root_1 = @adaptor.become_root( tree_for_char_literal263, root_1 )



      match( DOWN, nil )
      _last = @input.look
      __ID264__ = match( ID, TOKENS_FOLLOWING_ID_IN_parameter_1616 )

      tree_for_ID264 = @adaptor.copy_node( __ID264__ )

      @adaptor.add_child( root_1, tree_for_ID264 )

      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_parameter_1618 )
      expression265 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression265.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 3
      root_0 = @adaptor.create_flat_list


      # at line 221:5: ID
      _last = @input.look
      __ID266__ = match( ID, TOKENS_FOLLOWING_ID_IN_parameter_1626 )

      tree_for_ID266 = @adaptor.copy_node( __ID266__ )

      @adaptor.add_child( root_0, tree_for_ID266 )



    end
    return_value.tree = @adaptor.rule_post_processing( root_0 )

  rescue ANTLR3::Error::RecognitionError => re
    report_error(re)
    recover(re)

  ensure
    # -> uncomment the next line to manually enable rule tracing
    # trace_out( __method__, 32 )

  end
  
  return return_value
end

#parametersObject

parser rule parameters

(in JejuneTree.g) 214:1: parameters : ^( PARAMS ( parameter )* ) ;



5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
# File 'lib/jejune/grammar/tree.rb', line 5492

def parameters
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 31 )
  return_value = ParametersReturnValue.new

  # $rule.start = the first token seen before matching
  return_value.start = @input.look

  root_0 = nil

  _last = _first_0 = nil
  __PARAMS259__ = nil
  parameter260 = nil

  tree_for_PARAMS259 = nil

  begin
    root_0 = @adaptor.create_flat_list


    # at line 215:5: ^( PARAMS ( parameter )* )
    _save_last_1 = _last = @input.look
    _first_1 = nil
    root_1 = @adaptor.create_flat_list
    _last = @input.look
    __PARAMS259__ = match( PARAMS, TOKENS_FOLLOWING_PARAMS_IN_parameters_1582 )

    tree_for_PARAMS259 = @adaptor.copy_node( __PARAMS259__ )

    root_1 = @adaptor.become_root( tree_for_PARAMS259, root_1 )



    if @input.peek == DOWN
      match( DOWN, nil )
      # at line 215:15: ( parameter )*
      while true # decision 35
        alt_35 = 2
        look_35_0 = @input.peek( 1 )

        if ( look_35_0 == ASGN || look_35_0 == SPLAT || look_35_0 == ID )
          alt_35 = 1

        end
        case alt_35
        when 1
          # at line 215:15: parameter
          _last = @input.look
          @state.following.push( TOKENS_FOLLOWING_parameter_IN_parameters_1584 )
          parameter260 = parameter
          @state.following.pop

          @adaptor.add_child( root_1, parameter260.tree )


        else
          break # out of loop for decision 35
        end
      end # loop for decision 35

      match( UP, nil )
    end
    @adaptor.add_child( root_0, root_1 )
    _last = _save_last_1



    return_value.tree = @adaptor.rule_post_processing( root_0 )

  rescue ANTLR3::Error::RecognitionError => re
    report_error(re)
    recover(re)

  ensure
    # -> uncomment the next line to manually enable rule tracing
    # trace_out( __method__, 31 )

  end
  
  return return_value
end

#programObject

parser rule program

(in JejuneTree.g) 9:1: program : ( statement )+ ;



177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
# File 'lib/jejune/grammar/tree.rb', line 177

def program
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 1 )
  return_value = ProgramReturnValue.new

  # $rule.start = the first token seen before matching
  return_value.start = @input.look

  root_0 = nil

  _last = _first_0 = nil
  statement1 = nil


  begin
    root_0 = @adaptor.create_flat_list


    # at line 14:5: ( statement )+
    # at file 14:5: ( statement )+
    match_count_1 = 0
    while true
      alt_1 = 2
      look_1_0 = @input.peek( 1 )

      if ( look_1_0.between?( AMP, AMP_ASGN ) || look_1_0 == POST_DECR || look_1_0.between?( GEQ, AREF ) || look_1_0.between?( GREATER, HAT ) || look_1_0.between?( ARROW, HAT_ASGN ) || look_1_0.between?( ASGN, REGEX ) || look_1_0.between?( IN, RETURN ) || look_1_0 == INCR || look_1_0.between?( BREAK, RSHIFT3 ) || look_1_0.between?( LABEL, CATCH ) || look_1_0 == RSHIFT_ASGN || look_1_0 == LEQ || look_1_0.between?( LESS, SLASH ) || look_1_0.between?( SLASH_ASGN, CONTINUE ) || look_1_0.between?( STAR, DECR ) || look_1_0 == STAR_ASGN || look_1_0.between?( LSHIFT, THIS ) || look_1_0 == THROW || look_1_0.between?( MINUS, MOD ) || look_1_0.between?( MOD_ASGN, TYPEOF ) || look_1_0.between?( NEQ, UMINUS ) || look_1_0.between?( NEQQ, UNDEFINED ) || look_1_0.between?( NEW, UPLUS ) || look_1_0.between?( OBJECT, FALSE ) || look_1_0.between?( WITH, PLUS ) || look_1_0.between?( ID, DOC ) )
        alt_1 = 1

      end
      case alt_1
      when 1
        # at line 14:5: statement
        _last = @input.look
        @state.following.push( TOKENS_FOLLOWING_statement_IN_program_43 )
        statement1 = statement
        @state.following.pop

        @adaptor.add_child( root_0, statement1.tree )


      else
        match_count_1 > 0 and break
        eee = EarlyExit(1)


        raise eee
      end
      match_count_1 += 1
    end



    return_value.tree = @adaptor.rule_post_processing( root_0 )

  rescue ANTLR3::Error::RecognitionError => re
    report_error(re)
    recover(re)

  ensure
    # -> uncomment the next line to manually enable rule tracing
    # trace_out( __method__, 1 )

  end
  
  return return_value
end

#property_definitionObject

parser rule property_definition

(in JejuneTree.g) 246:1: property_definition : ( ^( ‘get’ ID parameters block ) | ^( ‘set’ ID parameters block ) | ^( ‘:’ property_name expression ) );



6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
# File 'lib/jejune/grammar/tree.rb', line 6186

def property_definition
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 34 )
  return_value = PropertyDefinitionReturnValue.new

  # $rule.start = the first token seen before matching
  return_value.start = @input.look

  root_0 = nil

  _last = _first_0 = nil
  string_literal289 = nil
  __ID290__ = nil
  string_literal293 = nil
  __ID294__ = nil
  char_literal297 = nil
  parameters291 = nil
  block292 = nil
  parameters295 = nil
  block296 = nil
  property_name298 = nil
  expression299 = nil

  tree_for_string_literal289 = nil
  tree_for_ID290 = nil
  tree_for_string_literal293 = nil
  tree_for_ID294 = nil
  tree_for_char_literal297 = nil

  begin
    # at line 247:3: ( ^( 'get' ID parameters block ) | ^( 'set' ID parameters block ) | ^( ':' property_name expression ) )
    alt_42 = 3
    case look_42 = @input.peek( 1 )
    when GET then alt_42 = 1
    when SET then alt_42 = 2
    when COLON then alt_42 = 3
    else
      raise NoViableAlternative( "", 42, 0 )
    end
    case alt_42
    when 1
      root_0 = @adaptor.create_flat_list


      # at line 247:5: ^( 'get' ID parameters block )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      string_literal289 = match( GET, TOKENS_FOLLOWING_GET_IN_property_definition_1776 )

      tree_for_string_literal289 = @adaptor.copy_node( string_literal289 )

      root_1 = @adaptor.become_root( tree_for_string_literal289, root_1 )



      match( DOWN, nil )
      _last = @input.look
      __ID290__ = match( ID, TOKENS_FOLLOWING_ID_IN_property_definition_1778 )

      tree_for_ID290 = @adaptor.copy_node( __ID290__ )

      @adaptor.add_child( root_1, tree_for_ID290 )

      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_parameters_IN_property_definition_1780 )
      parameters291 = parameters
      @state.following.pop

      @adaptor.add_child( root_1, parameters291.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_block_IN_property_definition_1782 )
      block292 = block
      @state.following.pop

      @adaptor.add_child( root_1, block292.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 2
      root_0 = @adaptor.create_flat_list


      # at line 248:5: ^( 'set' ID parameters block )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      string_literal293 = match( SET, TOKENS_FOLLOWING_SET_IN_property_definition_1792 )

      tree_for_string_literal293 = @adaptor.copy_node( string_literal293 )

      root_1 = @adaptor.become_root( tree_for_string_literal293, root_1 )



      match( DOWN, nil )
      _last = @input.look
      __ID294__ = match( ID, TOKENS_FOLLOWING_ID_IN_property_definition_1794 )

      tree_for_ID294 = @adaptor.copy_node( __ID294__ )

      @adaptor.add_child( root_1, tree_for_ID294 )

      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_parameters_IN_property_definition_1796 )
      parameters295 = parameters
      @state.following.pop

      @adaptor.add_child( root_1, parameters295.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_block_IN_property_definition_1798 )
      block296 = block
      @state.following.pop

      @adaptor.add_child( root_1, block296.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 3
      root_0 = @adaptor.create_flat_list


      # at line 249:5: ^( ':' property_name expression )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      char_literal297 = match( COLON, TOKENS_FOLLOWING_COLON_IN_property_definition_1808 )

      tree_for_char_literal297 = @adaptor.copy_node( char_literal297 )

      root_1 = @adaptor.become_root( tree_for_char_literal297, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_property_name_IN_property_definition_1810 )
      property_name298 = property_name
      @state.following.pop

      @adaptor.add_child( root_1, property_name298.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_property_definition_1812 )
      expression299 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression299.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    end
    return_value.tree = @adaptor.rule_post_processing( root_0 )

  rescue ANTLR3::Error::RecognitionError => re
    report_error(re)
    recover(re)

  ensure
    # -> uncomment the next line to manually enable rule tracing
    # trace_out( __method__, 34 )

  end
  
  return return_value
end

#property_nameObject

parser rule property_name

(in JejuneTree.g) 252:1: property_name : ( ID | STRING | NUMBER );



6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
# File 'lib/jejune/grammar/tree.rb', line 6375

def property_name
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 35 )
  return_value = PropertyNameReturnValue.new

  # $rule.start = the first token seen before matching
  return_value.start = @input.look

  root_0 = nil

  _last = _first_0 = nil
  set300 = nil

  tree_for_set300 = nil

  begin
    root_0 = @adaptor.create_flat_list


    # at line 
    _last = @input.look
    set300 = @input.look
    if @input.peek(1) == ID || @input.peek( 1 ).between?( NUMBER, STRING )
      @input.consume


      tree_for_set300 = @adaptor.copy_node( set300 )

      @adaptor.add_child( root_0, tree_for_set300 )

      @state.error_recovery = false
    else
      mse = MismatchedSet( nil )
      raise mse
    end





    return_value.tree = @adaptor.rule_post_processing( root_0 )

  rescue ANTLR3::Error::RecognitionError => re
    report_error(re)
    recover(re)

  ensure
    # -> uncomment the next line to manually enable rule tracing
    # trace_out( __method__, 35 )

  end
  
  return return_value
end

#return_statementObject

parser rule return_statement

(in JejuneTree.g) 129:1: return_statement : ^( ‘return’ ( expression )? ) ;



2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
# File 'lib/jejune/grammar/tree.rb', line 2771

def return_statement
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 24 )
  return_value = ReturnStatementReturnValue.new

  # $rule.start = the first token seen before matching
  return_value.start = @input.look

  root_0 = nil

  _last = _first_0 = nil
  string_literal97 = nil
  expression98 = nil

  tree_for_string_literal97 = nil

  begin
    root_0 = @adaptor.create_flat_list


    # at line 130:5: ^( 'return' ( expression )? )
    _save_last_1 = _last = @input.look
    _first_1 = nil
    root_1 = @adaptor.create_flat_list
    _last = @input.look
    string_literal97 = match( RETURN, TOKENS_FOLLOWING_RETURN_IN_return_statement_725 )

    tree_for_string_literal97 = @adaptor.copy_node( string_literal97 )

    root_1 = @adaptor.become_root( tree_for_string_literal97, root_1 )



    if @input.peek == DOWN
      match( DOWN, nil )
      # at line 130:17: ( expression )?
      alt_27 = 2
      look_27_0 = @input.peek( 1 )

      if ( look_27_0.between?( AMP, AMP_ASGN ) || look_27_0 == POST_DECR || look_27_0.between?( GEQ, AREF ) || look_27_0.between?( GREATER, HAT ) || look_27_0.between?( ARROW, HAT_ASGN ) || look_27_0 == ASGN || look_27_0 == REGEX || look_27_0 == IN || look_27_0 == INCR || look_27_0.between?( INSTANCEOF, RSHIFT3 ) || look_27_0 == RSHIFT3_ASGN || look_27_0 == RSHIFT_ASGN || look_27_0 == LEQ || look_27_0.between?( LESS, SLASH ) || look_27_0 == SLASH_ASGN || look_27_0.between?( STAR, DECR ) || look_27_0 == STAR_ASGN || look_27_0 == LSHIFT || look_27_0.between?( DELETE, THIS ) || look_27_0.between?( MINUS, TILDE ) || look_27_0.between?( MINUS_ASGN, MOD ) || look_27_0.between?( MOD_ASGN, TYPEOF ) || look_27_0.between?( NEQ, UMINUS ) || look_27_0.between?( NEQQ, UNDEFINED ) || look_27_0 == NEW || look_27_0 == NOT || look_27_0.between?( NULL, UPLUS ) || look_27_0 == OBJECT || look_27_0.between?( EQ, OR_ASGN ) || look_27_0 == FALSE || look_27_0 == PIPE || look_27_0 == PIPE_ASGN || look_27_0 == PLUS || look_27_0.between?( ID, DOC ) )
        alt_27 = 1
      end
      case alt_27
      when 1
        # at line 130:17: expression
        _last = @input.look
        @state.following.push( TOKENS_FOLLOWING_expression_IN_return_statement_727 )
        expression98 = expression
        @state.following.pop

        @adaptor.add_child( root_1, expression98.tree )


      end

      match( UP, nil )
    end
    @adaptor.add_child( root_0, root_1 )
    _last = _save_last_1



    return_value.tree = @adaptor.rule_post_processing( root_0 )

  rescue ANTLR3::Error::RecognitionError => re
    report_error(re)
    recover(re)

  ensure
    # -> uncomment the next line to manually enable rule tracing
    # trace_out( __method__, 24 )

  end
  
  return return_value
end

#statementObject

parser rule statement

(in JejuneTree.g) 34:1: statement : ( variable_statement | labelled_statement | if_statement | while_statement | do_while_statement | for_loop | continue_statement | break_statement | yield_statement | return_statement | with_statement | switch_statement | throw_statement | try_statement | expression );



540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
# File 'lib/jejune/grammar/tree.rb', line 540

def statement
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 6 )
  return_value = StatementReturnValue.new

  # $rule.start = the first token seen before matching
  return_value.start = @input.look

  root_0 = nil

  _last = _first_0 = nil
  variable_statement8 = nil
  labelled_statement9 = nil
  if_statement10 = nil
  while_statement11 = nil
  do_while_statement12 = nil
  for_loop13 = nil
  continue_statement14 = nil
  break_statement15 = nil
  yield_statement16 = nil
  return_statement17 = nil
  with_statement18 = nil
  switch_statement19 = nil
  throw_statement20 = nil
  try_statement21 = nil
  expression22 = nil


  begin
    # at line 35:3: ( variable_statement | labelled_statement | if_statement | while_statement | do_while_statement | for_loop | continue_statement | break_statement | yield_statement | return_statement | with_statement | switch_statement | throw_statement | try_statement | expression )
    alt_5 = 15
    case look_5 = @input.peek( 1 )
    when VAR then alt_5 = 1
    when LABEL then alt_5 = 2
    when IF, UNLESS then alt_5 = 3
    when UNTIL, WHILE then alt_5 = 4
    when DO then alt_5 = 5
    when EACH, FOR, FOR_IN then alt_5 = 6
    when CONTINUE then alt_5 = 7
    when BREAK then alt_5 = 8
    when YIELD then alt_5 = 9
    when RETURN then alt_5 = 10
    when WITH then alt_5 = 11
    when SWITCH then alt_5 = 12
    when THROW then alt_5 = 13
    when CATCH, FINALLY then alt_5 = 14
    when AMP, FUNCTION, PLUS_ASGN, AMP_ASGN, POST_DECR, GEQ, POST_INCR, AREF, GREATER, QMARK, ARRAY, HAT, ARROW, HAT_ASGN, ASGN, REGEX, IN, INCR, INSTANCEOF, RSHIFT, CALL, ITER, RSHIFT3, RSHIFT3_ASGN, RSHIFT_ASGN, LEQ, LESS, SLASH, SLASH_ASGN, STAR, DECR, STAR_ASGN, LSHIFT, DELETE, LSHIFT_ASGN, THIS, MINUS, TILDE, MINUS_ASGN, TRUE, DOT, MOD, MOD_ASGN, TYPEOF, NEQ, UMINUS, NEQQ, UNDEFINED, NEW, NOT, NULL, UPLUS, OBJECT, EQ, OR, VOID, EQQ, OR_ASGN, FALSE, PIPE, PIPE_ASGN, PLUS, ID, IVAR, NUMBER, STRING, DOC then alt_5 = 15
    else
      raise NoViableAlternative( "", 5, 0 )
    end
    case alt_5
    when 1
      root_0 = @adaptor.create_flat_list


      # at line 35:5: variable_statement
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_variable_statement_IN_statement_127 )
      variable_statement8 = variable_statement
      @state.following.pop

      @adaptor.add_child( root_0, variable_statement8.tree )


    when 2
      root_0 = @adaptor.create_flat_list


      # at line 36:5: labelled_statement
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_labelled_statement_IN_statement_133 )
      labelled_statement9 = labelled_statement
      @state.following.pop

      @adaptor.add_child( root_0, labelled_statement9.tree )


    when 3
      root_0 = @adaptor.create_flat_list


      # at line 37:5: if_statement
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_if_statement_IN_statement_139 )
      if_statement10 = if_statement
      @state.following.pop

      @adaptor.add_child( root_0, if_statement10.tree )


    when 4
      root_0 = @adaptor.create_flat_list


      # at line 38:5: while_statement
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_while_statement_IN_statement_145 )
      while_statement11 = while_statement
      @state.following.pop

      @adaptor.add_child( root_0, while_statement11.tree )


    when 5
      root_0 = @adaptor.create_flat_list


      # at line 39:5: do_while_statement
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_do_while_statement_IN_statement_151 )
      do_while_statement12 = do_while_statement
      @state.following.pop

      @adaptor.add_child( root_0, do_while_statement12.tree )


    when 6
      root_0 = @adaptor.create_flat_list


      # at line 40:5: for_loop
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_for_loop_IN_statement_157 )
      for_loop13 = for_loop
      @state.following.pop

      @adaptor.add_child( root_0, for_loop13.tree )


    when 7
      root_0 = @adaptor.create_flat_list


      # at line 41:5: continue_statement
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_continue_statement_IN_statement_163 )
      continue_statement14 = continue_statement
      @state.following.pop

      @adaptor.add_child( root_0, continue_statement14.tree )


    when 8
      root_0 = @adaptor.create_flat_list


      # at line 42:5: break_statement
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_break_statement_IN_statement_169 )
      break_statement15 = break_statement
      @state.following.pop

      @adaptor.add_child( root_0, break_statement15.tree )


    when 9
      root_0 = @adaptor.create_flat_list


      # at line 43:5: yield_statement
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_yield_statement_IN_statement_175 )
      yield_statement16 = yield_statement
      @state.following.pop

      @adaptor.add_child( root_0, yield_statement16.tree )


    when 10
      root_0 = @adaptor.create_flat_list


      # at line 44:5: return_statement
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_return_statement_IN_statement_181 )
      return_statement17 = return_statement
      @state.following.pop

      @adaptor.add_child( root_0, return_statement17.tree )


    when 11
      root_0 = @adaptor.create_flat_list


      # at line 45:5: with_statement
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_with_statement_IN_statement_187 )
      with_statement18 = with_statement
      @state.following.pop

      @adaptor.add_child( root_0, with_statement18.tree )


    when 12
      root_0 = @adaptor.create_flat_list


      # at line 46:5: switch_statement
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_switch_statement_IN_statement_193 )
      switch_statement19 = switch_statement
      @state.following.pop

      @adaptor.add_child( root_0, switch_statement19.tree )


    when 13
      root_0 = @adaptor.create_flat_list


      # at line 47:5: throw_statement
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_throw_statement_IN_statement_199 )
      throw_statement20 = throw_statement
      @state.following.pop

      @adaptor.add_child( root_0, throw_statement20.tree )


    when 14
      root_0 = @adaptor.create_flat_list


      # at line 48:5: try_statement
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_try_statement_IN_statement_205 )
      try_statement21 = try_statement
      @state.following.pop

      @adaptor.add_child( root_0, try_statement21.tree )


    when 15
      root_0 = @adaptor.create_flat_list


      # at line 49:5: expression
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_statement_211 )
      expression22 = expression
      @state.following.pop

      @adaptor.add_child( root_0, expression22.tree )


    end
    return_value.tree = @adaptor.rule_post_processing( root_0 )

  rescue ANTLR3::Error::RecognitionError => re
    report_error(re)
    recover(re)

  ensure
    # -> uncomment the next line to manually enable rule tracing
    # trace_out( __method__, 6 )

  end
  
  return return_value
end

#statement_blockObject

parser rule statement_block

(in JejuneTree.g) 22:1: statement_block : ^( BLOCK ( statement_list )? ) ;



330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
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
# File 'lib/jejune/grammar/tree.rb', line 330

def statement_block
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 3 )
  return_value = StatementBlockReturnValue.new

  # $rule.start = the first token seen before matching
  return_value.start = @input.look

  root_0 = nil

  _last = _first_0 = nil
  __BLOCK4__ = nil
  statement_list5 = nil

  tree_for_BLOCK4 = nil

  begin
    root_0 = @adaptor.create_flat_list


    # at line 23:5: ^( BLOCK ( statement_list )? )
    _save_last_1 = _last = @input.look
    _first_1 = nil
    root_1 = @adaptor.create_flat_list
    _last = @input.look
    __BLOCK4__ = match( BLOCK, TOKENS_FOLLOWING_BLOCK_IN_statement_block_80 )

    tree_for_BLOCK4 = @adaptor.copy_node( __BLOCK4__ )

    root_1 = @adaptor.become_root( tree_for_BLOCK4, root_1 )



    if @input.peek == DOWN
      match( DOWN, nil )
      # at line 23:14: ( statement_list )?
      alt_3 = 2
      look_3_0 = @input.peek( 1 )

      if ( look_3_0.between?( AMP, AMP_ASGN ) || look_3_0 == POST_DECR || look_3_0.between?( GEQ, AREF ) || look_3_0.between?( GREATER, HAT ) || look_3_0.between?( ARROW, HAT_ASGN ) || look_3_0.between?( ASGN, REGEX ) || look_3_0.between?( IN, RETURN ) || look_3_0 == INCR || look_3_0.between?( BREAK, RSHIFT3 ) || look_3_0.between?( LABEL, CATCH ) || look_3_0 == RSHIFT_ASGN || look_3_0 == LEQ || look_3_0.between?( LESS, SLASH ) || look_3_0.between?( SLASH_ASGN, CONTINUE ) || look_3_0.between?( STAR, DECR ) || look_3_0 == STAR_ASGN || look_3_0.between?( LSHIFT, THIS ) || look_3_0 == THROW || look_3_0.between?( MINUS, MOD ) || look_3_0.between?( MOD_ASGN, TYPEOF ) || look_3_0.between?( NEQ, UMINUS ) || look_3_0.between?( NEQQ, UNDEFINED ) || look_3_0.between?( NEW, UPLUS ) || look_3_0.between?( OBJECT, FALSE ) || look_3_0.between?( WITH, PLUS ) || look_3_0.between?( ID, DOC ) )
        alt_3 = 1
      end
      case alt_3
      when 1
        # at line 23:14: statement_list
        _last = @input.look
        @state.following.push( TOKENS_FOLLOWING_statement_list_IN_statement_block_82 )
        statement_list5 = statement_list
        @state.following.pop

        @adaptor.add_child( root_1, statement_list5.tree )


      end

      match( UP, nil )
    end
    @adaptor.add_child( root_0, root_1 )
    _last = _save_last_1



    return_value.tree = @adaptor.rule_post_processing( root_0 )

  rescue ANTLR3::Error::RecognitionError => re
    report_error(re)
    recover(re)

  ensure
    # -> uncomment the next line to manually enable rule tracing
    # trace_out( __method__, 3 )

  end
  
  return return_value
end

#statement_listObject

parser rule statement_list

(in JejuneTree.g) 26:1: statement_list : ( statement )+ ;



415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
# File 'lib/jejune/grammar/tree.rb', line 415

def statement_list
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 4 )
  return_value = StatementListReturnValue.new

  # $rule.start = the first token seen before matching
  return_value.start = @input.look

  root_0 = nil

  _last = _first_0 = nil
  statement6 = nil


  begin
    root_0 = @adaptor.create_flat_list


    # at line 27:5: ( statement )+
    # at file 27:5: ( statement )+
    match_count_4 = 0
    while true
      alt_4 = 2
      look_4_0 = @input.peek( 1 )

      if ( look_4_0.between?( AMP, AMP_ASGN ) || look_4_0 == POST_DECR || look_4_0.between?( GEQ, AREF ) || look_4_0.between?( GREATER, HAT ) || look_4_0.between?( ARROW, HAT_ASGN ) || look_4_0.between?( ASGN, REGEX ) || look_4_0.between?( IN, RETURN ) || look_4_0 == INCR || look_4_0.between?( BREAK, RSHIFT3 ) || look_4_0.between?( LABEL, CATCH ) || look_4_0 == RSHIFT_ASGN || look_4_0 == LEQ || look_4_0.between?( LESS, SLASH ) || look_4_0.between?( SLASH_ASGN, CONTINUE ) || look_4_0.between?( STAR, DECR ) || look_4_0 == STAR_ASGN || look_4_0.between?( LSHIFT, THIS ) || look_4_0 == THROW || look_4_0.between?( MINUS, MOD ) || look_4_0.between?( MOD_ASGN, TYPEOF ) || look_4_0.between?( NEQ, UMINUS ) || look_4_0.between?( NEQQ, UNDEFINED ) || look_4_0.between?( NEW, UPLUS ) || look_4_0.between?( OBJECT, FALSE ) || look_4_0.between?( WITH, PLUS ) || look_4_0.between?( ID, DOC ) )
        alt_4 = 1

      end
      case alt_4
      when 1
        # at line 27:5: statement
        _last = @input.look
        @state.following.push( TOKENS_FOLLOWING_statement_IN_statement_list_100 )
        statement6 = statement
        @state.following.pop

        @adaptor.add_child( root_0, statement6.tree )


      else
        match_count_4 > 0 and break
        eee = EarlyExit(4)


        raise eee
      end
      match_count_4 += 1
    end



    return_value.tree = @adaptor.rule_post_processing( root_0 )

  rescue ANTLR3::Error::RecognitionError => re
    report_error(re)
    recover(re)

  ensure
    # -> uncomment the next line to manually enable rule tracing
    # trace_out( __method__, 4 )

  end
  
  return return_value
end

#switch_statementObject

parser rule switch_statement

(in JejuneTree.g) 94:1: switch_statement : ^( ‘switch’ expression ( case_clause )* ( default_clause )? ) ;



1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
# File 'lib/jejune/grammar/tree.rb', line 1818

def switch_statement
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 16 )
  return_value = SwitchStatementReturnValue.new

  # $rule.start = the first token seen before matching
  return_value.start = @input.look

  root_0 = nil

  _last = _first_0 = nil
  string_literal60 = nil
  expression61 = nil
  case_clause62 = nil
  default_clause63 = nil

  tree_for_string_literal60 = nil

  begin
    root_0 = @adaptor.create_flat_list


    # at line 95:5: ^( 'switch' expression ( case_clause )* ( default_clause )? )
    _save_last_1 = _last = @input.look
    _first_1 = nil
    root_1 = @adaptor.create_flat_list
    _last = @input.look
    string_literal60 = match( SWITCH, TOKENS_FOLLOWING_SWITCH_IN_switch_statement_477 )

    tree_for_string_literal60 = @adaptor.copy_node( string_literal60 )

    root_1 = @adaptor.become_root( tree_for_string_literal60, root_1 )



    match( DOWN, nil )
    _last = @input.look
    @state.following.push( TOKENS_FOLLOWING_expression_IN_switch_statement_479 )
    expression61 = expression
    @state.following.pop

    @adaptor.add_child( root_1, expression61.tree )
    # at line 95:28: ( case_clause )*
    while true # decision 16
      alt_16 = 2
      look_16_0 = @input.peek( 1 )

      if ( look_16_0 == CASE )
        alt_16 = 1

      end
      case alt_16
      when 1
        # at line 95:28: case_clause
        _last = @input.look
        @state.following.push( TOKENS_FOLLOWING_case_clause_IN_switch_statement_481 )
        case_clause62 = case_clause
        @state.following.pop

        @adaptor.add_child( root_1, case_clause62.tree )


      else
        break # out of loop for decision 16
      end
    end # loop for decision 16
    # at line 95:41: ( default_clause )?
    alt_17 = 2
    look_17_0 = @input.peek( 1 )

    if ( look_17_0 == DEFAULT )
      alt_17 = 1
    end
    case alt_17
    when 1
      # at line 95:41: default_clause
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_default_clause_IN_switch_statement_484 )
      default_clause63 = default_clause
      @state.following.pop

      @adaptor.add_child( root_1, default_clause63.tree )


    end

    match( UP, nil )
    @adaptor.add_child( root_0, root_1 )
    _last = _save_last_1



    return_value.tree = @adaptor.rule_post_processing( root_0 )

  rescue ANTLR3::Error::RecognitionError => re
    report_error(re)
    recover(re)

  ensure
    # -> uncomment the next line to manually enable rule tracing
    # trace_out( __method__, 16 )

  end
  
  return return_value
end

#throw_statementObject

parser rule throw_statement

(in JejuneTree.g) 137:1: throw_statement : ^( ‘throw’ ( expression )? ) ;



2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
# File 'lib/jejune/grammar/tree.rb', line 2941

def throw_statement
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 26 )
  return_value = ThrowStatementReturnValue.new

  # $rule.start = the first token seen before matching
  return_value.start = @input.look

  root_0 = nil

  _last = _first_0 = nil
  string_literal101 = nil
  expression102 = nil

  tree_for_string_literal101 = nil

  begin
    root_0 = @adaptor.create_flat_list


    # at line 138:5: ^( 'throw' ( expression )? )
    _save_last_1 = _last = @input.look
    _first_1 = nil
    root_1 = @adaptor.create_flat_list
    _last = @input.look
    string_literal101 = match( THROW, TOKENS_FOLLOWING_THROW_IN_throw_statement_767 )

    tree_for_string_literal101 = @adaptor.copy_node( string_literal101 )

    root_1 = @adaptor.become_root( tree_for_string_literal101, root_1 )



    if @input.peek == DOWN
      match( DOWN, nil )
      # at line 138:16: ( expression )?
      alt_29 = 2
      look_29_0 = @input.peek( 1 )

      if ( look_29_0.between?( AMP, AMP_ASGN ) || look_29_0 == POST_DECR || look_29_0.between?( GEQ, AREF ) || look_29_0.between?( GREATER, HAT ) || look_29_0.between?( ARROW, HAT_ASGN ) || look_29_0 == ASGN || look_29_0 == REGEX || look_29_0 == IN || look_29_0 == INCR || look_29_0.between?( INSTANCEOF, RSHIFT3 ) || look_29_0 == RSHIFT3_ASGN || look_29_0 == RSHIFT_ASGN || look_29_0 == LEQ || look_29_0.between?( LESS, SLASH ) || look_29_0 == SLASH_ASGN || look_29_0.between?( STAR, DECR ) || look_29_0 == STAR_ASGN || look_29_0 == LSHIFT || look_29_0.between?( DELETE, THIS ) || look_29_0.between?( MINUS, TILDE ) || look_29_0.between?( MINUS_ASGN, MOD ) || look_29_0.between?( MOD_ASGN, TYPEOF ) || look_29_0.between?( NEQ, UMINUS ) || look_29_0.between?( NEQQ, UNDEFINED ) || look_29_0 == NEW || look_29_0 == NOT || look_29_0.between?( NULL, UPLUS ) || look_29_0 == OBJECT || look_29_0.between?( EQ, OR_ASGN ) || look_29_0 == FALSE || look_29_0 == PIPE || look_29_0 == PIPE_ASGN || look_29_0 == PLUS || look_29_0.between?( ID, DOC ) )
        alt_29 = 1
      end
      case alt_29
      when 1
        # at line 138:16: expression
        _last = @input.look
        @state.following.push( TOKENS_FOLLOWING_expression_IN_throw_statement_769 )
        expression102 = expression
        @state.following.pop

        @adaptor.add_child( root_1, expression102.tree )


      end

      match( UP, nil )
    end
    @adaptor.add_child( root_0, root_1 )
    _last = _save_last_1



    return_value.tree = @adaptor.rule_post_processing( root_0 )

  rescue ANTLR3::Error::RecognitionError => re
    report_error(re)
    recover(re)

  ensure
    # -> uncomment the next line to manually enable rule tracing
    # trace_out( __method__, 26 )

  end
  
  return return_value
end

#try_statementObject

parser rule try_statement

(in JejuneTree.g) 56:1: try_statement : ( catch_clause | ^( ‘finally’ ( catch_clause | statement_block ) statement_block ) );



889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
# File 'lib/jejune/grammar/tree.rb', line 889

def try_statement
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 8 )
  return_value = TryStatementReturnValue.new

  # $rule.start = the first token seen before matching
  return_value.start = @input.look

  root_0 = nil

  _last = _first_0 = nil
  string_literal27 = nil
  catch_clause26 = nil
  catch_clause28 = nil
  statement_block29 = nil
  statement_block30 = nil

  tree_for_string_literal27 = nil

  begin
    # at line 57:3: ( catch_clause | ^( 'finally' ( catch_clause | statement_block ) statement_block ) )
    alt_7 = 2
    look_7_0 = @input.peek( 1 )

    if ( look_7_0 == CATCH )
      alt_7 = 1
    elsif ( look_7_0 == FINALLY )
      alt_7 = 2
    else
      raise NoViableAlternative( "", 7, 0 )
    end
    case alt_7
    when 1
      root_0 = @adaptor.create_flat_list


      # at line 57:5: catch_clause
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_catch_clause_IN_try_statement_245 )
      catch_clause26 = catch_clause
      @state.following.pop

      @adaptor.add_child( root_0, catch_clause26.tree )


    when 2
      root_0 = @adaptor.create_flat_list


      # at line 58:5: ^( 'finally' ( catch_clause | statement_block ) statement_block )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      string_literal27 = match( FINALLY, TOKENS_FOLLOWING_FINALLY_IN_try_statement_253 )

      tree_for_string_literal27 = @adaptor.copy_node( string_literal27 )

      root_1 = @adaptor.become_root( tree_for_string_literal27, root_1 )



      match( DOWN, nil )
      # at line 58:18: ( catch_clause | statement_block )
      alt_6 = 2
      look_6_0 = @input.peek( 1 )

      if ( look_6_0 == CATCH )
        alt_6 = 1
      elsif ( look_6_0 == BLOCK )
        alt_6 = 2
      else
        raise NoViableAlternative( "", 6, 0 )
      end
      case alt_6
      when 1
        # at line 58:20: catch_clause
        _last = @input.look
        @state.following.push( TOKENS_FOLLOWING_catch_clause_IN_try_statement_257 )
        catch_clause28 = catch_clause
        @state.following.pop

        @adaptor.add_child( root_1, catch_clause28.tree )


      when 2
        # at line 58:35: statement_block
        _last = @input.look
        @state.following.push( TOKENS_FOLLOWING_statement_block_IN_try_statement_261 )
        statement_block29 = statement_block
        @state.following.pop

        @adaptor.add_child( root_1, statement_block29.tree )


      end
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_statement_block_IN_try_statement_265 )
      statement_block30 = statement_block
      @state.following.pop

      @adaptor.add_child( root_1, statement_block30.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    end
    return_value.tree = @adaptor.rule_post_processing( root_0 )

  rescue ANTLR3::Error::RecognitionError => re
    report_error(re)
    recover(re)

  ensure
    # -> uncomment the next line to manually enable rule tracing
    # trace_out( __method__, 8 )

  end
  
  return return_value
end

#variable_declarationObject

parser rule variable_declaration

(in JejuneTree.g) 74:1: variable_declaration : ( ^( ‘=’ declaration_target expression ) | ID );



1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
# File 'lib/jejune/grammar/tree.rb', line 1280

def variable_declaration
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 12 )
  return_value = VariableDeclarationReturnValue.new

  # $rule.start = the first token seen before matching
  return_value.start = @input.look

  root_0 = nil

  _last = _first_0 = nil
  char_literal40 = nil
  __ID43__ = nil
  declaration_target41 = nil
  expression42 = nil

  tree_for_char_literal40 = nil
  tree_for_ID43 = nil

  begin
    # at line 75:3: ( ^( '=' declaration_target expression ) | ID )
    alt_9 = 2
    look_9_0 = @input.peek( 1 )

    if ( look_9_0 == ASGN )
      alt_9 = 1
    elsif ( look_9_0 == ID )
      alt_9 = 2
    else
      raise NoViableAlternative( "", 9, 0 )
    end
    case alt_9
    when 1
      root_0 = @adaptor.create_flat_list


      # at line 75:5: ^( '=' declaration_target expression )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      char_literal40 = match( ASGN, TOKENS_FOLLOWING_ASGN_IN_variable_declaration_347 )

      tree_for_char_literal40 = @adaptor.copy_node( char_literal40 )

      root_1 = @adaptor.become_root( tree_for_char_literal40, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_declaration_target_IN_variable_declaration_349 )
      declaration_target41 = declaration_target
      @state.following.pop

      @adaptor.add_child( root_1, declaration_target41.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_expression_IN_variable_declaration_351 )
      expression42 = expression
      @state.following.pop

      @adaptor.add_child( root_1, expression42.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 2
      root_0 = @adaptor.create_flat_list


      # at line 76:5: ID
      _last = @input.look
      __ID43__ = match( ID, TOKENS_FOLLOWING_ID_IN_variable_declaration_359 )

      tree_for_ID43 = @adaptor.copy_node( __ID43__ )

      @adaptor.add_child( root_0, tree_for_ID43 )



    end
    return_value.tree = @adaptor.rule_post_processing( root_0 )

  rescue ANTLR3::Error::RecognitionError => re
    report_error(re)
    recover(re)

  ensure
    # -> uncomment the next line to manually enable rule tracing
    # trace_out( __method__, 12 )

  end
  
  return return_value
end

#variable_statementObject

parser rule variable_statement

(in JejuneTree.g) 69:1: variable_statement : ^( ‘var’ ( variable_declaration )+ ) ;



1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
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
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
# File 'lib/jejune/grammar/tree.rb', line 1185

def variable_statement
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 11 )
  return_value = VariableStatementReturnValue.new

  # $rule.start = the first token seen before matching
  return_value.start = @input.look

  root_0 = nil

  _last = _first_0 = nil
  string_literal38 = nil
  variable_declaration39 = nil

  tree_for_string_literal38 = nil

  begin
    root_0 = @adaptor.create_flat_list


    # at line 70:5: ^( 'var' ( variable_declaration )+ )
    _save_last_1 = _last = @input.look
    _first_1 = nil
    root_1 = @adaptor.create_flat_list
    _last = @input.look
    string_literal38 = match( VAR, TOKENS_FOLLOWING_VAR_IN_variable_statement_326 )

    tree_for_string_literal38 = @adaptor.copy_node( string_literal38 )

    root_1 = @adaptor.become_root( tree_for_string_literal38, root_1 )



    match( DOWN, nil )
    # at file 70:14: ( variable_declaration )+
    match_count_8 = 0
    while true
      alt_8 = 2
      look_8_0 = @input.peek( 1 )

      if ( look_8_0 == ASGN || look_8_0 == ID )
        alt_8 = 1

      end
      case alt_8
      when 1
        # at line 70:14: variable_declaration
        _last = @input.look
        @state.following.push( TOKENS_FOLLOWING_variable_declaration_IN_variable_statement_328 )
        variable_declaration39 = variable_declaration
        @state.following.pop

        @adaptor.add_child( root_1, variable_declaration39.tree )


      else
        match_count_8 > 0 and break
        eee = EarlyExit(8)


        raise eee
      end
      match_count_8 += 1
    end


    match( UP, nil )
    @adaptor.add_child( root_0, root_1 )
    _last = _save_last_1



    return_value.tree = @adaptor.rule_post_processing( root_0 )

  rescue ANTLR3::Error::RecognitionError => re
    report_error(re)
    recover(re)

  ensure
    # -> uncomment the next line to manually enable rule tracing
    # trace_out( __method__, 11 )

  end
  
  return return_value
end

#while_statementObject

parser rule while_statement

(in JejuneTree.g) 110:1: while_statement : ( ^( ‘while’ clause block ) | ^( ‘until’ clause block ) );



2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
# File 'lib/jejune/grammar/tree.rb', line 2178

def while_statement
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 20 )
  return_value = WhileStatementReturnValue.new

  # $rule.start = the first token seen before matching
  return_value.start = @input.look

  root_0 = nil

  _last = _first_0 = nil
  string_literal71 = nil
  string_literal74 = nil
  clause72 = nil
  block73 = nil
  clause75 = nil
  block76 = nil

  tree_for_string_literal71 = nil
  tree_for_string_literal74 = nil

  begin
    # at line 111:3: ( ^( 'while' clause block ) | ^( 'until' clause block ) )
    alt_20 = 2
    look_20_0 = @input.peek( 1 )

    if ( look_20_0 == WHILE )
      alt_20 = 1
    elsif ( look_20_0 == UNTIL )
      alt_20 = 2
    else
      raise NoViableAlternative( "", 20, 0 )
    end
    case alt_20
    when 1
      root_0 = @adaptor.create_flat_list


      # at line 111:5: ^( 'while' clause block )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      string_literal71 = match( WHILE, TOKENS_FOLLOWING_WHILE_IN_while_statement_568 )

      tree_for_string_literal71 = @adaptor.copy_node( string_literal71 )

      root_1 = @adaptor.become_root( tree_for_string_literal71, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_clause_IN_while_statement_570 )
      clause72 = clause
      @state.following.pop

      @adaptor.add_child( root_1, clause72.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_block_IN_while_statement_572 )
      block73 = block
      @state.following.pop

      @adaptor.add_child( root_1, block73.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    when 2
      root_0 = @adaptor.create_flat_list


      # at line 112:5: ^( 'until' clause block )
      _save_last_1 = _last = @input.look
      _first_1 = nil
      root_1 = @adaptor.create_flat_list
      _last = @input.look
      string_literal74 = match( UNTIL, TOKENS_FOLLOWING_UNTIL_IN_while_statement_582 )

      tree_for_string_literal74 = @adaptor.copy_node( string_literal74 )

      root_1 = @adaptor.become_root( tree_for_string_literal74, root_1 )



      match( DOWN, nil )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_clause_IN_while_statement_584 )
      clause75 = clause
      @state.following.pop

      @adaptor.add_child( root_1, clause75.tree )
      _last = @input.look
      @state.following.push( TOKENS_FOLLOWING_block_IN_while_statement_586 )
      block76 = block
      @state.following.pop

      @adaptor.add_child( root_1, block76.tree )

      match( UP, nil )
      @adaptor.add_child( root_0, root_1 )
      _last = _save_last_1



    end
    return_value.tree = @adaptor.rule_post_processing( root_0 )

  rescue ANTLR3::Error::RecognitionError => re
    report_error(re)
    recover(re)

  ensure
    # -> uncomment the next line to manually enable rule tracing
    # trace_out( __method__, 20 )

  end
  
  return return_value
end

#with_statementObject

parser rule with_statement

(in JejuneTree.g) 65:1: with_statement : ^( ‘with’ clause block ) ;



1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
# File 'lib/jejune/grammar/tree.rb', line 1108

def with_statement
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 10 )
  return_value = WithStatementReturnValue.new

  # $rule.start = the first token seen before matching
  return_value.start = @input.look

  root_0 = nil

  _last = _first_0 = nil
  string_literal35 = nil
  clause36 = nil
  block37 = nil

  tree_for_string_literal35 = nil

  begin
    root_0 = @adaptor.create_flat_list


    # at line 66:5: ^( 'with' clause block )
    _save_last_1 = _last = @input.look
    _first_1 = nil
    root_1 = @adaptor.create_flat_list
    _last = @input.look
    string_literal35 = match( WITH, TOKENS_FOLLOWING_WITH_IN_with_statement_305 )

    tree_for_string_literal35 = @adaptor.copy_node( string_literal35 )

    root_1 = @adaptor.become_root( tree_for_string_literal35, root_1 )



    match( DOWN, nil )
    _last = @input.look
    @state.following.push( TOKENS_FOLLOWING_clause_IN_with_statement_307 )
    clause36 = clause
    @state.following.pop

    @adaptor.add_child( root_1, clause36.tree )
    _last = @input.look
    @state.following.push( TOKENS_FOLLOWING_block_IN_with_statement_309 )
    block37 = block
    @state.following.pop

    @adaptor.add_child( root_1, block37.tree )

    match( UP, nil )
    @adaptor.add_child( root_0, root_1 )
    _last = _save_last_1



    return_value.tree = @adaptor.rule_post_processing( root_0 )

  rescue ANTLR3::Error::RecognitionError => re
    report_error(re)
    recover(re)

  ensure
    # -> uncomment the next line to manually enable rule tracing
    # trace_out( __method__, 10 )

  end
  
  return return_value
end

#yield_statementObject

parser rule yield_statement

(in JejuneTree.g) 133:1: yield_statement : ^( ‘yield’ ( expression )? ) ;



2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
# File 'lib/jejune/grammar/tree.rb', line 2856

def yield_statement
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 25 )
  return_value = YieldStatementReturnValue.new

  # $rule.start = the first token seen before matching
  return_value.start = @input.look

  root_0 = nil

  _last = _first_0 = nil
  string_literal99 = nil
  expression100 = nil

  tree_for_string_literal99 = nil

  begin
    root_0 = @adaptor.create_flat_list


    # at line 134:5: ^( 'yield' ( expression )? )
    _save_last_1 = _last = @input.look
    _first_1 = nil
    root_1 = @adaptor.create_flat_list
    _last = @input.look
    string_literal99 = match( YIELD, TOKENS_FOLLOWING_YIELD_IN_yield_statement_745 )

    tree_for_string_literal99 = @adaptor.copy_node( string_literal99 )

    root_1 = @adaptor.become_root( tree_for_string_literal99, root_1 )



    if @input.peek == DOWN
      match( DOWN, nil )
      # at line 134:16: ( expression )?
      alt_28 = 2
      look_28_0 = @input.peek( 1 )

      if ( look_28_0.between?( AMP, AMP_ASGN ) || look_28_0 == POST_DECR || look_28_0.between?( GEQ, AREF ) || look_28_0.between?( GREATER, HAT ) || look_28_0.between?( ARROW, HAT_ASGN ) || look_28_0 == ASGN || look_28_0 == REGEX || look_28_0 == IN || look_28_0 == INCR || look_28_0.between?( INSTANCEOF, RSHIFT3 ) || look_28_0 == RSHIFT3_ASGN || look_28_0 == RSHIFT_ASGN || look_28_0 == LEQ || look_28_0.between?( LESS, SLASH ) || look_28_0 == SLASH_ASGN || look_28_0.between?( STAR, DECR ) || look_28_0 == STAR_ASGN || look_28_0 == LSHIFT || look_28_0.between?( DELETE, THIS ) || look_28_0.between?( MINUS, TILDE ) || look_28_0.between?( MINUS_ASGN, MOD ) || look_28_0.between?( MOD_ASGN, TYPEOF ) || look_28_0.between?( NEQ, UMINUS ) || look_28_0.between?( NEQQ, UNDEFINED ) || look_28_0 == NEW || look_28_0 == NOT || look_28_0.between?( NULL, UPLUS ) || look_28_0 == OBJECT || look_28_0.between?( EQ, OR_ASGN ) || look_28_0 == FALSE || look_28_0 == PIPE || look_28_0 == PIPE_ASGN || look_28_0 == PLUS || look_28_0.between?( ID, DOC ) )
        alt_28 = 1
      end
      case alt_28
      when 1
        # at line 134:16: expression
        _last = @input.look
        @state.following.push( TOKENS_FOLLOWING_expression_IN_yield_statement_747 )
        expression100 = expression
        @state.following.pop

        @adaptor.add_child( root_1, expression100.tree )


      end

      match( UP, nil )
    end
    @adaptor.add_child( root_0, root_1 )
    _last = _save_last_1



    return_value.tree = @adaptor.rule_post_processing( root_0 )

  rescue ANTLR3::Error::RecognitionError => re
    report_error(re)
    recover(re)

  ensure
    # -> uncomment the next line to manually enable rule tracing
    # trace_out( __method__, 25 )

  end
  
  return return_value
end