return new str_token(sym.ID, result_str);
/** 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. */ protected static token do_code_string() throws java.io.IOException { StringBuffer result = new StringBuffer(); /* at this point we have lookahead of "{:" -- swallow that */ advance(); advance(); /* save chars until we see ":}" */ while (!(next_char == ':' && next_char2 == '}')) { /* if we have run off the end issue a message and break out of loop */ if (next_char == EOF_CHAR) { emit_error("Specification file ends inside a code string"); break; } /* otherwise record the char and move on */ result.append(new Character((char)next_char)); advance(); } /* advance past the closer and build a return token */ advance(); advance(); return new str_token(sym.CODE_STRING, result.toString()); }
CUP$result = new java_cup.runtime.str_token(/*label_id*/29); ((java_cup.runtime.str_token)CUP$result).str_val = (/*the_id*/(java_cup.runtime.str_token)CUP$stack.elementAt(CUP$top-0)).str_val; CUP$result = new java_cup.runtime.str_token(/*symbol_id*/28); ((java_cup.runtime.str_token)CUP$result).str_val = (/*the_id*/(java_cup.runtime.str_token)CUP$stack.elementAt(CUP$top-0)).str_val; CUP$result = new java_cup.runtime.str_token(/*nt_id*/27); ((java_cup.runtime.str_token)CUP$result).str_val = (/*the_id*/(java_cup.runtime.str_token)CUP$stack.elementAt(CUP$top-0)).str_val; CUP$result = new java_cup.runtime.str_token(/*opt_label*/30); ((java_cup.runtime.str_token)CUP$result).str_val = null; CUP$result = new java_cup.runtime.str_token(/*opt_label*/30); ((java_cup.runtime.str_token)CUP$result).str_val = (/*labid*/(java_cup.runtime.str_token)CUP$stack.elementAt(CUP$top-0)).str_val;
CUP$result = new str_token(/*optional_signature*/5); ((str_token)CUP$result).str_val = null; CUP$result = new str_token(/*optional_signature*/5); ((str_token)CUP$result).str_val = (/*s*/(str_token)CUP$stack.elementAt(CUP$top-0)).str_val; CUP$result = new str_token(/*inner_outer*/4); ((str_token)CUP$result).str_val = null; CUP$result = new str_token(/*inner_outer*/4); ((str_token)CUP$result).str_val = (/*w*/(str_token)CUP$stack.elementAt(CUP$top-0)).str_val; CUP$result = new str_token(/*inner_inner*/3); ((str_token)CUP$result).str_val = null; CUP$result = new str_token(/*inner_inner*/3); ((str_token)CUP$result).str_val = (/*w*/(str_token)CUP$stack.elementAt(CUP$top-0)).str_val; CUP$result = new str_token(/*inner_name*/2); ((str_token)CUP$result).str_val = null; CUP$result = new str_token(/*inner_name*/2); ((str_token)CUP$result).str_val = (/*w*/(str_token)CUP$stack.elementAt(CUP$top-0)).str_val; CUP$result = new str_token(/*classname*/1); ((str_token)CUP$result).str_val = ScannerUtils.convertDots((/*w*/(str_token)CUP$stack.elementAt(CUP$top-0)).str_val);