Papageno
An Advanced Pattern Matching Library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions
ppg_pattern.h File Reference
#include "ppg_token.h"

Go to the source code of this file.

Functions

PPG_Token ppg_pattern (PPG_Layer layer, PPG_Count n_tokens, PPG_Token tokens[])
 Defines a pattern that consists of tokens. More...
 

Function Documentation

PPG_Token ppg_pattern ( PPG_Layer  layer,
PPG_Count  n_tokens,
PPG_Token  tokens[] 
)

Defines a pattern that consists of tokens.

Note
Use setter functions that operate on tokens to change attributes of the tokens that make up the pattern. This is e.g. required to assign an action to a token, or to modify fall through behavior.
Parameters
layerThe layer the pattern is associated with
n_tokensThe number of tokens combined to form the pattern
tokensThe tokens that make up the pattern
Returns
The final token