Version 1.0
Copyright © 2022 Lowell D. Thomas
Python APG
 … an ABNF Parser Generator
Public Member Functions | Public Attributes | List of all members
apg_py.exp.exp.Result Class Reference

A class for returning the results of a pattern match. More...

Public Member Functions

def __init__ (self, source, begin, length, node_hits, tree_depth, rules, names, ast, codes=False)
 The Result class constructor. More...
 
def __str__ (self)
 print(Result) will call this function for a display of the object. More...
 

Public Attributes

 source
 
 index
 
 indices
 
 match
 
 left_context
 
 right_context
 
 codes
 
 rules
 
 names
 
 ast
 
 node_hits
 
 max_tree_depth
 

Detailed Description

A class for returning the results of a pattern match.

Definition at line 15 of file exp.py.

Constructor & Destructor Documentation

◆ __init__()

def apg_py.exp.exp.Result.__init__ (   self,
  source,
  begin,
  length,
  node_hits,
  tree_depth,
  rules,
  names,
  ast,
  codes = False 
)

The Result class constructor.

Only called internally by ApgExp

Definition at line 19 of file exp.py.

Member Function Documentation

◆ __str__()

def apg_py.exp.exp.Result.__str__ (   self)

print(Result) will call this function for a display of the object.

Returns
Returns the display string.

Definition at line 45 of file exp.py.

Member Data Documentation

◆ ast

apg_py.exp.exp.Result.ast

Definition at line 41 of file exp.py.

◆ codes

apg_py.exp.exp.Result.codes

Definition at line 38 of file exp.py.

◆ index

apg_py.exp.exp.Result.index

Definition at line 33 of file exp.py.

◆ indices

apg_py.exp.exp.Result.indices

Definition at line 34 of file exp.py.

◆ left_context

apg_py.exp.exp.Result.left_context

Definition at line 36 of file exp.py.

◆ match

apg_py.exp.exp.Result.match

Definition at line 35 of file exp.py.

◆ max_tree_depth

apg_py.exp.exp.Result.max_tree_depth

Definition at line 43 of file exp.py.

◆ names

apg_py.exp.exp.Result.names

Definition at line 40 of file exp.py.

◆ node_hits

apg_py.exp.exp.Result.node_hits

Definition at line 42 of file exp.py.

◆ right_context

apg_py.exp.exp.Result.right_context

Definition at line 37 of file exp.py.

◆ rules

apg_py.exp.exp.Result.rules

Definition at line 39 of file exp.py.

◆ source

apg_py.exp.exp.Result.source

Definition at line 32 of file exp.py.


The documentation for this class was generated from the following file:
Python APG, Version 1.0, is licensed under the 2-Clause BSD License,
an Open Source Initiative Approved License.