Version 1.0
Copyright © 2022 Lowell D. Thomas
Python APG
 … an ABNF Parser Generator
Namespaces | Functions
scanner_callbacks.py File Reference

All of the callback functions for the scanner parser's AST. More...

Go to the source code of this file.

Namespaces

 apg_py.api.scanner_callbacks
 

Functions

def apg_py.api.scanner_callbacks.scanner_line (state, input, phrase_index, phrase_length, data)
 Add a line to the line catalog. More...
 
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. More...
 
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.) More...
 
def apg_py.api.scanner_callbacks.scanner_invalid (state, input, phrase_index, phrase_length, data)
 Handle an invalid character. More...
 
def apg_py.api.scanner_callbacks.scanner_end (state, input, phrase_index, phrase_length, data)
 Keep track of the current line number. More...
 
def apg_py.api.scanner_callbacks.scanner_lf (state, input, phrase_index, phrase_length, data)
 Recognize a line feed line ending. More...
 
def apg_py.api.scanner_callbacks.scanner_cr (state, input, phrase_index, phrase_length, data)
 Recognize a carriage return line ending. More...
 
def apg_py.api.scanner_callbacks.scanner_crlf (state, input, phrase_index, phrase_length, data)
 Recognize a carriage return, line feed combination line ending. More...
 

Detailed Description

All of the callback functions for the scanner parser's AST.

Definition in file scanner_callbacks.py.

Python APG, Version 1.0, is licensed under the 2-Clause BSD License,
an Open Source Initiative Approved License.