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

Processes the syntax phase. Parses the grammar and reports any syntax errors. More...

#include "./api.h"
#include "./apip.h"
#include "../library/parserp.h"
#include "./syntax.h"
#include "./semantics.h"
#include "sabnf-grammar.h"
Include dependency graph for syntax.c:

Go to the source code of this file.

Functions

void vApiSyntax (void *vpCtx, abool bStrict)
 Parse the SABNF grammar to validate that the grammar structure is valid. More...
 

Detailed Description

Processes the syntax phase. Parses the grammar and reports any syntax errors.

Definition in file syntax.c.

Function Documentation

◆ vApiSyntax()

void vApiSyntax ( void *  vpCtx,
abool  bStrict 
)

Parse the SABNF grammar to validate that the grammar structure is valid.

Parameters
vpCtx- Pointer to an API context previously returned from vpApiCtor().
bStrictIf true, only strict RFC 5234 syntax is allowed. If false, full SABNF syntax is allowed.

Definition at line 51 of file syntax.c.

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