C# Класс AGS.CScript.Compiler.Preprocessor

Наследование: IPreprocessor
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

DefineMacro() публичный Метод

public DefineMacro ( string name, string value ) : void
name string
value string
Результат void

Preprocess() публичный Метод

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
Результат string