C# Class AGS.CScript.Compiler.Preprocessor

Inheritance: IPreprocessor
Afficher le fichier Open project: adventuregamestudio/ags

Méthodes publiques

Méthode 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

Méthode 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 méthode

public DefineMacro ( string name, string value ) : void
name string
value string
Résultat void

Preprocess() public méthode

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
Résultat string