C# Класс kompiler.Facade

This class abstracts the inner mechanics of the process of compilation, to provide a handle for the UI
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
GetFacade ( ) : Facade
lex ( string source ) : bool

Returns true on successful lexing, and false otherwise. Member datum m_tokenDump will contain valid tokens and m_errors will report errors.

parse ( string source, string projectName ) : bool

Lexes then parses source code; m_assemblyDump holds main assembly code and m_errors holds error messages on failure Creates a project folder for the source code based on the projectName parameter

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

Метод Описание
Facade ( ) : System

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

GetFacade() публичный статический Метод

public static GetFacade ( ) : Facade
Результат Facade

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

Returns true on successful lexing, and false otherwise. Member datum m_tokenDump will contain valid tokens and m_errors will report errors.
public lex ( string source ) : bool
source string source code to parse as a string
Результат bool

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

Lexes then parses source code; m_assemblyDump holds main assembly code and m_errors holds error messages on failure Creates a project folder for the source code based on the projectName parameter
public parse ( string source, string projectName ) : bool
source string source code
projectName string
Результат bool