ExC v0.4.2 Error.ErrorDetecter View Source

Show errors generated by the output of Lexer.tokenize / 1 andParser.parse / 2 module methods.

Link to this section Summary

Functions

Specs

token fault token identified in the Lexer output.

Specs

status_atom atom that indicates the type of invalid action generated by the Parser output.

Link to this section Functions

Link to this function

lexer_error(token, file_path, raw_source_code_string)

View Source

Specs

token fault token identified in the Lexer output.

file_path is the path to the file to be compiled.

raw_source_code_string contains the source code string without any special characters removals like newline or tabs.

Link to this function

parser_error(atom, tl, error_cause, expected_structure, file_path, position_tuple)

View Source

Specs

status_atom atom that indicates the type of invalid action generated by the Parser output.

tl token list of all the bad tokens found in the source code.

error_causeNode that contains the node causing the source code compilation failure.

expected_structureNode that contains the expected node the source code needs to compile.

file_path is the path to the file to be compiled.

position_tuple tuple containing the row and col of the fault token.