protected static token do_code_string() throws java.io.IOException {
  StringBuffer result=new StringBuffer();
  advance();
  advance();
  while (!(next_char == ':' && next_char2 == '}')) {
    if (next_char == EOF_CHAR) {
      emit_error("Specification file ends inside a code string");
      break;
    }
    result.append(new Character((char)next_char));
    advance();
  }
  advance();
  advance();
  return new str_token(sym.CODE_STRING,result.toString());
}

protected static token do_code_string ( ) throws java . io . IOException { StringBuffer result = new StringBuffer ( ) ; advance ( ) ; advance ( ) ; while ( ! ( next_char == ':' && next_char2 == '}' ) ) { if ( next_char == EOF_CHAR ) { emit_error ( "Specification file ends inside a code string" ) ; break ; } result . append ( new Character ( ( char ) next_char ) ) ; advance ( ) ; } advance ( ) ; advance ( ) ; return new str_token ( sym . CODE_STRING , result . toString ( ) ) ; }
swallow up a code string . code strings begin with " { : " and include all characters up to the first occurrence of " : } " ( there is no way to include " : } " inside a code string ) . the routine returns an str_token object suitable for return by the scanner .
