find_match_walk/5—backtrack each matching entry in the match table from the most specific to the least specific
The find_match_walk/5 primitive backtracks each matching entry in the match table from the most specific to the least specific. The syntax for this primitive is as follows:
$RESULTS=find_match($TBLNAME,$TAG,$VALUES,$OBJECTS)
find_match_walk/5 arguments
Argument | Mode | Type | Description |
---|---|---|---|
$TBLNAME | Input | STRING | Specifies the class name of the match table |
$TAG | Input | STRING | Specifies the tag to identify the requested part of the match table |
$VALUES | Input | LIST_OF STRING | Specifies the values to be matched as inputs |
$OBJECTS | Input | LIST_OF OBJECT | Specifies the objects to be used for evaluation of the output expressions |
$RESULTS | Output | LIST_OF STRING | Results of the output expression evaluation |
Use the find_match_walk/5 primitive to backtrack each matching entry in the match table of class $TBLNAME, filtered by $TAG. The input for the match is the list of values specified in $VALUES. The objects $OBJECTS are to be used in the evaluation of the output expressions. Matching expressions from most-specific to least-specific matching entries are returned in $RESULTS.