Class Compiler
Inheritance
System.Object
Compiler
Assembly: XSharp.dll
Syntax
public class Compiler : object
Constructors
|
Improve this Doc
View Source
Compiler(TextWriter)
Declaration
public Compiler(TextWriter aOut)
Parameters
Type |
Name |
Description |
TextWriter |
aOut |
|
Fields
|
Improve this Doc
View Source
EmitSourceCode
Declaration
public bool EmitSourceCode
Field Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Declaration
public bool EmitUserComments
Field Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Indent
Declaration
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
mNASM
Declaration
protected readonly NASM mNASM
Field Value
|
Improve this Doc
View Source
mTokenMap
Declaration
Field Value
Type |
Description |
Spruce.Tokens.Root |
|
|
Improve this Doc
View Source
Out
Declaration
public readonly TextWriter Out
Field Value
Type |
Description |
TextWriter |
|
|
Improve this Doc
View Source
SourceProviders
Declaration
public List<Func<string, TextReader>> SourceProviders
Field Value
Type |
Description |
List<Func<System.String, TextReader>> |
|
Properties
|
Improve this Doc
View Source
Blocks
The set of blocks for the currently assembled function.
Each time we begin assembling a new function this blocks collection is reset to an empty state.
Declaration
public Compiler.BlockList Blocks { get; }
Property Value
|
Improve this Doc
View Source
CurrentFunction
Declaration
public string CurrentFunction { get; set; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
CurrentFunctionExitLabel
The current function exit label.
Declaration
public string CurrentFunctionExitLabel { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
CurrentFunctionType
The type of the current function.
Declaration
public Compiler.BlockType CurrentFunctionType { get; set; }
Property Value
|
Improve this Doc
View Source
CurrentLabel
Declaration
public string CurrentLabel { get; set; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
CurrentNamespace
Declaration
public string CurrentNamespace { get; set; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
FunctionExitLabelFound
Did we find an explicit 'Exit:' label?
Declaration
public bool FunctionExitLabelFound { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
LineNo
Declaration
public int LineNo { get; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
|
Improve this Doc
View Source
Emit(TextReader)
Declaration
public void Emit(TextReader aIn)
Parameters
Type |
Name |
Description |
TextReader |
aIn |
|
|
Improve this Doc
View Source
GetFullName(String, Boolean)
Declaration
public string GetFullName(string aName, bool isLabel = false)
Parameters
Type |
Name |
Description |
System.String |
aName |
|
System.Boolean |
isLabel |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
WriteLine(String)
Declaration
public void WriteLine(string aText = "")
Parameters
Type |
Name |
Description |
System.String |
aText |
|