C# Class AGS.CScript.Compiler.Preprocessor

Inheritance: IPreprocessor
显示文件 Open project: adventuregamestudio/ags

Public Methods

Method Description
DefineMacro ( string name, string value ) : void
Preprocess ( string script, string scriptName ) : string

Preprocesses the script and returns the results. State is preserved between calls, which allows you to preprocess header files and then the main script in multiple calls.

Private Methods

Method Description
DeletingCurrentLine ( ) : bool
FindIndexOfMatchingCharacter ( string text, int indexOfFirstSpeechMark, char charToMatch ) : int
GetNextWord ( string &text ) : string
GetNextWord ( string &text, bool trimText, bool includeDots ) : string
PreProcessDirective ( string line ) : string
PreProcessLine ( string lineToProcess ) : string
Preprocessor ( string applicationVersion ) : System
ProcessConditionalDirective ( string directive, string line, CompileResults results ) : void
RecordError ( ErrorCode errorCode, string message ) : void
RemoveComments ( string text ) : string

Method Details

DefineMacro() public method

public DefineMacro ( string name, string value ) : void
name string
value string
return void

Preprocess() public method

Preprocesses the script and returns the results. State is preserved between calls, which allows you to preprocess header files and then the main script in multiple calls.
public Preprocess ( string script, string scriptName ) : string
script string
scriptName string
return string