blog
Class ParserUtilities

java.lang.Object
  extended by blog.ParserUtilities

public class ParserUtilities
extends java.lang.Object


Constructor Summary
ParserUtilities()
           
 
Method Summary
static void printEscapedString(java.io.PrintStream str, java.lang.String s)
          Prints an appropriately escaped string
static void printToken(java_cup.runtime.Symbol s)
          Prints a token to stderr
static java.lang.String tokenToString(java_cup.runtime.Symbol s)
          Returns a string representation for a token
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParserUtilities

public ParserUtilities()
Method Detail

printEscapedString

public static void printEscapedString(java.io.PrintStream str,
                                      java.lang.String s)
Prints an appropriately escaped string

Parameters:
str - the output stream
s - the string to print

tokenToString

public static java.lang.String tokenToString(java_cup.runtime.Symbol s)
Returns a string representation for a token

Parameters:
s - the token
Returns:
the string representation

printToken

public static void printToken(java_cup.runtime.Symbol s)
Prints a token to stderr

Parameters:
s - the token