code: public final void mNEWLINE() throws RecognitionException {
          try {
              int _type = NEWLINE;
              int _channel = DEFAULT_TOKEN_CHANNEL;
              // BELScript.g:297:8: ( ( '\\u000d' )? '\\u000a' | '\\u000d' )
              int alt11=2;
              int LA11_0 = input.LA(1);
  
              if ( (LA11_0=='\r') ) {
                  int LA11_1 = input.LA(2);
  
                  if ( (LA11_1=='\n') ) {
                      alt11=1;
                  }
                  else {
                      alt11=2;}
              }
              else if ( (LA11_0=='\n') ) {
                  alt11=1;
              }
              else {
                  NoViableAltException nvae =
                      new NoViableAltException("", 11, 0, input);
  
                  throw nvae;
              }
              switch (alt11) {
                  case 1 :
                      // BELScript.g:298:5: ( '\\u000d' )? '\\u000a'
                      {
                      // BELScript.g:298:5: ( '\\u000d' )?
                      int alt10=2;
                      int LA10_0 = input.LA(1);
  
                      if ( (LA10_0=='\r') ) {
                          alt10=1;
                      }
                      switch (alt10) {
                          case 1 :
                              // BELScript.g:298:5: '\\u000d'
                              {
                              match('\r'); 
  
                              }
                              break;
  
                      }
  
                      match('\n'); 
  
                      }
                      break;
                  case 2 :
                      // BELScript.g:298:26: '\\u000d'
                      {
                      match('\r'); 
  
                      }
                      break;
  
              }
              state.type = _type;
              state.channel = _channel;
          }
          finally {
          }
      }
docs: $ANTLR start "NEWLINE"