sleep.parser

Class LexicalAnalyzer


public class LexicalAnalyzer
extends 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

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, 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 String
trim(Parser parser, String blah)

Field Details

BACKTICK_RULE

protected static Rule BACKTICK_RULE

BLOCK_RULE

protected static Rule BLOCK_RULE

COMMENT_RULE

protected static Rule COMMENT_RULE

DQUOTE_RULE

protected static Rule DQUOTE_RULE

EndOfTerm

protected static char EndOfTerm

INDEX_RULE

protected static Rule INDEX_RULE

PAREN_RULE

protected static Rule PAREN_RULE

SQUOTE_RULE

protected static Rule SQUOTE_RULE

Method Details

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,
                                    rules[] ,
                                    boolean showEOT,
                                    boolean showEOL)

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)

trim

public static String trim(Parser parser,
                          String blah)