sleep.parser
Class LexicalAnalyzer

java.lang.Object
  extended by sleep.parser.LexicalAnalyzer

public class LexicalAnalyzer
extends java.lang.Object


Field Summary
protected static Rule BACKTICK_RULE
           
protected static Rule BLOCK_RULE
           
protected static Rule COMMENT_RULE
           
protected static Rule DQUOTE_RULE
           
protected static char EndOfTerm
           
protected static Rule INDEX_RULE
           
protected static Rule PAREN_RULE
           
protected static Rule SQUOTE_RULE
           
 
Constructor Summary
LexicalAnalyzer()
           
 
Method Summary
static TokenList CreateTerms(Parser parser, StringIterator f)
           
static TokenList CreateTerms(Parser parser, StringIterator f, boolean showEOT, boolean showEOL)
           
static TokenList CreateTerms(Parser parser, StringIterator iterator, Rule[] rules, boolean showEOT, boolean showEOL)
           
static TokenList GroupBlockTokens(Parser parser, StringIterator i)
          a general pass over the list of tokens, we create terms and then pass over them creating combined terms
static TokenList GroupExpressionIndexTokens(Parser parser, StringIterator i)
          a general pass over the list of tokens, we create terms and then pass over them creating combined terms
static TokenList GroupParameterTokens(Parser parser, StringIterator f)
           
static java.lang.String trim(Parser parser, java.lang.String blah)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PAREN_RULE

protected static Rule PAREN_RULE

BLOCK_RULE

protected static Rule BLOCK_RULE

INDEX_RULE

protected static Rule INDEX_RULE

DQUOTE_RULE

protected static Rule DQUOTE_RULE

SQUOTE_RULE

protected static Rule SQUOTE_RULE

BACKTICK_RULE

protected static Rule BACKTICK_RULE

COMMENT_RULE

protected static Rule COMMENT_RULE

EndOfTerm

protected static char EndOfTerm
Constructor Detail

LexicalAnalyzer

public LexicalAnalyzer()
Method Detail

GroupBlockTokens

public static TokenList GroupBlockTokens(Parser parser,
                                         StringIterator i)
a general pass over the list of tokens, we create terms and then pass over them creating combined terms


GroupExpressionIndexTokens

public static TokenList GroupExpressionIndexTokens(Parser parser,
                                                   StringIterator i)
a general pass over the list of tokens, we create terms and then pass over them creating combined terms


GroupParameterTokens

public static TokenList GroupParameterTokens(Parser parser,
                                             StringIterator f)

CreateTerms

public static TokenList CreateTerms(Parser parser,
                                    StringIterator f)

CreateTerms

public static TokenList CreateTerms(Parser parser,
                                    StringIterator f,
                                    boolean showEOT,
                                    boolean showEOL)

CreateTerms

public static TokenList CreateTerms(Parser parser,
                                    StringIterator iterator,
                                    Rule[] rules,
                                    boolean showEOT,
                                    boolean showEOL)

trim

public static java.lang.String trim(Parser parser,
                                    java.lang.String blah)