Class Comments
Class that processes comments and literals for X#.
Namespace: XSharp.x86.Emitters
Assembly: XSharp.dll
Syntax
public class Comments : Emitters
Constructors
| Improve this Doc View SourceComments(Compiler, Assembler)
Declaration
public Comments(Compiler aCompiler, Assembler aAsm)
Parameters
Type | Name | Description |
---|---|---|
Compiler | aCompiler | |
Assembler | aAsm |
Methods
| Improve this Doc View SourceComment(String, String)
Comments output. The value is not processed and printed out with a preceeding semicolon.
Declaration
protected void Comment(string aOp, string aText)
Parameters
Type | Name | Description |
---|---|---|
System.String | aOp | |
System.String | aText |
Examples
// Comment text
Output: ; Comment text
CommentEmpty(String)
Comments output. The value is not processed and printed out with a preceeding semicolon. This is specifically for empty comments
Declaration
protected void CommentEmpty(string aOp)
Parameters
Type | Name | Description |
---|---|---|
System.String | aOp |
Examples
// Comment text
Output: ; Comment text
See Also
| Improve this Doc View SourceLiteral(String, String)
Literal NASM output. The text will be directly printed out by the compiler and will not be processed
Declaration
protected void Literal(string aOp, string aText)
Parameters
Type | Name | Description |
---|---|---|
System.String | aOp | |
System.String | aText |
Examples
//! Value
Output: Value