StarOffice 5.2 API
reverse engineered by classdoc

stardiv.js.comp
Class Parser

java.lang.Object
  |
  +--stardiv.js.comp.Parser

public synchronized class Parser
extends java.lang.Object


Field Summary
private  stardiv.js.ip.CompilerAccess aCompiler
           
private  stardiv.memory.Vector aErrorLog
           
private  stardiv.js.comp.ExprParser aExprParser
           
private  stardiv.memory.Vector aFunctionVector
           
private  stardiv.memory.Vector aGlobalVarVector
           
private  stardiv.js.comp.ParserStatus aParseStatus
           
private  stardiv.js.comp.Tokenizer aTokenizer
           
private  boolean bParseOnDemand
           
private  int iEndPos
           
private  int iStartPos
           
private  stardiv.js.comp.StatementNode pFirstNode
           
private  java.lang.String sSrc
           
 
Constructor Summary
Parser(stardiv.js.comp.Tokenizer t)
           
Parser(stardiv.js.comp.Tokenizer t, stardiv.memory.Vector v, stardiv.js.ip.CompilerAccess ca)
           
 
Method Summary
private  void addFunction(stardiv.js.comp.FunctionNode fn)
           
private  void addGlobalVar(stardiv.js.comp.VarNode vn)
           
private static stardiv.js.comp.StatementNode appendNode(stardiv.js.comp.StatementNode sn1, stardiv.js.comp.StatementNode sn2)
           
 stardiv.js.comp.StatementNode getFirstNode()
           
(package private)  stardiv.memory.Vector getFunctionVector()
           
(package private)  stardiv.memory.Vector getGlobalVarVector()
           
(package private)  stardiv.js.comp.Tokenizer getTokenizer()
           
private  void handleError(int i)
           
(package private) static void handleError(int i1, int i2, int i3, java.lang.String s, stardiv.memory.Vector v)
           
 void initParsing(java.lang.String s)
           
private  boolean isLabelOperator(stardiv.tokenizer.Token t)
           
private  stardiv.tokenizer.Token nextToken_NW()
           
(package private)  stardiv.js.comp.StatementNode parseBlockForFunction(stardiv.js.comp.FunctionNode fn)
           
private  stardiv.js.comp.StatementNode parseBreak(int i1, int i2)
           
private  stardiv.js.comp.StatementNode parseCase(int i1, int i2)
           
private  stardiv.js.comp.StatementNode parseContinue(int i1, int i2)
           
private  stardiv.js.comp.StatementNode parseDefault(int i1, int i2)
           
private  stardiv.js.comp.StatementNode parseDoWhile(int i1, int i2)
           
private  stardiv.js.comp.StatementNode parseExpression(stardiv.tokenizer.Token t, int i1, int i2)
           
private  stardiv.js.comp.StatementNode parseFor(int i1, int i2)
           
private  stardiv.js.comp.StatementNode parseFunction(int i1, int i2)
           
private  java.lang.String parseIdentifier()
           
private  stardiv.js.comp.StatementNode parseIf(int i1, int i2)
           
 void parseIt()
           
private  stardiv.js.comp.StatementNode parseItImpl(boolean b1, boolean b2)
           
private  stardiv.js.comp.StatementNode parseNextBlockStatement()
           
private  stardiv.js.comp.StatementNode parseNextStatement()
           
private  stardiv.js.comp.StatementNode parseNextStatement(boolean b1, boolean b2)
           
private  stardiv.js.comp.StatementNode parseReturn(int i1, int i2)
           
private  stardiv.js.comp.StatementNode parseSwitch(int i1, int i2)
           
private  stardiv.js.comp.StatementNode parseVar(int i1, int i2, boolean b)
           
private  stardiv.js.comp.StatementNode parseWhile(int i1, int i2)
           
private  stardiv.js.comp.StatementNode parseWith(int i1, int i2)
           
private  stardiv.tokenizer.Token peekToken_NW()
           
 void showTotalList(java.io.PrintStream ps)
           
private  void testForBlockEnd()
           
private  boolean testForEOS(boolean b)
           
private  boolean testForEOS(boolean b1, boolean b2)
           
private  boolean testForLParam(boolean b)
           
