Adobe Source Libraries 1.49.0
A collection of C++ libraries.
Loading...
Searching...
No Matches

Callback class for the Adam parser. More...

#include <adobe/adam_parser.hpp>

Classes

class  relation_t
 Struct containing details of a relation expression for client callbacks from the Adam parser. More...

Public Types

enum  cell_type_t {
  input_k , output_k , constant_k , logic_k ,
  invariant_k
}
using add_cell_proc_t
using add_relation_proc_t
using add_interface_proc_t
using add_external_proc_t

Public Attributes

add_cell_proc_t add_cell_proc_m
add_relation_proc_t add_relation_proc_m
add_interface_proc_t add_interface_proc_m
add_external_proc_t add_external_proc_m

Detailed Description

Client-defined callback function used by the Adam parser to communicate with the client code. The Adam parser will discover cell declarations and will signal callbacks herein of those declarations.

Definition at line 131 of file adam_parser.hpp.

Member Typedef Documentation

◆ add_cell_proc_t

A callback function signature for a ConvertibleToFunction that needs to be supplied. During the parsing of an Adam definition, the client will receive cell declaration notifications through this callback.

Parameters
typecell type declared in the defintion.
cell_namename of the cell specified.
positionposition in the parse of the declaration.
expr_or_initarray of tokens representing one of several things.
brieftrailing comment to this cell.
detailedleading comment to this cell.

Definition at line 148 of file adam_parser.hpp.

◆ add_relation_proc_t

A callback function signature for a ConvertibleToFunction that needs to be supplied. During the parsing of an Adam definition, the client will receive relation declaration notifications through this callback.

Parameters
positionposition in the parse of the relation set declaration
conditionaltokenized expression array representing the optional conditional enabling this relation set.
firstfirst relation in the set.
lastone-past-the-last relation in the set.
brieftrailing comment to relation set.
detailedleading comment to relation set.
See also
relation_t for more information on the relation_t type.

Definition at line 152 of file adam_parser.hpp.

◆ add_interface_proc_t

A callback function signature for a ConvertibleToFunction that needs to be supplied. During the parsing of an Adam definition, the client will receive interface cell declaration notifications through this callback.

Parameters
cell_namename of the cell specified.
linkedspecifies if the output cell is back-linked to the input cell.
position1position1 in the parse of the declaration.
initializerarray of tokens representing the input cell initializer.
position2position2 in the parse of the declaration.
expressionarray of tokens representing the output cell relation expression.
brieftrailing comment to this cell.
detailedleading comment to this cell.

Definition at line 157 of file adam_parser.hpp.

◆ add_external_proc_t

Definition at line 162 of file adam_parser.hpp.

Member Enumeration Documentation

◆ cell_type_t

Enumeration type denoting the kind of cell found in the parse.

Enumerator
input_k 

Specifies a linked input cell for the add_cell_proc_m callback routine. If this cell type is specified the expression in the array_t is the cell initializer.

output_k 

Specifies an output cell for the add_cell_proc_m callback routine. If this cell type is specified the expression in the array_t is the relation expression.

constant_k 

Specifies a constant cell for the add_cell_proc_m callback routine. If this cell type is specified the expression in the array_t is the cell initializer.

logic_k 

Specifies a logic cell for the add_cell_proc_m callback routine. If this cell type is specified the expression in the array_t is the relation expression.

invariant_k 

Specifies an invariant cell for the add_cell_proc_m callback routine. If this cell type is specified the expression in the array_t is the relation expression.

Definition at line 132 of file adam_parser.hpp.

Member Data Documentation

◆ add_cell_proc_m

add_cell_proc_t add_cell_proc_m

Definition at line 166 of file adam_parser.hpp.

◆ add_relation_proc_m

add_relation_proc_t add_relation_proc_m

Definition at line 167 of file adam_parser.hpp.

◆ add_interface_proc_m

add_interface_proc_t add_interface_proc_m

Definition at line 168 of file adam_parser.hpp.

◆ add_external_proc_m

add_external_proc_t add_external_proc_m

Definition at line 169 of file adam_parser.hpp.