ExC v0.4.2 Error.RowColDetecter View Source

Module that identifies the row and column inside the source code string of the fault token identified in the lexing process.

Link to this section Summary

Functions

Given a token and a source code string, it will return a tuple containing the row and column of the token inside the source code. As a side note, the source code string must be raw, which means it should contain the newline and tabs special characters.

Link to this section Functions

Link to this function

find_row_col(token, raw_source_code_string)

View Source

Given a token and a source code string, it will return a tuple containing the row and column of the token inside the source code. As a side note, the source code string must be raw, which means it should contain the newline and tabs special characters.

Specs

token fault token identified in the Lexer output.

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