private  boolean testForRParam(boolean b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

aCompiler

private stardiv.js.ip.CompilerAccess aCompiler

aErrorLog

private stardiv.memory.Vector aErrorLog

aExprParser

private stardiv.js.comp.ExprParser aExprParser

aFunctionVector

private stardiv.memory.Vector aFunctionVector

aGlobalVarVector

private stardiv.memory.Vector aGlobalVarVector

aParseStatus

private stardiv.js.comp.ParserStatus aParseStatus

aTokenizer

private stardiv.js.comp.Tokenizer aTokenizer

bParseOnDemand

private boolean bParseOnDemand

iEndPos

private int iEndPos

iStartPos

private int iStartPos

pFirstNode

private stardiv.js.comp.StatementNode pFirstNode

sSrc

private java.lang.String sSrc
Constructor Detail

Parser

public Parser(stardiv.js.comp.Tokenizer t)

Parser

public Parser(stardiv.js.comp.Tokenizer t,
              stardiv.memory.Vector v,
              stardiv.js.ip.CompilerAccess ca)
Method Detail

addFunction

private final void addFunction(stardiv.js.comp.FunctionNode fn)

addGlobalVar

private final void addGlobalVar(stardiv.js.comp.VarNode vn)

appendNode

private static final stardiv.js.comp.StatementNode appendNode(stardiv.js.comp.StatementNode sn1,
                                                              stardiv.js.comp.StatementNode sn2)

getFirstNode

public final stardiv.js.comp.StatementNode getFirstNode()

getFunctionVector

final stardiv.memory.Vector getFunctionVector()

getGlobalVarVector

final stardiv.memory.Vector getGlobalVarVector()

getTokenizer

final stardiv.js.comp.Tokenizer getTokenizer()

handleError

private final void handleError(int i)
                        throws stardiv.js.base.ParserException

handleError

static final void handleError(int i1,
                              int i2,
                              int i3,
                              java.lang.String s,
                              stardiv.memory.Vector v)
                       throws stardiv.js.base.ParserException

initParsing

public final void initParsing(java.lang.String s)

isLabelOperator

private final boolean isLabelOperator(stardiv.tokenizer.Token t)

nextToken_NW

private final stardiv.tokenizer.Token nextToken_NW()

parseBlockForFunction

final stardiv.js.comp.StatementNode parseBlockForFunction(stardiv.js.comp.FunctionNode fn)
                                                   throws stardiv.js.base.ParserException

parseBreak

private final stardiv.js.comp.StatementNode parseBreak(int i1,
                                                       int i2)
                                                throws stardiv.js.base.ParserException

parseCase

private final stardiv.js.comp.StatementNode parseCase(int i1,
                                                      int i2)
                                               throws stardiv.js.base.ParserException

parseContinue

private final stardiv.js.comp.StatementNode parseContinue(int i1,
                                                          int i2)
                                                   throws stardiv.js.base.ParserException

parseDefault

private final stardiv.js.comp.StatementNode parseDefault(int i1,
                                                         int i2)
                                                  throws stardiv.js.base.ParserException

parseDoWhile

private final stardiv.js.comp.StatementNode parseDoWhile(int i1,
                                                         int i2)
                                                  throws stardiv.js.base.ParserException

parseExpression

private final stardiv.js.comp.StatementNode parseExpression(stardiv.tokenizer.Token t,
                                                            int i1,
                                                            int i2)
                                                     throws stardiv.js.base.ParserException

parseFor

private final stardiv.js.comp.StatementNode parseFor(int i1,
                                                     int i2)
                                              throws stardiv.js.base.ParserException

parseFunction

private final stardiv.js.comp.StatementNode parseFunction(int i1,
                                                          int i2)
                                                   throws stardiv.js.base.ParserException

parseIdentifier

private final java.lang.String parseIdentifier()
                                        throws stardiv.js.base.ParserException

parseIf

private final stardiv.js.comp.StatementNode parseIf(int i1,
                                                    int i2)
                                             throws stardiv.js.base.ParserException

parseIt

public final void parseIt()
                   throws stardiv.js.base.ParserException

parseItImpl

private final stardiv.js.comp.StatementNode parseItImpl(boolean b1,
                                                        boolean b2)
                                                 throws stardiv.js.base.ParserException

parseNextBlockStatement

private final stardiv.js.comp.StatementNode parseNextBlockStatement()
                                                             throws stardiv.js.base.ParserException

parseNextStatement

private final stardiv.js.comp.StatementNode parseNextStatement()
                                                        throws stardiv.js.base.ParserException

parseNextStatement

private final stardiv.js.comp.StatementNode parseNextStatement(boolean b1,
                                                               boolean b2)
                                                        throws stardiv.js.base.ParserException

parseReturn

private final stardiv.js.comp.StatementNode parseReturn(int i1,
                                                        int i2)
                                                 throws stardiv.js.base.ParserException

parseSwitch

private final stardiv.js.comp.StatementNode parseSwitch(int i1,
                                                        int i2)
                                                 throws stardiv.js.base.ParserException

parseVar

private final stardiv.js.comp.StatementNode parseVar(int i1,
                                                     int i2,
                                                     boolean b)
                                              throws stardiv.js.base.ParserException

parseWhile

private final stardiv.js.comp.StatementNode parseWhile(int i1,
                                                       int i2)
                                                throws stardiv.js.base.ParserException

parseWith

private final stardiv.js.comp.StatementNode parseWith(int i1,
                                                      int i2)
                                               throws stardiv.js.base.ParserException

peekToken_NW

private final stardiv.tokenizer.Token peekToken_NW()

showTotalList

public void showTotalList(java.io.PrintStream ps)

testForBlockEnd

private final void testForBlockEnd()
                            throws stardiv.js.base.ParserException

testForEOS

private final boolean testForEOS(boolean b)
                          throws stardiv.js.base.ParserException

testForEOS

private final boolean testForEOS(boolean b1,
                                 boolean b2)
                          throws stardiv.js.base.ParserException

testForLParam

private final boolean testForLParam(boolean b)
                             throws stardiv.js.base.ParserException

testForRParam

private final boolean testForRParam(boolean b)
                             throws stardiv.js.base.ParserException

StarOffice 5.2 API
reverse engineered by classdoc