Version 7.0
Copyright © 2021 Lowell D. Thomas
APG
… an ABNF Parser Generator
examples
ex-sip
udtlib.h
Go to the documentation of this file.
1
/* *************************************************************************************
2
Copyright (c) 2021, Lowell D. Thomas
3
All rights reserved.
4
5
This file is part of APG Version 7.0.
6
APG Version 7.0 may be used under the terms of the BSD 2-Clause License.
7
8
Redistribution and use in source and binary forms, with or without
9
modification, are permitted provided that the following conditions are met:
10
11
1. Redistributions of source code must retain the above copyright notice, this
12
list of conditions and the following disclaimer.
13
14
2. Redistributions in binary form must reproduce the above copyright notice,
15
this list of conditions and the following disclaimer in the documentation
16
and/or other materials provided with the distribution.
17
18
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
22
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
25
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
26
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
29
* *************************************************************************************/
30
#ifndef UDTLIB_H_
31
#define UDTLIB_H_
32
33
38
void
vSip1UdtCallbacks
(
void
* vpParserCtx);
39
void
u_Digit
(
callback_data
* spData);
40
void
u_Digit1
(
callback_data
* spData);
41
void
u_DomainLabel
(
callback_data
* spData);
42
void
e_MessageBody
(
callback_data
* spData);
43
void
e_SWS
(
callback_data
* spData);
44
void
u_CRLF
(
callback_data
* spData);
45
void
u_LWS
(
callback_data
* spData);
46
void
u_WSP
(
callback_data
* spData);
47
void
e_alphanum0
(
callback_data
* spData);
48
void
u_alphanum1
(
callback_data
* spData);
49
void
u_alphanum
(
callback_data
* spData);
50
void
u_ALPHA
(
callback_data
* spData);
51
void
u_paramchar1
(
callback_data
* spData);
52
void
u_unreserved
(
callback_data
* spData);
53
54
#endif
/* UDTLIB_H_ */
e_SWS
void e_SWS(callback_data *spData)
Optional linear white space. (See u_LWS.)
Definition:
udtlib.c:296
e_MessageBody
void e_MessageBody(callback_data *spData)
Evaluates the message body.
Definition:
udtlib.c:195
u_paramchar1
void u_paramchar1(callback_data *spData)
Definition:
udtlib.c:379
u_alphanum
void u_alphanum(callback_data *spData)
Definition:
udtlib.c:354
u_Digit1
void u_Digit1(callback_data *spData)
Definition:
udtlib.c:111
u_unreserved
void u_unreserved(callback_data *spData)
Definition:
udtlib.c:409
u_DomainLabel
void u_DomainLabel(callback_data *spData)
Evaluates the lower elements of a host name.
Definition:
udtlib.c:141
u_LWS
void u_LWS(callback_data *spData)
Linear white space. White space with possible line breaks allowed.
Definition:
udtlib.c:238
e_alphanum0
void e_alphanum0(callback_data *spData)
u_ALPHA
void u_ALPHA(callback_data *spData)
Definition:
udtlib.c:366
vSip1UdtCallbacks
void vSip1UdtCallbacks(void *vpParserCtx)
Set the UDT callback functions for the SIP2.bnf grammar to their respective parse tree nodes.
Definition:
udtlib.c:447
callback_data
The data struct passed to each callback function.
Definition:
parser.h:134
u_WSP
void u_WSP(callback_data *spData)
Definition:
udtlib.c:303
u_CRLF
void u_CRLF(callback_data *spData)
Evaluates the line end character sequence.
Definition:
udtlib.c:207
u_Digit
void u_Digit(callback_data *spData)
Definition:
udtlib.c:99
u_alphanum1
void u_alphanum1(callback_data *spData)
Generated on Sun Jun 13 2021 14:32:59 for APG by
1.8.17
APG Version 7.0 is licensed under the
2-Clause BSD License
,
an Open Source Initiative Approved License.