pega-texto
A Parsing Expression Grammars (PEG) runtime engine in C
Data Fields
pt_match_result Struct Reference

Match result: a {number of matched chars/match error code, action result} pair. More...

#include <pega-texto.h>

Data Fields

int matched
 If non-negative, represents the number of characters matched; otherwise, it's an error code.
 
PT_DATA data
 Resulting data from the last top-level Action. More...
 

Detailed Description

Match result: a {number of matched chars/match error code, action result} pair.

Definition at line 339 of file pega-texto.h.

Field Documentation

◆ data

PT_DATA data

Resulting data from the last top-level Action.

Note
If you need a single result for all top-level Actions, just create an outer one that folds them (which will always be the last top-level one).

Definition at line 348 of file pega-texto.h.


The documentation for this struct was generated from the following file: