ExC v0.4.2 IO.Printer View Source

Prints elements and errors on screen.

Link to this section Summary

Functions

Method that handles the pretty printing process.

Method that helps ExC modules to check if the output should be verbosed or not. The modules that call this method are CodeGenerator, CodeOptimizer and CodeConnector.

Specs

label String with the element name.

Link to this section Functions

Link to this function

_print_error(class, fault_element, reason, location, row_col)

View Source

Method that handles the pretty printing process.

Specs

class class where the error occurred.

fault_element fault token that produced the error.

reason message that indicating the reason for the error.

location path the the file containing the error.

row_col string that containts the row and col of the error.

Link to this function

check_for_verbose(code, module_str, bool)

View Source

Method that helps ExC modules to check if the output should be verbosed or not. The modules that call this method are CodeGenerator, CodeOptimizer and CodeConnector.

Specs

code assembly code to be printed.

module_str string that identifies the calling method. To use this correctly, use the module Common.StringElements and call the appropiate method for the desired module.

verbose Boolean indicating if the output should be shown.