aboutsummaryrefslogtreecommitdiff
path: root/libxml2-2.9.10/os400/libxmlrpg/xmlautomata.rpgle
blob: 0e9cc2239e7551c414531f926a0dd937198ef1ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
      * Summary: API to build regexp automata
      * Description: the API to build regexp automata
      *
      * Copy: See Copyright for the status of this software.
      *
      * Author: Patrick Monnerat <pm@datasphere.ch>, DATASPHERE S.A.

      /if not defined(XML_AUTOMATA_H__)
      /define XML_AUTOMATA_H__

      /include "libxmlrpg/xmlversion"

      /if defined(LIBXML_REGEXP_ENABLED)
      /if defined(LIBXML_AUTOMATA_ENABLED)

      /include "libxmlrpg/xmlTypesC"
      /include "libxmlrpg/tree"
      /include "libxmlrpg/xmlregexp"

      * xmlAutomataPtr:
      *
      * A libxml automata description, It can be compiled into a regexp

     d xmlAutomataPtr  s               *   based(######typedef######)

      * xmlAutomataStatePtr:
      *
      * A state int the automata description,

     d xmlAutomataStatePtr...
     d                 s               *   based(######typedef######)

      * Building API

     d xmlNewAutomata  pr                  extproc('xmlNewAutomata')
     d                                     like(xmlAutomataPtr)

     d xmlFreeAutomata...
     d                 pr                  extproc('xmlFreeAutomata')
     d  am                                 value like(xmlAutomataPtr)

     d xmlAutomataGetInitState...
     d                 pr                  extproc('xmlAutomataGetInitState')
     d                                     like(xmlAutomataStatePtr)
     d  am                                 value like(xmlAutomataPtr)

     d xmlAutomataSetFinalState...
     d                 pr                  extproc('xmlAutomataSetFinalState')
     d                                     like(xmlCint)
     d  am                                 value like(xmlAutomataPtr)
     d  state                              value like(xmlAutomataStatePtr)

     d xmlAutomataNewState...
     d                 pr                  extproc('xmlAutomataNewState')
     d                                     like(xmlAutomataStatePtr)
     d  am                                 value like(xmlAutomataPtr)

     d xmlAutomataNewTransition...
     d                 pr                  extproc('xmlAutomataNewTransition')
     d                                     like(xmlAutomataStatePtr)
     d  am                                 value like(xmlAutomataPtr)
     d  from                               value like(xmlAutomataStatePtr)
     d  to                                 value like(xmlAutomataStatePtr)
     d  token                          *   value options(*string)               const xmlChar *
     d  data                           *   value options(*string)               void *

     d xmlAutomataNewTransition2...
     d                 pr                  extproc('xmlAutomataNewTransition2')
     d                                     like(xmlAutomataStatePtr)
     d  am                                 value like(xmlAutomataPtr)
     d  from                               value like(xmlAutomataStatePtr)
     d  to                                 value like(xmlAutomataStatePtr)
     d  token                          *   value options(*string)               const xmlChar *
     d  token2                         *   value options(*string)               const xmlChar *
     d  data                           *   value options(*string)               void *

     d xmlAutomataNewNegTrans...
     d                 pr                  extproc('xmlAutomataNewNegTrans')
     d                                     like(xmlAutomataStatePtr)
     d  am                                 value like(xmlAutomataPtr)
     d  from                               value like(xmlAutomataStatePtr)
     d  to                                 value like(xmlAutomataStatePtr)
     d  token                          *   value options(*string)               const xmlChar *
     d  token2                         *   value options(*string)               const xmlChar *
     d  data                           *   value options(*string)               void *

     d xmlAutomataNewCountTrans...
     d                 pr                  extproc('xmlAutomataNewCountTrans')
     d                                     like(xmlAutomataStatePtr)
     d  am                                 value like(xmlAutomataPtr)
     d  from                               value like(xmlAutomataStatePtr)
     d  to                                 value like(xmlAutomataStatePtr)
     d  token                          *   value options(*string)               const xmlChar *
     d  min                                value like(xmlCint)
     d  max                                value like(xmlCint)
     d  data                           *   value options(*string)               void *

     d xmlAutomataNewCountTrans2...
     d                 pr                  extproc('xmlAutomataNewCountTrans2')
     d                                     like(xmlAutomataStatePtr)
     d  am                                 value like(xmlAutomataPtr)
     d  from                               value like(xmlAutomataStatePtr)
     d  to                                 value like(xmlAutomataStatePtr)
     d  token                          *   value options(*string)               const xmlChar *
     d  token2                         *   value options(*string)               const xmlChar *
     d  min                                value like(xmlCint)
     d  max                                value like(xmlCint)
     d  data                           *   value options(*string)               void *

     d xmlAutomataNewOnceTrans...
     d                 pr                  extproc('xmlAutomataNewOnceTrans')
     d                                     like(xmlAutomataStatePtr)
     d  am                                 value like(xmlAutomataPtr)
     d  from                               value like(xmlAutomataStatePtr)
     d  to                                 value like(xmlAutomataStatePtr)
     d  token                          *   value options(*string)               const xmlChar *
     d  min                                value like(xmlCint)
     d  max                                value like(xmlCint)
     d  data                           *   value options(*string)               void *

     d xmlAutomataNewOnceTrans2...
     d                 pr                  extproc('xmlAutomataNewOnceTrans2')
     d                                     like(xmlAutomataStatePtr)
     d  am                                 value like(xmlAutomataPtr)
     d  from                               value like(xmlAutomataStatePtr)
     d  to                                 value like(xmlAutomataStatePtr)
     d  token                          *   value options(*string)               const xmlChar *
     d  token2                         *   value options(*string)               const xmlChar *
     d  min                                value like(xmlCint)
     d  max                                value like(xmlCint)
     d  data                           *   value options(*string)               void *

     d xmlAutomataNewAllTrans...
     d                 pr                  extproc('xmlAutomataNewAllTrans')
     d                                     like(xmlAutomataStatePtr)
     d  am                                 value like(xmlAutomataPtr)
     d  from                               value like(xmlAutomataStatePtr)
     d  to                                 value like(xmlAutomataStatePtr)
     d  lax                                value like(xmlCint)

     d xmlAutomataNewEpsilon...
     d                 pr                  extproc('xmlAutomataNewEpsilon')
     d                                     like(xmlAutomataStatePtr)
     d  am                                 value like(xmlAutomataPtr)
     d  from                               value like(xmlAutomataStatePtr)
     d  to                                 value like(xmlAutomataStatePtr)

     d xmlAutomataNewCountedTrans...
     d                 pr                  extproc('xmlAutomataNewCountedTrans')
     d                                     like(xmlAutomataStatePtr)
     d  am                                 value like(xmlAutomataPtr)
     d  from                               value like(xmlAutomataStatePtr)
     d  to                                 value like(xmlAutomataStatePtr)
     d  counter                            value like(xmlCint)

     d xmlAutomataNewCounterTrans...
     d                 pr                  extproc('xmlAutomataNewCounterTrans')
     d                                     like(xmlAutomataStatePtr)
     d  am                                 value like(xmlAutomataPtr)
     d  from                               value like(xmlAutomataStatePtr)
     d  to                                 value like(xmlAutomataStatePtr)
     d  counter                            value like(xmlCint)

     d xmlAutomataNewCounter...
     d                 pr                  extproc('xmlAutomataNewCounter')
     d                                     like(xmlCint)
     d  am                                 value like(xmlAutomataPtr)
     d  min                                value like(xmlCint)
     d  max                                value like(xmlCint)

     d xmlAutomataCompile...
     d                 pr                  extproc('xmlAutomataCompile')
     d                                     like(xmlRegexpPtr)
     d  am                                 value like(xmlAutomataPtr)

     d xmlAutomataIsDeterminist...
     d                 pr                  extproc('xmlAutomataIsDeterminist')
     d                                     like(xmlCint)
     d  am                                 value like(xmlAutomataPtr)

      /endif                                                                    AUTOMATA_ENABLED
      /endif                                                                    LIBXML_REGEXP_ENABLD
      /endif                                                                    XML_AUTOMATA_H__