org.cesta.util.antlr
Class ANTLRHelper

java.lang.Object
  extended by org.cesta.util.antlr.ANTLRHelper

public class ANTLRHelper
extends java.lang.Object

Helper functions for ANTLR.

Author:
Tobias Smolka

Constructor Summary
ANTLRHelper()
           
 
Method Summary
static void writeTokens(org.antlr.runtime.TokenStream tokens, java.io.File file)
          Write tokens to output file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ANTLRHelper

public ANTLRHelper()
Method Detail

writeTokens

public static void writeTokens(org.antlr.runtime.TokenStream tokens,
                               java.io.File file)
                        throws java.io.IOException
Write tokens to output file

Parameters:
tokens - Tokens to be written
file - Output file
Throws:
java.io.IOException - in case that output file couldn't be written