C# Класс kompiler.FileWriter

Показать файл Открыть проект

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

Метод Описание
Add ( string code ) : void

Writes code to the current procedure

CloseFiles ( ) : void

Closes all files and sets the directory back up one level

DeclString ( string stringDecl ) : void

Writes a string declaration to the correct file

EndProcedure ( int memUse ) : void

Add the necessary "ProcName ENDP" and close the current procedure's file Perform basic efficieny guarentee by eliminating extraneous push/pop combos

FileWriter ( string projectName ) : System

Prepare the project's directory, with masm files, and strings/procedures include files. Change to that directory

Make ( ) : void

Run the windows command batch file to build and link the project

NewProcedure ( string procedureName ) : void

Creates a procedure; Will add the proper header to the new procedure : "functionName PROC" Sets the current working procedure to this one, to be written to by sequential Add() calls

ResetWorkingDirectory ( ) : void
WriteMainFile ( int mem ) : void

Write the top level program code to a file, that wraps and calls the main procedure

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

Метод Описание
WriteCommandFile ( string projectName ) : void

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

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

Writes code to the current procedure
public Add ( string code ) : void
code string
Результат void

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

Closes all files and sets the directory back up one level
public CloseFiles ( ) : void
Результат void

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

Writes a string declaration to the correct file
public DeclString ( string stringDecl ) : void
stringDecl string
Результат void

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

Add the necessary "ProcName ENDP" and close the current procedure's file Perform basic efficieny guarentee by eliminating extraneous push/pop combos
public EndProcedure ( int memUse ) : void
memUse int
Результат void

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

Prepare the project's directory, with masm files, and strings/procedures include files. Change to that directory
public FileWriter ( string projectName ) : System
projectName string
Результат System

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

Run the windows command batch file to build and link the project
public Make ( ) : void
Результат void

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

Creates a procedure; Will add the proper header to the new procedure : "functionName PROC" Sets the current working procedure to this one, to be written to by sequential Add() calls
public NewProcedure ( string procedureName ) : void
procedureName string
Результат void

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

public ResetWorkingDirectory ( ) : void
Результат void

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

Write the top level program code to a file, that wraps and calls the main procedure
public WriteMainFile ( int mem ) : void
mem int
Результат void