Prints a variable to the console.
More...
|
| PrintASTNode (string var, Token type) |
| Initializes a new instance of the T:MB2D.PrintASTNode class. More...
|
|
override void | Handle (MBConsole console) |
| Prints the variable to the console. If it's not a previously assigned variable, it will print the variable name itself as if it's an immediate value. More...
|
|
Prints a variable to the console.
§ PrintASTNode()
MB2D.PrintASTNode.PrintASTNode |
( |
string |
var, |
|
|
Token |
type |
|
) |
| |
|
inline |
Initializes a new instance of the T:MB2D.PrintASTNode class.
- Parameters
-
var | The variables identifier or, if not found, the print statements argument. |
type | The variables token type |
§ Handle()
override void MB2D.PrintASTNode.Handle |
( |
MBConsole |
console | ) |
|
|
inlinevirtual |
Prints the variable to the console. If it's not a previously assigned variable, it will print the variable name itself as if it's an immediate value.
- Parameters
-
console | Console to print to. |
Implements MB2D.MBConsoleASTNode.
The documentation for this class was generated from the following file:
- MB2D/src/MBConsole/MBConsoleAST.cs