Version 7.0
Copyright © 2021 Lowell D. Thomas
APG
… an ABNF Parser Generator
operators.h File Reference

Header file for the suite of the parser's operator functions. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

The Node Operation Functions

A function for each of the 15 different types of nodes defined by the SABNF grammar.

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

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)
 
void vUdt (parser *spCtx, const opcode *spop)
 
void vAnd (parser *spCtx, const opcode *spop)
 
void vNot (parser *spCtx, const opcode *spop)
 
void vBkr (parser *spCtx, const opcode *spop)
 
void vBka (parser *spCtx, const opcode *spop)
 
void vBkn (parser *spCtx, const opcode *spop)
 
void vAbg (parser *spCtx, const opcode *spop)
 
void vAen (parser *spCtx, const opcode *spop)
 

Detailed Description

Header file for the suite of the parser's operator functions.

Definition in file operators.h.

Function Documentation

◆ vAbg()

void vAbg ( parser *  spCtx,
const opcode *  spop 
)

Definition at line 233 of file operators-sabnf.c.

◆ vAen()

void vAen ( parser *  spCtx,
const opcode *  spop 
)

Definition at line 249 of file operators-sabnf.c.

◆ vAlt()

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

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

◆ vAnd()

void vAnd ( parser *  spCtx,
const opcode *  spop 
)

Definition at line 106 of file operators-sabnf.c.

◆ vBka()

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

The positive look-behind operator. Looks for a pattern match by iteratively working back from the current parser offset to the beginning of the input string (even if a sub-string is being parsed that does not begin and the beginning of the string) or the maximum look-behind length specified in the parser configuration.

  1. BKA exists mainly to support a pattern-matching engine.
  2. This is not an efficient procedure. BKA should be avoided if parsing speed is imperative.
  3. Look behind stops at the first (and shortest) phrase matched.
  4. If the look-behind phrase can accept an empty string BKA will always succeed.

Definition at line 189 of file operators-sabnf.c.

◆ vBkn()

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

The negative look-behind operator. Looks for a pattern match by iteratively working back from the current parser offset to the beginning of the input string (even if a sub-string is being parsed that does not begin and the beginning of the string) or the maximum look-behind length specified in the parser configuration.

  1. BKN exists mainly to support a pattern-matching engine.
  2. This is not an efficient procedure. BKN should be avoided if parsing speed is imperative.
  3. Look behind stops at the first (and shortest) phrase matched.
  4. If the look-behind phrase can accept an empty string BKN will always fail.

Definition at line 215 of file operators-sabnf.c.

◆ vBkr()

void vBkr ( parser *  spCtx,
const opcode *  spop 
)

Definition at line 51 of file operators-bkr.c.

◆ vCat()

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

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

◆ vNot()

void vNot ( parser *  spCtx,
const opcode *  spop 
)

Definition at line 130 of file operators-sabnf.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.

◆ vUdt()

void vUdt ( parser *  spCtx,
const opcode *  spop 
)

Definition at line 49 of file operators-sabnf.c.

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