Midnight Blue Game and Engine
Public Member Functions | List of all members
MB2D.PrintASTNode Class Reference

Prints a variable to the console. More...

Inheritance diagram for MB2D.PrintASTNode:
Inheritance graph
Collaboration diagram for MB2D.PrintASTNode:
Collaboration graph

Public Member Functions

 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...
 

Detailed Description

Prints a variable to the console.

Constructor & Destructor Documentation

§ PrintASTNode()

MB2D.PrintASTNode.PrintASTNode ( string  var,
Token  type 
)
inline

Initializes a new instance of the T:MB2D.PrintASTNode class.

Parameters
varThe variables identifier or, if not found, the print statements argument.
typeThe variables token type

Member Function Documentation

§ 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
consoleConsole to print to.

Implements MB2D.MBConsoleASTNode.

Here is the call graph for this function:

The documentation for this class was generated from the following file: