code: public final void mNS_PREFIX() throws RecognitionException {
          try {
              int _type = NS_PREFIX;
              int _channel = DEFAULT_TOKEN_CHANNEL;
              // BELScript.g:293:10: ( LETTER ( LETTER | DIGIT )* ':' )
              // BELScript.g:294:5: LETTER ( LETTER | DIGIT )* ':'
              {
              mLETTER(); 
              // BELScript.g:294:12: ( LETTER | DIGIT )*
              loop9:
              do {
                  int alt9=2;
                  int LA9_0 = input.LA(1);
  
                  if ( ((LA9_0>='0' && LA9_0<='9')||(LA9_0>='A' && LA9_0<='Z')||(LA9_0>='a' && LA9_0<='z')) ) {
                      alt9=1;
                  }
  
  
                  switch (alt9) {
              	case 1 :
              	    // BELScript.g:
              	    {
              	    if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||(input.LA(1)>='a' && input.LA(1)<='z') ) {
              	        input.consume();
  
              	    }
              	    else {
              	        MismatchedSetException mse = new MismatchedSetException(null,input);
              	        recover(mse);
              	        throw mse;}
  
  
              	    }
              	    break;
  
              	default :
              	    break loop9;
                  }
              } while (true);
  
              match(':'); 
  
              }
  
              state.type = _type;
              state.channel = _channel;
          }
          finally {
          }
      }
docs: $ANTLR start "NS_PREFIX"