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

The additional superset SABNF operators. More...

#include "./apg.h"
#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-sabnf.c:

Go to the source code of this file.

Functions

void vUdt (parser *spCtx, const opcode *spOp)
 
void vAnd (parser *spCtx, const opcode *spOp)
 
void vNot (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

The additional superset SABNF operators.

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

Definition in file operators-sabnf.c.

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.

◆ 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.

◆ vNot()

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

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