Method | Description | |
---|---|---|
Accept ( IParserVisitor visitor ) : void |
Feed this method with a visitor implementing IParserVisitor to visit all the parsed items
|
|
Parser ( ) : System | ||
Parser ( |
Parses a text into a list of parsedItems
|
|
Parser ( string data, string filePathBeingParsed, |
Constructor with a string instead of a lexer
|
|
UpdateKnownStaticItems ( ) : void |
Method | Description | |
---|---|---|
AddParsedItem ( |
Call this method instead of adding the items directly in the list, updates the scope and file name
|
|
AddTokenToStringBuilder ( StringBuilder strBuilder, |
Append a token value to the StringBuilder, avoid adding too much spaces and new lines
|
|
Analyze ( ) : void | ||
CreateParsedDefine ( |
Matches a new definition
|
|
CreateParsedDynamicFunction ( |
Creates a dynamic function parsed item
|
|
CreateParsedFunction ( |
Matches a function definition (not the FORWARD prototype)
|
|
CreateParsedIfEndIfPreProc ( |
Matches a & IF.. & THEN pre-processed statement
|
|
CreateParsedIncludeFile ( |
matches a include file
|
|
CreateParsedLabel ( ) : void |
Creates a label parsed item
|
|
CreateParsedOnEvent ( |
Creates parsed item for ON CHOOSE OF XXX events (choose or anything else)
|
|
CreateParsedPreProc ( |
Analyze a preprocessed statement
|
|
CreateParsedProcedure ( |
Matches a procedure definition
|
|
CreateParsedRun ( |
Creates a parsed item for RUN statements
|
|
GetCurrentDepth ( ) : int |
Returns the current block depth
|
|
GetParsedParameters ( |
Parses a parameter definition (used in function, class method, class event)
|
|
GetTokenStrippedValue ( |
Returns token value or token value minus starting/ending quote of the token is a string
|
|
MoveNext ( ) : bool |
Go to the next token
|
|
NewLexerFromData ( string data ) : |
||
NewStatement ( |
called when a Eos token is found, store information on the statement's line
|
|
PeekAt ( int x ) : |
Peek forward x tokens, returns an TokenEof if out of limits
|
|
PeekAtNextNonSpace ( int start, bool goBackward = false ) : |
Peek forward (or backward if goBackWard = true) until we match a token that is not a space token return found token
|
|
PushBlockInfoToStack ( IndentType indentType, int currentLine ) : void |
Add a block info on top of the block Stack
|
public Accept ( IParserVisitor visitor ) : void | ||
visitor | IParserVisitor | |
return | void |
public Parser ( |
||
lexer | ||
filePathBeingParsed | string | |
defaultScope | ||
matchKnownWords | bool | |
return | System |
public Parser ( string data, string filePathBeingParsed, |
||
data | string | |
filePathBeingParsed | string | |
defaultScope | ||
matchKnownWords | bool | |
return | System |
public static UpdateKnownStaticItems ( ) : void | ||
return | void |