com.ibm.adt.ovf.ext.punit
Class PUnitLexer

java.lang.Object
  extended by LpgLexStream
      extended by com.ibm.adt.ovf.ext.punit.PUnitLexer
All Implemented Interfaces:
PUnitLexersym, PUnitParsersym

public class PUnitLexer
extends LpgLexStream
implements PUnitParsersym, PUnitLexersym


Field Summary
static int[] tokenKind
           
 
Fields inherited from interface com.ibm.adt.ovf.ext.punit.PUnitParsersym
isValidForParser, numTokenKinds, orderedTerminalSymbols, TK_DIVIDE, TK_DOT, TK_EOF_TOKEN, TK_ERROR_TOKEN, TK_HAT, TK_IDENTIFIER, TK_INT, TK_LEFTPAREN, TK_MINUS, TK_OTHERWS, TK_PLUS, TK_RIGHTPAREN, TK_SPACE, TK_TIMES
 
Fields inherited from interface com.ibm.adt.ovf.ext.punit.PUnitLexersym
Char__, Char_0, Char_1, Char_2, Char_3, Char_4, Char_5, Char_6, Char_7, Char_8, Char_9, Char_a, Char_A, Char_AfterASCII, Char_Ampersand, Char_AtSign, Char_b, Char_B, Char_BackQuote, Char_BackSlash, Char_c, Char_C, Char_Caret, Char_Colon, Char_Comma, Char_CR, Char_CtlCharNotWS, Char_d, Char_D, Char_DollarSign, Char_Dot, Char_DoubleQuote, Char_e, Char_E, Char_EOF, Char_Equal, Char_Exclamation, Char_f, Char_F, Char_FF, Char_g, Char_G, Char_GreaterThan, Char_h, Char_H, Char_HT, Char_i, Char_I, Char_j, Char_J, Char_k, Char_K, Char_l, Char_L, Char_LeftBrace, Char_LeftBracket, Char_LeftParen, Char_LessThan, Char_LF, Char_m, Char_M, Char_Minus, Char_n, Char_N, Char_o, Char_O, Char_p, Char_P, Char_Percent, Char_Plus, Char_q, Char_Q, Char_QuestionMark, Char_r, Char_R, Char_RightBrace, Char_RightBracket, Char_RightParen, Char_s, Char_S, Char_SemiColon, Char_Sharp, Char_SingleQuote, Char_Slash, Char_Space, Char_Star, Char_t, Char_T, Char_Tilde, Char_u, Char_U, Char_v, Char_V, Char_VerticalBar, Char_w, Char_W, Char_x, Char_X, Char_y, Char_Y, Char_z, Char_Z, isValidForParser, numTokenKinds, orderedTerminalSymbols
 
Constructor Summary
PUnitLexer()
           
PUnitLexer(char[] input_chars, java.lang.String filename)
           
PUnitLexer(char[] input_chars, java.lang.String filename, int tab)
           
PUnitLexer(Option option)
           
PUnitLexer(java.lang.String filename)
           
PUnitLexer(java.lang.String filename, int tab)
           
 
Method Summary
 int getKind(int i)
           
 int getLeftSpan()
           
 LexStream getLexStream()
           
 LexParser getParser()
           
 ParseTable getParseTable()
           
 int getRhsFirstTokenIndex(int i)
           
 int getRhsLastTokenIndex(int i)
           
 int getRightSpan()
           
 int getToken(int i)
           
 void initialize(char[] content, java.lang.String filename)
           
 void lexer(IPrsStream prsStream)
           
 void lexer(IPrsStream prsStream, int start_offset, int end_offset)
           
 void lexer(Monitor monitor, IPrsStream prsStream)
           
 void lexer(Monitor monitor, IPrsStream prsStream, int start_offset, int end_offset)
           
 java.lang.String[] orderedExportedSymbols()
           
 void reportLexicalError(int startLoc, int endLoc)
          If a parse stream was not passed to this Lexical analyser then we simply report a lexical error.
 void ruleAction(int ruleNumber)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tokenKind

public static final int[] tokenKind
Constructor Detail

PUnitLexer

public PUnitLexer(java.lang.String filename,
                  int tab)
           throws java.io.IOException
Throws:
java.io.IOException

PUnitLexer

public PUnitLexer(char[] input_chars,
                  java.lang.String filename,
                  int tab)

PUnitLexer

public PUnitLexer(char[] input_chars,
                  java.lang.String filename)

PUnitLexer

public PUnitLexer()

PUnitLexer

public PUnitLexer(java.lang.String filename)
           throws java.io.IOException
Throws:
java.io.IOException

PUnitLexer

public PUnitLexer(Option option)
           throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getParseTable

public ParseTable getParseTable()

getParser

public LexParser getParser()

getToken

public int getToken(int i)

getRhsFirstTokenIndex

public int getRhsFirstTokenIndex(int i)

getRhsLastTokenIndex

public int getRhsLastTokenIndex(int i)

getLeftSpan

public int getLeftSpan()

getRightSpan

public int getRightSpan()

orderedExportedSymbols

public java.lang.String[] orderedExportedSymbols()

getLexStream

public LexStream getLexStream()

lexer

public void lexer(IPrsStream prsStream)

lexer

public void lexer(Monitor monitor,
                  IPrsStream prsStream)

lexer

public void lexer(IPrsStream prsStream,
                  int start_offset,
                  int end_offset)

lexer

public void lexer(Monitor monitor,
                  IPrsStream prsStream,
                  int start_offset,
                  int end_offset)

reportLexicalError

public void reportLexicalError(int startLoc,
                               int endLoc)
If a parse stream was not passed to this Lexical analyser then we simply report a lexical error. Otherwise, we produce a bad token.


initialize

public void initialize(char[] content,
                       java.lang.String filename)

getKind

public final int getKind(int i)

ruleAction

public void ruleAction(int ruleNumber)


© Copyright 2008 IBM Corp. 2008 All Rights Reserved