sleep.parser
Class LexicalAnalyzer
java.lang.Object
sleep.parser.LexicalAnalyzer
public class LexicalAnalyzer
- extends java.lang.Object
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 |
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
LexicalAnalyzer
public LexicalAnalyzer()
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)