sleep.parser
Class ParserUtilities

java.lang.Object
  extended bysleep.parser.ParserUtilities

public class ParserUtilities
extends Object


Constructor Summary
ParserUtilities()
           
 
Method Summary
static Token combineTokens(Token a, Token b)
           
static String extract(String temp)
           
static Token extract(Token temp)
           
static Token[] get(Token[] t, int a, int b)
           
static TokenList groupByBlockTerm(Parser parser, Token smokin)
          breaks down the token into sub tokens that are one "term" wide, in the case of blocks separated by ;
static TokenList groupByParameterTerm(Parser parser, Token smokin)
          breaks down the token into sub tokens that are one "term" wide, a termi in the case of parameters it uses ,
static String join(String[] temp, String with)
           
static Token join(Token[] temp)
           
static Token makeToken(String token, Token a)
           
 
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

combineTokens

public static Token combineTokens(Token a,
                                  Token b)

makeToken

public static Token makeToken(String token,
                              Token a)

get

public static Token[] get(Token[] t,
                          int a,
                          int b)

join

public static Token join(Token[] temp)

join

public static String join(String[] temp,
                          String with)

extract

public static Token extract(Token temp)

extract

public static String extract(String temp)

groupByBlockTerm

public static TokenList groupByBlockTerm(Parser parser,
                                         Token smokin)
breaks down the token into sub tokens that are one "term" wide, in the case of blocks separated by ;


groupByParameterTerm

public static TokenList groupByParameterTerm(Parser parser,
                                             Token smokin)
breaks down the token into sub tokens that are one "term" wide, a termi in the case of parameters it uses ,