Version 7.0
Copyright © 2021 Lowell D. Thomas
APG
… an ABNF Parser Generator
Functions
operators-abnf.c File Reference

The original seven ABNF operators defined by RFC5234. More...

#include "./lib.h"
#include "./parserp.h"
#include "./astp.h"
#include "./tracep.h"
#include "./statsp.h"
#include "./operators.h"
#include "./backref.h"
#include "./backrefu.h"
#include "./backrefp.h"
Include dependency graph for operators-abnf.c:

Go to the source code of this file.

Functions

void vAlt (parser *spCtx, const opcode *spOp)
 
void vCat (parser *spCtx, const opcode *spOp)
 
void vRep (parser *spCtx, const opcode *spOp)
 
void vRnm (parser *spCtx, const opcode *spOp)
 
void vTrg (parser *spCtx, const opcode *spOp)
 
void vTls (parser *spCtx, const opcode *spOp)
 
void vTbs (parser *spCtx, const opcode *spOp)
 

Detailed Description

The original seven ABNF operators defined by RFC5234.

Note that each operation uses a set of pre-parsing macros (before proceeding down the tree) and a set of post-parsing macros (up the tree.) Many of the parsing features, such as tracing and PPPT use are configurable. Macros are used so that when a feature is configured to not be present, the macro is empty - it defines no code at all. Depending on the operator these would be:
pre-parsing

post-parsing

These functions are for internal, parser use only. They are never to be called directly by the application.

Definition in file operators-abnf.c.

Function Documentation

◆ vAlt()

void vAlt ( parser *  spCtx,
const opcode *  spOp 
)

Definition at line 66 of file operators-abnf.c.

◆ vCat()

void vCat ( parser *  spCtx,
const opcode *  spOp 
)

Definition at line 99 of file operators-abnf.c.

◆ vRep()

void vRep ( parser *  spCtx,
const opcode *  spOp 
)

Definition at line 148 of file operators-abnf.c.

◆ vRnm()

void vRnm ( parser *  spCtx,
const opcode *  spOp 
)

Definition at line 245 of file operators-abnf.c.

◆ vTbs()

void vTbs ( parser *  spCtx,
const opcode *  spOp 
)

Definition at line 386 of file operators-abnf.c.

◆ vTls()

void vTls ( parser *  spCtx,
const opcode *  spOp 
)

Definition at line 347 of file operators-abnf.c.

◆ vTrg()

void vTrg ( parser *  spCtx,
const opcode *  spOp 
)

Definition at line 323 of file operators-abnf.c.

APG Version 7.0 is licensed under the 2-Clause BSD License,
an Open Source Initiative Approved License.