Method: MODL::Parser::MODLParser#modl_condition_test

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

#modl_condition_testObject



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
1809
1810
1811
# File 'lib/modl/parser/MODLParser.rb', line 1725

def modl_condition_test()
  _localctx =  Modl_condition_testContext.new(@_ctx, @_state_number)
  enter_rule(_localctx, 34, RULE_modl_condition_test)
  _la = 0
  begin
    _alt = 0
    enter_outer_alt(_localctx, 1)

    @_state_number = 252
    @_err_handler.sync(self)
    case ( @_interp.adaptive_predict(@_input,33,@_ctx) )
    when 1

      @_state_number = 251
      match(EXCLAM)

    end
    @_state_number = 256
    @_err_handler.sync(self)
    case ( @_interp.adaptive_predict(@_input,34,@_ctx) )
    when 1

      @_state_number = 254
      modl_condition()

    when 2

      @_state_number = 255
      modl_condition_group()

    end
    @_state_number = 268
    @_err_handler.sync(self);
    _alt = @_interp.adaptive_predict(@_input,37,@_ctx)
    while ( _alt!=2 && _alt!=Antlr4::Runtime::ATN::INVALID_ALT_NUMBER )
      if ( _alt==1 )


        @_state_number = 258
        _la = @_input.la(1)
        if ( !(_la==AMP || _la==PIPE) )
        @_err_handler.recover_in_line(self)

        else
          if ( @_input.la(1)==Antlr4::Runtime::Token::EOF )
            @matchedEOF = true
          end
          @_err_handler.report_match(self)
          consume()
        end
        @_state_number = 260
        @_err_handler.sync(self)
        case ( @_interp.adaptive_predict(@_input,35,@_ctx) )
        when 1

          @_state_number = 259
          match(EXCLAM)

        end
        @_state_number = 264
        @_err_handler.sync(self)
        case ( @_interp.adaptive_predict(@_input,36,@_ctx) )
        when 1

          @_state_number = 262
          modl_condition()

        when 2

          @_state_number = 263
          modl_condition_group()

        end 
      end
      @_state_number = 270
      @_err_handler.sync(self)
      _alt = @_interp.adaptive_predict(@_input,37,@_ctx)
    end
  rescue Antlr4::Runtime::RecognitionException => re
    _localctx.exception = re
    @_err_handler.report_error(self, re)
    @_err_handler.recover(self, re)
  ensure
    exit_rule()
  end
  return _localctx
end