CLASS: ScriptParser
Class ScriptParser

ScriptParser is the class that does the actual parsing of the LotusScript source. ScriptParser is used from the Script object when the Parse() method is called.


Methods Summary
PublicNew(line_in As LineInputStream)
     Constructor.
PublicParseToVector(script_elements As Vector)
     Parses the source given to the parser in the constructor into the vector.

Functions Summary
Public VectorParse()
     Parses the source given to the parser in the constructor.

Method Detail

New

Public New(line_in As LineInputStream)
Constructor.
Parameter(s):
line_in - The LineInputStream to read the source code from.

ParseToVector

Public Sub ParseToVector(script_elements As Vector)
Parses the source given to the parser in the constructor into the vector.The method uses the LineInputStream and it doesn't reset it before starting so the method cannot be called two times in a row on the same LineInputStream.
Parameter(s):
script_elements - The Vector to store the found ScriptElement objects in.

Function Detail

Parse

Public Function Parse() As Vector
Parses the source given to the parser in the constructor. The method uses the LineInputStream and it doesn't reset it before starting so the method cannot be called two times in a row on the same LineInputStream.
Returns:
Vector of ScriptElements