Functions | |
def | scanner_line (state, input, phrase_index, phrase_length, data) |
Add a line to the line catalog. More... | |
def | scanner_last_line (state, input, phrase_index, phrase_length, data) |
Deal with a last line with no line ending. More... | |
def | scanner_line_text (state, input, phrase_index, phrase_length, data) |
Capture the line text (integers from beginning of line to end.) More... | |
def | scanner_invalid (state, input, phrase_index, phrase_length, data) |
Handle an invalid character. More... | |
def | scanner_end (state, input, phrase_index, phrase_length, data) |
Keep track of the current line number. More... | |
def | scanner_lf (state, input, phrase_index, phrase_length, data) |
Recognize a line feed line ending. More... | |
def | scanner_cr (state, input, phrase_index, phrase_length, data) |
Recognize a carriage return line ending. More... | |
def | scanner_crlf (state, input, phrase_index, phrase_length, data) |
Recognize a carriage return, line feed combination line ending. More... | |
def apg_py.api.scanner_callbacks.scanner_cr | ( | state, | |
input, | |||
phrase_index, | |||
phrase_length, | |||
data | |||
) |
Recognize a carriage return line ending.
state | The tranlation state,
|
input | The full tuple of input integers. |
phrase_index | The index of the first integer in the matched phrase. |
phrase_length | The number of integers in the matched phrase. |
data | User data that was passed to the AST translation, if any. This is available for the user and is never examined, used or changed by the AST translator. |
Definition at line 149 of file scanner_callbacks.py.
def apg_py.api.scanner_callbacks.scanner_crlf | ( | state, | |
input, | |||
phrase_index, | |||
phrase_length, | |||
data | |||
) |
Recognize a carriage return, line feed combination line ending.
state | The tranlation state,
|
input | The full tuple of input integers. |
phrase_index | The index of the first integer in the matched phrase. |
phrase_length | The number of integers in the matched phrase. |
data | User data that was passed to the AST translation, if any. This is available for the user and is never examined, used or changed by the AST translator. |
Definition at line 174 of file scanner_callbacks.py.
def apg_py.api.scanner_callbacks.scanner_end | ( | state, | |
input, | |||
phrase_index, | |||
phrase_length, | |||
data | |||
) |
Keep track of the current line number.
state | The tranlation state,
|
input | The full tuple of input integers. |
phrase_index | The index of the first integer in the matched phrase. |
phrase_length | The number of integers in the matched phrase. |
data | User data that was passed to the AST translation, if any. This is available for the user and is never examined, used or changed by the AST translator. |
Definition at line 107 of file scanner_callbacks.py.
def apg_py.api.scanner_callbacks.scanner_invalid | ( | state, | |
input, | |||
phrase_index, | |||
phrase_length, | |||
data | |||
) |
Handle an invalid character.
state | The tranlation state,
|
input | The full tuple of input integers. |
phrase_index | The index of the first integer in the matched phrase. |
phrase_length | The number of integers in the matched phrase. |
data | User data that was passed to the AST translation, if any. This is available for the user and is never examined, used or changed by the AST translator. |
Definition at line 84 of file scanner_callbacks.py.
def apg_py.api.scanner_callbacks.scanner_last_line | ( | state, | |
input, | |||
phrase_index, | |||
phrase_length, | |||
data | |||
) |
Deal with a last line with no line ending.
state | The tranlation state,
|
input | The full tuple of input integers. |
phrase_index | The index of the first integer in the matched phrase. |
phrase_length | The number of integers in the matched phrase. |
data | User data that was passed to the AST translation, if any. This is available for the user and is never examined, used or changed by the AST translator. |
Definition at line 34 of file scanner_callbacks.py.
def apg_py.api.scanner_callbacks.scanner_lf | ( | state, | |
input, | |||
phrase_index, | |||
phrase_length, | |||
data | |||
) |
Recognize a line feed line ending.
state | The tranlation state,
|
input | The full tuple of input integers. |
phrase_index | The index of the first integer in the matched phrase. |
phrase_length | The number of integers in the matched phrase. |
data | User data that was passed to the AST translation, if any. This is available for the user and is never examined, used or changed by the AST translator. |
Definition at line 124 of file scanner_callbacks.py.
def apg_py.api.scanner_callbacks.scanner_line | ( | state, | |
input, | |||
phrase_index, | |||
phrase_length, | |||
data | |||
) |
Add a line to the line catalog.
state | The tranlation state,
|
input | The full tuple of input integers. |
phrase_index | The index of the first integer in the matched phrase. |
phrase_length | The number of integers in the matched phrase. |
data | User data that was passed to the AST translation, if any. This is available for the user and is never examined, used or changed by the AST translator. |
Definition at line 7 of file scanner_callbacks.py.
def apg_py.api.scanner_callbacks.scanner_line_text | ( | state, | |
input, | |||
phrase_index, | |||
phrase_length, | |||
data | |||
) |
Capture the line text (integers from beginning of line to end.)
state | The tranlation state,
|
input | The full tuple of input integers. |
phrase_index | The index of the first integer in the matched phrase. |
phrase_length | The number of integers in the matched phrase. |
data | User data that was passed to the AST translation, if any. This is available for the user and is never examined, used or changed by the AST translator. |
Definition at line 67 of file scanner_callbacks.py.