Tcl Library Source Code

Check-in [337cb51db7]
Login
Bounty program for improvements to Tcl and certain Tcl packages.
Tcl 2019 Conference, Houston/TX, US, Nov 4-8
Send your abstracts to [email protected]
or submit via the online form by Sep 9.

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Pulled recent general pt changes into the examples.
Timelines: family | ancestors | descendants | both | pt-examples
Files: files | file ages | folders
SHA1: 337cb51db76c0d55ca50c9240e013e9a27435589
User & Date: aku 2014-06-19 06:11:08
Context
2014-06-20
06:32
Updated examples with recent main pt work check-in: 14e0c58abc user: aku tags: pt-examples
2014-06-19
06:11
Pulled recent general pt changes into the examples. check-in: 337cb51db7 user: aku tags: pt-examples
06:09
Brought the PEG update back into the main pt work branch. check-in: 03ccbcd7cf user: aku tags: pt-work
2014-06-17
00:25
Start on a set of grammar examples. Mostly empty placeholders at the moment. check-in: 9b5ca93ef2 user: andreask tags: pt-examples
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to apps/pt.

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
..
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
..
71
72
73
74
75
76
77

78
79
80
81
82
83
84
...
107
108
109
110
111
112
113

114
115
116
117
118
119
120


121




122









123
124
125
126
127
128
129
lappend auto_path $selfdir [file dirname $selfdir]
# When debugging package loading trouble, show the search paths
#puts [join $auto_path \n]

# # ## ### ##### ######## ############# #####################

package require pt::pgen

package require fileutil

namespace eval ::pt::app {
    namespace export generate help
    namespace ensemble create
}

# # ## ### ##### ######## ############# #####################

proc main {} {
    global argv argv0 errorInfo
    if {![llength $argv]} { lappend argv help }
    if {[catch {
	::pt::app {*}$argv
    } msg]} {
	set elines [split $errorInfo \n]
	if {[llength $elines] == 3} {
	    if {[string match *unknown* $msg]} {
		#puts stderr "$argv0 $msg"
		::pt::app help
		exit 1
................................................................................
		exit 1
	    }
	}
	set prefix {INTERNAL ERROR :: }
	puts ${prefix}[join $elines \n$prefix]
	exit 1
    }
    exit 0
}

# # ## ### ##### ######## ############# #####################

proc ::pt::app::helpHelp {} {
    return {
	@ help ?TOPIC?
................................................................................
	puts stderr "$argv0: Unknown help topic '$topic'"
	puts stderr "\tUse one of [linsert [join [Topics] {, }] end-1 or]"
	puts stderr ""
    } else {
	puts stderr \t[join [split [string map [list @ $argv0] [string trim [::pt::app::${topic}Help]]] \n] \n\t]
	puts stderr ""
    }

}

proc ::pt::app::Topics {} {
    namespace eval ::TEMP { namespace import ::pt::app::* }
    set commands [info commands ::TEMP::*]
    namespace delete ::TEMP

................................................................................

    if {[llength $args] < 4} {
	# Just enough that the help code can extract the method name
	return -code error "wrong # args, should be \"@ generate ...\""
    }

    set args [lassign $args parserformat]

    lassign [lrange $args end-2 end] parserfile grammarformat grammarfile
    set args [Template [lrange $args 0 end-3]]
    lappend args -file $grammarfile

    fileutil::writeFile $parserfile \
	[::pt::pgen $grammarformat \
	     [fileutil::cat $grammarfile] \


	     $parserformat {*}$args]




    return









}

# Lift template specifications from file paths to the file's contents.

proc ::pt::app::Template {optiondict} {
    set res {}
    foreach {option value} $optiondict {






>













|







 







|







 







>







 







>
|



<
<
|
>
>
|
>
>
>
>
|
>
>
>
>
>
>
>
>
>







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
..
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
..
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
...
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
lappend auto_path $selfdir [file dirname $selfdir]
# When debugging package loading trouble, show the search paths
#puts [join $auto_path \n]

# # ## ### ##### ######## ############# #####################

package require pt::pgen
package require pt::util
package require fileutil

namespace eval ::pt::app {
    namespace export generate help
    namespace ensemble create
}

# # ## ### ##### ######## ############# #####################

proc main {} {
    global argv argv0 errorInfo
    if {![llength $argv]} { lappend argv help }
    if {[catch {
	set status [::pt::app {*}$argv]
    } msg]} {
	set elines [split $errorInfo \n]
	if {[llength $elines] == 3} {
	    if {[string match *unknown* $msg]} {
		#puts stderr "$argv0 $msg"
		::pt::app help
		exit 1
................................................................................
		exit 1
	    }
	}
	set prefix {INTERNAL ERROR :: }
	puts ${prefix}[join $elines \n$prefix]
	exit 1
    }
    exit $status
}

# # ## ### ##### ######## ############# #####################

proc ::pt::app::helpHelp {} {
    return {
	@ help ?TOPIC?
................................................................................
	puts stderr "$argv0: Unknown help topic '$topic'"
	puts stderr "\tUse one of [linsert [join [Topics] {, }] end-1 or]"
	puts stderr ""
    } else {
	puts stderr \t[join [split [string map [list @ $argv0] [string trim [::pt::app::${topic}Help]]] \n] \n\t]
	puts stderr ""
    }
    return 0
}

proc ::pt::app::Topics {} {
    namespace eval ::TEMP { namespace import ::pt::app::* }
    set commands [info commands ::TEMP::*]
    namespace delete ::TEMP

................................................................................

    if {[llength $args] < 4} {
	# Just enough that the help code can extract the method name
	return -code error "wrong # args, should be \"@ generate ...\""
    }

    set args [lassign $args parserformat]
    lassign [lrange $args end-2 end] \
	parserfile grammarformat grammarfile
    set args [Template [lrange $args 0 end-3]]
    lappend args -file $grammarfile



    set grammar [fileutil::cat $grammarfile]

    if {[catch {
	set parser [::pt::pgen $grammarformat $grammar $parserformat {*}$args]
    } msg o]} {
	# Parse errors are shown here, anything else gets rethrown.
	if {![IsPE $msg]} { return {*}$o $msg }
	puts [pt::util error2readable \$msg $grammar]
	return 1
    }

    fileutil::writeFile $parserfile $parser
    return 0
}

## NOTE: These should all be made into some utility function
proc ::pt::app::IsPE {msg} {
    string match {pt::rde *} $msg
}

# Lift template specifications from file paths to the file's contents.

proc ::pt::app::Template {optiondict} {
    set res {}
    foreach {option value} $optiondict {

Changes to modules/pt/pkgIndex.tcl.

5
6
7
8
9
10
11




12
13
14
15
16
17
18
package ifneeded configuration 1 [list source [file join $dir configuration.tcl]]
package ifneeded paths         1 [list source [file join $dir paths.tcl]]
package ifneeded text::write   1 [list source [file join $dir text_write.tcl]]

# AST support
package ifneeded pt::ast     1.1 [list source [file join $dir pt_astree.tcl]]





# Parsing Expression support
package ifneeded pt::pe        1 [list source [file join $dir pt_pexpression.tcl]]
package ifneeded pt::pe::op    1 [list source [file join $dir pt_pexpr_op.tcl]]

# Parsing Expression Grammar support.
package ifneeded pt::peg            1 [list source [file join $dir pt_pegrammar.tcl]]
package ifneeded pt::peg::container 1 [list source [file join $dir pt_peg_container.tcl]]






>
>
>
>







5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package ifneeded configuration 1 [list source [file join $dir configuration.tcl]]
package ifneeded paths         1 [list source [file join $dir paths.tcl]]
package ifneeded text::write   1 [list source [file join $dir text_write.tcl]]

# AST support
package ifneeded pt::ast     1.1 [list source [file join $dir pt_astree.tcl]]

# General parser support. Currently only conversion of structured
# syntax errors (or parts thereof) into a human-readable form.
package ifneeded pt::util    1   [list source [file join $dir pt_util.tcl]]

# Parsing Expression support
package ifneeded pt::pe        1 [list source [file join $dir pt_pexpression.tcl]]
package ifneeded pt::pe::op    1 [list source [file join $dir pt_pexpr_op.tcl]]

# Parsing Expression Grammar support.
package ifneeded pt::peg            1 [list source [file join $dir pt_pegrammar.tcl]]
package ifneeded pt::peg::container 1 [list source [file join $dir pt_peg_container.tcl]]

Changes to modules/pt/pt_cparam_config_critcl.tcl.

221
222
223
224
225
226
227

228
229
230
231
232
233
234
		    rde_param_reset (p, NULL);
		    rde_param_data  (p, buf, len);
		    MAIN (p) ; /* Entrypoint for the generated code. */
		    return COMPLETE (p, interp);
		}


		static int COMPLETE (RDE_PARAM p, Tcl_Interp* interp)
		{
		    if (rde_param_query_st (p)) {
			long int  ac;
			Tcl_Obj** av;

			rde_param_query_ast (p, &ac, &av);






>







221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
		    rde_param_reset (p, NULL);
		    rde_param_data  (p, buf, len);
		    MAIN (p) ; /* Entrypoint for the generated code. */
		    return COMPLETE (p, interp);
		}

		/* See also rde_critcl/m.c, param_COMPLETE() */
		static int COMPLETE (RDE_PARAM p, Tcl_Interp* interp)
		{
		    if (rde_param_query_st (p)) {
			long int  ac;
			Tcl_Obj** av;

			rde_param_query_ast (p, &ac, &av);

Changes to modules/pt/pt_pgen.test.

20
21
22
23
24
25
26



27
28
29
30
31
32

33
34
35
36
37
38
39
..
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
tcltest::testConstraint critcl [expr {![catch {package require critcl}]}]


support {
    useAccel [useTcllibC] struct/stack.tcl struct::stack ; # User: pt::rde
    TestAccelInit                          struct::stack ; # (tcl)




    use      snit/snit.tcl          snit
    use      fileutil/fileutil.tcl  fileutil      ;# tests/common
    use      textutil/adjust.tcl    textutil::adjust

    useLocal pt_astree.tcl                pt::ast
    useLocal pt_pexpression.tcl           pt::pe

    useLocal pt_pegrammar.tcl             pt::peg
    useLocal pt_peg_container.tcl         pt::peg::container

    useAccel [useTcllibC] pt/pt_rdengine.tcl  pt::rde ; # User: pt::parse::peg
    TestAccelInit                             pt::rde ; # and:  pt:peg::interp

    useLocal pt_rdengine_oo.tcl           pt::rde::oo
................................................................................
testing {
    useLocal pt_pgen.tcl pt::pgen ;# Generator
}

set mytestdir tests/data

# -------------------------------------------------------------------------
# Note: When using pt::rde's C implementation struct::stack is not
#       used, and its implementation of no relevance.
#
#       Similarly, when pt::parse::peg's C implementation is used
#       neither pt::rde's, nor struct::stack's implementations are of
#       relevance.


TestAccelDo pt::parse::peg parseimpl {
    if {$parseimpl eq "critcl"} {
	set rdeimpl   n/a
	set stackimpl n/a
	pt::rde::SwitchTo {}
	struct::stack::SwitchTo {}
	source [localPath tests/pt_pgen.tests]
    } else {
	TestAccelDo pt::rde rdeimpl {
	    if {$rdeimpl eq "critcl"} {
		set stackimpl n/a
		struct::stack::SwitchTo {}
		source [localPath tests/pt_pgen.tests]
	    } else {
		TestAccelDo struct::stack stackimpl {
		    source [localPath tests/pt_pgen.tests]
		}
	    }
	}
    }
}

# -------------------------------------------------------------------------
TestAccelExit pt::parse::peg
TestAccelExit pt::rde

TestAccelExit struct::stack
testsuiteCleanup
return






>
>
>






>







 







|
|
|
|
<
<

>
|
<
<
<
<
<
<
<

<
<
<
<
<
|
|
<






|

>
|


20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
..
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
tcltest::testConstraint critcl [expr {![catch {package require critcl}]}]


support {
    useAccel [useTcllibC] struct/stack.tcl struct::stack ; # User: pt::rde
    TestAccelInit                          struct::stack ; # (tcl)

    useAccel [useTcllibC] struct/sets.tcl struct::set
    TestAccelInit                         struct::set

    use      snit/snit.tcl          snit
    use      fileutil/fileutil.tcl  fileutil      ;# tests/common
    use      textutil/adjust.tcl    textutil::adjust

    useLocal pt_astree.tcl                pt::ast
    useLocal pt_pexpression.tcl           pt::pe
    useLocal pt_pexpr_op.tcl              pt::pe::op
    useLocal pt_pegrammar.tcl             pt::peg
    useLocal pt_peg_container.tcl         pt::peg::container

    useAccel [useTcllibC] pt/pt_rdengine.tcl  pt::rde ; # User: pt::parse::peg
    TestAccelInit                             pt::rde ; # and:  pt:peg::interp

    useLocal pt_rdengine_oo.tcl           pt::rde::oo
................................................................................
testing {
    useLocal pt_pgen.tcl pt::pgen ;# Generator
}

set mytestdir tests/data

# -------------------------------------------------------------------------
# While some of the C pieces are usually not required at runtime (like
# C stack when RDE is also C), we are calling on the parser generator
# here, which still may use a different implementation. So, no
# shurtcuts, and full 16x expansion (2^4).



TestAccelDo struct::set setimpl {
    TestAccelDo pt::parse::peg parseimpl {







	TestAccelDo pt::rde rdeimpl {





	    TestAccelDo struct::stack stackimpl {
		source [localPath tests/pt_pgen.tests]

	    }
	}
    }
}

# -------------------------------------------------------------------------
TestAccelExit struct::stack
TestAccelExit pt::rde
TestAccelExit pt::parse::peg
TestAccelExit struct::set
testsuiteCleanup
return

Added modules/pt/pt_util.man.












































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
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
[vset VERSION 1]
[comment {-*- text -*- doctools manpage}]
[manpage_begin pt::util n [vset VERSION]]
[include include/module.inc]
[titledesc {General utilities}]
[require pt::ast [opt [vset VERSION]]]
[description]
[include include/ref_intro.inc]

This package provides general utility commands.

[para]

This is a supporting package in the Core Layer of Parser Tools.
[para][image arch_core_support][para]

[section API]

[list_begin definitions]
[comment {= = == === ===== ======== ============= =====================}]
[call [cmd ::pt::util] [method error2readable] \
	[arg error] [arg text]]

This command takes the structured form of a syntax [arg error] as
thrown by parser runtimes and the input [arg text] to the parser which
caused that error and returns a string describing the error in a
human-readable form.

[para] The input [arg text] is required to convert the character
position of the error into a more readable line/column format, and to
provide excerpts of the input around the error position.

[comment {= = == === ===== ======== ============= =====================}]
[call [cmd ::pt::util] [method error2position] \
	[arg error] [arg text]]

This command takes the structured form of a syntax [arg error] as
thrown by parser runtimes and the input [arg text] to the parser which
caused that error and returns a 2-element list containing the line
number and column index for the error's character position in the
input, in this order.

[comment {= = == === ===== ======== ============= =====================}]
[call [cmd ::pt::util] [method error2text] [arg error]]

This command takes the structured form of a syntax [arg error] as
thrown by parser runtimes and returns a list of strings, each
describing a possible expected input in a human-readable form.

[comment {= = == === ===== ======== ============= =====================}]
[list_end]

[include include/feedback.inc]
[manpage_end]

Added modules/pt/pt_util.tcl.
































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
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
# -*- tcl -*-
# Copyright (c) 2014 Andreas Kupries <[email protected]>

# Utility commands for parser syntax errors.

# # ## ### ##### ######## ############# #####################
## Requirements

package require Tcl 8.5 ; # Required runtime.

# # ## ### ##### ######## ############# #####################
##

namespace eval ::pt::util {
    namespace export error2readable error2position error2text
    namespace ensemble create
}

# # ## ### ##### ######## #############
## Public API

proc ::pt::util::error2readable {error text} {
    lassign $error _ location msgs
    lassign [Position $location $text] l c

    lappend map \n \\n
    lappend map \r \\r
    lappend map \t \\t

    # Get 10 chars before and after the failure point.  Depending on
    # the relative position of input beginning and end we may get less
    # back of either.  Special characters in the input (line endings,
    # tabs) are quoted to keep this on a single line.
    set prefix [string map $map [string range $text ${location}-10 $location]]
    set suffix [string map $map [string range $text ${location}+1 ${location}+10]]

    # Construct a line pointing to the failure position. By using the
    # transformed prefix as our source (length) no complex
    # calculations are required. It is implicit in the prefix/suffix
    # separation above.
    set  n [string length $prefix]
    incr n -1
    set point [string repeat - $n]
    append point ^

    # Print our results.
    lappend lines "Parse error at position $location (Line $l, column $c)."
    lappend lines "... ${prefix}${suffix} ..."
    lappend lines "    $point"
    lappend lines "Expected one of"
    lappend lines "* [join [Readables $msgs] "\n* "]"
    lappend lines ""

    return [join $lines \n]
}

proc ::pt::util::error2position {error text} {
    lassign $error _ location msgs
    return [Position $location $text]
}

proc ::pt::util::error2text {error} {
    lassign $error _ location msgs
    return [Readables $msgs]
}

# # ## ### ##### ######## #############
## Internals

proc ::pt::util::Position {location text} {
    incr location -1

    # Computing the line/col of a position is quite easy. Split the
    # part before the location into lines (at eol), count them, and
    # look at the length of the last line in that.

    set prefix [string range $text 0 $location]
    set lines  [split $prefix \n]
    set line   [llength $lines]
    set col    [string length [lindex $lines end]]

    return [list $line $col]
}

proc ::pt::util::Readables {msgs} {
    # TODO: WIBNI to fuse to multiple 't'-tags into a single 'cl'-tag.
    # TODO: WIBNI to fuse multiple 'cl'-tags into one.

    set r {}
    foreach pe $msgs {
	lappend r [Readable $pe]
    }
    return [lsort -dict $r]
}

proc ::pt::util::Readable {pe} {
    set details [lassign $pe tag]
    switch -exact -- $tag {
	t        { set m "The character '$details'" }
	n        { set m "The symbol $details" }
	..       { set m "A character in range '[join $details '-']'" }
	str      { set m "A string \"$details\"" }
	cl       { set m "A characters in set \[$details\]" }
	alpha    { set m "A unicode alphabetical character" }
	alnum    { set m "A unicode alphanumerical character" }
	ascii    { set m "An ascii character" }
	digit    { set m "A unicode digit character" }
	graph    { set m "A unicode printing character, but not space" }
	lower    { set m "A unicode lower-case alphabetical character" }
	print    { set m "A unicode printing character, including space" }
	control  { set m "A unicode control character" }
	punct    { set m "A unicode punctuation character" }
	space    { set m "A unicode space character" }
	upper    { set m "A unicode upper-case alphabetical character" }
	wordchar { set m "A unicode word character (alphanumerics + connectors)" }
	xdigit   { set m "A hexadecimal digit" }
	ddigit   { set m "A decimal digit" }
	dot      { set m "Any character" }
	default  { set m [string totitle $tag] }
    }
    return $m
}

# # ## ### ##### ######## ############# #####################
## Ready

package provide pt::util 1
return

Changes to modules/pt/rde_critcl/m.c.

106
107
108
109
110
111
112

113
114
115
116
117
118
119
120
...
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
....
1302
1303
1304
1305
1306
1307
1308

















1309
1310
1311
1312
1313
1314
1315
....
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
....
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
....
1880
1881
1882
1883
1884
1885
1886























1887
1888
1889
1890
1891
1892
1893
    return TCL_OK;
}

int
param_COMPLETE (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv)
{

    /* Syntax: rde complete
     *         [0] [1]
     */

    if (objc != 2) {
	Tcl_WrongNumArgs (interp, 2, objv, NULL);
	return TCL_ERROR;
    }
................................................................................
	    memcpy(lv + 3, av, ac * sizeof (Tcl_Obj*));
	    lv [0] = Tcl_NewObj ();
	    lv [1] = Tcl_NewIntObj (1 + lsv [lsc-1]);
	    lv [2] = Tcl_NewIntObj (rde_param_query_cl (p->p));

	    Tcl_SetObjResult (interp, Tcl_NewListObj (3, lv));
	    ckfree ((char*) lv);






	} else {
	    Tcl_SetObjResult (interp, av [0]);
	}

	return TCL_OK;

    } else {
	Tcl_Obj* xv [1];
	const ERROR_STATE* er = rde_param_query_er (p->p);
	Tcl_Obj* res = rde_param_query_er_tcl (p->p, er);



	xv [0] = Tcl_NewStringObj ("pt::rde",-1);
	Tcl_ListObjReplace(interp, res, 0, 1, 1, xv);

	Tcl_SetObjResult (interp, res);
	return TCL_ERROR;
    }
}

int
................................................................................

    ch  = Tcl_GetString (objv [2]);
    msg = rde_ot_intern (objv [2], p, "t", NULL);

    rde_param_i_test_char (p->p, ch, msg);
    return TCL_OK;
}


















int
param_I_test_ddigit (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv)
{
    /* Syntax: rde i_test_ddigit
     *         [0] [1]
     */
................................................................................
    }

    /*
     * interning: .. + space + char + space + char
     */

    chs = Tcl_GetString (objv [2]);
    che = Tcl_GetString (objv [2]);
    msg = rde_ot_intern (objv [2], p, "..", che);

    rde_param_i_test_range (p->p, chs, che, msg);

    return TCL_OK;
}

................................................................................
    }

    /*
     * interning: .. + space + char + space + char
     */

    chs = Tcl_GetString (objv [2]);
    che = Tcl_GetString (objv [2]);
    msg = rde_ot_intern (objv [2], p, "..", che);

    rde_param_i_input_next (p->p, msg);
    if (rde_param_query_st (p->p)) {
	rde_param_i_test_range (p->p, chs, che, msg);
    }
    return TCL_OK;
................................................................................

    rde_param_i_input_next (p->p, msg);
    if (rde_param_query_st (p->p)) {
	rde_param_i_test_ascii (p->p);
    }
    return TCL_OK;
}
























int
param_SI_next_ddigit (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv)
{
    /* Syntax: rde si:next_ddigit
     *         [0] [1]
     */






>
|







 







>
>
>
>
>
>










>

>

|







 







>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







 







|







 







|







 







>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
...
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
....
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
....
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
....
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
....
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
    return TCL_OK;
}

int
param_COMPLETE (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv)
{
    /* See also pt_cparam_config_critcl.tcl, COMPLETE().
     * Syntax: rde complete
     *         [0] [1]
     */

    if (objc != 2) {
	Tcl_WrongNumArgs (interp, 2, objv, NULL);
	return TCL_ERROR;
    }
................................................................................
	    memcpy(lv + 3, av, ac * sizeof (Tcl_Obj*));
	    lv [0] = Tcl_NewObj ();
	    lv [1] = Tcl_NewIntObj (1 + lsv [lsc-1]);
	    lv [2] = Tcl_NewIntObj (rde_param_query_cl (p->p));

	    Tcl_SetObjResult (interp, Tcl_NewListObj (3, lv));
	    ckfree ((char*) lv);
	} else if (ac == 0) {
	    /*
	     * Match, but no AST. This is possible if the grammar consists of
	     * only the start expression.
	     */
	    Tcl_SetObjResult (interp, Tcl_NewStringObj ("",-1));
	} else {
	    Tcl_SetObjResult (interp, av [0]);
	}

	return TCL_OK;

    } else {
	Tcl_Obj* xv [1];
	const ERROR_STATE* er = rde_param_query_er (p->p);
	Tcl_Obj* res = rde_param_query_er_tcl (p->p, er);
	/* res = list (location, list(msg)) */

	/* Stick the exception type-tag before the existing elements */
	xv [0] = Tcl_NewStringObj ("pt::rde",-1);
	Tcl_ListObjReplace(interp, res, 0, 0, 1, xv);

	Tcl_SetObjResult (interp, res);
	return TCL_ERROR;
    }
}

int
................................................................................

    ch  = Tcl_GetString (objv [2]);
    msg = rde_ot_intern (objv [2], p, "t", NULL);

    rde_param_i_test_char (p->p, ch, msg);
    return TCL_OK;
}

int
param_I_test_control (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv)
{
    /* Syntax: rde i_test_control
     *         [0] [1]
     */

    if (objc != 2) {
	Tcl_WrongNumArgs (interp, 2, objv, NULL);
	return TCL_ERROR;
    }

    rde_param_i_test_control (p->p);

    return TCL_OK;
}

int
param_I_test_ddigit (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv)
{
    /* Syntax: rde i_test_ddigit
     *         [0] [1]
     */
................................................................................
    }

    /*
     * interning: .. + space + char + space + char
     */

    chs = Tcl_GetString (objv [2]);
    che = Tcl_GetString (objv [3]);
    msg = rde_ot_intern (objv [2], p, "..", che);

    rde_param_i_test_range (p->p, chs, che, msg);

    return TCL_OK;
}

................................................................................
    }

    /*
     * interning: .. + space + char + space + char
     */

    chs = Tcl_GetString (objv [2]);
    che = Tcl_GetString (objv [3]);
    msg = rde_ot_intern (objv [2], p, "..", che);

    rde_param_i_input_next (p->p, msg);
    if (rde_param_query_st (p->p)) {
	rde_param_i_test_range (p->p, chs, che, msg);
    }
    return TCL_OK;
................................................................................

    rde_param_i_input_next (p->p, msg);
    if (rde_param_query_st (p->p)) {
	rde_param_i_test_ascii (p->p);
    }
    return TCL_OK;
}

int
param_SI_next_control (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv)
{
    /* Syntax: rde si:next_control
     *         [0] [1]
     */

    int msg;

    if (objc != 2) {
	Tcl_WrongNumArgs (interp, 2, objv, NULL);
	return TCL_ERROR;
    }

    msg = param_intern (p, "control");

    rde_param_i_input_next (p->p, msg);
    if (rde_param_query_st (p->p)) {
	rde_param_i_test_control (p->p);
    }
    return TCL_OK;
}

int
param_SI_next_ddigit (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv)
{
    /* Syntax: rde si:next_ddigit
     *         [0] [1]
     */

Changes to modules/pt/rde_critcl/m.h.

72
73
74
75
76
77
78

79
80
81
82
83
84
85
...
101
102
103
104
105
106
107

108
109
110
111
112
113
114
int param_I_input_next      (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv);

int param_I_test_alnum      (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv);
int param_I_test_alpha      (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv);
int param_I_test_ascii      (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv);
int param_I_test_char       (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv);

int param_I_test_ddigit     (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv);
int param_I_test_digit      (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv);
int param_I_test_graph      (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv);
int param_I_test_lower      (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv);
int param_I_test_print      (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv);
int param_I_test_punct      (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv);
int param_I_test_range      (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv);
................................................................................
int param_SI_valuevalue_part   (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv);

int param_SI_next_char     (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv);
int param_SI_next_range    (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv);
int param_SI_next_alnum    (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv);
int param_SI_next_alpha    (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv);
int param_SI_next_ascii    (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv);

int param_SI_next_ddigit   (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv);
int param_SI_next_digit    (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv);
int param_SI_next_graph    (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv);
int param_SI_next_lower    (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv);
int param_SI_next_print    (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv);
int param_SI_next_punct    (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv);
int param_SI_next_space    (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv);






>







 







>







72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
...
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
int param_I_input_next      (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv);

int param_I_test_alnum      (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv);
int param_I_test_alpha      (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv);
int param_I_test_ascii      (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv);
int param_I_test_char       (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv);
int param_I_test_control    (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv);
int param_I_test_ddigit     (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv);
int param_I_test_digit      (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv);
int param_I_test_graph      (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv);
int param_I_test_lower      (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv);
int param_I_test_print      (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv);
int param_I_test_punct      (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv);
int param_I_test_range      (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv);
................................................................................
int param_SI_valuevalue_part   (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv);

int param_SI_next_char     (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv);
int param_SI_next_range    (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv);
int param_SI_next_alnum    (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv);
int param_SI_next_alpha    (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv);
int param_SI_next_ascii    (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv);
int param_SI_next_control  (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv);
int param_SI_next_ddigit   (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv);
int param_SI_next_digit    (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv);
int param_SI_next_graph    (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv);
int param_SI_next_lower    (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv);
int param_SI_next_print    (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv);
int param_SI_next_punct    (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv);
int param_SI_next_space    (RDE_STATE p, Tcl_Interp* interp, int objc, Tcl_Obj* CONST* objv);

Changes to modules/pt/rde_critcl/ms.c.

42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
..
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
...
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
...
128
129
130
131
132
133
134

135
136
137
138
139
140
141
...
233
234
235
236
237
238
239

240
241
242
243
244
245
246
...
262
263
264
265
266
267
268

269
270
271
272
273
274
275
	"i_error_clear","i_error_nonterminal",	"i_error_pop_merge",	"i_error_push",
	"i:fail_loc_pop_rewind",	"i_loc_pop_discard",
	"i_loc_pop_rewind/discard",	"i_loc_pop_rewind",	"i_loc_push",
	"i:fail_ast_pop_rewind",	"i_ast_pop_discard",	"i_ast_pop_discard/rewind",
	"i_ast_pop_rewind/discard",	"i_ast_pop_rewind",	"i_ast_push",
	"i:ok_ast_value_push",	"i_symbol_restore",	"i_symbol_save",
	"i_value_clear/leaf",	"i_value_clear",	"i_value_clear/reduce",
	"i_input_next",	"i_test_alnum",	"i_test_alpha",	"i_test_ascii",	"i_test_char",
	"i_test_ddigit","i_test_digit",	"i_test_graph",	"i_test_lower",	"i_test_print",
	"i_test_punct",	"i_test_range",	"i_test_space",	"i_test_upper",	"i_test_wordchar",
	"i_test_xdigit",
	"i:ok_ast_pop_discard",	"i_ast_rewind",
	"i:ok_loc_pop_discard",	"i_loc_rewind",
	"i_error_clear_push",
	"si:void_state_push",
................................................................................
	"si:valuevoid_branch",
	"si:valuevalue_branch",
	"si:voidvoid_part",
	"si:voidvalue_part",
	"si:valuevalue_part",
	"si:next_char",
	"si:next_range",
	"si:next_alnum",	"si:next_alpha",	"si:next_ascii",
	"si:next_ddigit","si:next_digit",	"si:next_graph",	"si:next_lower",	"si:next_print",
	"si:next_punct",	"si:next_space",	"si:next_upper",	"si:next_wordchar",
	"si:next_xdigit",

	"si:void2_state_push",
	"si:void_state_merge_ok",
	"si:value_notahead_start",
................................................................................
	M_VALUE,	M_F_continue,	M_F_return,	M_O_continue,	M_O_return,
	M_I_st_fail,	M_I_st_neg,	M_I_st_ok,	M_I_er_clear,	M_I_er_nt,
	M_I_er_popmerge,	M_I_er_push,	M_F_loc_pop_rewind,	M_I_loc_pop_discard,
	M_I_loc_pop_rewdis,	M_I_loc_pop_rewind,	M_I_loc_push,	M_F_ast_pop_rewind,
	M_I_ast_pop_discard,	M_I_ast_pop_disrew,	M_I_ast_pop_rewdis,
	M_I_ast_pop_rewind,	M_I_ast_push,	M_O_ast_value_push,	M_I_symbol_restore,
	M_I_symbol_save,	M_I_value_cleaf,	M_I_value_clear,	M_I_value_creduce,
	M_I_input_next,	M_I_test_alnum,	M_I_test_alpha,	M_I_test_ascii,	M_I_test_char,
	M_I_test_ddigit,	M_I_test_digit,	M_I_test_graph,	M_I_test_lower,	M_I_test_print,
	M_I_test_punct,	M_I_test_range,	M_I_test_space,	M_I_test_upper,	M_I_test_wordchar,
	M_I_test_xdigit,

	M_O_ast_pop_discard,
	M_I_ast_rewind,
	M_O_loc_pop_discard,
................................................................................
	M_SI_valuevalue_part,

	M_SI_next_char,
	M_SI_next_range,
	M_SI_next_alnum,
	M_SI_next_alpha,
	M_SI_next_ascii,

	M_SI_next_ddigit,
	M_SI_next_digit,
	M_SI_next_graph,
	M_SI_next_lower,
	M_SI_next_print,
	M_SI_next_punct,
	M_SI_next_space,
................................................................................
    case M_I_value_clear:       res = param_I_value_clear     (p, interp, objc, objv); break;
    case M_I_value_creduce:     res = param_I_value_creduce   (p, interp, objc, objv); break;
    case M_I_input_next:        res = param_I_input_next      (p, interp, objc, objv); break;
    case M_I_test_alnum:        res = param_I_test_alnum      (p, interp, objc, objv); break;
    case M_I_test_alpha:        res = param_I_test_alpha      (p, interp, objc, objv); break;
    case M_I_test_ascii:        res = param_I_test_ascii      (p, interp, objc, objv); break;
    case M_I_test_char:         res = param_I_test_char       (p, interp, objc, objv); break;

    case M_I_test_ddigit:       res = param_I_test_ddigit     (p, interp, objc, objv); break;
    case M_I_test_digit:        res = param_I_test_digit      (p, interp, objc, objv); break;
    case M_I_test_graph:        res = param_I_test_graph      (p, interp, objc, objv); break;
    case M_I_test_lower:        res = param_I_test_lower      (p, interp, objc, objv); break;
    case M_I_test_print:        res = param_I_test_print      (p, interp, objc, objv); break;
    case M_I_test_punct:        res = param_I_test_punct      (p, interp, objc, objv); break;
    case M_I_test_range:        res = param_I_test_range      (p, interp, objc, objv); break;
................................................................................
    case M_SI_valuevalue_part:         res = param_SI_valuevalue_part   (p, interp, objc, objv); break;

    case M_SI_next_char:               res = param_SI_next_char    (p, interp, objc, objv); break;
    case M_SI_next_range:              res = param_SI_next_range   (p, interp, objc, objv); break;
    case M_SI_next_alnum:              res = param_SI_next_alnum   (p, interp, objc, objv); break;
    case M_SI_next_alpha:              res = param_SI_next_alpha   (p, interp, objc, objv); break;
    case M_SI_next_ascii:              res = param_SI_next_ascii   (p, interp, objc, objv); break;

    case M_SI_next_ddigit:             res = param_SI_next_ddigit  (p, interp, objc, objv); break;
    case M_SI_next_digit:              res = param_SI_next_digit   (p, interp, objc, objv); break;
    case M_SI_next_graph:              res = param_SI_next_graph   (p, interp, objc, objv); break;
    case M_SI_next_lower:              res = param_SI_next_lower   (p, interp, objc, objv); break;
    case M_SI_next_print:              res = param_SI_next_print   (p, interp, objc, objv); break;
    case M_SI_next_punct:              res = param_SI_next_punct   (p, interp, objc, objv); break;
    case M_SI_next_space:              res = param_SI_next_space   (p, interp, objc, objv); break;






|







 







|







 







|







 







>







 







>







 







>







42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
..
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
...
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
...
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
...
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
...
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
	"i_error_clear","i_error_nonterminal",	"i_error_pop_merge",	"i_error_push",
	"i:fail_loc_pop_rewind",	"i_loc_pop_discard",
	"i_loc_pop_rewind/discard",	"i_loc_pop_rewind",	"i_loc_push",
	"i:fail_ast_pop_rewind",	"i_ast_pop_discard",	"i_ast_pop_discard/rewind",
	"i_ast_pop_rewind/discard",	"i_ast_pop_rewind",	"i_ast_push",
	"i:ok_ast_value_push",	"i_symbol_restore",	"i_symbol_save",
	"i_value_clear/leaf",	"i_value_clear",	"i_value_clear/reduce",
	"i_input_next",	"i_test_alnum",	"i_test_alpha",	"i_test_ascii",	"i_test_char",	"i_test_control",
	"i_test_ddigit","i_test_digit",	"i_test_graph",	"i_test_lower",	"i_test_print",
	"i_test_punct",	"i_test_range",	"i_test_space",	"i_test_upper",	"i_test_wordchar",
	"i_test_xdigit",
	"i:ok_ast_pop_discard",	"i_ast_rewind",
	"i:ok_loc_pop_discard",	"i_loc_rewind",
	"i_error_clear_push",
	"si:void_state_push",
................................................................................
	"si:valuevoid_branch",
	"si:valuevalue_branch",
	"si:voidvoid_part",
	"si:voidvalue_part",
	"si:valuevalue_part",
	"si:next_char",
	"si:next_range",
	"si:next_alnum",	"si:next_alpha",	"si:next_ascii",	"si:next_control",
	"si:next_ddigit","si:next_digit",	"si:next_graph",	"si:next_lower",	"si:next_print",
	"si:next_punct",	"si:next_space",	"si:next_upper",	"si:next_wordchar",
	"si:next_xdigit",

	"si:void2_state_push",
	"si:void_state_merge_ok",
	"si:value_notahead_start",
................................................................................
	M_VALUE,	M_F_continue,	M_F_return,	M_O_continue,	M_O_return,
	M_I_st_fail,	M_I_st_neg,	M_I_st_ok,	M_I_er_clear,	M_I_er_nt,
	M_I_er_popmerge,	M_I_er_push,	M_F_loc_pop_rewind,	M_I_loc_pop_discard,
	M_I_loc_pop_rewdis,	M_I_loc_pop_rewind,	M_I_loc_push,	M_F_ast_pop_rewind,
	M_I_ast_pop_discard,	M_I_ast_pop_disrew,	M_I_ast_pop_rewdis,
	M_I_ast_pop_rewind,	M_I_ast_push,	M_O_ast_value_push,	M_I_symbol_restore,
	M_I_symbol_save,	M_I_value_cleaf,	M_I_value_clear,	M_I_value_creduce,
	M_I_input_next,	M_I_test_alnum,	M_I_test_alpha,	M_I_test_ascii,	M_I_test_char,	M_I_test_control,
	M_I_test_ddigit,	M_I_test_digit,	M_I_test_graph,	M_I_test_lower,	M_I_test_print,
	M_I_test_punct,	M_I_test_range,	M_I_test_space,	M_I_test_upper,	M_I_test_wordchar,
	M_I_test_xdigit,

	M_O_ast_pop_discard,
	M_I_ast_rewind,
	M_O_loc_pop_discard,
................................................................................
	M_SI_valuevalue_part,

	M_SI_next_char,
	M_SI_next_range,
	M_SI_next_alnum,
	M_SI_next_alpha,
	M_SI_next_ascii,
	M_SI_next_control,
	M_SI_next_ddigit,
	M_SI_next_digit,
	M_SI_next_graph,
	M_SI_next_lower,
	M_SI_next_print,
	M_SI_next_punct,
	M_SI_next_space,
................................................................................
    case M_I_value_clear:       res = param_I_value_clear     (p, interp, objc, objv); break;
    case M_I_value_creduce:     res = param_I_value_creduce   (p, interp, objc, objv); break;
    case M_I_input_next:        res = param_I_input_next      (p, interp, objc, objv); break;
    case M_I_test_alnum:        res = param_I_test_alnum      (p, interp, objc, objv); break;
    case M_I_test_alpha:        res = param_I_test_alpha      (p, interp, objc, objv); break;
    case M_I_test_ascii:        res = param_I_test_ascii      (p, interp, objc, objv); break;
    case M_I_test_char:         res = param_I_test_char       (p, interp, objc, objv); break;
    case M_I_test_control:      res = param_I_test_control    (p, interp, objc, objv); break;
    case M_I_test_ddigit:       res = param_I_test_ddigit     (p, interp, objc, objv); break;
    case M_I_test_digit:        res = param_I_test_digit      (p, interp, objc, objv); break;
    case M_I_test_graph:        res = param_I_test_graph      (p, interp, objc, objv); break;
    case M_I_test_lower:        res = param_I_test_lower      (p, interp, objc, objv); break;
    case M_I_test_print:        res = param_I_test_print      (p, interp, objc, objv); break;
    case M_I_test_punct:        res = param_I_test_punct      (p, interp, objc, objv); break;
    case M_I_test_range:        res = param_I_test_range      (p, interp, objc, objv); break;
................................................................................
    case M_SI_valuevalue_part:         res = param_SI_valuevalue_part   (p, interp, objc, objv); break;

    case M_SI_next_char:               res = param_SI_next_char    (p, interp, objc, objv); break;
    case M_SI_next_range:              res = param_SI_next_range   (p, interp, objc, objv); break;
    case M_SI_next_alnum:              res = param_SI_next_alnum   (p, interp, objc, objv); break;
    case M_SI_next_alpha:              res = param_SI_next_alpha   (p, interp, objc, objv); break;
    case M_SI_next_ascii:              res = param_SI_next_ascii   (p, interp, objc, objv); break;
    case M_SI_next_control:            res = param_SI_next_control (p, interp, objc, objv); break;
    case M_SI_next_ddigit:             res = param_SI_next_ddigit  (p, interp, objc, objv); break;
    case M_SI_next_digit:              res = param_SI_next_digit   (p, interp, objc, objv); break;
    case M_SI_next_graph:              res = param_SI_next_graph   (p, interp, objc, objv); break;
    case M_SI_next_lower:              res = param_SI_next_lower   (p, interp, objc, objv); break;
    case M_SI_next_print:              res = param_SI_next_print   (p, interp, objc, objv); break;
    case M_SI_next_punct:              res = param_SI_next_punct   (p, interp, objc, objv); break;
    case M_SI_next_space:              res = param_SI_next_space   (p, interp, objc, objv); break;

Changes to modules/pt/tests/data/ok/peg_container-bulk/3_peg_itself.

1
2
3
4
5
6
7
8
9
10
11
12
..
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
..
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
snit::type a_pe_grammar {
    constructor {} {
        install myg using pt::peg::container ${selfns}::G
        $myg start {n Grammar}
        $myg add   ALNUM ALPHA AND APOSTROPH ASCII Attribute Char CharOctalFull CharOctalPart CharSpecial CharUnescaped CharUnicode Class CLOSE CLOSEB COLON COMMENT CONTROL DAPOSTROPH DDIGIT Definition DIGIT DOT END EOF EOL Expression Final Grammar GRAPH Header Ident Identifier IS LEAF Literal LOWER NOT OPEN OPENB PEG PLUS Prefix Primary PRINTABLE PUNCT QUESTION Range SEMICOLON Sequence SLASH SPACE STAR StartExpr Suffix TO UPPER VOID WHITESPACE WORDCHAR XDIGIT
        $myg modes {
            ALNUM         leaf
            ALPHA         leaf
            AND           leaf
            APOSTROPH     void
            ASCII         leaf
            Attribute     value
................................................................................
            COMMENT       void
            CONTROL       leaf
            DAPOSTROPH    void
            DDIGIT        leaf
            Definition    value
            DIGIT         leaf
            DOT           leaf
            END           void
            EOF           void
            EOL           void
            Expression    value
            Final         void
            Grammar       value
            GRAPH         leaf
            Header        value
................................................................................
            COMMENT       {x {t #} {* {x {! {n EOL}} dot}} {n EOL}}
            CONTROL       {x {t <} {t c} {t o} {t n} {t t} {t r} {t o} {t l} {t >} {n WHITESPACE}}
            DAPOSTROPH    {t \42}
            DDIGIT        {x {t <} {t d} {t d} {t i} {t g} {t i} {t t} {t >} {n WHITESPACE}}
            Definition    {x {? {n Attribute}} {n Identifier} {n IS} {n Expression} {n SEMICOLON}}
            DIGIT         {x {t <} {t d} {t i} {t g} {t i} {t t} {t >} {n WHITESPACE}}
            DOT           {x {t .} {n WHITESPACE}}
            END           {x {t E} {t N} {t D} {n WHITESPACE}}
            EOF           {! dot}
            EOL           {/ {t \n} {t \r}}
            Expression    {x {n Sequence} {* {x {n SLASH} {n Sequence}}}}
            Final         {x {n END} {n SEMICOLON} {n WHITESPACE}}
            Grammar       {x {n WHITESPACE} {n Header} {* {n Definition}} {n Final} {n EOF}}
            GRAPH         {x {t <} {t g} {t r} {t a} {t p} {t h} {t >} {n WHITESPACE}}
            Header        {x {n PEG} {n Identifier} {n StartExpr}}
            Ident         {x {/ {t _} {t :} alpha} {* {/ {t _} {t :} alnum}}}
            Identifier    {x {n Ident} {n WHITESPACE}}
            IS            {x {t <} {t -} {n WHITESPACE}}
            LEAF          {x {t l} {t e} {t a} {t f} {n WHITESPACE}}
            Literal       {/ {x {n APOSTROPH} {* {x {! {n APOSTROPH}} {n Char}}} {n APOSTROPH} {n WHITESPACE}} {x {n DAPOSTROPH} {* {x {! {n DAPOSTROPH}} {n Char}}} {n DAPOSTROPH} {n WHITESPACE}}}
            LOWER         {x {t <} {t l} {t o} {t w} {t e} {t r} {t >} {n WHITESPACE}}
            NOT           {x {t !} {n WHITESPACE}}
            OPEN          {x {t \50} {n WHITESPACE}}
            OPENB         {t \133}
            PEG           {x {t P} {t E} {t G} {n WHITESPACE}}
            PLUS          {x {t +} {n WHITESPACE}}
            Prefix        {x {? {/ {n AND} {n NOT}}} {n Suffix}}
            Primary       {/ {n ALNUM} {n ALPHA} {n ASCII} {n CONTROL} {n DDIGIT} {n DIGIT} {n GRAPH} {n LOWER} {n PRINTABLE} {n PUNCT} {n SPACE} {n UPPER} {n WORDCHAR} {n XDIGIT} {n Identifier} {x {n OPEN} {n Expression} {n CLOSE}} {n Literal} {n Class} {n DOT}}
            PRINTABLE     {x {t <} {t p} {t r} {t i} {t n} {t t} {t >} {n WHITESPACE}}
            PUNCT         {x {t <} {t p} {t u} {t n} {t c} {t t} {t >} {n WHITESPACE}}
            QUESTION      {x {t ?} {n WHITESPACE}}
            Range         {/ {x {n Char} {n TO} {n Char}} {n Char}}



|







 







<







 







<



|












|







1
2
3
4
5
6
7
8
9
10
11
12
..
23
24
25
26
27
28
29

30
31
32
33
34
35
36
..
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
snit::type a_pe_grammar {
    constructor {} {
        install myg using pt::peg::container ${selfns}::G
        $myg start {n Grammar}
        $myg add   ALNUM ALPHA AND APOSTROPH ASCII Attribute Char CharOctalFull CharOctalPart CharSpecial CharUnescaped CharUnicode Class CLOSE CLOSEB COLON COMMENT CONTROL DAPOSTROPH DDIGIT Definition DIGIT DOT EOF EOL Expression Final Grammar GRAPH Header Ident Identifier IS LEAF Literal LOWER NOT OPEN OPENB PEG PLUS Prefix Primary PRINTABLE PUNCT QUESTION Range SEMICOLON Sequence SLASH SPACE STAR StartExpr Suffix TO UPPER VOID WHITESPACE WORDCHAR XDIGIT
        $myg modes {
            ALNUM         leaf
            ALPHA         leaf
            AND           leaf
            APOSTROPH     void
            ASCII         leaf
            Attribute     value
................................................................................
            COMMENT       void
            CONTROL       leaf
            DAPOSTROPH    void
            DDIGIT        leaf
            Definition    value
            DIGIT         leaf
            DOT           leaf

            EOF           void
            EOL           void
            Expression    value
            Final         void
            Grammar       value
            GRAPH         leaf
            Header        value
................................................................................
            COMMENT       {x {t #} {* {x {! {n EOL}} dot}} {n EOL}}
            CONTROL       {x {t <} {t c} {t o} {t n} {t t} {t r} {t o} {t l} {t >} {n WHITESPACE}}
            DAPOSTROPH    {t \42}
            DDIGIT        {x {t <} {t d} {t d} {t i} {t g} {t i} {t t} {t >} {n WHITESPACE}}
            Definition    {x {? {n Attribute}} {n Identifier} {n IS} {n Expression} {n SEMICOLON}}
            DIGIT         {x {t <} {t d} {t i} {t g} {t i} {t t} {t >} {n WHITESPACE}}
            DOT           {x {t .} {n WHITESPACE}}

            EOF           {! dot}
            EOL           {/ {t \n} {t \r}}
            Expression    {x {n Sequence} {* {x {n SLASH} {n Sequence}}}}
            Final         {x {t E} {t N} {t D} {n WHITESPACE} {n SEMICOLON} {n WHITESPACE}}
            Grammar       {x {n WHITESPACE} {n Header} {* {n Definition}} {n Final} {n EOF}}
            GRAPH         {x {t <} {t g} {t r} {t a} {t p} {t h} {t >} {n WHITESPACE}}
            Header        {x {n PEG} {n Identifier} {n StartExpr}}
            Ident         {x {/ {t _} {t :} alpha} {* {/ {t _} {t :} alnum}}}
            Identifier    {x {n Ident} {n WHITESPACE}}
            IS            {x {t <} {t -} {n WHITESPACE}}
            LEAF          {x {t l} {t e} {t a} {t f} {n WHITESPACE}}
            Literal       {/ {x {n APOSTROPH} {* {x {! {n APOSTROPH}} {n Char}}} {n APOSTROPH} {n WHITESPACE}} {x {n DAPOSTROPH} {* {x {! {n DAPOSTROPH}} {n Char}}} {n DAPOSTROPH} {n WHITESPACE}}}
            LOWER         {x {t <} {t l} {t o} {t w} {t e} {t r} {t >} {n WHITESPACE}}
            NOT           {x {t !} {n WHITESPACE}}
            OPEN          {x {t \50} {n WHITESPACE}}
            OPENB         {t \133}
            PEG           {x {t P} {t E} {t G} {! {/ {t _} {t :} alnum}} {n WHITESPACE}}
            PLUS          {x {t +} {n WHITESPACE}}
            Prefix        {x {? {/ {n AND} {n NOT}}} {n Suffix}}
            Primary       {/ {n ALNUM} {n ALPHA} {n ASCII} {n CONTROL} {n DDIGIT} {n DIGIT} {n GRAPH} {n LOWER} {n PRINTABLE} {n PUNCT} {n SPACE} {n UPPER} {n WORDCHAR} {n XDIGIT} {n Identifier} {x {n OPEN} {n Expression} {n CLOSE}} {n Literal} {n Class} {n DOT}}
            PRINTABLE     {x {t <} {t p} {t r} {t i} {t n} {t t} {t >} {n WHITESPACE}}
            PUNCT         {x {t <} {t p} {t u} {t n} {t c} {t t} {t >} {n WHITESPACE}}
            QUESTION      {x {t ?} {n WHITESPACE}}
            Range         {/ {x {n Char} {n TO} {n Char}} {n Char}}

Changes to modules/pt/tests/data/ok/peg_container-incremental/3_peg_itself.

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
...
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
        $myg mode  DIGIT         leaf
        $myg rule  DIGIT         {x {t <} {t d} {t i} {t g} {t i} {t t} {t >} {n WHITESPACE}}

        $myg add   DOT
        $myg mode  DOT           leaf
        $myg rule  DOT           {x {t .} {n WHITESPACE}}

        $myg add   END
        $myg mode  END           void
        $myg rule  END           {x {t E} {t N} {t D} {n WHITESPACE}}

        $myg add   EOF
        $myg mode  EOF           void
        $myg rule  EOF           {! dot}

        $myg add   EOL
        $myg mode  EOL           void
        $myg rule  EOL           {/ {t \n} {t \r}}
................................................................................

        $myg add   Expression
        $myg mode  Expression    value
        $myg rule  Expression    {x {n Sequence} {* {x {n SLASH} {n Sequence}}}}

        $myg add   Final
        $myg mode  Final         void
        $myg rule  Final         {x {n END} {n SEMICOLON} {n WHITESPACE}}

        $myg add   Grammar
        $myg mode  Grammar       value
        $myg rule  Grammar       {x {n WHITESPACE} {n Header} {* {n Definition}} {n Final} {n EOF}}

        $myg add   GRAPH
        $myg mode  GRAPH         leaf
................................................................................

        $myg add   OPENB
        $myg mode  OPENB         void
        $myg rule  OPENB         {t \133}

        $myg add   PEG
        $myg mode  PEG           void
        $myg rule  PEG           {x {t P} {t E} {t G} {n WHITESPACE}}

        $myg add   PLUS
        $myg mode  PLUS          leaf
        $myg rule  PLUS          {x {t +} {n WHITESPACE}}

        $myg add   Prefix
        $myg mode  Prefix        value






<
<
<
<







 







|







 







|







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
...
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
        $myg mode  DIGIT         leaf
        $myg rule  DIGIT         {x {t <} {t d} {t i} {t g} {t i} {t t} {t >} {n WHITESPACE}}

        $myg add   DOT
        $myg mode  DOT           leaf
        $myg rule  DOT           {x {t .} {n WHITESPACE}}





        $myg add   EOF
        $myg mode  EOF           void
        $myg rule  EOF           {! dot}

        $myg add   EOL
        $myg mode  EOL           void
        $myg rule  EOL           {/ {t \n} {t \r}}
................................................................................

        $myg add   Expression
        $myg mode  Expression    value
        $myg rule  Expression    {x {n Sequence} {* {x {n SLASH} {n Sequence}}}}

        $myg add   Final
        $myg mode  Final         void
        $myg rule  Final         {x {t E} {t N} {t D} {n WHITESPACE} {n SEMICOLON} {n WHITESPACE}}

        $myg add   Grammar
        $myg mode  Grammar       value
        $myg rule  Grammar       {x {n WHITESPACE} {n Header} {* {n Definition}} {n Final} {n EOF}}

        $myg add   GRAPH
        $myg mode  GRAPH         leaf
................................................................................

        $myg add   OPENB
        $myg mode  OPENB         void
        $myg rule  OPENB         {t \133}

        $myg add   PEG
        $myg mode  PEG           void
        $myg rule  PEG           {x {t P} {t E} {t G} {! {/ {t _} {t :} alnum}} {n WHITESPACE}}

        $myg add   PLUS
        $myg mode  PLUS          leaf
        $myg rule  PLUS          {x {t +} {n WHITESPACE}}

        $myg add   Prefix
        $myg mode  Prefix        value

Changes to modules/pt/tests/data/ok/peg_container-templated-bulk/3_peg_itself.

6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
..
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
..
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
package require snit
package require pt::peg::container

snit::type TEMPLATE {
    constructor {} {
        install myg using pt::peg::container ${selfns}::G
        $myg start {n Grammar}
        $myg add   ALNUM ALPHA AND APOSTROPH ASCII Attribute Char CharOctalFull CharOctalPart CharSpecial CharUnescaped CharUnicode Class CLOSE CLOSEB COLON COMMENT CONTROL DAPOSTROPH DDIGIT Definition DIGIT DOT END EOF EOL Expression Final Grammar GRAPH Header Ident Identifier IS LEAF Literal LOWER NOT OPEN OPENB PEG PLUS Prefix Primary PRINTABLE PUNCT QUESTION Range SEMICOLON Sequence SLASH SPACE STAR StartExpr Suffix TO UPPER VOID WHITESPACE WORDCHAR XDIGIT
        $myg modes {
            ALNUM         leaf
            ALPHA         leaf
            AND           leaf
            APOSTROPH     void
            ASCII         leaf
            Attribute     value
................................................................................
            COMMENT       void
            CONTROL       leaf
            DAPOSTROPH    void
            DDIGIT        leaf
            Definition    value
            DIGIT         leaf
            DOT           leaf
            END           void
            EOF           void
            EOL           void
            Expression    value
            Final         void
            Grammar       value
            GRAPH         leaf
            Header        value
................................................................................
            COMMENT       {x {t #} {* {x {! {n EOL}} dot}} {n EOL}}
            CONTROL       {x {t <} {t c} {t o} {t n} {t t} {t r} {t o} {t l} {t >} {n WHITESPACE}}
            DAPOSTROPH    {t \42}
            DDIGIT        {x {t <} {t d} {t d} {t i} {t g} {t i} {t t} {t >} {n WHITESPACE}}
            Definition    {x {? {n Attribute}} {n Identifier} {n IS} {n Expression} {n SEMICOLON}}
            DIGIT         {x {t <} {t d} {t i} {t g} {t i} {t t} {t >} {n WHITESPACE}}
            DOT           {x {t .} {n WHITESPACE}}
            END           {x {t E} {t N} {t D} {n WHITESPACE}}
            EOF           {! dot}
            EOL           {/ {t \n} {t \r}}
            Expression    {x {n Sequence} {* {x {n SLASH} {n Sequence}}}}
            Final         {x {n END} {n SEMICOLON} {n WHITESPACE}}
            Grammar       {x {n WHITESPACE} {n Header} {* {n Definition}} {n Final} {n EOF}}
            GRAPH         {x {t <} {t g} {t r} {t a} {t p} {t h} {t >} {n WHITESPACE}}
            Header        {x {n PEG} {n Identifier} {n StartExpr}}
            Ident         {x {/ {t _} {t :} alpha} {* {/ {t _} {t :} alnum}}}
            Identifier    {x {n Ident} {n WHITESPACE}}
            IS            {x {t <} {t -} {n WHITESPACE}}
            LEAF          {x {t l} {t e} {t a} {t f} {n WHITESPACE}}
            Literal       {/ {x {n APOSTROPH} {* {x {! {n APOSTROPH}} {n Char}}} {n APOSTROPH} {n WHITESPACE}} {x {n DAPOSTROPH} {* {x {! {n DAPOSTROPH}} {n Char}}} {n DAPOSTROPH} {n WHITESPACE}}}
            LOWER         {x {t <} {t l} {t o} {t w} {t e} {t r} {t >} {n WHITESPACE}}
            NOT           {x {t !} {n WHITESPACE}}
            OPEN          {x {t \50} {n WHITESPACE}}
            OPENB         {t \133}
            PEG           {x {t P} {t E} {t G} {n WHITESPACE}}
            PLUS          {x {t +} {n WHITESPACE}}
            Prefix        {x {? {/ {n AND} {n NOT}}} {n Suffix}}
            Primary       {/ {n ALNUM} {n ALPHA} {n ASCII} {n CONTROL} {n DDIGIT} {n DIGIT} {n GRAPH} {n LOWER} {n PRINTABLE} {n PUNCT} {n SPACE} {n UPPER} {n WORDCHAR} {n XDIGIT} {n Identifier} {x {n OPEN} {n Expression} {n CLOSE}} {n Literal} {n Class} {n DOT}}
            PRINTABLE     {x {t <} {t p} {t r} {t i} {t n} {t t} {t >} {n WHITESPACE}}
            PUNCT         {x {t <} {t p} {t u} {t n} {t c} {t t} {t >} {n WHITESPACE}}
            QUESTION      {x {t ?} {n WHITESPACE}}
            Range         {/ {x {n Char} {n TO} {n Char}} {n Char}}






|







 







<







 







<



|












|







6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
..
31
32
33
34
35
36
37

38
39
40
41
42
43
44
..
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
package require snit
package require pt::peg::container

snit::type TEMPLATE {
    constructor {} {
        install myg using pt::peg::container ${selfns}::G
        $myg start {n Grammar}
        $myg add   ALNUM ALPHA AND APOSTROPH ASCII Attribute Char CharOctalFull CharOctalPart CharSpecial CharUnescaped CharUnicode Class CLOSE CLOSEB COLON COMMENT CONTROL DAPOSTROPH DDIGIT Definition DIGIT DOT EOF EOL Expression Final Grammar GRAPH Header Ident Identifier IS LEAF Literal LOWER NOT OPEN OPENB PEG PLUS Prefix Primary PRINTABLE PUNCT QUESTION Range SEMICOLON Sequence SLASH SPACE STAR StartExpr Suffix TO UPPER VOID WHITESPACE WORDCHAR XDIGIT
        $myg modes {
            ALNUM         leaf
            ALPHA         leaf
            AND           leaf
            APOSTROPH     void
            ASCII         leaf
            Attribute     value
................................................................................
            COMMENT       void
            CONTROL       leaf
            DAPOSTROPH    void
            DDIGIT        leaf
            Definition    value
            DIGIT         leaf
            DOT           leaf

            EOF           void
            EOL           void
            Expression    value
            Final         void
            Grammar       value
            GRAPH         leaf
            Header        value
................................................................................
            COMMENT       {x {t #} {* {x {! {n EOL}} dot}} {n EOL}}
            CONTROL       {x {t <} {t c} {t o} {t n} {t t} {t r} {t o} {t l} {t >} {n WHITESPACE}}
            DAPOSTROPH    {t \42}
            DDIGIT        {x {t <} {t d} {t d} {t i} {t g} {t i} {t t} {t >} {n WHITESPACE}}
            Definition    {x {? {n Attribute}} {n Identifier} {n IS} {n Expression} {n SEMICOLON}}
            DIGIT         {x {t <} {t d} {t i} {t g} {t i} {t t} {t >} {n WHITESPACE}}
            DOT           {x {t .} {n WHITESPACE}}

            EOF           {! dot}
            EOL           {/ {t \n} {t \r}}
            Expression    {x {n Sequence} {* {x {n SLASH} {n Sequence}}}}
            Final         {x {t E} {t N} {t D} {n WHITESPACE} {n SEMICOLON} {n WHITESPACE}}
            Grammar       {x {n WHITESPACE} {n Header} {* {n Definition}} {n Final} {n EOF}}
            GRAPH         {x {t <} {t g} {t r} {t a} {t p} {t h} {t >} {n WHITESPACE}}
            Header        {x {n PEG} {n Identifier} {n StartExpr}}
            Ident         {x {/ {t _} {t :} alpha} {* {/ {t _} {t :} alnum}}}
            Identifier    {x {n Ident} {n WHITESPACE}}
            IS            {x {t <} {t -} {n WHITESPACE}}
            LEAF          {x {t l} {t e} {t a} {t f} {n WHITESPACE}}
            Literal       {/ {x {n APOSTROPH} {* {x {! {n APOSTROPH}} {n Char}}} {n APOSTROPH} {n WHITESPACE}} {x {n DAPOSTROPH} {* {x {! {n DAPOSTROPH}} {n Char}}} {n DAPOSTROPH} {n WHITESPACE}}}
            LOWER         {x {t <} {t l} {t o} {t w} {t e} {t r} {t >} {n WHITESPACE}}
            NOT           {x {t !} {n WHITESPACE}}
            OPEN          {x {t \50} {n WHITESPACE}}
            OPENB         {t \133}
            PEG           {x {t P} {t E} {t G} {! {/ {t _} {t :} alnum}} {n WHITESPACE}}
            PLUS          {x {t +} {n WHITESPACE}}
            Prefix        {x {? {/ {n AND} {n NOT}}} {n Suffix}}
            Primary       {/ {n ALNUM} {n ALPHA} {n ASCII} {n CONTROL} {n DDIGIT} {n DIGIT} {n GRAPH} {n LOWER} {n PRINTABLE} {n PUNCT} {n SPACE} {n UPPER} {n WORDCHAR} {n XDIGIT} {n Identifier} {x {n OPEN} {n Expression} {n CLOSE}} {n Literal} {n Class} {n DOT}}
            PRINTABLE     {x {t <} {t p} {t r} {t i} {t n} {t t} {t >} {n WHITESPACE}}
            PUNCT         {x {t <} {t p} {t u} {t n} {t c} {t t} {t >} {n WHITESPACE}}
            QUESTION      {x {t ?} {n WHITESPACE}}
            Range         {/ {x {n Char} {n TO} {n Char}} {n Char}}

Changes to modules/pt/tests/data/ok/peg_container-templated-incremental/3_peg_itself.

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
...
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
        $myg mode  DIGIT         leaf
        $myg rule  DIGIT         {x {t <} {t d} {t i} {t g} {t i} {t t} {t >} {n WHITESPACE}}

        $myg add   DOT
        $myg mode  DOT           leaf
        $myg rule  DOT           {x {t .} {n WHITESPACE}}

        $myg add   END
        $myg mode  END           void
        $myg rule  END           {x {t E} {t N} {t D} {n WHITESPACE}}

        $myg add   EOF
        $myg mode  EOF           void
        $myg rule  EOF           {! dot}

        $myg add   EOL
        $myg mode  EOL           void
        $myg rule  EOL           {/ {t \n} {t \r}}
................................................................................

        $myg add   Expression
        $myg mode  Expression    value
        $myg rule  Expression    {x {n Sequence} {* {x {n SLASH} {n Sequence}}}}

        $myg add   Final
        $myg mode  Final         void
        $myg rule  Final         {x {n END} {n SEMICOLON} {n WHITESPACE}}

        $myg add   Grammar
        $myg mode  Grammar       value
        $myg rule  Grammar       {x {n WHITESPACE} {n Header} {* {n Definition}} {n Final} {n EOF}}

        $myg add   GRAPH
        $myg mode  GRAPH         leaf
................................................................................

        $myg add   OPENB
        $myg mode  OPENB         void
        $myg rule  OPENB         {t \133}

        $myg add   PEG
        $myg mode  PEG           void
        $myg rule  PEG           {x {t P} {t E} {t G} {n WHITESPACE}}

        $myg add   PLUS
        $myg mode  PLUS          leaf
        $myg rule  PLUS          {x {t +} {n WHITESPACE}}

        $myg add   Prefix
        $myg mode  Prefix        value






<
<
<
<







 







|







 







|







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
...
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
        $myg mode  DIGIT         leaf
        $myg rule  DIGIT         {x {t <} {t d} {t i} {t g} {t i} {t t} {t >} {n WHITESPACE}}

        $myg add   DOT
        $myg mode  DOT           leaf
        $myg rule  DOT           {x {t .} {n WHITESPACE}}





        $myg add   EOF
        $myg mode  EOF           void
        $myg rule  EOF           {! dot}

        $myg add   EOL
        $myg mode  EOL           void
        $myg rule  EOL           {/ {t \n} {t \r}}
................................................................................

        $myg add   Expression
        $myg mode  Expression    value
        $myg rule  Expression    {x {n Sequence} {* {x {n SLASH} {n Sequence}}}}

        $myg add   Final
        $myg mode  Final         void
        $myg rule  Final         {x {t E} {t N} {t D} {n WHITESPACE} {n SEMICOLON} {n WHITESPACE}}

        $myg add   Grammar
        $myg mode  Grammar       value
        $myg rule  Grammar       {x {n WHITESPACE} {n Header} {* {n Definition}} {n Final} {n EOF}}

        $myg add   GRAPH
        $myg mode  GRAPH         leaf
................................................................................

        $myg add   OPENB
        $myg mode  OPENB         void
        $myg rule  OPENB         {t \133}

        $myg add   PEG
        $myg mode  PEG           void
        $myg rule  PEG           {x {t P} {t E} {t G} {! {/ {t _} {t :} alnum}} {n WHITESPACE}}

        $myg add   PLUS
        $myg mode  PLUS          leaf
        $myg rule  PLUS          {x {t +} {n WHITESPACE}}

        $myg add   Prefix
        $myg mode  Prefix        value

Changes to modules/pt/tests/data/ok/peg_cparam-critcl/0_basic_arithmetic.

26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
...
382
383
384
385
386
387
388




389
390
391
392
393
394
395
...
477
478
479
480
481
482
483

484
485
486
487
488
489
490
...
818
819
820
821
822
823
824


825
826
827
828
829
830
831
....
1047
1048
1049
1050
1051
1052
1053





1054
1055
1056
1057
1058
1059
1060
1061
....
1354
1355
1356
1357
1358
1359
1360







1361
1362
1363
1364
1365
1366
1367
....
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643

1644
1645
1646

1647
1648
1649
1650
1651

1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
....
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733














1734
1735
1736
1737
1738
1739
1740
....
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
....
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
....
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
....
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
....
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
....
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
....
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
....
2165
2166
2167
2168
2169
2170
2171

2172
2173
2174
2175
2176
2177
2178
....
2187
2188
2189
2190
2191
2192
2193







2194
2195
2196
2197
2198
2199
2200
2201
2202

2203

2204
2205
2206
2207
2208
2209
2210
2211
2212
##

namespace eval ::PARSER {
    # # ## ### ##### ######## ############# #####################
    ## Supporting code for the main command.

    catch {
	#critcl::cheaders -g
	#critcl::debug memory symbols
    }

    # # ## ### ###### ######## #############
    ## RDE runtime, inlined, and made static.

    # This is the C code for the RDE, i.e. the implementation
................................................................................
	    long int off  = tc->num;
	    char* ch;
	    int clen;
	    Tcl_UniChar uni;
	    if (len < 0) {
		len = strlen (string);
	    }




	    
	    if ((tc->num + len) >= tc->max) {
		int   new = len + (tc->max ? (2 * tc->max) : RDE_STACK_INITIAL_SIZE);
		char* str = ckrealloc (tc->str, new * sizeof(char));
		ASSERT (str,"Memory allocation failure for token character array");
		tc->max = new;
		tc->str = str;
................................................................................
	    ClientData clientData;
	} RDE_PARAM_;
	typedef int (*UniCharClass) (int);
	typedef enum test_class_id {
	    tc_alnum,
	    tc_alpha,
	    tc_ascii,

	    tc_ddigit,
	    tc_digit,
	    tc_graph,
	    tc_lower,
	    tc_printable,
	    tc_punct,
	    tc_space,
................................................................................
	rde_param_i_error_clear (RDE_PARAM p)
	{
	    ER_CLEAR (p);
	}
	SCOPE void
	rde_param_i_error_nonterminal (RDE_PARAM p, int s)
	{


	    long int pos;
	    if (!p->ER) return;
	    pos = 1 + (long int) rde_stack_top (p->LS);
	    if (p->ER->loc != pos) return;
	    error_set (p, s);
	    p->ER->loc = pos;
	}
................................................................................
	}
	SCOPE void
	rde_param_i_test_ascii (RDE_PARAM p)
	{
	    test_class (p, UniCharIsAscii, tc_ascii);
	}
	SCOPE void





	rde_param_i_test_char (RDE_PARAM p, char* c, int msg)
	{
	    ASSERT_BOUNDS(msg,p->numstr);
	    p->ST = Tcl_UtfNcmp (p->CC, c, 1) == 0;
	    if (p->ST) {
		ER_CLEAR (p);
	    } else {
		error_set (p, msg);
................................................................................
	SCOPE void
	rde_param_i_next_ascii (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_ascii (p);
	}







	SCOPE void
	rde_param_i_next_ddigit (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_ddigit (p);
	}
................................................................................
		p->CL = (long int) rde_stack_top (p->LS);
		rde_stack_push (p->ES, p->ER);
		if (p->ER) { p->ER->refCount ++; }
	    }
	    return p->ST;
	}
	SCOPE void
	rde_param_i_next_str (RDE_PARAM p, char* str, int m)
	{
	    int at = p->CL;

	    while (*str) {
		rde_param_i_input_next (p, m);
		if (!p->ST) {

		    p->CL = at;
		    return;
		}
		rde_param_i_test_char (p, str, m);
		if (!p->ST) {

		    p->CL = at;
		    return;
		}
		str = Tcl_UtfNext (str);
	    }
	}
	SCOPE void
	rde_param_i_next_class (RDE_PARAM p, char* class, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    while (*class) {
		p->ST = Tcl_UtfNcmp (p->CC, class, 1) == 0;
		if (p->ST) {
		    ER_CLEAR (p);
................................................................................
        static void sym_Sign (RDE_PARAM p);
        static void sym_Term (RDE_PARAM p);
        
        /*
         * Precomputed table of strings (symbols, error messages, etc.).
         */
        
        static char const* p_string [21] = {
            /*        0 = */   "cl '-+'",
            /*        1 = */   "n AddOp",
            /*        2 = */   "AddOp",
            /*        3 = */   "cl '0123456789'",
            /*        4 = */   "n Digit",
            /*        5 = */   "Digit",
            /*        6 = */   "t \50",
            /*        7 = */   "t \51",
            /*        8 = */   "n Expression",
            /*        9 = */   "Expression",
            /*       10 = */   "n Factor",
            /*       11 = */   "Factor",
            /*       12 = */   "cl '*/'",
            /*       13 = */   "n MulOp",
            /*       14 = */   "MulOp",
            /*       15 = */   "n Number",
            /*       16 = */   "Number",
            /*       17 = */   "n Sign",
            /*       18 = */   "Sign",
            /*       19 = */   "n Term",
            /*       20 = */   "Term"














        };
        
        /*
         * Grammar Start Expression
         */
        
        static void MAIN (RDE_PARAM p) {
................................................................................
         */
        
        static void sym_AddOp (RDE_PARAM p) {
           /*
            * [-+]
            */
        
            if (rde_param_i_symbol_start (p, 2)) return ;
            rde_param_i_next_class (p, "-+", 0);
            rde_param_i_symbol_done_leaf (p, 2, 1);
            return;
        }
        
        /*
         * value Symbol 'Digit'
         */
        
        static void sym_Digit (RDE_PARAM p) {
           /*
            * [0123456789]
            */
        
            if (rde_param_i_symbol_start (p, 5)) return ;
            rde_param_i_next_class (p, "0123456789", 3);
            rde_param_i_symbol_done_leaf (p, 5, 4);
            return;
        }
        
        /*
         * value Symbol 'Expression'
         */
        
................................................................................
            *         (Factor)
            *         *
            *             x
            *                 (MulOp)
            *                 (Factor)
            */
        
            if (rde_param_i_symbol_start_d (p, 9)) return ;
            choice_20 (p);
            rde_param_i_symbol_done_d_reduce (p, 9, 8);
            return;
        }
        
        static void choice_20 (RDE_PARAM p) {
           /*
            * /
            *     x
................................................................................
            * x
            *     '\('
            *     (Expression)
            *     '\)'
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_char (p, "\50", 6);
            if (rde_param_i_seq_void2value(p)) return;
            sym_Expression (p);
            if (rde_param_i_seq_value2value(p)) return;
            rde_param_i_next_char (p, "\51", 7);
            rde_param_i_state_merge_value (p);
            return;
        }
        
        static void sequence_18 (RDE_PARAM p) {
           /*
            * x
................................................................................
            *     (Term)
            *     *
            *         x
            *             (AddOp)
            *             (Term)
            */
        
            if (rde_param_i_symbol_start_d (p, 11)) return ;
            sequence_30 (p);
            rde_param_i_symbol_done_d_reduce (p, 11, 10);
            return;
        }
        
        static void sequence_30 (RDE_PARAM p) {
           /*
            * x
            *     (Term)
................................................................................
         */
        
        static void sym_MulOp (RDE_PARAM p) {
           /*
            * [\u002a\u002f]
            */
        
            if (rde_param_i_symbol_start (p, 14)) return ;
            rde_param_i_next_class (p, "*/", 12);
            rde_param_i_symbol_done_leaf (p, 14, 13);
            return;
        }
        
        /*
         * value Symbol 'Number'
         */
        
................................................................................
            * x
            *     ?
            *         (Sign)
            *     +
            *         (Digit)
            */
        
            if (rde_param_i_symbol_start_d (p, 16)) return ;
            sequence_41 (p);
            rde_param_i_symbol_done_d_reduce (p, 16, 15);
            return;
        }
        
        static void sequence_41 (RDE_PARAM p) {
           /*
            * x
            *     ?
................................................................................
         */
        
        static void sym_Sign (RDE_PARAM p) {
           /*
            * [-+]
            */
        
            if (rde_param_i_symbol_start (p, 18)) return ;
            rde_param_i_next_class (p, "-+", 0);
            rde_param_i_symbol_done_leaf (p, 18, 17);
            return;
        }
        
        /*
         * value Symbol 'Term'
         */
        
        static void sym_Term (RDE_PARAM p) {
           /*
            * (Number)
            */
        
            if (rde_param_i_symbol_start_d (p, 20)) return ;
            sym_Number (p);
            rde_param_i_symbol_done_d_reduce (p, 20, 19);
            return;
        }
        
    }

    ## END of GENERATED CODE. DO NOT EDIT.
    # # ## ### ###### ######## #############
................................................................................

	    rde_param_reset (p, NULL);
	    rde_param_data  (p, buf, len);
	    MAIN (p) ; /* Entrypoint for the generated code. */
	    return COMPLETE (p, interp);
	}


	static int COMPLETE (RDE_PARAM p, Tcl_Interp* interp)
	{
	    if (rde_param_query_st (p)) {
		long int  ac;
		Tcl_Obj** av;

		rde_param_query_ast (p, &ac, &av);
................................................................................
		    memcpy(lv + 3, av, ac * sizeof (Tcl_Obj*));
		    lv [0] = Tcl_NewObj ();
		    lv [1] = Tcl_NewIntObj (1 + lsv [lsc-1]);
		    lv [2] = Tcl_NewIntObj (rde_param_query_cl (p));

		    Tcl_SetObjResult (interp, Tcl_NewListObj (3, lv));
		    ckfree ((char*) lv);







		} else {
		    Tcl_SetObjResult (interp, av [0]);
		}

		return TCL_OK;
	    } else {
		Tcl_Obj* xv [1];
		const ERROR_STATE* er = rde_param_query_er (p);
		Tcl_Obj* res = rde_param_query_er_tcl (p, er);



		xv [0] = Tcl_NewStringObj ("pt::rde",-1);
		Tcl_ListObjReplace(interp, res, 0, 1, 1, xv);

		Tcl_SetObjResult (interp, res);
		return TCL_ERROR;
	    }
	}
    }







|







 







>
>
>
>







 







>







 







>
>







 







>
>
>
>
>
|







 







>
>
>
>
>
>
>







 







|


>



>





>







|







 







|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>







 







|
|
|












|
|
|







 







|

|







 







|



|







 







|

|







 







|
|
|







 







|

|







 







|
|
|












|

|







 







>







 







>
>
>
>
>
>
>









>

>

|







26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
...
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
...
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
...
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
....
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
....
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
....
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
....
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
....
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
....
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
....
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
....
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
....
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
....
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
....
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
....
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
....
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
##

namespace eval ::PARSER {
    # # ## ### ##### ######## ############# #####################
    ## Supporting code for the main command.

    catch {
	#critcl::cflags -g
	#critcl::debug memory symbols
    }

    # # ## ### ###### ######## #############
    ## RDE runtime, inlined, and made static.

    # This is the C code for the RDE, i.e. the implementation
................................................................................
	    long int off  = tc->num;
	    char* ch;
	    int clen;
	    Tcl_UniChar uni;
	    if (len < 0) {
		len = strlen (string);
	    }
	    
	    if (!len) {
		return tc->str + base;
	    }
	    
	    if ((tc->num + len) >= tc->max) {
		int   new = len + (tc->max ? (2 * tc->max) : RDE_STACK_INITIAL_SIZE);
		char* str = ckrealloc (tc->str, new * sizeof(char));
		ASSERT (str,"Memory allocation failure for token character array");
		tc->max = new;
		tc->str = str;
................................................................................
	    ClientData clientData;
	} RDE_PARAM_;
	typedef int (*UniCharClass) (int);
	typedef enum test_class_id {
	    tc_alnum,
	    tc_alpha,
	    tc_ascii,
	    tc_control,
	    tc_ddigit,
	    tc_digit,
	    tc_graph,
	    tc_lower,
	    tc_printable,
	    tc_punct,
	    tc_space,
................................................................................
	rde_param_i_error_clear (RDE_PARAM p)
	{
	    ER_CLEAR (p);
	}
	SCOPE void
	rde_param_i_error_nonterminal (RDE_PARAM p, int s)
	{
	    
	    return;
	    long int pos;
	    if (!p->ER) return;
	    pos = 1 + (long int) rde_stack_top (p->LS);
	    if (p->ER->loc != pos) return;
	    error_set (p, s);
	    p->ER->loc = pos;
	}
................................................................................
	}
	SCOPE void
	rde_param_i_test_ascii (RDE_PARAM p)
	{
	    test_class (p, UniCharIsAscii, tc_ascii);
	}
	SCOPE void
	rde_param_i_test_control (RDE_PARAM p)
	{
	    test_class (p, Tcl_UniCharIsControl, tc_control);
	}
	SCOPE void
	rde_param_i_test_char (RDE_PARAM p, const char* c, int msg)
	{
	    ASSERT_BOUNDS(msg,p->numstr);
	    p->ST = Tcl_UtfNcmp (p->CC, c, 1) == 0;
	    if (p->ST) {
		ER_CLEAR (p);
	    } else {
		error_set (p, msg);
................................................................................
	SCOPE void
	rde_param_i_next_ascii (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_ascii (p);
	}
	SCOPE void
	rde_param_i_next_control (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_control (p);
	}
	SCOPE void
	rde_param_i_next_ddigit (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_ddigit (p);
	}
................................................................................
		p->CL = (long int) rde_stack_top (p->LS);
		rde_stack_push (p->ES, p->ER);
		if (p->ER) { p->ER->refCount ++; }
	    }
	    return p->ST;
	}
	SCOPE void
	rde_param_i_next_str (RDE_PARAM p, const char* str, int m)
	{
	    int at = p->CL;
	    
	    while (*str) {
		rde_param_i_input_next (p, m);
		if (!p->ST) {
		    p->ER->loc = at+1;
		    p->CL = at;
		    return;
		}
		rde_param_i_test_char (p, str, m);
		if (!p->ST) {
		    p->ER->loc = at+1;
		    p->CL = at;
		    return;
		}
		str = Tcl_UtfNext (str);
	    }
	}
	SCOPE void
	rde_param_i_next_class (RDE_PARAM p, const char* class, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    while (*class) {
		p->ST = Tcl_UtfNcmp (p->CC, class, 1) == 0;
		if (p->ST) {
		    ER_CLEAR (p);
................................................................................
        static void sym_Sign (RDE_PARAM p);
        static void sym_Term (RDE_PARAM p);
        
        /*
         * Precomputed table of strings (symbols, error messages, etc.).
         */
        
        static char const* p_string [35] = {
            /*        0 = */   "alnum",
            /*        1 = */   "alpha",
            /*        2 = */   "ascii",
            /*        3 = */   "control",
            /*        4 = */   "ddigit",
            /*        5 = */   "digit",
            /*        6 = */   "graph",
            /*        7 = */   "lower",
            /*        8 = */   "print",
            /*        9 = */   "punct",
            /*       10 = */   "space",
            /*       11 = */   "upper",
            /*       12 = */   "wordchar",
            /*       13 = */   "xdigit",
            /*       14 = */   "cl -+",
            /*       15 = */   "n AddOp",
            /*       16 = */   "AddOp",
            /*       17 = */   "cl 0123456789",
            /*       18 = */   "n Digit",
            /*       19 = */   "Digit",
            /*       20 = */   "t \50",
            /*       21 = */   "t \51",
            /*       22 = */   "n Expression",
            /*       23 = */   "Expression",
            /*       24 = */   "n Factor",
            /*       25 = */   "Factor",
            /*       26 = */   "cl */",
            /*       27 = */   "n MulOp",
            /*       28 = */   "MulOp",
            /*       29 = */   "n Number",
            /*       30 = */   "Number",
            /*       31 = */   "n Sign",
            /*       32 = */   "Sign",
            /*       33 = */   "n Term",
            /*       34 = */   "Term"
        };
        
        /*
         * Grammar Start Expression
         */
        
        static void MAIN (RDE_PARAM p) {
................................................................................
         */
        
        static void sym_AddOp (RDE_PARAM p) {
           /*
            * [-+]
            */
        
            if (rde_param_i_symbol_start (p, 16)) return ;
            rde_param_i_next_class (p, "-+", 14);
            rde_param_i_symbol_done_leaf (p, 16, 15);
            return;
        }
        
        /*
         * value Symbol 'Digit'
         */
        
        static void sym_Digit (RDE_PARAM p) {
           /*
            * [0123456789]
            */
        
            if (rde_param_i_symbol_start (p, 19)) return ;
            rde_param_i_next_class (p, "0123456789", 17);
            rde_param_i_symbol_done_leaf (p, 19, 18);
            return;
        }
        
        /*
         * value Symbol 'Expression'
         */
        
................................................................................
            *         (Factor)
            *         *
            *             x
            *                 (MulOp)
            *                 (Factor)
            */
        
            if (rde_param_i_symbol_start_d (p, 23)) return ;
            choice_20 (p);
            rde_param_i_symbol_done_d_reduce (p, 23, 22);
            return;
        }
        
        static void choice_20 (RDE_PARAM p) {
           /*
            * /
            *     x
................................................................................
            * x
            *     '\('
            *     (Expression)
            *     '\)'
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_char (p, "\50", 20);
            if (rde_param_i_seq_void2value(p)) return;
            sym_Expression (p);
            if (rde_param_i_seq_value2value(p)) return;
            rde_param_i_next_char (p, "\51", 21);
            rde_param_i_state_merge_value (p);
            return;
        }
        
        static void sequence_18 (RDE_PARAM p) {
           /*
            * x
................................................................................
            *     (Term)
            *     *
            *         x
            *             (AddOp)
            *             (Term)
            */
        
            if (rde_param_i_symbol_start_d (p, 25)) return ;
            sequence_30 (p);
            rde_param_i_symbol_done_d_reduce (p, 25, 24);
            return;
        }
        
        static void sequence_30 (RDE_PARAM p) {
           /*
            * x
            *     (Term)
................................................................................
         */
        
        static void sym_MulOp (RDE_PARAM p) {
           /*
            * [\u002a\u002f]
            */
        
            if (rde_param_i_symbol_start (p, 28)) return ;
            rde_param_i_next_class (p, "*/", 26);
            rde_param_i_symbol_done_leaf (p, 28, 27);
            return;
        }
        
        /*
         * value Symbol 'Number'
         */
        
................................................................................
            * x
            *     ?
            *         (Sign)
            *     +
            *         (Digit)
            */
        
            if (rde_param_i_symbol_start_d (p, 30)) return ;
            sequence_41 (p);
            rde_param_i_symbol_done_d_reduce (p, 30, 29);
            return;
        }
        
        static void sequence_41 (RDE_PARAM p) {
           /*
            * x
            *     ?
................................................................................
         */
        
        static void sym_Sign (RDE_PARAM p) {
           /*
            * [-+]
            */
        
            if (rde_param_i_symbol_start (p, 32)) return ;
            rde_param_i_next_class (p, "-+", 14);
            rde_param_i_symbol_done_leaf (p, 32, 31);
            return;
        }
        
        /*
         * value Symbol 'Term'
         */
        
        static void sym_Term (RDE_PARAM p) {
           /*
            * (Number)
            */
        
            if (rde_param_i_symbol_start_d (p, 34)) return ;
            sym_Number (p);
            rde_param_i_symbol_done_d_reduce (p, 34, 33);
            return;
        }
        
    }

    ## END of GENERATED CODE. DO NOT EDIT.
    # # ## ### ###### ######## #############
................................................................................

	    rde_param_reset (p, NULL);
	    rde_param_data  (p, buf, len);
	    MAIN (p) ; /* Entrypoint for the generated code. */
	    return COMPLETE (p, interp);
	}

	/* See also rde_critcl/m.c, param_COMPLETE() */
	static int COMPLETE (RDE_PARAM p, Tcl_Interp* interp)
	{
	    if (rde_param_query_st (p)) {
		long int  ac;
		Tcl_Obj** av;

		rde_param_query_ast (p, &ac, &av);
................................................................................
		    memcpy(lv + 3, av, ac * sizeof (Tcl_Obj*));
		    lv [0] = Tcl_NewObj ();
		    lv [1] = Tcl_NewIntObj (1 + lsv [lsc-1]);
		    lv [2] = Tcl_NewIntObj (rde_param_query_cl (p));

		    Tcl_SetObjResult (interp, Tcl_NewListObj (3, lv));
		    ckfree ((char*) lv);

		} else if (ac == 0) {
		    /*
		     * Match, but no AST. This is possible if the grammar
		     * consists of only the start expression.
		     */
		    Tcl_SetObjResult (interp, Tcl_NewStringObj ("",-1));
		} else {
		    Tcl_SetObjResult (interp, av [0]);
		}

		return TCL_OK;
	    } else {
		Tcl_Obj* xv [1];
		const ERROR_STATE* er = rde_param_query_er (p);
		Tcl_Obj* res = rde_param_query_er_tcl (p, er);
		/* res = list (location, list(msg)) */

		/* Stick the exception type-tag before the existing elements */
		xv [0] = Tcl_NewStringObj ("pt::rde",-1);
		Tcl_ListObjReplace(interp, res, 0, 0, 1, xv);

		Tcl_SetObjResult (interp, res);
		return TCL_ERROR;
	    }
	}
    }

Changes to modules/pt/tests/data/ok/peg_cparam-critcl/10_notahead.

26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
...
382
383
384
385
386
387
388




389
390
391
392
393
394
395
...
477
478
479
480
481
482
483

484
485
486
487
488
489
490
...
818
819
820
821
822
823
824


825
826
827
828
829
830
831
....
1047
1048
1049
1050
1051
1052
1053





1054
1055
1056
1057
1058
1059
1060
1061
....
1354
1355
1356
1357
1358
1359
1360







1361
1362
1363
1364
1365
1366
1367
....
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643

1644
1645
1646

1647
1648
1649
1650
1651

1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
....
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699














1700
1701
1702
1703
1704
1705
1706
....
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
....
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
....
1854
1855
1856
1857
1858
1859
1860

1861
1862
1863
1864
1865
1866
1867
....
1876
1877
1878
1879
1880
1881
1882







1883
1884
1885
1886
1887
1888
1889
1890
1891

1892

1893
1894
1895
1896
1897
1898
1899
1900
1901
##

namespace eval ::PARSER {
    # # ## ### ##### ######## ############# #####################
    ## Supporting code for the main command.

    catch {
	#critcl::cheaders -g
	#critcl::debug memory symbols
    }

    # # ## ### ###### ######## #############
    ## RDE runtime, inlined, and made static.

    # This is the C code for the RDE, i.e. the implementation
................................................................................
	    long int off  = tc->num;
	    char* ch;
	    int clen;
	    Tcl_UniChar uni;
	    if (len < 0) {
		len = strlen (string);
	    }




	    
	    if ((tc->num + len) >= tc->max) {
		int   new = len + (tc->max ? (2 * tc->max) : RDE_STACK_INITIAL_SIZE);
		char* str = ckrealloc (tc->str, new * sizeof(char));
		ASSERT (str,"Memory allocation failure for token character array");
		tc->max = new;
		tc->str = str;
................................................................................
	    ClientData clientData;
	} RDE_PARAM_;
	typedef int (*UniCharClass) (int);
	typedef enum test_class_id {
	    tc_alnum,
	    tc_alpha,
	    tc_ascii,

	    tc_ddigit,
	    tc_digit,
	    tc_graph,
	    tc_lower,
	    tc_printable,
	    tc_punct,
	    tc_space,
................................................................................
	rde_param_i_error_clear (RDE_PARAM p)
	{
	    ER_CLEAR (p);
	}
	SCOPE void
	rde_param_i_error_nonterminal (RDE_PARAM p, int s)
	{


	    long int pos;
	    if (!p->ER) return;
	    pos = 1 + (long int) rde_stack_top (p->LS);
	    if (p->ER->loc != pos) return;
	    error_set (p, s);
	    p->ER->loc = pos;
	}
................................................................................
	}
	SCOPE void
	rde_param_i_test_ascii (RDE_PARAM p)
	{
	    test_class (p, UniCharIsAscii, tc_ascii);
	}
	SCOPE void





	rde_param_i_test_char (RDE_PARAM p, char* c, int msg)
	{
	    ASSERT_BOUNDS(msg,p->numstr);
	    p->ST = Tcl_UtfNcmp (p->CC, c, 1) == 0;
	    if (p->ST) {
		ER_CLEAR (p);
	    } else {
		error_set (p, msg);
................................................................................
	SCOPE void
	rde_param_i_next_ascii (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_ascii (p);
	}







	SCOPE void
	rde_param_i_next_ddigit (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_ddigit (p);
	}
................................................................................
		p->CL = (long int) rde_stack_top (p->LS);
		rde_stack_push (p->ES, p->ER);
		if (p->ER) { p->ER->refCount ++; }
	    }
	    return p->ST;
	}
	SCOPE void
	rde_param_i_next_str (RDE_PARAM p, char* str, int m)
	{
	    int at = p->CL;

	    while (*str) {
		rde_param_i_input_next (p, m);
		if (!p->ST) {

		    p->CL = at;
		    return;
		}
		rde_param_i_test_char (p, str, m);
		if (!p->ST) {

		    p->CL = at;
		    return;
		}
		str = Tcl_UtfNext (str);
	    }
	}
	SCOPE void
	rde_param_i_next_class (RDE_PARAM p, char* class, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    while (*class) {
		p->ST = Tcl_UtfNcmp (p->CC, class, 1) == 0;
		if (p->ST) {
		    ER_CLEAR (p);
................................................................................
        static void sequence_6 (RDE_PARAM p);
        static void sym_TEST (RDE_PARAM p);
        
        /*
         * Precomputed table of strings (symbols, error messages, etc.).
         */
        
        static char const* p_string [3] = {
            /*        0 = */   "t a",
            /*        1 = */   "n TEST",
            /*        2 = */   "TEST"














        };
        
        /*
         * Grammar Start Expression
         */
        
        static void MAIN (RDE_PARAM p) {
................................................................................
           /*
            * x
            *     !
            *         'a'
            *     (IDENTIFIER)
            */
        
            if (rde_param_i_symbol_start (p, 2)) return ;
            sequence_6 (p);
            rde_param_i_symbol_done_leaf (p, 2, 1);
            return;
        }
        
        static void sequence_6 (RDE_PARAM p) {
           /*
            * x
            *     !
................................................................................
        static void notahead_3 (RDE_PARAM p) {
           /*
            * !
            *     'a'
            */
        
            rde_param_i_loc_push (p);
            rde_param_i_next_char (p, "a", 0);
            rde_param_i_notahead_exit (p);
            return;
        }
        
    }

    ## END of GENERATED CODE. DO NOT EDIT.
................................................................................

	    rde_param_reset (p, NULL);
	    rde_param_data  (p, buf, len);
	    MAIN (p) ; /* Entrypoint for the generated code. */
	    return COMPLETE (p, interp);
	}


	static int COMPLETE (RDE_PARAM p, Tcl_Interp* interp)
	{
	    if (rde_param_query_st (p)) {
		long int  ac;
		Tcl_Obj** av;

		rde_param_query_ast (p, &ac, &av);
................................................................................
		    memcpy(lv + 3, av, ac * sizeof (Tcl_Obj*));
		    lv [0] = Tcl_NewObj ();
		    lv [1] = Tcl_NewIntObj (1 + lsv [lsc-1]);
		    lv [2] = Tcl_NewIntObj (rde_param_query_cl (p));

		    Tcl_SetObjResult (interp, Tcl_NewListObj (3, lv));
		    ckfree ((char*) lv);







		} else {
		    Tcl_SetObjResult (interp, av [0]);
		}

		return TCL_OK;
	    } else {
		Tcl_Obj* xv [1];
		const ERROR_STATE* er = rde_param_query_er (p);
		Tcl_Obj* res = rde_param_query_er_tcl (p, er);



		xv [0] = Tcl_NewStringObj ("pt::rde",-1);
		Tcl_ListObjReplace(interp, res, 0, 1, 1, xv);

		Tcl_SetObjResult (interp, res);
		return TCL_ERROR;
	    }
	}
    }







|







 







>
>
>
>







 







>







 







>
>







 







>
>
>
>
>
|







 







>
>
>
>
>
>
>







 







|


>



>





>







|







 







|
|
|
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>







 







|

|







 







|







 







>







 







>
>
>
>
>
>
>









>

>

|







26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
...
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
...
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
...
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
....
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
....
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
....
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
....
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
....
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
....
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
....
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
....
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
##

namespace eval ::PARSER {
    # # ## ### ##### ######## ############# #####################
    ## Supporting code for the main command.

    catch {
	#critcl::cflags -g
	#critcl::debug memory symbols
    }

    # # ## ### ###### ######## #############
    ## RDE runtime, inlined, and made static.

    # This is the C code for the RDE, i.e. the implementation
................................................................................
	    long int off  = tc->num;
	    char* ch;
	    int clen;
	    Tcl_UniChar uni;
	    if (len < 0) {
		len = strlen (string);
	    }
	    
	    if (!len) {
		return tc->str + base;
	    }
	    
	    if ((tc->num + len) >= tc->max) {
		int   new = len + (tc->max ? (2 * tc->max) : RDE_STACK_INITIAL_SIZE);
		char* str = ckrealloc (tc->str, new * sizeof(char));
		ASSERT (str,"Memory allocation failure for token character array");
		tc->max = new;
		tc->str = str;
................................................................................
	    ClientData clientData;
	} RDE_PARAM_;
	typedef int (*UniCharClass) (int);
	typedef enum test_class_id {
	    tc_alnum,
	    tc_alpha,
	    tc_ascii,
	    tc_control,
	    tc_ddigit,
	    tc_digit,
	    tc_graph,
	    tc_lower,
	    tc_printable,
	    tc_punct,
	    tc_space,
................................................................................
	rde_param_i_error_clear (RDE_PARAM p)
	{
	    ER_CLEAR (p);
	}
	SCOPE void
	rde_param_i_error_nonterminal (RDE_PARAM p, int s)
	{
	    
	    return;
	    long int pos;
	    if (!p->ER) return;
	    pos = 1 + (long int) rde_stack_top (p->LS);
	    if (p->ER->loc != pos) return;
	    error_set (p, s);
	    p->ER->loc = pos;
	}
................................................................................
	}
	SCOPE void
	rde_param_i_test_ascii (RDE_PARAM p)
	{
	    test_class (p, UniCharIsAscii, tc_ascii);
	}
	SCOPE void
	rde_param_i_test_control (RDE_PARAM p)
	{
	    test_class (p, Tcl_UniCharIsControl, tc_control);
	}
	SCOPE void
	rde_param_i_test_char (RDE_PARAM p, const char* c, int msg)
	{
	    ASSERT_BOUNDS(msg,p->numstr);
	    p->ST = Tcl_UtfNcmp (p->CC, c, 1) == 0;
	    if (p->ST) {
		ER_CLEAR (p);
	    } else {
		error_set (p, msg);
................................................................................
	SCOPE void
	rde_param_i_next_ascii (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_ascii (p);
	}
	SCOPE void
	rde_param_i_next_control (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_control (p);
	}
	SCOPE void
	rde_param_i_next_ddigit (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_ddigit (p);
	}
................................................................................
		p->CL = (long int) rde_stack_top (p->LS);
		rde_stack_push (p->ES, p->ER);
		if (p->ER) { p->ER->refCount ++; }
	    }
	    return p->ST;
	}
	SCOPE void
	rde_param_i_next_str (RDE_PARAM p, const char* str, int m)
	{
	    int at = p->CL;
	    
	    while (*str) {
		rde_param_i_input_next (p, m);
		if (!p->ST) {
		    p->ER->loc = at+1;
		    p->CL = at;
		    return;
		}
		rde_param_i_test_char (p, str, m);
		if (!p->ST) {
		    p->ER->loc = at+1;
		    p->CL = at;
		    return;
		}
		str = Tcl_UtfNext (str);
	    }
	}
	SCOPE void
	rde_param_i_next_class (RDE_PARAM p, const char* class, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    while (*class) {
		p->ST = Tcl_UtfNcmp (p->CC, class, 1) == 0;
		if (p->ST) {
		    ER_CLEAR (p);
................................................................................
        static void sequence_6 (RDE_PARAM p);
        static void sym_TEST (RDE_PARAM p);
        
        /*
         * Precomputed table of strings (symbols, error messages, etc.).
         */
        
        static char const* p_string [17] = {
            /*        0 = */   "alnum",
            /*        1 = */   "alpha",
            /*        2 = */   "ascii",
            /*        3 = */   "control",
            /*        4 = */   "ddigit",
            /*        5 = */   "digit",
            /*        6 = */   "graph",
            /*        7 = */   "lower",
            /*        8 = */   "print",
            /*        9 = */   "punct",
            /*       10 = */   "space",
            /*       11 = */   "upper",
            /*       12 = */   "wordchar",
            /*       13 = */   "xdigit",
            /*       14 = */   "t a",
            /*       15 = */   "n TEST",
            /*       16 = */   "TEST"
        };
        
        /*
         * Grammar Start Expression
         */
        
        static void MAIN (RDE_PARAM p) {
................................................................................
           /*
            * x
            *     !
            *         'a'
            *     (IDENTIFIER)
            */
        
            if (rde_param_i_symbol_start (p, 16)) return ;
            sequence_6 (p);
            rde_param_i_symbol_done_leaf (p, 16, 15);
            return;
        }
        
        static void sequence_6 (RDE_PARAM p) {
           /*
            * x
            *     !
................................................................................
        static void notahead_3 (RDE_PARAM p) {
           /*
            * !
            *     'a'
            */
        
            rde_param_i_loc_push (p);
            rde_param_i_next_char (p, "a", 14);
            rde_param_i_notahead_exit (p);
            return;
        }
        
    }

    ## END of GENERATED CODE. DO NOT EDIT.
................................................................................

	    rde_param_reset (p, NULL);
	    rde_param_data  (p, buf, len);
	    MAIN (p) ; /* Entrypoint for the generated code. */
	    return COMPLETE (p, interp);
	}

	/* See also rde_critcl/m.c, param_COMPLETE() */
	static int COMPLETE (RDE_PARAM p, Tcl_Interp* interp)
	{
	    if (rde_param_query_st (p)) {
		long int  ac;
		Tcl_Obj** av;

		rde_param_query_ast (p, &ac, &av);
................................................................................
		    memcpy(lv + 3, av, ac * sizeof (Tcl_Obj*));
		    lv [0] = Tcl_NewObj ();
		    lv [1] = Tcl_NewIntObj (1 + lsv [lsc-1]);
		    lv [2] = Tcl_NewIntObj (rde_param_query_cl (p));

		    Tcl_SetObjResult (interp, Tcl_NewListObj (3, lv));
		    ckfree ((char*) lv);

		} else if (ac == 0) {
		    /*
		     * Match, but no AST. This is possible if the grammar
		     * consists of only the start expression.
		     */
		    Tcl_SetObjResult (interp, Tcl_NewStringObj ("",-1));
		} else {
		    Tcl_SetObjResult (interp, av [0]);
		}

		return TCL_OK;
	    } else {
		Tcl_Obj* xv [1];
		const ERROR_STATE* er = rde_param_query_er (p);
		Tcl_Obj* res = rde_param_query_er_tcl (p, er);
		/* res = list (location, list(msg)) */

		/* Stick the exception type-tag before the existing elements */
		xv [0] = Tcl_NewStringObj ("pt::rde",-1);
		Tcl_ListObjReplace(interp, res, 0, 0, 1, xv);

		Tcl_SetObjResult (interp, res);
		return TCL_ERROR;
	    }
	}
    }

Changes to modules/pt/tests/data/ok/peg_cparam-critcl/11_epsilon.

26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
...
382
383
384
385
386
387
388




389
390
391
392
393
394
395
...
477
478
479
480
481
482
483

484
485
486
487
488
489
490
...
818
819
820
821
822
823
824


825
826
827
828
829
830
831
....
1047
1048
1049
1050
1051
1052
1053





1054
1055
1056
1057
1058
1059
1060
1061
....
1354
1355
1356
1357
1358
1359
1360







1361
1362
1363
1364
1365
1366
1367
....
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643

1644
1645
1646

1647
1648
1649
1650
1651

1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
....
1687
1688
1689
1690
1691
1692
1693
1694
1695














1696
1697
1698
1699
1700
1701
1702
....
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
....
1818
1819
1820
1821
1822
1823
1824

1825
1826
1827
1828
1829
1830
1831
....
1840
1841
1842
1843
1844
1845
1846







1847
1848
1849
1850
1851
1852
1853
1854
1855

1856

1857
1858
1859
1860
1861
1862
1863
1864
1865
##

namespace eval ::PARSER {
    # # ## ### ##### ######## ############# #####################
    ## Supporting code for the main command.

    catch {
	#critcl::cheaders -g
	#critcl::debug memory symbols
    }

    # # ## ### ###### ######## #############
    ## RDE runtime, inlined, and made static.

    # This is the C code for the RDE, i.e. the implementation
................................................................................
	    long int off  = tc->num;
	    char* ch;
	    int clen;
	    Tcl_UniChar uni;
	    if (len < 0) {
		len = strlen (string);
	    }




	    
	    if ((tc->num + len) >= tc->max) {
		int   new = len + (tc->max ? (2 * tc->max) : RDE_STACK_INITIAL_SIZE);
		char* str = ckrealloc (tc->str, new * sizeof(char));
		ASSERT (str,"Memory allocation failure for token character array");
		tc->max = new;
		tc->str = str;
................................................................................
	    ClientData clientData;
	} RDE_PARAM_;
	typedef int (*UniCharClass) (int);
	typedef enum test_class_id {
	    tc_alnum,
	    tc_alpha,
	    tc_ascii,

	    tc_ddigit,
	    tc_digit,
	    tc_graph,
	    tc_lower,
	    tc_printable,
	    tc_punct,
	    tc_space,
................................................................................
	rde_param_i_error_clear (RDE_PARAM p)
	{
	    ER_CLEAR (p);
	}
	SCOPE void
	rde_param_i_error_nonterminal (RDE_PARAM p, int s)
	{


	    long int pos;
	    if (!p->ER) return;
	    pos = 1 + (long int) rde_stack_top (p->LS);
	    if (p->ER->loc != pos) return;
	    error_set (p, s);
	    p->ER->loc = pos;
	}
................................................................................
	}
	SCOPE void
	rde_param_i_test_ascii (RDE_PARAM p)
	{
	    test_class (p, UniCharIsAscii, tc_ascii);
	}
	SCOPE void





	rde_param_i_test_char (RDE_PARAM p, char* c, int msg)
	{
	    ASSERT_BOUNDS(msg,p->numstr);
	    p->ST = Tcl_UtfNcmp (p->CC, c, 1) == 0;
	    if (p->ST) {
		ER_CLEAR (p);
	    } else {
		error_set (p, msg);
................................................................................
	SCOPE void
	rde_param_i_next_ascii (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_ascii (p);
	}







	SCOPE void
	rde_param_i_next_ddigit (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_ddigit (p);
	}
................................................................................
		p->CL = (long int) rde_stack_top (p->LS);
		rde_stack_push (p->ES, p->ER);
		if (p->ER) { p->ER->refCount ++; }
	    }
	    return p->ST;
	}
	SCOPE void
	rde_param_i_next_str (RDE_PARAM p, char* str, int m)
	{
	    int at = p->CL;

	    while (*str) {
		rde_param_i_input_next (p, m);
		if (!p->ST) {

		    p->CL = at;
		    return;
		}
		rde_param_i_test_char (p, str, m);
		if (!p->ST) {

		    p->CL = at;
		    return;
		}
		str = Tcl_UtfNext (str);
	    }
	}
	SCOPE void
	rde_param_i_next_class (RDE_PARAM p, char* class, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    while (*class) {
		p->ST = Tcl_UtfNcmp (p->CC, class, 1) == 0;
		if (p->ST) {
		    ER_CLEAR (p);
................................................................................
        
        static void choice_3 (RDE_PARAM p);
        
        /*
         * Precomputed table of strings (symbols, error messages, etc.).
         */
        
        static char const* p_string [1] = {
            /*        0 = */   "t a"














        };
        
        /*
         * Grammar Start Expression
         */
        
        static void MAIN (RDE_PARAM p) {
................................................................................
           /*
            * /
            *     'a'
            *     <epsilon>
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_char (p, "a", 0);
            if (rde_param_i_bra_void2void(p)) return;
            rde_param_i_status_ok (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
    }
................................................................................

	    rde_param_reset (p, NULL);
	    rde_param_data  (p, buf, len);
	    MAIN (p) ; /* Entrypoint for the generated code. */
	    return COMPLETE (p, interp);
	}


	static int COMPLETE (RDE_PARAM p, Tcl_Interp* interp)
	{
	    if (rde_param_query_st (p)) {
		long int  ac;
		Tcl_Obj** av;

		rde_param_query_ast (p, &ac, &av);
................................................................................
		    memcpy(lv + 3, av, ac * sizeof (Tcl_Obj*));
		    lv [0] = Tcl_NewObj ();
		    lv [1] = Tcl_NewIntObj (1 + lsv [lsc-1]);
		    lv [2] = Tcl_NewIntObj (rde_param_query_cl (p));

		    Tcl_SetObjResult (interp, Tcl_NewListObj (3, lv));
		    ckfree ((char*) lv);







		} else {
		    Tcl_SetObjResult (interp, av [0]);
		}

		return TCL_OK;
	    } else {
		Tcl_Obj* xv [1];
		const ERROR_STATE* er = rde_param_query_er (p);
		Tcl_Obj* res = rde_param_query_er_tcl (p, er);



		xv [0] = Tcl_NewStringObj ("pt::rde",-1);
		Tcl_ListObjReplace(interp, res, 0, 1, 1, xv);

		Tcl_SetObjResult (interp, res);
		return TCL_ERROR;
	    }
	}
    }







|







 







>
>
>
>







 







>







 







>
>







 







>
>
>
>
>
|







 







>
>
>
>
>
>
>







 







|


>



>





>







|







 







|
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>







 







|







 







>







 







>
>
>
>
>
>
>









>

>

|







26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
...
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
...
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
...
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
....
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
....
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
....
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
....
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
....
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
....
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
....
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
##

namespace eval ::PARSER {
    # # ## ### ##### ######## ############# #####################
    ## Supporting code for the main command.

    catch {
	#critcl::cflags -g
	#critcl::debug memory symbols
    }

    # # ## ### ###### ######## #############
    ## RDE runtime, inlined, and made static.

    # This is the C code for the RDE, i.e. the implementation
................................................................................
	    long int off  = tc->num;
	    char* ch;
	    int clen;
	    Tcl_UniChar uni;
	    if (len < 0) {
		len = strlen (string);
	    }
	    
	    if (!len) {
		return tc->str + base;
	    }
	    
	    if ((tc->num + len) >= tc->max) {
		int   new = len + (tc->max ? (2 * tc->max) : RDE_STACK_INITIAL_SIZE);
		char* str = ckrealloc (tc->str, new * sizeof(char));
		ASSERT (str,"Memory allocation failure for token character array");
		tc->max = new;
		tc->str = str;
................................................................................
	    ClientData clientData;
	} RDE_PARAM_;
	typedef int (*UniCharClass) (int);
	typedef enum test_class_id {
	    tc_alnum,
	    tc_alpha,
	    tc_ascii,
	    tc_control,
	    tc_ddigit,
	    tc_digit,
	    tc_graph,
	    tc_lower,
	    tc_printable,
	    tc_punct,
	    tc_space,
................................................................................
	rde_param_i_error_clear (RDE_PARAM p)
	{
	    ER_CLEAR (p);
	}
	SCOPE void
	rde_param_i_error_nonterminal (RDE_PARAM p, int s)
	{
	    
	    return;
	    long int pos;
	    if (!p->ER) return;
	    pos = 1 + (long int) rde_stack_top (p->LS);
	    if (p->ER->loc != pos) return;
	    error_set (p, s);
	    p->ER->loc = pos;
	}
................................................................................
	}
	SCOPE void
	rde_param_i_test_ascii (RDE_PARAM p)
	{
	    test_class (p, UniCharIsAscii, tc_ascii);
	}
	SCOPE void
	rde_param_i_test_control (RDE_PARAM p)
	{
	    test_class (p, Tcl_UniCharIsControl, tc_control);
	}
	SCOPE void
	rde_param_i_test_char (RDE_PARAM p, const char* c, int msg)
	{
	    ASSERT_BOUNDS(msg,p->numstr);
	    p->ST = Tcl_UtfNcmp (p->CC, c, 1) == 0;
	    if (p->ST) {
		ER_CLEAR (p);
	    } else {
		error_set (p, msg);
................................................................................
	SCOPE void
	rde_param_i_next_ascii (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_ascii (p);
	}
	SCOPE void
	rde_param_i_next_control (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_control (p);
	}
	SCOPE void
	rde_param_i_next_ddigit (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_ddigit (p);
	}
................................................................................
		p->CL = (long int) rde_stack_top (p->LS);
		rde_stack_push (p->ES, p->ER);
		if (p->ER) { p->ER->refCount ++; }
	    }
	    return p->ST;
	}
	SCOPE void
	rde_param_i_next_str (RDE_PARAM p, const char* str, int m)
	{
	    int at = p->CL;
	    
	    while (*str) {
		rde_param_i_input_next (p, m);
		if (!p->ST) {
		    p->ER->loc = at+1;
		    p->CL = at;
		    return;
		}
		rde_param_i_test_char (p, str, m);
		if (!p->ST) {
		    p->ER->loc = at+1;
		    p->CL = at;
		    return;
		}
		str = Tcl_UtfNext (str);
	    }
	}
	SCOPE void
	rde_param_i_next_class (RDE_PARAM p, const char* class, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    while (*class) {
		p->ST = Tcl_UtfNcmp (p->CC, class, 1) == 0;
		if (p->ST) {
		    ER_CLEAR (p);
................................................................................
        
        static void choice_3 (RDE_PARAM p);
        
        /*
         * Precomputed table of strings (symbols, error messages, etc.).
         */
        
        static char const* p_string [15] = {
            /*        0 = */   "alnum",
            /*        1 = */   "alpha",
            /*        2 = */   "ascii",
            /*        3 = */   "control",
            /*        4 = */   "ddigit",
            /*        5 = */   "digit",
            /*        6 = */   "graph",
            /*        7 = */   "lower",
            /*        8 = */   "print",
            /*        9 = */   "punct",
            /*       10 = */   "space",
            /*       11 = */   "upper",
            /*       12 = */   "wordchar",
            /*       13 = */   "xdigit",
            /*       14 = */   "t a"
        };
        
        /*
         * Grammar Start Expression
         */
        
        static void MAIN (RDE_PARAM p) {
................................................................................
           /*
            * /
            *     'a'
            *     <epsilon>
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_char (p, "a", 14);
            if (rde_param_i_bra_void2void(p)) return;
            rde_param_i_status_ok (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
    }
................................................................................

	    rde_param_reset (p, NULL);
	    rde_param_data  (p, buf, len);
	    MAIN (p) ; /* Entrypoint for the generated code. */
	    return COMPLETE (p, interp);
	}

	/* See also rde_critcl/m.c, param_COMPLETE() */
	static int COMPLETE (RDE_PARAM p, Tcl_Interp* interp)
	{
	    if (rde_param_query_st (p)) {
		long int  ac;
		Tcl_Obj** av;

		rde_param_query_ast (p, &ac, &av);
................................................................................
		    memcpy(lv + 3, av, ac * sizeof (Tcl_Obj*));
		    lv [0] = Tcl_NewObj ();
		    lv [1] = Tcl_NewIntObj (1 + lsv [lsc-1]);
		    lv [2] = Tcl_NewIntObj (rde_param_query_cl (p));

		    Tcl_SetObjResult (interp, Tcl_NewListObj (3, lv));
		    ckfree ((char*) lv);

		} else if (ac == 0) {
		    /*
		     * Match, but no AST. This is possible if the grammar
		     * consists of only the start expression.
		     */
		    Tcl_SetObjResult (interp, Tcl_NewStringObj ("",-1));
		} else {
		    Tcl_SetObjResult (interp, av [0]);
		}

		return TCL_OK;
	    } else {
		Tcl_Obj* xv [1];
		const ERROR_STATE* er = rde_param_query_er (p);
		Tcl_Obj* res = rde_param_query_er_tcl (p, er);
		/* res = list (location, list(msg)) */

		/* Stick the exception type-tag before the existing elements */
		xv [0] = Tcl_NewStringObj ("pt::rde",-1);
		Tcl_ListObjReplace(interp, res, 0, 0, 1, xv);

		Tcl_SetObjResult (interp, res);
		return TCL_ERROR;
	    }
	}
    }

Changes to modules/pt/tests/data/ok/peg_cparam-critcl/1_functions.

26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
...
382
383
384
385
386
387
388




389
390
391
392
393
394
395
...
477
478
479
480
481
482
483

484
485
486
487
488
489
490
...
818
819
820
821
822
823
824


825
826
827
828
829
830
831
....
1047
1048
1049
1050
1051
1052
1053





1054
1055
1056
1057
1058
1059
1060
1061
....
1354
1355
1356
1357
1358
1359
1360







1361
1362
1363
1364
1365
1366
1367
....
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643

1644
1645
1646

1647
1648
1649
1650
1651

1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
....
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705














1706
1707
1708
1709
1710
1711
1712
....
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
....
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
....
1879
1880
1881
1882
1883
1884
1885

1886
1887
1888
1889
1890
1891
1892
....
1901
1902
1903
1904
1905
1906
1907







1908
1909
1910
1911
1912
1913
1914
1915
1916

1917

1918
1919
1920
1921
1922
1923
1924
1925
1926
##

namespace eval ::PARSER {
    # # ## ### ##### ######## ############# #####################
    ## Supporting code for the main command.

    catch {
	#critcl::cheaders -g
	#critcl::debug memory symbols
    }

    # # ## ### ###### ######## #############
    ## RDE runtime, inlined, and made static.

    # This is the C code for the RDE, i.e. the implementation
................................................................................
	    long int off  = tc->num;
	    char* ch;
	    int clen;
	    Tcl_UniChar uni;
	    if (len < 0) {
		len = strlen (string);
	    }




	    
	    if ((tc->num + len) >= tc->max) {
		int   new = len + (tc->max ? (2 * tc->max) : RDE_STACK_INITIAL_SIZE);
		char* str = ckrealloc (tc->str, new * sizeof(char));
		ASSERT (str,"Memory allocation failure for token character array");
		tc->max = new;
		tc->str = str;
................................................................................
	    ClientData clientData;
	} RDE_PARAM_;
	typedef int (*UniCharClass) (int);
	typedef enum test_class_id {
	    tc_alnum,
	    tc_alpha,
	    tc_ascii,

	    tc_ddigit,
	    tc_digit,
	    tc_graph,
	    tc_lower,
	    tc_printable,
	    tc_punct,
	    tc_space,
................................................................................
	rde_param_i_error_clear (RDE_PARAM p)
	{
	    ER_CLEAR (p);
	}
	SCOPE void
	rde_param_i_error_nonterminal (RDE_PARAM p, int s)
	{


	    long int pos;
	    if (!p->ER) return;
	    pos = 1 + (long int) rde_stack_top (p->LS);
	    if (p->ER->loc != pos) return;
	    error_set (p, s);
	    p->ER->loc = pos;
	}
................................................................................
	}
	SCOPE void
	rde_param_i_test_ascii (RDE_PARAM p)
	{
	    test_class (p, UniCharIsAscii, tc_ascii);
	}
	SCOPE void





	rde_param_i_test_char (RDE_PARAM p, char* c, int msg)
	{
	    ASSERT_BOUNDS(msg,p->numstr);
	    p->ST = Tcl_UtfNcmp (p->CC, c, 1) == 0;
	    if (p->ST) {
		ER_CLEAR (p);
	    } else {
		error_set (p, msg);
................................................................................
	SCOPE void
	rde_param_i_next_ascii (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_ascii (p);
	}







	SCOPE void
	rde_param_i_next_ddigit (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_ddigit (p);
	}
................................................................................
		p->CL = (long int) rde_stack_top (p->LS);
		rde_stack_push (p->ES, p->ER);
		if (p->ER) { p->ER->refCount ++; }
	    }
	    return p->ST;
	}
	SCOPE void
	rde_param_i_next_str (RDE_PARAM p, char* str, int m)
	{
	    int at = p->CL;

	    while (*str) {
		rde_param_i_input_next (p, m);
		if (!p->ST) {

		    p->CL = at;
		    return;
		}
		rde_param_i_test_char (p, str, m);
		if (!p->ST) {

		    p->CL = at;
		    return;
		}
		str = Tcl_UtfNext (str);
	    }
	}
	SCOPE void
	rde_param_i_next_class (RDE_PARAM p, char* class, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    while (*class) {
		p->ST = Tcl_UtfNcmp (p->CC, class, 1) == 0;
		if (p->ST) {
		    ER_CLEAR (p);
................................................................................
        static void sequence_9 (RDE_PARAM p);
        static void sym_Sinus (RDE_PARAM p);
        
        /*
         * Precomputed table of strings (symbols, error messages, etc.).
         */
        
        static char const* p_string [8] = {
            /*        0 = */   "n Expression",
            /*        1 = */   "Expression",
            /*        2 = */   "n Function",
            /*        3 = */   "Function",
            /*        4 = */   "str 'sin\50'",
            /*        5 = */   "t \51",
            /*        6 = */   "n Sinus",
            /*        7 = */   "Sinus"














        };
        
        /*
         * Grammar Start Expression
         */
        
        static void MAIN (RDE_PARAM p) {
................................................................................
         */
        
        static void sym_Expression (RDE_PARAM p) {
           /*
            * (Function)
            */
        
            if (rde_param_i_symbol_start_d (p, 1)) return ;
            sym_Function (p);
            rde_param_i_symbol_done_d_reduce (p, 1, 0);
            return;
        }
        
        /*
         * value Symbol 'Function'
         */
        
        static void sym_Function (RDE_PARAM p) {
           /*
            * (Sinus)
            */
        
            if (rde_param_i_symbol_start_d (p, 3)) return ;
            sym_Sinus (p);
            rde_param_i_symbol_done_d_reduce (p, 3, 2);
            return;
        }
        
        /*
         * value Symbol 'Sinus'
         */
        
................................................................................
           /*
            * x
            *     "sin\("
            *     (Expression)
            *     '\)'
            */
        
            if (rde_param_i_symbol_start_d (p, 7)) return ;
            sequence_9 (p);
            rde_param_i_symbol_done_d_reduce (p, 7, 6);
            return;
        }
        
        static void sequence_9 (RDE_PARAM p) {
           /*
            * x
            *     "sin\("
            *     (Expression)
            *     '\)'
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_str (p, "sin\50", 4);
            if (rde_param_i_seq_void2value(p)) return;
            sym_Expression (p);
            if (rde_param_i_seq_value2value(p)) return;
            rde_param_i_next_char (p, "\51", 5);
            rde_param_i_state_merge_value (p);
            return;
        }
        
    }

    ## END of GENERATED CODE. DO NOT EDIT.
................................................................................

	    rde_param_reset (p, NULL);
	    rde_param_data  (p, buf, len);
	    MAIN (p) ; /* Entrypoint for the generated code. */
	    return COMPLETE (p, interp);
	}


	static int COMPLETE (RDE_PARAM p, Tcl_Interp* interp)
	{
	    if (rde_param_query_st (p)) {
		long int  ac;
		Tcl_Obj** av;

		rde_param_query_ast (p, &ac, &av);
................................................................................
		    memcpy(lv + 3, av, ac * sizeof (Tcl_Obj*));
		    lv [0] = Tcl_NewObj ();
		    lv [1] = Tcl_NewIntObj (1 + lsv [lsc-1]);
		    lv [2] = Tcl_NewIntObj (rde_param_query_cl (p));

		    Tcl_SetObjResult (interp, Tcl_NewListObj (3, lv));
		    ckfree ((char*) lv);







		} else {
		    Tcl_SetObjResult (interp, av [0]);
		}

		return TCL_OK;
	    } else {
		Tcl_Obj* xv [1];
		const ERROR_STATE* er = rde_param_query_er (p);
		Tcl_Obj* res = rde_param_query_er_tcl (p, er);



		xv [0] = Tcl_NewStringObj ("pt::rde",-1);
		Tcl_ListObjReplace(interp, res, 0, 1, 1, xv);

		Tcl_SetObjResult (interp, res);
		return TCL_ERROR;
	    }
	}
    }







|







 







>
>
>
>







 







>







 







>
>







 







>
>
>
>
>
|







 







>
>
>
>
>
>
>







 







|


>



>





>







|







 







|
|
|
|
|
|
|
|
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>







 







|

|












|

|







 







|

|












|



|







 







>







 







>
>
>
>
>
>
>









>

>

|







26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
...
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
...
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
...
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
....
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
....
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
....
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
....
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
....
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
....
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
....
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
....
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
##

namespace eval ::PARSER {
    # # ## ### ##### ######## ############# #####################
    ## Supporting code for the main command.

    catch {
	#critcl::cflags -g
	#critcl::debug memory symbols
    }

    # # ## ### ###### ######## #############
    ## RDE runtime, inlined, and made static.

    # This is the C code for the RDE, i.e. the implementation
................................................................................
	    long int off  = tc->num;
	    char* ch;
	    int clen;
	    Tcl_UniChar uni;
	    if (len < 0) {
		len = strlen (string);
	    }
	    
	    if (!len) {
		return tc->str + base;
	    }
	    
	    if ((tc->num + len) >= tc->max) {
		int   new = len + (tc->max ? (2 * tc->max) : RDE_STACK_INITIAL_SIZE);
		char* str = ckrealloc (tc->str, new * sizeof(char));
		ASSERT (str,"Memory allocation failure for token character array");
		tc->max = new;
		tc->str = str;
................................................................................
	    ClientData clientData;
	} RDE_PARAM_;
	typedef int (*UniCharClass) (int);
	typedef enum test_class_id {
	    tc_alnum,
	    tc_alpha,
	    tc_ascii,
	    tc_control,
	    tc_ddigit,
	    tc_digit,
	    tc_graph,
	    tc_lower,
	    tc_printable,
	    tc_punct,
	    tc_space,
................................................................................
	rde_param_i_error_clear (RDE_PARAM p)
	{
	    ER_CLEAR (p);
	}
	SCOPE void
	rde_param_i_error_nonterminal (RDE_PARAM p, int s)
	{
	    
	    return;
	    long int pos;
	    if (!p->ER) return;
	    pos = 1 + (long int) rde_stack_top (p->LS);
	    if (p->ER->loc != pos) return;
	    error_set (p, s);
	    p->ER->loc = pos;
	}
................................................................................
	}
	SCOPE void
	rde_param_i_test_ascii (RDE_PARAM p)
	{
	    test_class (p, UniCharIsAscii, tc_ascii);
	}
	SCOPE void
	rde_param_i_test_control (RDE_PARAM p)
	{
	    test_class (p, Tcl_UniCharIsControl, tc_control);
	}
	SCOPE void
	rde_param_i_test_char (RDE_PARAM p, const char* c, int msg)
	{
	    ASSERT_BOUNDS(msg,p->numstr);
	    p->ST = Tcl_UtfNcmp (p->CC, c, 1) == 0;
	    if (p->ST) {
		ER_CLEAR (p);
	    } else {
		error_set (p, msg);
................................................................................
	SCOPE void
	rde_param_i_next_ascii (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_ascii (p);
	}
	SCOPE void
	rde_param_i_next_control (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_control (p);
	}
	SCOPE void
	rde_param_i_next_ddigit (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_ddigit (p);
	}
................................................................................
		p->CL = (long int) rde_stack_top (p->LS);
		rde_stack_push (p->ES, p->ER);
		if (p->ER) { p->ER->refCount ++; }
	    }
	    return p->ST;
	}
	SCOPE void
	rde_param_i_next_str (RDE_PARAM p, const char* str, int m)
	{
	    int at = p->CL;
	    
	    while (*str) {
		rde_param_i_input_next (p, m);
		if (!p->ST) {
		    p->ER->loc = at+1;
		    p->CL = at;
		    return;
		}
		rde_param_i_test_char (p, str, m);
		if (!p->ST) {
		    p->ER->loc = at+1;
		    p->CL = at;
		    return;
		}
		str = Tcl_UtfNext (str);
	    }
	}
	SCOPE void
	rde_param_i_next_class (RDE_PARAM p, const char* class, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    while (*class) {
		p->ST = Tcl_UtfNcmp (p->CC, class, 1) == 0;
		if (p->ST) {
		    ER_CLEAR (p);
................................................................................
        static void sequence_9 (RDE_PARAM p);
        static void sym_Sinus (RDE_PARAM p);
        
        /*
         * Precomputed table of strings (symbols, error messages, etc.).
         */
        
        static char const* p_string [22] = {
            /*        0 = */   "alnum",
            /*        1 = */   "alpha",
            /*        2 = */   "ascii",
            /*        3 = */   "control",
            /*        4 = */   "ddigit",
            /*        5 = */   "digit",
            /*        6 = */   "graph",
            /*        7 = */   "lower",
            /*        8 = */   "print",
            /*        9 = */   "punct",
            /*       10 = */   "space",
            /*       11 = */   "upper",
            /*       12 = */   "wordchar",
            /*       13 = */   "xdigit",
            /*       14 = */   "n Expression",
            /*       15 = */   "Expression",
            /*       16 = */   "n Function",
            /*       17 = */   "Function",
            /*       18 = */   "str sin\50",
            /*       19 = */   "t \51",
            /*       20 = */   "n Sinus",
            /*       21 = */   "Sinus"
        };
        
        /*
         * Grammar Start Expression
         */
        
        static void MAIN (RDE_PARAM p) {
................................................................................
         */
        
        static void sym_Expression (RDE_PARAM p) {
           /*
            * (Function)
            */
        
            if (rde_param_i_symbol_start_d (p, 15)) return ;
            sym_Function (p);
            rde_param_i_symbol_done_d_reduce (p, 15, 14);
            return;
        }
        
        /*
         * value Symbol 'Function'
         */
        
        static void sym_Function (RDE_PARAM p) {
           /*
            * (Sinus)
            */
        
            if (rde_param_i_symbol_start_d (p, 17)) return ;
            sym_Sinus (p);
            rde_param_i_symbol_done_d_reduce (p, 17, 16);
            return;
        }
        
        /*
         * value Symbol 'Sinus'
         */
        
................................................................................
           /*
            * x
            *     "sin\("
            *     (Expression)
            *     '\)'
            */
        
            if (rde_param_i_symbol_start_d (p, 21)) return ;
            sequence_9 (p);
            rde_param_i_symbol_done_d_reduce (p, 21, 20);
            return;
        }
        
        static void sequence_9 (RDE_PARAM p) {
           /*
            * x
            *     "sin\("
            *     (Expression)
            *     '\)'
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_str (p, "sin\50", 18);
            if (rde_param_i_seq_void2value(p)) return;
            sym_Expression (p);
            if (rde_param_i_seq_value2value(p)) return;
            rde_param_i_next_char (p, "\51", 19);
            rde_param_i_state_merge_value (p);
            return;
        }
        
    }

    ## END of GENERATED CODE. DO NOT EDIT.
................................................................................

	    rde_param_reset (p, NULL);
	    rde_param_data  (p, buf, len);
	    MAIN (p) ; /* Entrypoint for the generated code. */
	    return COMPLETE (p, interp);
	}

	/* See also rde_critcl/m.c, param_COMPLETE() */
	static int COMPLETE (RDE_PARAM p, Tcl_Interp* interp)
	{
	    if (rde_param_query_st (p)) {
		long int  ac;
		Tcl_Obj** av;

		rde_param_query_ast (p, &ac, &av);
................................................................................
		    memcpy(lv + 3, av, ac * sizeof (Tcl_Obj*));
		    lv [0] = Tcl_NewObj ();
		    lv [1] = Tcl_NewIntObj (1 + lsv [lsc-1]);
		    lv [2] = Tcl_NewIntObj (rde_param_query_cl (p));

		    Tcl_SetObjResult (interp, Tcl_NewListObj (3, lv));
		    ckfree ((char*) lv);

		} else if (ac == 0) {
		    /*
		     * Match, but no AST. This is possible if the grammar
		     * consists of only the start expression.
		     */
		    Tcl_SetObjResult (interp, Tcl_NewStringObj ("",-1));
		} else {
		    Tcl_SetObjResult (interp, av [0]);
		}

		return TCL_OK;
	    } else {
		Tcl_Obj* xv [1];
		const ERROR_STATE* er = rde_param_query_er (p);
		Tcl_Obj* res = rde_param_query_er_tcl (p, er);
		/* res = list (location, list(msg)) */

		/* Stick the exception type-tag before the existing elements */
		xv [0] = Tcl_NewStringObj ("pt::rde",-1);
		Tcl_ListObjReplace(interp, res, 0, 0, 1, xv);

		Tcl_SetObjResult (interp, res);
		return TCL_ERROR;
	    }
	}
    }

Changes to modules/pt/tests/data/ok/peg_cparam-critcl/2_fun_arithmetic.

26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
...
382
383
384
385
386
387
388




389
390
391
392
393
394
395
...
477
478
479
480
481
482
483

484
485
486
487
488
489
490
...
818
819
820
821
822
823
824


825
826
827
828
829
830
831
....
1047
1048
1049
1050
1051
1052
1053





1054
1055
1056
1057
1058
1059
1060
1061
....
1354
1355
1356
1357
1358
1359
1360







1361
1362
1363
1364
1365
1366
1367
....
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643

1644
1645
1646

1647
1648
1649
1650
1651

1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
....
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741














1742
1743
1744
1745
1746
1747
1748
....
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
....
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
....
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
....
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
....
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
....
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
....
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
....
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
....
2228
2229
2230
2231
2232
2233
2234

2235
2236
2237
2238
2239
2240
2241
....
2250
2251
2252
2253
2254
2255
2256







2257
2258
2259
2260
2261
2262
2263
2264
2265

2266

2267
2268
2269
2270
2271
2272
2273
2274
2275
##

namespace eval ::PARSER {
    # # ## ### ##### ######## ############# #####################
    ## Supporting code for the main command.

    catch {
	#critcl::cheaders -g
	#critcl::debug memory symbols
    }

    # # ## ### ###### ######## #############
    ## RDE runtime, inlined, and made static.

    # This is the C code for the RDE, i.e. the implementation
................................................................................
	    long int off  = tc->num;
	    char* ch;
	    int clen;
	    Tcl_UniChar uni;
	    if (len < 0) {
		len = strlen (string);
	    }




	    
	    if ((tc->num + len) >= tc->max) {
		int   new = len + (tc->max ? (2 * tc->max) : RDE_STACK_INITIAL_SIZE);
		char* str = ckrealloc (tc->str, new * sizeof(char));
		ASSERT (str,"Memory allocation failure for token character array");
		tc->max = new;
		tc->str = str;
................................................................................
	    ClientData clientData;
	} RDE_PARAM_;
	typedef int (*UniCharClass) (int);
	typedef enum test_class_id {
	    tc_alnum,
	    tc_alpha,
	    tc_ascii,

	    tc_ddigit,
	    tc_digit,
	    tc_graph,
	    tc_lower,
	    tc_printable,
	    tc_punct,
	    tc_space,
................................................................................
	rde_param_i_error_clear (RDE_PARAM p)
	{
	    ER_CLEAR (p);
	}
	SCOPE void
	rde_param_i_error_nonterminal (RDE_PARAM p, int s)
	{


	    long int pos;
	    if (!p->ER) return;
	    pos = 1 + (long int) rde_stack_top (p->LS);
	    if (p->ER->loc != pos) return;
	    error_set (p, s);
	    p->ER->loc = pos;
	}
................................................................................
	}
	SCOPE void
	rde_param_i_test_ascii (RDE_PARAM p)
	{
	    test_class (p, UniCharIsAscii, tc_ascii);
	}
	SCOPE void





	rde_param_i_test_char (RDE_PARAM p, char* c, int msg)
	{
	    ASSERT_BOUNDS(msg,p->numstr);
	    p->ST = Tcl_UtfNcmp (p->CC, c, 1) == 0;
	    if (p->ST) {
		ER_CLEAR (p);
	    } else {
		error_set (p, msg);
................................................................................
	SCOPE void
	rde_param_i_next_ascii (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_ascii (p);
	}







	SCOPE void
	rde_param_i_next_ddigit (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_ddigit (p);
	}
................................................................................
		p->CL = (long int) rde_stack_top (p->LS);
		rde_stack_push (p->ES, p->ER);
		if (p->ER) { p->ER->refCount ++; }
	    }
	    return p->ST;
	}
	SCOPE void
	rde_param_i_next_str (RDE_PARAM p, char* str, int m)
	{
	    int at = p->CL;

	    while (*str) {
		rde_param_i_input_next (p, m);
		if (!p->ST) {

		    p->CL = at;
		    return;
		}
		rde_param_i_test_char (p, str, m);
		if (!p->ST) {

		    p->CL = at;
		    return;
		}
		str = Tcl_UtfNext (str);
	    }
	}
	SCOPE void
	rde_param_i_next_class (RDE_PARAM p, char* class, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    while (*class) {
		p->ST = Tcl_UtfNcmp (p->CC, class, 1) == 0;
		if (p->ST) {
		    ER_CLEAR (p);
................................................................................
        static void sym_Sinus (RDE_PARAM p);
        static void sym_Term (RDE_PARAM p);
        
        /*
         * Precomputed table of strings (symbols, error messages, etc.).
         */
        
        static char const* p_string [26] = {
            /*        0 = */   "cl '-+'",
            /*        1 = */   "n AddOp",
            /*        2 = */   "AddOp",
            /*        3 = */   "cl '0123456789'",
            /*        4 = */   "n Digit",
            /*        5 = */   "Digit",
            /*        6 = */   "t \50",
            /*        7 = */   "t \51",
            /*        8 = */   "n Expression",
            /*        9 = */   "Expression",
            /*       10 = */   "n Factor",
            /*       11 = */   "Factor",
            /*       12 = */   "n Function",
            /*       13 = */   "Function",
            /*       14 = */   "cl '*/'",
            /*       15 = */   "n MulOp",
            /*       16 = */   "MulOp",
            /*       17 = */   "n Number",
            /*       18 = */   "Number",
            /*       19 = */   "n Sign",
            /*       20 = */   "Sign",
            /*       21 = */   "str 'sin\50'",
            /*       22 = */   "n Sinus",
            /*       23 = */   "Sinus",
            /*       24 = */   "n Term",
            /*       25 = */   "Term"














        };
        
        /*
         * Grammar Start Expression
         */
        
        static void MAIN (RDE_PARAM p) {
................................................................................
         */
        
        static void sym_AddOp (RDE_PARAM p) {
           /*
            * [-+]
            */
        
            if (rde_param_i_symbol_start (p, 2)) return ;
            rde_param_i_next_class (p, "-+", 0);
            rde_param_i_symbol_done_leaf (p, 2, 1);
            return;
        }
        
        /*
         * value Symbol 'Digit'
         */
        
        static void sym_Digit (RDE_PARAM p) {
           /*
            * [0123456789]
            */
        
            if (rde_param_i_symbol_start (p, 5)) return ;
            rde_param_i_next_class (p, "0123456789", 3);
            rde_param_i_symbol_done_leaf (p, 5, 4);
            return;
        }
        
        /*
         * value Symbol 'Expression'
         */
        
................................................................................
            *         (Factor)
            *         *
            *             x
            *                 (MulOp)
            *                 (Factor)
            */
        
            if (rde_param_i_symbol_start_d (p, 9)) return ;
            choice_21 (p);
            rde_param_i_symbol_done_d_reduce (p, 9, 8);
            return;
        }
        
        static void choice_21 (RDE_PARAM p) {
           /*
            * /
            *     (Function)
................................................................................
            * x
            *     '\('
            *     (Expression)
            *     '\)'
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_char (p, "\50", 6);
            if (rde_param_i_seq_void2value(p)) return;
            sym_Expression (p);
            if (rde_param_i_seq_value2value(p)) return;
            rde_param_i_next_char (p, "\51", 7);
            rde_param_i_state_merge_value (p);
            return;
        }
        
        static void sequence_19 (RDE_PARAM p) {
           /*
            * x
................................................................................
            *     (Term)
            *     *
            *         x
            *             (AddOp)
            *             (Term)
            */
        
            if (rde_param_i_symbol_start_d (p, 11)) return ;
            sequence_31 (p);
            rde_param_i_symbol_done_d_reduce (p, 11, 10);
            return;
        }
        
        static void sequence_31 (RDE_PARAM p) {
           /*
            * x
            *     (Term)
................................................................................
         */
        
        static void sym_Function (RDE_PARAM p) {
           /*
            * (Sinus)
            */
        
            if (rde_param_i_symbol_start_d (p, 13)) return ;
            sym_Sinus (p);
            rde_param_i_symbol_done_d_reduce (p, 13, 12);
            return;
        }
        
        /*
         * value Symbol 'MulOp'
         */
        
        static void sym_MulOp (RDE_PARAM p) {
           /*
            * [\u002a\u002f]
            */
        
            if (rde_param_i_symbol_start (p, 16)) return ;
            rde_param_i_next_class (p, "*/", 14);
            rde_param_i_symbol_done_leaf (p, 16, 15);
            return;
        }
        
        /*
         * value Symbol 'Number'
         */
        
................................................................................
            * x
            *     ?
            *         (Sign)
            *     +
            *         (Digit)
            */
        
            if (rde_param_i_symbol_start_d (p, 18)) return ;
            sequence_44 (p);
            rde_param_i_symbol_done_d_reduce (p, 18, 17);
            return;
        }
        
        static void sequence_44 (RDE_PARAM p) {
           /*
            * x
            *     ?
................................................................................
         */
        
        static void sym_Sign (RDE_PARAM p) {
           /*
            * [-+]
            */
        
            if (rde_param_i_symbol_start (p, 20)) return ;
            rde_param_i_next_class (p, "-+", 0);
            rde_param_i_symbol_done_leaf (p, 20, 19);
            return;
        }
        
        /*
         * value Symbol 'Sinus'
         */
        
................................................................................
           /*
            * x
            *     "sin\("
            *     (Expression)
            *     '\)'
            */
        
            if (rde_param_i_symbol_start_d (p, 23)) return ;
            sequence_52 (p);
            rde_param_i_symbol_done_d_reduce (p, 23, 22);
            return;
        }
        
        static void sequence_52 (RDE_PARAM p) {
           /*
            * x
            *     "sin\("
            *     (Expression)
            *     '\)'
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_str (p, "sin\50", 21);
            if (rde_param_i_seq_void2value(p)) return;
            sym_Expression (p);
            if (rde_param_i_seq_value2value(p)) return;
            rde_param_i_next_char (p, "\51", 7);
            rde_param_i_state_merge_value (p);
            return;
        }
        
        /*
         * value Symbol 'Term'
         */
        
        static void sym_Term (RDE_PARAM p) {
           /*
            * (Number)
            */
        
            if (rde_param_i_symbol_start_d (p, 25)) return ;
            sym_Number (p);
            rde_param_i_symbol_done_d_reduce (p, 25, 24);
            return;
        }
        
    }

    ## END of GENERATED CODE. DO NOT EDIT.
    # # ## ### ###### ######## #############
................................................................................

	    rde_param_reset (p, NULL);
	    rde_param_data  (p, buf, len);
	    MAIN (p) ; /* Entrypoint for the generated code. */
	    return COMPLETE (p, interp);
	}


	static int COMPLETE (RDE_PARAM p, Tcl_Interp* interp)
	{
	    if (rde_param_query_st (p)) {
		long int  ac;
		Tcl_Obj** av;

		rde_param_query_ast (p, &ac, &av);
................................................................................
		    memcpy(lv + 3, av, ac * sizeof (Tcl_Obj*));
		    lv [0] = Tcl_NewObj ();
		    lv [1] = Tcl_NewIntObj (1 + lsv [lsc-1]);
		    lv [2] = Tcl_NewIntObj (rde_param_query_cl (p));

		    Tcl_SetObjResult (interp, Tcl_NewListObj (3, lv));
		    ckfree ((char*) lv);







		} else {
		    Tcl_SetObjResult (interp, av [0]);
		}

		return TCL_OK;
	    } else {
		Tcl_Obj* xv [1];
		const ERROR_STATE* er = rde_param_query_er (p);
		Tcl_Obj* res = rde_param_query_er_tcl (p, er);



		xv [0] = Tcl_NewStringObj ("pt::rde",-1);
		Tcl_ListObjReplace(interp, res, 0, 1, 1, xv);

		Tcl_SetObjResult (interp, res);
		return TCL_ERROR;
	    }
	}
    }







|







 







>
>
>
>







 







>







 







>
>







 







>
>
>
>
>
|







 







>
>
>
>
>
>
>







 







|


>



>





>







|







 







|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>







 







|
|
|












|
|
|







 







|

|







 







|



|







 







|

|







 







|

|












|
|
|







 







|

|







 







|
|
|







 







|

|












|



|













|

|







 







>







 







>
>
>
>
>
>
>









>

>

|







26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
...
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
...
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
...
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
....
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
....
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
....
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
....
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
....
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
....
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
....
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
....
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
....
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
....
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
....
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
....
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
....
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
....
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
##

namespace eval ::PARSER {
    # # ## ### ##### ######## ############# #####################
    ## Supporting code for the main command.

    catch {
	#critcl::cflags -g
	#critcl::debug memory symbols
    }

    # # ## ### ###### ######## #############
    ## RDE runtime, inlined, and made static.

    # This is the C code for the RDE, i.e. the implementation
................................................................................
	    long int off  = tc->num;
	    char* ch;
	    int clen;
	    Tcl_UniChar uni;
	    if (len < 0) {
		len = strlen (string);
	    }
	    
	    if (!len) {
		return tc->str + base;
	    }
	    
	    if ((tc->num + len) >= tc->max) {
		int   new = len + (tc->max ? (2 * tc->max) : RDE_STACK_INITIAL_SIZE);
		char* str = ckrealloc (tc->str, new * sizeof(char));
		ASSERT (str,"Memory allocation failure for token character array");
		tc->max = new;
		tc->str = str;
................................................................................
	    ClientData clientData;
	} RDE_PARAM_;
	typedef int (*UniCharClass) (int);
	typedef enum test_class_id {
	    tc_alnum,
	    tc_alpha,
	    tc_ascii,
	    tc_control,
	    tc_ddigit,
	    tc_digit,
	    tc_graph,
	    tc_lower,
	    tc_printable,
	    tc_punct,
	    tc_space,
................................................................................
	rde_param_i_error_clear (RDE_PARAM p)
	{
	    ER_CLEAR (p);
	}
	SCOPE void
	rde_param_i_error_nonterminal (RDE_PARAM p, int s)
	{
	    
	    return;
	    long int pos;
	    if (!p->ER) return;
	    pos = 1 + (long int) rde_stack_top (p->LS);
	    if (p->ER->loc != pos) return;
	    error_set (p, s);
	    p->ER->loc = pos;
	}
................................................................................
	}
	SCOPE void
	rde_param_i_test_ascii (RDE_PARAM p)
	{
	    test_class (p, UniCharIsAscii, tc_ascii);
	}
	SCOPE void
	rde_param_i_test_control (RDE_PARAM p)
	{
	    test_class (p, Tcl_UniCharIsControl, tc_control);
	}
	SCOPE void
	rde_param_i_test_char (RDE_PARAM p, const char* c, int msg)
	{
	    ASSERT_BOUNDS(msg,p->numstr);
	    p->ST = Tcl_UtfNcmp (p->CC, c, 1) == 0;
	    if (p->ST) {
		ER_CLEAR (p);
	    } else {
		error_set (p, msg);
................................................................................
	SCOPE void
	rde_param_i_next_ascii (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_ascii (p);
	}
	SCOPE void
	rde_param_i_next_control (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_control (p);
	}
	SCOPE void
	rde_param_i_next_ddigit (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_ddigit (p);
	}
................................................................................
		p->CL = (long int) rde_stack_top (p->LS);
		rde_stack_push (p->ES, p->ER);
		if (p->ER) { p->ER->refCount ++; }
	    }
	    return p->ST;
	}
	SCOPE void
	rde_param_i_next_str (RDE_PARAM p, const char* str, int m)
	{
	    int at = p->CL;
	    
	    while (*str) {
		rde_param_i_input_next (p, m);
		if (!p->ST) {
		    p->ER->loc = at+1;
		    p->CL = at;
		    return;
		}
		rde_param_i_test_char (p, str, m);
		if (!p->ST) {
		    p->ER->loc = at+1;
		    p->CL = at;
		    return;
		}
		str = Tcl_UtfNext (str);
	    }
	}
	SCOPE void
	rde_param_i_next_class (RDE_PARAM p, const char* class, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    while (*class) {
		p->ST = Tcl_UtfNcmp (p->CC, class, 1) == 0;
		if (p->ST) {
		    ER_CLEAR (p);
................................................................................
        static void sym_Sinus (RDE_PARAM p);
        static void sym_Term (RDE_PARAM p);
        
        /*
         * Precomputed table of strings (symbols, error messages, etc.).
         */
        
        static char const* p_string [40] = {
            /*        0 = */   "alnum",
            /*        1 = */   "alpha",
            /*        2 = */   "ascii",
            /*        3 = */   "control",
            /*        4 = */   "ddigit",
            /*        5 = */   "digit",
            /*        6 = */   "graph",
            /*        7 = */   "lower",
            /*        8 = */   "print",
            /*        9 = */   "punct",
            /*       10 = */   "space",
            /*       11 = */   "upper",
            /*       12 = */   "wordchar",
            /*       13 = */   "xdigit",
            /*       14 = */   "cl -+",
            /*       15 = */   "n AddOp",
            /*       16 = */   "AddOp",
            /*       17 = */   "cl 0123456789",
            /*       18 = */   "n Digit",
            /*       19 = */   "Digit",
            /*       20 = */   "t \50",
            /*       21 = */   "t \51",
            /*       22 = */   "n Expression",
            /*       23 = */   "Expression",
            /*       24 = */   "n Factor",
            /*       25 = */   "Factor",
            /*       26 = */   "n Function",
            /*       27 = */   "Function",
            /*       28 = */   "cl */",
            /*       29 = */   "n MulOp",
            /*       30 = */   "MulOp",
            /*       31 = */   "n Number",
            /*       32 = */   "Number",
            /*       33 = */   "n Sign",
            /*       34 = */   "Sign",
            /*       35 = */   "str sin\50",
            /*       36 = */   "n Sinus",
            /*       37 = */   "Sinus",
            /*       38 = */   "n Term",
            /*       39 = */   "Term"
        };
        
        /*
         * Grammar Start Expression
         */
        
        static void MAIN (RDE_PARAM p) {
................................................................................
         */
        
        static void sym_AddOp (RDE_PARAM p) {
           /*
            * [-+]
            */
        
            if (rde_param_i_symbol_start (p, 16)) return ;
            rde_param_i_next_class (p, "-+", 14);
            rde_param_i_symbol_done_leaf (p, 16, 15);
            return;
        }
        
        /*
         * value Symbol 'Digit'
         */
        
        static void sym_Digit (RDE_PARAM p) {
           /*
            * [0123456789]
            */
        
            if (rde_param_i_symbol_start (p, 19)) return ;
            rde_param_i_next_class (p, "0123456789", 17);
            rde_param_i_symbol_done_leaf (p, 19, 18);
            return;
        }
        
        /*
         * value Symbol 'Expression'
         */
        
................................................................................
            *         (Factor)
            *         *
            *             x
            *                 (MulOp)
            *                 (Factor)
            */
        
            if (rde_param_i_symbol_start_d (p, 23)) return ;
            choice_21 (p);
            rde_param_i_symbol_done_d_reduce (p, 23, 22);
            return;
        }
        
        static void choice_21 (RDE_PARAM p) {
           /*
            * /
            *     (Function)
................................................................................
            * x
            *     '\('
            *     (Expression)
            *     '\)'
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_char (p, "\50", 20);
            if (rde_param_i_seq_void2value(p)) return;
            sym_Expression (p);
            if (rde_param_i_seq_value2value(p)) return;
            rde_param_i_next_char (p, "\51", 21);
            rde_param_i_state_merge_value (p);
            return;
        }
        
        static void sequence_19 (RDE_PARAM p) {
           /*
            * x
................................................................................
            *     (Term)
            *     *
            *         x
            *             (AddOp)
            *             (Term)
            */
        
            if (rde_param_i_symbol_start_d (p, 25)) return ;
            sequence_31 (p);
            rde_param_i_symbol_done_d_reduce (p, 25, 24);
            return;
        }
        
        static void sequence_31 (RDE_PARAM p) {
           /*
            * x
            *     (Term)
................................................................................
         */
        
        static void sym_Function (RDE_PARAM p) {
           /*
            * (Sinus)
            */
        
            if (rde_param_i_symbol_start_d (p, 27)) return ;
            sym_Sinus (p);
            rde_param_i_symbol_done_d_reduce (p, 27, 26);
            return;
        }
        
        /*
         * value Symbol 'MulOp'
         */
        
        static void sym_MulOp (RDE_PARAM p) {
           /*
            * [\u002a\u002f]
            */
        
            if (rde_param_i_symbol_start (p, 30)) return ;
            rde_param_i_next_class (p, "*/", 28);
            rde_param_i_symbol_done_leaf (p, 30, 29);
            return;
        }
        
        /*
         * value Symbol 'Number'
         */
        
................................................................................
            * x
            *     ?
            *         (Sign)
            *     +
            *         (Digit)
            */
        
            if (rde_param_i_symbol_start_d (p, 32)) return ;
            sequence_44 (p);
            rde_param_i_symbol_done_d_reduce (p, 32, 31);
            return;
        }
        
        static void sequence_44 (RDE_PARAM p) {
           /*
            * x
            *     ?
................................................................................
         */
        
        static void sym_Sign (RDE_PARAM p) {
           /*
            * [-+]
            */
        
            if (rde_param_i_symbol_start (p, 34)) return ;
            rde_param_i_next_class (p, "-+", 14);
            rde_param_i_symbol_done_leaf (p, 34, 33);
            return;
        }
        
        /*
         * value Symbol 'Sinus'
         */
        
................................................................................
           /*
            * x
            *     "sin\("
            *     (Expression)
            *     '\)'
            */
        
            if (rde_param_i_symbol_start_d (p, 37)) return ;
            sequence_52 (p);
            rde_param_i_symbol_done_d_reduce (p, 37, 36);
            return;
        }
        
        static void sequence_52 (RDE_PARAM p) {
           /*
            * x
            *     "sin\("
            *     (Expression)
            *     '\)'
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_str (p, "sin\50", 35);
            if (rde_param_i_seq_void2value(p)) return;
            sym_Expression (p);
            if (rde_param_i_seq_value2value(p)) return;
            rde_param_i_next_char (p, "\51", 21);
            rde_param_i_state_merge_value (p);
            return;
        }
        
        /*
         * value Symbol 'Term'
         */
        
        static void sym_Term (RDE_PARAM p) {
           /*
            * (Number)
            */
        
            if (rde_param_i_symbol_start_d (p, 39)) return ;
            sym_Number (p);
            rde_param_i_symbol_done_d_reduce (p, 39, 38);
            return;
        }
        
    }

    ## END of GENERATED CODE. DO NOT EDIT.
    # # ## ### ###### ######## #############
................................................................................

	    rde_param_reset (p, NULL);
	    rde_param_data  (p, buf, len);
	    MAIN (p) ; /* Entrypoint for the generated code. */
	    return COMPLETE (p, interp);
	}

	/* See also rde_critcl/m.c, param_COMPLETE() */
	static int COMPLETE (RDE_PARAM p, Tcl_Interp* interp)
	{
	    if (rde_param_query_st (p)) {
		long int  ac;
		Tcl_Obj** av;

		rde_param_query_ast (p, &ac, &av);
................................................................................
		    memcpy(lv + 3, av, ac * sizeof (Tcl_Obj*));
		    lv [0] = Tcl_NewObj ();
		    lv [1] = Tcl_NewIntObj (1 + lsv [lsc-1]);
		    lv [2] = Tcl_NewIntObj (rde_param_query_cl (p));

		    Tcl_SetObjResult (interp, Tcl_NewListObj (3, lv));
		    ckfree ((char*) lv);

		} else if (ac == 0) {
		    /*
		     * Match, but no AST. This is possible if the grammar
		     * consists of only the start expression.
		     */
		    Tcl_SetObjResult (interp, Tcl_NewStringObj ("",-1));
		} else {
		    Tcl_SetObjResult (interp, av [0]);
		}

		return TCL_OK;
	    } else {
		Tcl_Obj* xv [1];
		const ERROR_STATE* er = rde_param_query_er (p);
		Tcl_Obj* res = rde_param_query_er_tcl (p, er);
		/* res = list (location, list(msg)) */

		/* Stick the exception type-tag before the existing elements */
		xv [0] = Tcl_NewStringObj ("pt::rde",-1);
		Tcl_ListObjReplace(interp, res, 0, 0, 1, xv);

		Tcl_SetObjResult (interp, res);
		return TCL_ERROR;
	    }
	}
    }

Changes to modules/pt/tests/data/ok/peg_cparam-critcl/3_peg_itself.

26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
...
382
383
384
385
386
387
388




389
390
391
392
393
394
395
...
477
478
479
480
481
482
483

484
485
486
487
488
489
490
...
818
819
820
821
822
823
824


825
826
827
828
829
830
831
....
1047
1048
1049
1050
1051
1052
1053





1054
1055
1056
1057
1058
1059
1060
1061
....
1354
1355
1356
1357
1358
1359
1360







1361
1362
1363
1364
1365
1366
1367
....
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643

1644
1645
1646

1647
1648
1649
1650
1651

1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
....
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791

1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014








2015
2016
2017
2018
2019
2020
2021
....
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
....
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
....
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
....
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
....
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
....
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
....
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
....
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
....
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
....
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
....
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
....
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
....
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
....
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
....
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
....
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
....
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
....
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
....
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
....
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
....
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
....
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
....
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
....
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
....
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
....
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
....
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
....
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
....
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
....
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
....
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
....
3168
3169
3170
3171
3172
3173
3174
3175

3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189

3190
3191
3192
3193
3194
3195


3196
3197
3198
3199
3200
3201
3202
....
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
....
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
....
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
....
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
....
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
....
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
....
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
....
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
....
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
....
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
....
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
....
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
....
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
....
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
....
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
....
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838




3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851




3852
3853
3854
3855
3856


3857
3858
3859
3860
3861














3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
....
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
....
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
....
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
....
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
....
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
....
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
....
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
....
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
....
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
....
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
....
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
....
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
....
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
....
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
....
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
....
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
....
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
....
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
....
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
....
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
....
4778
4779
4780
4781
4782
4783
4784

4785
4786
4787
4788
4789
4790
4791
....
4800
4801
4802
4803
4804
4805
4806







4807
4808
4809
4810
4811
4812
4813
4814
4815

4816

4817
4818
4819
4820
4821
4822
4823
4824
4825
##

namespace eval ::PARSER {
    # # ## ### ##### ######## ############# #####################
    ## Supporting code for the main command.

    catch {
	#critcl::cheaders -g
	#critcl::debug memory symbols
    }

    # # ## ### ###### ######## #############
    ## RDE runtime, inlined, and made static.

    # This is the C code for the RDE, i.e. the implementation
................................................................................
	    long int off  = tc->num;
	    char* ch;
	    int clen;
	    Tcl_UniChar uni;
	    if (len < 0) {
		len = strlen (string);
	    }




	    
	    if ((tc->num + len) >= tc->max) {
		int   new = len + (tc->max ? (2 * tc->max) : RDE_STACK_INITIAL_SIZE);
		char* str = ckrealloc (tc->str, new * sizeof(char));
		ASSERT (str,"Memory allocation failure for token character array");
		tc->max = new;
		tc->str = str;
................................................................................
	    ClientData clientData;
	} RDE_PARAM_;
	typedef int (*UniCharClass) (int);
	typedef enum test_class_id {
	    tc_alnum,
	    tc_alpha,
	    tc_ascii,

	    tc_ddigit,
	    tc_digit,
	    tc_graph,
	    tc_lower,
	    tc_printable,
	    tc_punct,
	    tc_space,
................................................................................
	rde_param_i_error_clear (RDE_PARAM p)
	{
	    ER_CLEAR (p);
	}
	SCOPE void
	rde_param_i_error_nonterminal (RDE_PARAM p, int s)
	{


	    long int pos;
	    if (!p->ER) return;
	    pos = 1 + (long int) rde_stack_top (p->LS);
	    if (p->ER->loc != pos) return;
	    error_set (p, s);
	    p->ER->loc = pos;
	}
................................................................................
	}
	SCOPE void
	rde_param_i_test_ascii (RDE_PARAM p)
	{
	    test_class (p, UniCharIsAscii, tc_ascii);
	}
	SCOPE void





	rde_param_i_test_char (RDE_PARAM p, char* c, int msg)
	{
	    ASSERT_BOUNDS(msg,p->numstr);
	    p->ST = Tcl_UtfNcmp (p->CC, c, 1) == 0;
	    if (p->ST) {
		ER_CLEAR (p);
	    } else {
		error_set (p, msg);
................................................................................
	SCOPE void
	rde_param_i_next_ascii (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_ascii (p);
	}







	SCOPE void
	rde_param_i_next_ddigit (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_ddigit (p);
	}
................................................................................
		p->CL = (long int) rde_stack_top (p->LS);
		rde_stack_push (p->ES, p->ER);
		if (p->ER) { p->ER->refCount ++; }
	    }
	    return p->ST;
	}
	SCOPE void
	rde_param_i_next_str (RDE_PARAM p, char* str, int m)
	{
	    int at = p->CL;

	    while (*str) {
		rde_param_i_input_next (p, m);
		if (!p->ST) {

		    p->CL = at;
		    return;
		}
		rde_param_i_test_char (p, str, m);
		if (!p->ST) {

		    p->CL = at;
		    return;
		}
		str = Tcl_UtfNext (str);
	    }
	}
	SCOPE void
	rde_param_i_next_class (RDE_PARAM p, char* class, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    while (*class) {
		p->ST = Tcl_UtfNcmp (p->CC, class, 1) == 0;
		if (p->ST) {
		    ER_CLEAR (p);
................................................................................
        static void optional_137 (RDE_PARAM p);
        static void sequence_143 (RDE_PARAM p);
        static void sym_Definition (RDE_PARAM p);
        static void sequence_148 (RDE_PARAM p);
        static void sym_DIGIT (RDE_PARAM p);
        static void sequence_153 (RDE_PARAM p);
        static void sym_DOT (RDE_PARAM p);
        static void sequence_158 (RDE_PARAM p);
        static void sym_END (RDE_PARAM p);
        static void notahead_162 (RDE_PARAM p);
        static void sym_EOF (RDE_PARAM p);
        static void sym_EOL (RDE_PARAM p);
        static void sequence_170 (RDE_PARAM p);
        static void kleene_172 (RDE_PARAM p);
        static void sequence_174 (RDE_PARAM p);
        static void sym_Expression (RDE_PARAM p);
        static void sequence_180 (RDE_PARAM p);
        static void sym_Final (RDE_PARAM p);
        static void kleene_186 (RDE_PARAM p);
        static void sequence_190 (RDE_PARAM p);
        static void sym_Grammar (RDE_PARAM p);
        static void sequence_195 (RDE_PARAM p);
        static void sym_GRAPH (RDE_PARAM p);
        static void sequence_201 (RDE_PARAM p);
        static void sym_Header (RDE_PARAM p);
        static void choice_206 (RDE_PARAM p);
        static void choice_210 (RDE_PARAM p);
        static void kleene_212 (RDE_PARAM p);
        static void sequence_214 (RDE_PARAM p);
        static void sym_Ident (RDE_PARAM p);
        static void sequence_219 (RDE_PARAM p);
        static void sym_Identifier (RDE_PARAM p);
        static void sequence_224 (RDE_PARAM p);
        static void sym_IS (RDE_PARAM p);
        static void sequence_229 (RDE_PARAM p);
        static void sym_LEAF (RDE_PARAM p);
        static void notahead_234 (RDE_PARAM p);
        static void sequence_237 (RDE_PARAM p);
        static void kleene_239 (RDE_PARAM p);
        static void sequence_243 (RDE_PARAM p);
        static void notahead_247 (RDE_PARAM p);
        static void sequence_250 (RDE_PARAM p);
        static void kleene_252 (RDE_PARAM p);
        static void sequence_256 (RDE_PARAM p);
        static void choice_258 (RDE_PARAM p);
        static void sym_Literal (RDE_PARAM p);
        static void sequence_263 (RDE_PARAM p);
        static void sym_LOWER (RDE_PARAM p);
        static void sequence_268 (RDE_PARAM p);
        static void sym_NOT (RDE_PARAM p);
        static void sequence_273 (RDE_PARAM p);
        static void sym_OPEN (RDE_PARAM p);
        static void sym_OPENB (RDE_PARAM p);

        static void sequence_280 (RDE_PARAM p);
        static void sym_PEG (RDE_PARAM p);
        static void sequence_285 (RDE_PARAM p);
        static void sym_PLUS (RDE_PARAM p);
        static void choice_290 (RDE_PARAM p);
        static void optional_292 (RDE_PARAM p);
        static void sequence_295 (RDE_PARAM p);
        static void sym_Prefix (RDE_PARAM p);
        static void sequence_316 (RDE_PARAM p);
        static void choice_321 (RDE_PARAM p);
        static void sym_Primary (RDE_PARAM p);
        static void sequence_326 (RDE_PARAM p);
        static void sym_PRINTABLE (RDE_PARAM p);
        static void sequence_331 (RDE_PARAM p);
        static void sym_PUNCT (RDE_PARAM p);
        static void sequence_336 (RDE_PARAM p);
        static void sym_QUESTION (RDE_PARAM p);
        static void sequence_342 (RDE_PARAM p);
        static void choice_345 (RDE_PARAM p);
        static void sym_Range (RDE_PARAM p);
        static void sequence_350 (RDE_PARAM p);
        static void sym_SEMICOLON (RDE_PARAM p);
        static void poskleene_354 (RDE_PARAM p);
        static void sym_Sequence (RDE_PARAM p);
        static void sequence_359 (RDE_PARAM p);
        static void sym_SLASH (RDE_PARAM p);
        static void sequence_364 (RDE_PARAM p);
        static void sym_SPACE (RDE_PARAM p);
        static void sequence_369 (RDE_PARAM p);
        static void sym_STAR (RDE_PARAM p);
        static void sym_StartExpr (RDE_PARAM p);
        static void choice_381 (RDE_PARAM p);
        static void optional_383 (RDE_PARAM p);
        static void sequence_385 (RDE_PARAM p);
        static void sym_Suffix (RDE_PARAM p);
        static void sym_TO (RDE_PARAM p);
        static void sequence_392 (RDE_PARAM p);
        static void sym_UPPER (RDE_PARAM p);
        static void sequence_397 (RDE_PARAM p);
        static void sym_VOID (RDE_PARAM p);
        static void choice_402 (RDE_PARAM p);
        static void kleene_404 (RDE_PARAM p);
        static void sym_WHITESPACE (RDE_PARAM p);
        static void sequence_409 (RDE_PARAM p);
        static void sym_WORDCHAR (RDE_PARAM p);
        static void sequence_414 (RDE_PARAM p);
        static void sym_XDIGIT (RDE_PARAM p);
        
        /*
         * Precomputed table of strings (symbols, error messages, etc.).
         */
        
        static char const* p_string [170] = {
            /*        0 = */   "str '<alnum>'",
            /*        1 = */   "n ALNUM",
            /*        2 = */   "ALNUM",
            /*        3 = */   "str '<alpha>'",
            /*        4 = */   "n ALPHA",
            /*        5 = */   "ALPHA",
            /*        6 = */   "t &",
            /*        7 = */   "n AND",
            /*        8 = */   "AND",
            /*        9 = */   "t '",
            /*       10 = */   "n APOSTROPH",
            /*       11 = */   "APOSTROPH",
            /*       12 = */   "str '<ascii>'",
            /*       13 = */   "n ASCII",
            /*       14 = */   "ASCII",
            /*       15 = */   "n Attribute",
            /*       16 = */   "Attribute",
            /*       17 = */   "n Char",
            /*       18 = */   "Char",
            /*       19 = */   "t \134",
            /*       20 = */   ".. 0 2",
            /*       21 = */   ".. 0 7",
            /*       22 = */   "n CharOctalFull",
            /*       23 = */   "CharOctalFull",
            /*       24 = */   "n CharOctalPart",
            /*       25 = */   "CharOctalPart",
            /*       26 = */   "cl 'nrt'\42\133\135\134'",
            /*       27 = */   "n CharSpecial",
            /*       28 = */   "CharSpecial",
            /*       29 = */   "dot",
            /*       30 = */   "n CharUnescaped",
            /*       31 = */   "CharUnescaped",
            /*       32 = */   "str '\134u'",
            /*       33 = */   "xdigit",
            /*       34 = */   "n CharUnicode",
            /*       35 = */   "CharUnicode",
            /*       36 = */   "n Class",
            /*       37 = */   "Class",
            /*       38 = */   "t \51",
            /*       39 = */   "n CLOSE",
            /*       40 = */   "CLOSE",
            /*       41 = */   "t \135",
            /*       42 = */   "n CLOSEB",
            /*       43 = */   "CLOSEB",
            /*       44 = */   "t :",
            /*       45 = */   "n COLON",
            /*       46 = */   "COLON",
            /*       47 = */   "t #",
            /*       48 = */   "n COMMENT",
            /*       49 = */   "COMMENT",
            /*       50 = */   "str '<control>'",
            /*       51 = */   "n CONTROL",
            /*       52 = */   "CONTROL",
            /*       53 = */   "t \42",
            /*       54 = */   "n DAPOSTROPH",
            /*       55 = */   "DAPOSTROPH",
            /*       56 = */   "str '<ddigit>'",
            /*       57 = */   "n DDIGIT",
            /*       58 = */   "DDIGIT",
            /*       59 = */   "n Definition",
            /*       60 = */   "Definition",
            /*       61 = */   "str '<digit>'",
            /*       62 = */   "n DIGIT",
            /*       63 = */   "DIGIT",
            /*       64 = */   "t .",
            /*       65 = */   "n DOT",
            /*       66 = */   "DOT",
            /*       67 = */   "str 'END'",
            /*       68 = */   "n END",
            /*       69 = */   "END",
            /*       70 = */   "n EOF",
            /*       71 = */   "EOF",
            /*       72 = */   "cl '\n\r'",
            /*       73 = */   "n EOL",
            /*       74 = */   "EOL",
            /*       75 = */   "n Expression",
            /*       76 = */   "Expression",
            /*       77 = */   "n Final",
            /*       78 = */   "Final",
            /*       79 = */   "n Grammar",
            /*       80 = */   "Grammar",
            /*       81 = */   "str '<graph>'",
            /*       82 = */   "n GRAPH",
            /*       83 = */   "GRAPH",
            /*       84 = */   "n Header",
            /*       85 = */   "Header",
            /*       86 = */   "cl '_:'",
            /*       87 = */   "alpha",
            /*       88 = */   "alnum",
            /*       89 = */   "n Ident",
            /*       90 = */   "Ident",
            /*       91 = */   "n Identifier",
            /*       92 = */   "Identifier",
            /*       93 = */   "str '<-'",
            /*       94 = */   "n IS",
            /*       95 = */   "IS",
            /*       96 = */   "str 'leaf'",
            /*       97 = */   "n LEAF",
            /*       98 = */   "LEAF",
            /*       99 = */   "n Literal",
            /*      100 = */   "Literal",
            /*      101 = */   "str '<lower>'",
            /*      102 = */   "n LOWER",
            /*      103 = */   "LOWER",
            /*      104 = */   "t !",
            /*      105 = */   "n NOT",
            /*      106 = */   "NOT",
            /*      107 = */   "t \50",
            /*      108 = */   "n OPEN",
            /*      109 = */   "OPEN",
            /*      110 = */   "t \133",
            /*      111 = */   "n OPENB",
            /*      112 = */   "OPENB",
            /*      113 = */   "str 'PEG'",
            /*      114 = */   "n PEG",
            /*      115 = */   "PEG",
            /*      116 = */   "t +",
            /*      117 = */   "n PLUS",
            /*      118 = */   "PLUS",
            /*      119 = */   "n Prefix",
            /*      120 = */   "Prefix",
            /*      121 = */   "n Primary",
            /*      122 = */   "Primary",
            /*      123 = */   "str '<print>'",
            /*      124 = */   "n PRINTABLE",
            /*      125 = */   "PRINTABLE",
            /*      126 = */   "str '<punct>'",
            /*      127 = */   "n PUNCT",
            /*      128 = */   "PUNCT",
            /*      129 = */   "t ?",
            /*      130 = */   "n QUESTION",
            /*      131 = */   "QUESTION",
            /*      132 = */   "n Range",
            /*      133 = */   "Range",
            /*      134 = */   "t \73",
            /*      135 = */   "n SEMICOLON",
            /*      136 = */   "SEMICOLON",
            /*      137 = */   "n Sequence",
            /*      138 = */   "Sequence",
            /*      139 = */   "t /",
            /*      140 = */   "n SLASH",
            /*      141 = */   "SLASH",
            /*      142 = */   "str '<space>'",
            /*      143 = */   "n SPACE",
            /*      144 = */   "SPACE",
            /*      145 = */   "t *",
            /*      146 = */   "n STAR",
            /*      147 = */   "STAR",
            /*      148 = */   "n StartExpr",
            /*      149 = */   "StartExpr",
            /*      150 = */   "n Suffix",
            /*      151 = */   "Suffix",
            /*      152 = */   "t -",
            /*      153 = */   "n TO",
            /*      154 = */   "TO",
            /*      155 = */   "str '<upper>'",
            /*      156 = */   "n UPPER",
            /*      157 = */   "UPPER",
            /*      158 = */   "str 'void'",
            /*      159 = */   "n VOID",
            /*      160 = */   "VOID",
            /*      161 = */   "space",
            /*      162 = */   "n WHITESPACE",
            /*      163 = */   "WHITESPACE",
            /*      164 = */   "str '<wordchar>'",
            /*      165 = */   "n WORDCHAR",
            /*      166 = */   "WORDCHAR",
            /*      167 = */   "str '<xdigit>'",
            /*      168 = */   "n XDIGIT",
            /*      169 = */   "XDIGIT"








        };
        
        /*
         * Grammar Start Expression
         */
        
        static void MAIN (RDE_PARAM p) {
................................................................................
        static void sym_ALNUM (RDE_PARAM p) {
           /*
            * x
            *     "<alnum>"
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_start (p, 2)) return ;
            sequence_4 (p);
            rde_param_i_symbol_done_leaf (p, 2, 1);
            return;
        }
        
        static void sequence_4 (RDE_PARAM p) {
           /*
            * x
            *     "<alnum>"
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_str (p, "<alnum>", 0);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
        static void sym_ALPHA (RDE_PARAM p) {
           /*
            * x
            *     "<alpha>"
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_start (p, 5)) return ;
            sequence_9 (p);
            rde_param_i_symbol_done_leaf (p, 5, 4);
            return;
        }
        
        static void sequence_9 (RDE_PARAM p) {
           /*
            * x
            *     "<alpha>"
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_str (p, "<alpha>", 3);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
        static void sym_AND (RDE_PARAM p) {
           /*
            * x
            *     '&'
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_start (p, 8)) return ;
            sequence_14 (p);
            rde_param_i_symbol_done_leaf (p, 8, 7);
            return;
        }
        
        static void sequence_14 (RDE_PARAM p) {
           /*
            * x
            *     '&'
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_char (p, "&", 6);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
         */
        
        static void sym_APOSTROPH (RDE_PARAM p) {
           /*
            * '''
            */
        
            if (rde_param_i_symbol_void_start (p, 11)) return ;
            rde_param_i_next_char (p, "'", 9);
            rde_param_i_symbol_done_void (p, 11, 10);
            return;
        }
        
        /*
         * leaf Symbol 'ASCII'
         */
        
................................................................................
        static void sym_ASCII (RDE_PARAM p) {
           /*
            * x
            *     "<ascii>"
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_start (p, 14)) return ;
            sequence_21 (p);
            rde_param_i_symbol_done_leaf (p, 14, 13);
            return;
        }
        
        static void sequence_21 (RDE_PARAM p) {
           /*
            * x
            *     "<ascii>"
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_str (p, "<ascii>", 12);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
            * x
            *     /
            *         (VOID)
            *         (LEAF)
            *     (COLON)
            */
        
            if (rde_param_i_symbol_start_d (p, 16)) return ;
            sequence_29 (p);
            rde_param_i_symbol_done_d_reduce (p, 16, 15);
            return;
        }
        
        static void sequence_29 (RDE_PARAM p) {
           /*
            * x
            *     /
................................................................................
            *     (CharSpecial)
            *     (CharOctalFull)
            *     (CharOctalPart)
            *     (CharUnicode)
            *     (CharUnescaped)
            */
        
            if (rde_param_i_symbol_start_d (p, 18)) return ;
            choice_37 (p);
            rde_param_i_symbol_done_d_reduce (p, 18, 17);
            return;
        }
        
        static void choice_37 (RDE_PARAM p) {
           /*
            * /
            *     (CharSpecial)
................................................................................
            * x
            *     '\'
            *     range (0 .. 2)
            *     range (0 .. 7)
            *     range (0 .. 7)
            */
        
            if (rde_param_i_symbol_start (p, 23)) return ;
            sequence_44 (p);
            rde_param_i_symbol_done_leaf (p, 23, 22);
            return;
        }
        
        static void sequence_44 (RDE_PARAM p) {
           /*
            * x
            *     '\'
            *     range (0 .. 2)
            *     range (0 .. 7)
            *     range (0 .. 7)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_char (p, "\134", 19);
            if (rde_param_i_seq_void2void(p)) return;
            rde_param_i_next_range (p, "0", "2", 20);
            if (rde_param_i_seq_void2void(p)) return;
            rde_param_i_next_range (p, "0", "7", 21);
            if (rde_param_i_seq_void2void(p)) return;
            rde_param_i_next_range (p, "0", "7", 21);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
         * leaf Symbol 'CharOctalPart'
         */
................................................................................
            * x
            *     '\'
            *     range (0 .. 7)
            *     ?
            *         range (0 .. 7)
            */
        
            if (rde_param_i_symbol_start (p, 25)) return ;
            sequence_52 (p);
            rde_param_i_symbol_done_leaf (p, 25, 24);
            return;
        }
        
        static void sequence_52 (RDE_PARAM p) {
           /*
            * x
            *     '\'
            *     range (0 .. 7)
            *     ?
            *         range (0 .. 7)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_char (p, "\134", 19);
            if (rde_param_i_seq_void2void(p)) return;
            rde_param_i_next_range (p, "0", "7", 21);
            if (rde_param_i_seq_void2void(p)) return;
            optional_50 (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        static void optional_50 (RDE_PARAM p) {
           /*
            * ?
            *     range (0 .. 7)
            */
        
            rde_param_i_state_push_2 (p);
            rde_param_i_next_range (p, "0", "7", 21);
            rde_param_i_state_merge_ok (p);
            return;
        }
        
        /*
         * leaf Symbol 'CharSpecial'
         */
................................................................................
        static void sym_CharSpecial (RDE_PARAM p) {
           /*
            * x
            *     '\'
            *     [nrt'\"[]\]
            */
        
            if (rde_param_i_symbol_start (p, 28)) return ;
            sequence_57 (p);
            rde_param_i_symbol_done_leaf (p, 28, 27);
            return;
        }
        
        static void sequence_57 (RDE_PARAM p) {
           /*
            * x
            *     '\'
            *     [nrt'\"[]\]
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_char (p, "\134", 19);
            if (rde_param_i_seq_void2void(p)) return;
            rde_param_i_next_class (p, "nrt'\42\133\135\134", 26);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
         * leaf Symbol 'CharUnescaped'
         */
................................................................................
           /*
            * x
            *     !
            *         '\'
            *     <dot>
            */
        
            if (rde_param_i_symbol_start (p, 31)) return ;
            sequence_64 (p);
            rde_param_i_symbol_done_leaf (p, 31, 30);
            return;
        }
        
        static void sequence_64 (RDE_PARAM p) {
           /*
            * x
            *     !
................................................................................
            *         '\'
            *     <dot>
            */
        
            rde_param_i_state_push_void (p);
            notahead_61 (p);
            if (rde_param_i_seq_void2void(p)) return;
            rde_param_i_input_next (p, 29);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        static void notahead_61 (RDE_PARAM p) {
           /*
            * !
            *     '\'
            */
        
            rde_param_i_loc_push (p);
            rde_param_i_next_char (p, "\134", 19);
            rde_param_i_notahead_exit (p);
            return;
        }
        
        /*
         * leaf Symbol 'CharUnicode'
         */
................................................................................
            *             ?
            *                 x
            *                     <xdigit>
            *                     ?
            *                         <xdigit>
            */
        
            if (rde_param_i_symbol_start (p, 35)) return ;
            sequence_82 (p);
            rde_param_i_symbol_done_leaf (p, 35, 34);
            return;
        }
        
        static void sequence_82 (RDE_PARAM p) {
           /*
            * x
            *     "\u"
................................................................................
            *                 x
            *                     <xdigit>
            *                     ?
            *                         <xdigit>
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_str (p, "\134u", 32);
            if (rde_param_i_seq_void2void(p)) return;
            rde_param_i_next_xdigit (p, 33);
            if (rde_param_i_seq_void2void(p)) return;
            optional_80 (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        static void optional_80 (RDE_PARAM p) {
................................................................................
            *         x
            *             <xdigit>
            *             ?
            *                 <xdigit>
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_xdigit (p, 33);
            if (rde_param_i_seq_void2void(p)) return;
            optional_76 (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        static void optional_76 (RDE_PARAM p) {
................................................................................
            * x
            *     <xdigit>
            *     ?
            *         <xdigit>
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_xdigit (p, 33);
            if (rde_param_i_seq_void2void(p)) return;
            optional_72 (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        static void optional_72 (RDE_PARAM p) {
           /*
            * ?
            *     <xdigit>
            */
        
            rde_param_i_state_push_2 (p);
            rde_param_i_next_xdigit (p, 33);
            rde_param_i_state_merge_ok (p);
            return;
        }
        
        /*
         * value Symbol 'Class'
         */
................................................................................
            *             !
            *                 (CLOSEB)
            *             (Range)
            *     (CLOSEB)
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_start_d (p, 37)) return ;
            sequence_96 (p);
            rde_param_i_symbol_done_d_reduce (p, 37, 36);
            return;
        }
        
        static void sequence_96 (RDE_PARAM p) {
           /*
            * x
            *     (OPENB)
................................................................................
        static void sym_CLOSE (RDE_PARAM p) {
           /*
            * x
            *     '\)'
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_void_start (p, 40)) return ;
            sequence_101 (p);
            rde_param_i_symbol_done_void (p, 40, 39);
            return;
        }
        
        static void sequence_101 (RDE_PARAM p) {
           /*
            * x
            *     '\)'
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_char (p, "\51", 38);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
         */
        
        static void sym_CLOSEB (RDE_PARAM p) {
           /*
            * ']'
            */
        
            if (rde_param_i_symbol_void_start (p, 43)) return ;
            rde_param_i_next_char (p, "\135", 41);
            rde_param_i_symbol_done_void (p, 43, 42);
            return;
        }
        
        /*
         * void Symbol 'COLON'
         */
        
................................................................................
        static void sym_COLON (RDE_PARAM p) {
           /*
            * x
            *     ':'
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_void_start (p, 46)) return ;
            sequence_108 (p);
            rde_param_i_symbol_done_void (p, 46, 45);
            return;
        }
        
        static void sequence_108 (RDE_PARAM p) {
           /*
            * x
            *     ':'
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_char (p, ":", 44);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
            *         x
            *             !
            *                 (EOL)
            *             <dot>
            *     (EOL)
            */
        
            if (rde_param_i_symbol_void_start (p, 49)) return ;
            sequence_121 (p);
            rde_param_i_symbol_done_void (p, 49, 48);
            return;
        }
        
        static void sequence_121 (RDE_PARAM p) {
           /*
            * x
            *     '#'
................................................................................
            *             !
            *                 (EOL)
            *             <dot>
            *     (EOL)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_char (p, "#", 47);
            if (rde_param_i_seq_void2void(p)) return;
            kleene_118 (p);
            if (rde_param_i_seq_void2void(p)) return;
            sym_EOL (p);
            rde_param_i_state_merge_void (p);
            return;
        }
................................................................................
            *         (EOL)
            *     <dot>
            */
        
            rde_param_i_state_push_void (p);
            notahead_113 (p);
            if (rde_param_i_seq_void2void(p)) return;
            rde_param_i_input_next (p, 29);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        static void notahead_113 (RDE_PARAM p) {
           /*
            * !
................................................................................
        static void sym_CONTROL (RDE_PARAM p) {
           /*
            * x
            *     "<control>"
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_start (p, 52)) return ;
            sequence_126 (p);
            rde_param_i_symbol_done_leaf (p, 52, 51);
            return;
        }
        
        static void sequence_126 (RDE_PARAM p) {
           /*
            * x
            *     "<control>"
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_str (p, "<control>", 50);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
         */
        
        static void sym_DAPOSTROPH (RDE_PARAM p) {
           /*
            * '\"'
            */
        
            if (rde_param_i_symbol_void_start (p, 55)) return ;
            rde_param_i_next_char (p, "\42", 53);
            rde_param_i_symbol_done_void (p, 55, 54);
            return;
        }
        
        /*
         * leaf Symbol 'DDIGIT'
         */
        
................................................................................
        static void sym_DDIGIT (RDE_PARAM p) {
           /*
            * x
            *     "<ddigit>"
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_start (p, 58)) return ;
            sequence_133 (p);
            rde_param_i_symbol_done_leaf (p, 58, 57);
            return;
        }
        
        static void sequence_133 (RDE_PARAM p) {
           /*
            * x
            *     "<ddigit>"
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_str (p, "<ddigit>", 56);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
            *         (Attribute)
            *     (Identifier)
            *     (IS)
            *     (Expression)
            *     (SEMICOLON)
            */
        
            if (rde_param_i_symbol_start_d (p, 60)) return ;
            sequence_143 (p);
            rde_param_i_symbol_done_d_reduce (p, 60, 59);
            return;
        }
        
        static void sequence_143 (RDE_PARAM p) {
           /*
            * x
            *     ?
................................................................................
        static void sym_DIGIT (RDE_PARAM p) {
           /*
            * x
            *     "<digit>"
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_start (p, 63)) return ;
            sequence_148 (p);
            rde_param_i_symbol_done_leaf (p, 63, 62);
            return;
        }
        
        static void sequence_148 (RDE_PARAM p) {
           /*
            * x
            *     "<digit>"
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_str (p, "<digit>", 61);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
        static void sym_DOT (RDE_PARAM p) {
           /*
            * x
            *     '.'
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_start (p, 66)) return ;
            sequence_153 (p);
            rde_param_i_symbol_done_leaf (p, 66, 65);
            return;
        }
        
        static void sequence_153 (RDE_PARAM p) {
           /*
            * x
            *     '.'
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_char (p, ".", 64);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
         * void Symbol 'END'
         */
        
        static void sym_END (RDE_PARAM p) {
           /*
            * x
            *     "END"
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_void_start (p, 69)) return ;
            sequence_158 (p);
            rde_param_i_symbol_done_void (p, 69, 68);
            return;
        }
        
        static void sequence_158 (RDE_PARAM p) {
           /*
            * x
            *     "END"
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_str (p, "END", 67);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
        
        static void sym_EOF (RDE_PARAM p) {
           /*
            * !
            *     <dot>
            */
        
            if (rde_param_i_symbol_void_start (p, 71)) return ;
            notahead_162 (p);
            rde_param_i_symbol_done_void (p, 71, 70);
            return;
        }
        
        static void notahead_162 (RDE_PARAM p) {
           /*
            * !
            *     <dot>
            */
        
            rde_param_i_loc_push (p);
            rde_param_i_input_next (p, 29);
            rde_param_i_notahead_exit (p);
            return;
        }
        
        /*
         * void Symbol 'EOL'
         */
        
        static void sym_EOL (RDE_PARAM p) {
           /*
            * [\n\r]
            */
        
            if (rde_param_i_symbol_void_start (p, 74)) return ;
            rde_param_i_next_class (p, "\n\r", 72);
            rde_param_i_symbol_done_void (p, 74, 73);
            return;
        }
        
        /*
         * value Symbol 'Expression'
         */
        
................................................................................
            *     (Sequence)
            *     *
            *         x
            *             (SLASH)
            *             (Sequence)
            */
        
            if (rde_param_i_symbol_start_d (p, 76)) return ;
            sequence_174 (p);
            rde_param_i_symbol_done_d_reduce (p, 76, 75);
            return;
        }
        
        static void sequence_174 (RDE_PARAM p) {
           /*
            * x
            *     (Sequence)
            *     *
            *         x
            *             (SLASH)
            *             (Sequence)
            */
        
            rde_param_i_state_push_value (p);
            sym_Sequence (p);
            if (rde_param_i_seq_value2value(p)) return;
            kleene_172 (p);
            rde_param_i_state_merge_value (p);
            return;
        }
        
        static void kleene_172 (RDE_PARAM p) {
           /*
            * *
            *     x
            *         (SLASH)
            *         (Sequence)
            */
        
            while (1) {
                rde_param_i_state_push_2 (p);
                sequence_170 (p);
                if (rde_param_i_kleene_close(p)) return;
            }
            return;
        }
        
        static void sequence_170 (RDE_PARAM p) {
           /*
            * x
            *     (SLASH)
            *     (Sequence)
            */
        
            rde_param_i_state_push_void (p);
................................................................................
        /*
         * void Symbol 'Final'
         */
        
        static void sym_Final (RDE_PARAM p) {
           /*
            * x
            *     (END)

            *     (SEMICOLON)
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_void_start (p, 78)) return ;
            sequence_180 (p);
            rde_param_i_symbol_done_void (p, 78, 77);
            return;
        }
        
        static void sequence_180 (RDE_PARAM p) {
           /*
            * x
            *     (END)

            *     (SEMICOLON)
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            sym_END (p);


            if (rde_param_i_seq_void2void(p)) return;
            sym_SEMICOLON (p);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
................................................................................
            *     (Header)
            *     *
            *         (Definition)
            *     (Final)
            *     (EOF)
            */
        
            if (rde_param_i_symbol_start_d (p, 80)) return ;
            sequence_190 (p);
            rde_param_i_symbol_done_d_reduce (p, 80, 79);
            return;
        }
        
        static void sequence_190 (RDE_PARAM p) {
           /*
            * x
            *     (WHITESPACE)
            *     (Header)
            *     *
            *         (Definition)
            *     (Final)
................................................................................
            */
        
            rde_param_i_state_push_void (p);
            sym_WHITESPACE (p);
            if (rde_param_i_seq_void2value(p)) return;
            sym_Header (p);
            if (rde_param_i_seq_value2value(p)) return;
            kleene_186 (p);
            if (rde_param_i_seq_value2value(p)) return;
            sym_Final (p);
            if (rde_param_i_seq_value2value(p)) return;
            sym_EOF (p);
            rde_param_i_state_merge_value (p);
            return;
        }
        
        static void kleene_186 (RDE_PARAM p) {
           /*
            * *
            *     (Definition)
            */
        
            while (1) {
                rde_param_i_state_push_2 (p);
................................................................................
        static void sym_GRAPH (RDE_PARAM p) {
           /*
            * x
            *     "<graph>"
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_start (p, 83)) return ;
            sequence_195 (p);
            rde_param_i_symbol_done_leaf (p, 83, 82);
            return;
        }
        
        static void sequence_195 (RDE_PARAM p) {
           /*
            * x
            *     "<graph>"
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_str (p, "<graph>", 81);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
           /*
            * x
            *     (PEG)
            *     (Identifier)
            *     (StartExpr)
            */
        
            if (rde_param_i_symbol_start_d (p, 85)) return ;
            sequence_201 (p);
            rde_param_i_symbol_done_d_reduce (p, 85, 84);
            return;
        }
        
        static void sequence_201 (RDE_PARAM p) {
           /*
            * x
            *     (PEG)
            *     (Identifier)
            *     (StartExpr)
            */
        
................................................................................
            *         <alpha>
            *     *
            *         /
            *             [_:]
            *             <alnum>
            */
        
            if (rde_param_i_symbol_start (p, 90)) return ;
            sequence_214 (p);
            rde_param_i_symbol_done_leaf (p, 90, 89);
            return;
        }
        
        static void sequence_214 (RDE_PARAM p) {
           /*
            * x
            *     /
            *         [_:]
            *         <alpha>
            *     *
            *         /
            *             [_:]
            *             <alnum>
            */
        
            rde_param_i_state_push_void (p);
            choice_206 (p);
            if (rde_param_i_seq_void2void(p)) return;
            kleene_212 (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        static void choice_206 (RDE_PARAM p) {
           /*
            * /
            *     [_:]
            *     <alpha>
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_class (p, "_:", 86);
            if (rde_param_i_bra_void2void(p)) return;
            rde_param_i_next_alpha (p, 87);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        static void kleene_212 (RDE_PARAM p) {
           /*
            * *
            *     /
            *         [_:]
            *         <alnum>
            */
        
            while (1) {
                rde_param_i_state_push_2 (p);
                choice_210 (p);
                if (rde_param_i_kleene_close(p)) return;
            }
            return;
        }
        
        static void choice_210 (RDE_PARAM p) {
           /*
            * /
            *     [_:]
            *     <alnum>
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_class (p, "_:", 86);
            if (rde_param_i_bra_void2void(p)) return;
            rde_param_i_next_alnum (p, 88);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
         * value Symbol 'Identifier'
         */
................................................................................
        static void sym_Identifier (RDE_PARAM p) {
           /*
            * x
            *     (Ident)
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_start_d (p, 92)) return ;
            sequence_219 (p);
            rde_param_i_symbol_done_d_reduce (p, 92, 91);
            return;
        }
        
        static void sequence_219 (RDE_PARAM p) {
           /*
            * x
            *     (Ident)
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_value (p);
................................................................................
        static void sym_IS (RDE_PARAM p) {
           /*
            * x
            *     "<-"
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_void_start (p, 95)) return ;
            sequence_224 (p);
            rde_param_i_symbol_done_void (p, 95, 94);
            return;
        }
        
        static void sequence_224 (RDE_PARAM p) {
           /*
            * x
            *     "<-"
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_str (p, "<-", 93);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
        static void sym_LEAF (RDE_PARAM p) {
           /*
            * x
            *     "leaf"
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_start (p, 98)) return ;
            sequence_229 (p);
            rde_param_i_symbol_done_leaf (p, 98, 97);
            return;
        }
        
        static void sequence_229 (RDE_PARAM p) {
           /*
            * x
            *     "leaf"
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_str (p, "leaf", 96);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
            *                 !
            *                     (DAPOSTROPH)
            *                 (Char)
            *         (DAPOSTROPH)
            *         (WHITESPACE)
            */
        
            if (rde_param_i_symbol_start_d (p, 100)) return ;
            choice_258 (p);
            rde_param_i_symbol_done_d_reduce (p, 100, 99);
            return;
        }
        
        static void choice_258 (RDE_PARAM p) {
           /*
            * /
            *     x
            *         (APOSTROPH)
            *         *
            *             x
            *                 !
................................................................................
            *                     (DAPOSTROPH)
            *                 (Char)
            *         (DAPOSTROPH)
            *         (WHITESPACE)
            */
        
            rde_param_i_state_push_value (p);
            sequence_243 (p);
            if (rde_param_i_bra_value2value(p)) return;
            sequence_256 (p);
            rde_param_i_state_merge_value (p);
            return;
        }
        
        static void sequence_243 (RDE_PARAM p) {
           /*
            * x
            *     (APOSTROPH)
            *     *
            *         x
            *             !
            *                 (APOSTROPH)
................................................................................
            *     (APOSTROPH)
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            sym_APOSTROPH (p);
            if (rde_param_i_seq_void2value(p)) return;
            kleene_239 (p);
            if (rde_param_i_seq_value2value(p)) return;
            sym_APOSTROPH (p);
            if (rde_param_i_seq_value2value(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_value (p);
            return;
        }
        
        static void kleene_239 (RDE_PARAM p) {
           /*
            * *
            *     x
            *         !
            *             (APOSTROPH)
            *         (Char)
            */
        
            while (1) {
                rde_param_i_state_push_2 (p);
                sequence_237 (p);
                if (rde_param_i_kleene_close(p)) return;
            }
            return;
        }
        
        static void sequence_237 (RDE_PARAM p) {
           /*
            * x
            *     !
            *         (APOSTROPH)
            *     (Char)
            */
        
            rde_param_i_state_push_void (p);
            notahead_234 (p);
            if (rde_param_i_seq_void2value(p)) return;
            sym_Char (p);
            rde_param_i_state_merge_value (p);
            return;
        }
        
        static void notahead_234 (RDE_PARAM p) {
           /*
            * !
            *     (APOSTROPH)
            */
        
            rde_param_i_loc_push (p);
            sym_APOSTROPH (p);
            rde_param_i_notahead_exit (p);
            return;
        }
        
        static void sequence_256 (RDE_PARAM p) {
           /*
            * x
            *     (DAPOSTROPH)
            *     *
            *         x
            *             !
            *                 (DAPOSTROPH)
................................................................................
            *     (DAPOSTROPH)
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            sym_DAPOSTROPH (p);
            if (rde_param_i_seq_void2value(p)) return;
            kleene_252 (p);
            if (rde_param_i_seq_value2value(p)) return;
            sym_DAPOSTROPH (p);
            if (rde_param_i_seq_value2value(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_value (p);
            return;
        }
        
        static void kleene_252 (RDE_PARAM p) {
           /*
            * *
            *     x
            *         !
            *             (DAPOSTROPH)
            *         (Char)
            */
        
            while (1) {
                rde_param_i_state_push_2 (p);
                sequence_250 (p);
                if (rde_param_i_kleene_close(p)) return;
            }
            return;
        }
        
        static void sequence_250 (RDE_PARAM p) {
           /*
            * x
            *     !
            *         (DAPOSTROPH)
            *     (Char)
            */
        
            rde_param_i_state_push_void (p);
            notahead_247 (p);
            if (rde_param_i_seq_void2value(p)) return;
            sym_Char (p);
            rde_param_i_state_merge_value (p);
            return;
        }
        
        static void notahead_247 (RDE_PARAM p) {
           /*
            * !
            *     (DAPOSTROPH)
            */
        
            rde_param_i_loc_push (p);
            sym_DAPOSTROPH (p);
................................................................................
        static void sym_LOWER (RDE_PARAM p) {
           /*
            * x
            *     "<lower>"
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_start (p, 103)) return ;
            sequence_263 (p);
            rde_param_i_symbol_done_leaf (p, 103, 102);
            return;
        }
        
        static void sequence_263 (RDE_PARAM p) {
           /*
            * x
            *     "<lower>"
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_str (p, "<lower>", 101);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
        static void sym_NOT (RDE_PARAM p) {
           /*
            * x
            *     '!'
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_start (p, 106)) return ;
            sequence_268 (p);
            rde_param_i_symbol_done_leaf (p, 106, 105);
            return;
        }
        
        static void sequence_268 (RDE_PARAM p) {
           /*
            * x
            *     '!'
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_char (p, "!", 104);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
        static void sym_OPEN (RDE_PARAM p) {
           /*
            * x
            *     '\('
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_void_start (p, 109)) return ;
            sequence_273 (p);
            rde_param_i_symbol_done_void (p, 109, 108);
            return;
        }
        
        static void sequence_273 (RDE_PARAM p) {
           /*
            * x
            *     '\('
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_char (p, "\50", 107);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
         */
        
        static void sym_OPENB (RDE_PARAM p) {
           /*
            * '['
            */
        
            if (rde_param_i_symbol_void_start (p, 112)) return ;
            rde_param_i_next_char (p, "\133", 110);
            rde_param_i_symbol_done_void (p, 112, 111);
            return;
        }
        
        /*
         * void Symbol 'PEG'
         */
        
        static void sym_PEG (RDE_PARAM p) {
           /*
            * x
            *     "PEG"




            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_void_start (p, 115)) return ;
            sequence_280 (p);
            rde_param_i_symbol_done_void (p, 115, 114);
            return;
        }
        
        static void sequence_280 (RDE_PARAM p) {
           /*
            * x
            *     "PEG"




            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_str (p, "PEG", 113);


            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }














        
        /*
         * leaf Symbol 'PLUS'
         */
        
        static void sym_PLUS (RDE_PARAM p) {
           /*
            * x
            *     '+'
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_start (p, 118)) return ;
            sequence_285 (p);
            rde_param_i_symbol_done_leaf (p, 118, 117);
            return;
        }
        
        static void sequence_285 (RDE_PARAM p) {
           /*
            * x
            *     '+'
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_char (p, "+", 116);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
            *     ?
            *         /
            *             (AND)
            *             (NOT)
            *     (Suffix)
            */
        
            if (rde_param_i_symbol_start_d (p, 120)) return ;
            sequence_295 (p);
            rde_param_i_symbol_done_d_reduce (p, 120, 119);
            return;
        }
        
        static void sequence_295 (RDE_PARAM p) {
           /*
            * x
            *     ?
            *         /
            *             (AND)
            *             (NOT)
            *     (Suffix)
            */
        
            rde_param_i_state_push_value (p);
            optional_292 (p);
            if (rde_param_i_seq_value2value(p)) return;
            sym_Suffix (p);
            rde_param_i_state_merge_value (p);
            return;
        }
        
        static void optional_292 (RDE_PARAM p) {
           /*
            * ?
            *     /
            *         (AND)
            *         (NOT)
            */
        
            rde_param_i_state_push_2 (p);
            choice_290 (p);
            rde_param_i_state_merge_ok (p);
            return;
        }
        
        static void choice_290 (RDE_PARAM p) {
           /*
            * /
            *     (AND)
            *     (NOT)
            */
        
            rde_param_i_state_push_value (p);
................................................................................
            *         (Expression)
            *         (CLOSE)
            *     (Literal)
            *     (Class)
            *     (DOT)
            */
        
            if (rde_param_i_symbol_start_d (p, 122)) return ;
            choice_321 (p);
            rde_param_i_symbol_done_d_reduce (p, 122, 121);
            return;
        }
        
        static void choice_321 (RDE_PARAM p) {
           /*
            * /
            *     (ALNUM)
            *     (ALPHA)
            *     (ASCII)
            *     (CONTROL)
            *     (DDIGIT)
................................................................................
            if (rde_param_i_bra_value2value(p)) return;
            sym_WORDCHAR (p);
            if (rde_param_i_bra_value2value(p)) return;
            sym_XDIGIT (p);
            if (rde_param_i_bra_value2value(p)) return;
            sym_Identifier (p);
            if (rde_param_i_bra_value2value(p)) return;
            sequence_316 (p);
            if (rde_param_i_bra_value2value(p)) return;
            sym_Literal (p);
            if (rde_param_i_bra_value2value(p)) return;
            sym_Class (p);
            if (rde_param_i_bra_value2value(p)) return;
            sym_DOT (p);
            rde_param_i_state_merge_value (p);
            return;
        }
        
        static void sequence_316 (RDE_PARAM p) {
           /*
            * x
            *     (OPEN)
            *     (Expression)
            *     (CLOSE)
            */
        
................................................................................
        static void sym_PRINTABLE (RDE_PARAM p) {
           /*
            * x
            *     "<print>"
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_start (p, 125)) return ;
            sequence_326 (p);
            rde_param_i_symbol_done_leaf (p, 125, 124);
            return;
        }
        
        static void sequence_326 (RDE_PARAM p) {
           /*
            * x
            *     "<print>"
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_str (p, "<print>", 123);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
        static void sym_PUNCT (RDE_PARAM p) {
           /*
            * x
            *     "<punct>"
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_start (p, 128)) return ;
            sequence_331 (p);
            rde_param_i_symbol_done_leaf (p, 128, 127);
            return;
        }
        
        static void sequence_331 (RDE_PARAM p) {
           /*
            * x
            *     "<punct>"
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_str (p, "<punct>", 126);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
        static void sym_QUESTION (RDE_PARAM p) {
           /*
            * x
            *     '?'
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_start (p, 131)) return ;
            sequence_336 (p);
            rde_param_i_symbol_done_leaf (p, 131, 130);
            return;
        }
        
        static void sequence_336 (RDE_PARAM p) {
           /*
            * x
            *     '?'
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_char (p, "?", 129);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
            *     x
            *         (Char)
            *         (TO)
            *         (Char)
            *     (Char)
            */
        
            if (rde_param_i_symbol_start_d (p, 133)) return ;
            choice_345 (p);
            rde_param_i_symbol_done_d_reduce (p, 133, 132);
            return;
        }
        
        static void choice_345 (RDE_PARAM p) {
           /*
            * /
            *     x
            *         (Char)
            *         (TO)
            *         (Char)
            *     (Char)
            */
        
            rde_param_i_state_push_value (p);
            sequence_342 (p);
            if (rde_param_i_bra_value2value(p)) return;
            sym_Char (p);
            rde_param_i_state_merge_value (p);
            return;
        }
        
        static void sequence_342 (RDE_PARAM p) {
           /*
            * x
            *     (Char)
            *     (TO)
            *     (Char)
            */
        
................................................................................
        static void sym_SEMICOLON (RDE_PARAM p) {
           /*
            * x
            *     ';'
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_void_start (p, 136)) return ;
            sequence_350 (p);
            rde_param_i_symbol_done_void (p, 136, 135);
            return;
        }
        
        static void sequence_350 (RDE_PARAM p) {
           /*
            * x
            *     ';'
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_char (p, "\73", 134);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
        
        static void sym_Sequence (RDE_PARAM p) {
           /*
            * +
            *     (Prefix)
            */
        
            if (rde_param_i_symbol_start_d (p, 138)) return ;
            poskleene_354 (p);
            rde_param_i_symbol_done_d_reduce (p, 138, 137);
            return;
        }
        
        static void poskleene_354 (RDE_PARAM p) {
           /*
            * +
            *     (Prefix)
            */
        
            rde_param_i_loc_push (p);
            sym_Prefix (p);
................................................................................
        static void sym_SLASH (RDE_PARAM p) {
           /*
            * x
            *     '/'
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_void_start (p, 141)) return ;
            sequence_359 (p);
            rde_param_i_symbol_done_void (p, 141, 140);
            return;
        }
        
        static void sequence_359 (RDE_PARAM p) {
           /*
            * x
            *     '/'
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_char (p, "/", 139);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
        static void sym_SPACE (RDE_PARAM p) {
           /*
            * x
            *     "<space>"
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_start (p, 144)) return ;
            sequence_364 (p);
            rde_param_i_symbol_done_leaf (p, 144, 143);
            return;
        }
        
        static void sequence_364 (RDE_PARAM p) {
           /*
            * x
            *     "<space>"
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_str (p, "<space>", 142);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
        static void sym_STAR (RDE_PARAM p) {
           /*
            * x
            *     '*'
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_start (p, 147)) return ;
            sequence_369 (p);
            rde_param_i_symbol_done_leaf (p, 147, 146);
            return;
        }
        
        static void sequence_369 (RDE_PARAM p) {
           /*
            * x
            *     '*'
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_char (p, "*", 145);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
           /*
            * x
            *     (OPEN)
            *     (Expression)
            *     (CLOSE)
            */
        
            if (rde_param_i_symbol_start_d (p, 149)) return ;
            sequence_316 (p);
            rde_param_i_symbol_done_d_reduce (p, 149, 148);
            return;
        }
        
        /*
         * value Symbol 'Suffix'
         */
        
................................................................................
            *     ?
            *         /
            *             (QUESTION)
            *             (STAR)
            *             (PLUS)
            */
        
            if (rde_param_i_symbol_start_d (p, 151)) return ;
            sequence_385 (p);
            rde_param_i_symbol_done_d_reduce (p, 151, 150);
            return;
        }
        
        static void sequence_385 (RDE_PARAM p) {
           /*
            * x
            *     (Primary)
            *     ?
            *         /
            *             (QUESTION)
            *             (STAR)
            *             (PLUS)
            */
        
            rde_param_i_state_push_value (p);
            sym_Primary (p);
            if (rde_param_i_seq_value2value(p)) return;
            optional_383 (p);
            rde_param_i_state_merge_value (p);
            return;
        }
        
        static void optional_383 (RDE_PARAM p) {
           /*
            * ?
            *     /
            *         (QUESTION)
            *         (STAR)
            *         (PLUS)
            */
        
            rde_param_i_state_push_2 (p);
            choice_381 (p);
            rde_param_i_state_merge_ok (p);
            return;
        }
        
        static void choice_381 (RDE_PARAM p) {
           /*
            * /
            *     (QUESTION)
            *     (STAR)
            *     (PLUS)
            */
        
................................................................................
         */
        
        static void sym_TO (RDE_PARAM p) {
           /*
            * '-'
            */
        
            if (rde_param_i_symbol_void_start (p, 154)) return ;
            rde_param_i_next_char (p, "-", 152);
            rde_param_i_symbol_done_void (p, 154, 153);
            return;
        }
        
        /*
         * leaf Symbol 'UPPER'
         */
        
................................................................................
        static void sym_UPPER (RDE_PARAM p) {
           /*
            * x
            *     "<upper>"
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_start (p, 157)) return ;
            sequence_392 (p);
            rde_param_i_symbol_done_leaf (p, 157, 156);
            return;
        }
        
        static void sequence_392 (RDE_PARAM p) {
           /*
            * x
            *     "<upper>"
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_str (p, "<upper>", 155);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
        static void sym_VOID (RDE_PARAM p) {
           /*
            * x
            *     "void"
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_start (p, 160)) return ;
            sequence_397 (p);
            rde_param_i_symbol_done_leaf (p, 160, 159);
            return;
        }
        
        static void sequence_397 (RDE_PARAM p) {
           /*
            * x
            *     "void"
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_str (p, "void", 158);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
           /*
            * *
            *     /
            *         <space>
            *         (COMMENT)
            */
        
            if (rde_param_i_symbol_void_start (p, 163)) return ;
            kleene_404 (p);
            rde_param_i_symbol_done_void (p, 163, 162);
            return;
        }
        
        static void kleene_404 (RDE_PARAM p) {
           /*
            * *
            *     /
            *         <space>
            *         (COMMENT)
            */
        
            while (1) {
                rde_param_i_state_push_2 (p);
                choice_402 (p);
                if (rde_param_i_kleene_close(p)) return;
            }
            return;
        }
        
        static void choice_402 (RDE_PARAM p) {
           /*
            * /
            *     <space>
            *     (COMMENT)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_space (p, 161);
            if (rde_param_i_bra_void2void(p)) return;
            sym_COMMENT (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
        static void sym_WORDCHAR (RDE_PARAM p) {
           /*
            * x
            *     "<wordchar>"
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_start (p, 166)) return ;
            sequence_409 (p);
            rde_param_i_symbol_done_leaf (p, 166, 165);
            return;
        }
        
        static void sequence_409 (RDE_PARAM p) {
           /*
            * x
            *     "<wordchar>"
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_str (p, "<wordchar>", 164);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
        static void sym_XDIGIT (RDE_PARAM p) {
           /*
            * x
            *     "<xdigit>"
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_start (p, 169)) return ;
            sequence_414 (p);
            rde_param_i_symbol_done_leaf (p, 169, 168);
            return;
        }
        
        static void sequence_414 (RDE_PARAM p) {
           /*
            * x
            *     "<xdigit>"
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_str (p, "<xdigit>", 167);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
    }
................................................................................

	    rde_param_reset (p, NULL);
	    rde_param_data  (p, buf, len);
	    MAIN (p) ; /* Entrypoint for the generated code. */
	    return COMPLETE (p, interp);
	}


	static int COMPLETE (RDE_PARAM p, Tcl_Interp* interp)
	{
	    if (rde_param_query_st (p)) {
		long int  ac;
		Tcl_Obj** av;

		rde_param_query_ast (p, &ac, &av);
................................................................................
		    memcpy(lv + 3, av, ac * sizeof (Tcl_Obj*));
		    lv [0] = Tcl_NewObj ();
		    lv [1] = Tcl_NewIntObj (1 + lsv [lsc-1]);
		    lv [2] = Tcl_NewIntObj (rde_param_query_cl (p));

		    Tcl_SetObjResult (interp, Tcl_NewListObj (3, lv));
		    ckfree ((char*) lv);







		} else {
		    Tcl_SetObjResult (interp, av [0]);
		}

		return TCL_OK;
	    } else {
		Tcl_Obj* xv [1];
		const ERROR_STATE* er = rde_param_query_er (p);
		Tcl_Obj* res = rde_param_query_er_tcl (p, er);



		xv [0] = Tcl_NewStringObj ("pt::rde",-1);
		Tcl_ListObjReplace(interp, res, 0, 1, 1, xv);

		Tcl_SetObjResult (interp, res);
		return TCL_ERROR;
	    }
	}
    }







|







 







>
>
>
>







 







>







 







>
>







 







>
>
>
>
>
|







 







>
>
>
>
>
>
>







 







|


>



>





>







|







 







<
<
|


|
|
|

|

|
|

|

|

|
|
|
|

|

|

|

|
|
|
|
|
|
|
|
|

|

|

|


>
|

|

|
|
|

|
|

|

|

|

|
|

|

|

|

|

|


|
|
|


|

|

|
|

|

|






|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
>
>
>
>
>
>
>
>







 







|

|











|







 







|

|











|







 







|

|











|







 







|
|
|







 







|

|











|







 







|

|







 







|

|







 







|

|













|

|

|

|







 







|

|













|

|













|







 







|

|











|

|







 







|

|







 







|











|







 







|

|







 







|

|







 







|







 







|













|







 







|

|







 







|

|











|







 







|
|
|







 







|

|











|







 







|

|







 







|







 







|







 







|

|











|







 







|
|
|







 







|

|











|







 







|

|







 







|

|











|







 







|

|











|
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<







 







|
|
|



|






|













|
|
|







 







|
|
|



|












|




|









|





|







 







|
>




|
|
|



|


|
>





|
>
>







 







|
|
|



|







 







|








|







 







|
|
|



|







|







 







|
|
|



|







 







|
|
|



|












|

|




|







|

|




|









|





|







|

|







 







|
|
|



|







 







|
|
|



|







|







 







|
|
|



|







|







 







|
|
|



|







 







|

|




|







 







|








|










|





|








|






|











|







 







|








|










|





|








|






|







 







|
|
|



|







|







 







|
|
|



|







|







 







|
|
|



|







|







 







|
|
|











>
>
>
>



|
|
|



|



>
>
>
>




|
>
>





>
>
>
>
>
>
>
>
>
>
>
>
>
>












|
|
|



|







|







 







|
|
|



|










|






|








|




|







 







|
|
|



|







 







|










|







 







|
|
|



|







|







 







|
|
|



|







|







 







|
|
|



|







|







 







|
|
|



|










|






|







 







|
|
|



|







|







 







|
|
|



|







 







|
|
|



|







|







 







|
|
|



|







|







 







|
|
|



|







|







 







|
|
|







 







|
|
|



|













|




|









|




|







 







|
|
|







 







|
|
|



|







|







 







|
|
|



|







|







 







|
|
|



|









|





|







|







 







|
|
|



|







|







 







|
|
|



|







|







 







>







 







>
>
>
>
>
>
>









>

>

|







26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
...
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
...
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
...
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
....
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
....
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
....
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
....
1761
1762
1763
1764
1765
1766
1767


1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
....
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
....
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
....
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
....
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
....
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
....
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
....
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
....
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
....
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
....
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
....
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
....
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
....
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
....
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
....
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
....
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
....
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
....
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
....
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
....
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
....
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
....
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
....
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
....
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
....
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
....
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
....
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
....
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
....
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
































3047
3048
3049
3050
3051
3052
3053
....
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
....
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
....
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
....
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
....
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
....
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
....
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
....
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
....
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
....
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
....
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
....
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
....
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
....
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
....
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
....
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
....
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
....
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
....
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
....
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
....
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
....
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
....
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
....
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
....
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
....
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
....
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
....
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
....
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
....
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
....
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
....
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
....
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
....
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
....
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
....
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
....
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
....
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
....
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
....
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
....
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
##

namespace eval ::PARSER {
    # # ## ### ##### ######## ############# #####################
    ## Supporting code for the main command.

    catch {
	#critcl::cflags -g
	#critcl::debug memory symbols
    }

    # # ## ### ###### ######## #############
    ## RDE runtime, inlined, and made static.

    # This is the C code for the RDE, i.e. the implementation
................................................................................
	    long int off  = tc->num;
	    char* ch;
	    int clen;
	    Tcl_UniChar uni;
	    if (len < 0) {
		len = strlen (string);
	    }
	    
	    if (!len) {
		return tc->str + base;
	    }
	    
	    if ((tc->num + len) >= tc->max) {
		int   new = len + (tc->max ? (2 * tc->max) : RDE_STACK_INITIAL_SIZE);
		char* str = ckrealloc (tc->str, new * sizeof(char));
		ASSERT (str,"Memory allocation failure for token character array");
		tc->max = new;
		tc->str = str;
................................................................................
	    ClientData clientData;
	} RDE_PARAM_;
	typedef int (*UniCharClass) (int);
	typedef enum test_class_id {
	    tc_alnum,
	    tc_alpha,
	    tc_ascii,
	    tc_control,
	    tc_ddigit,
	    tc_digit,
	    tc_graph,
	    tc_lower,
	    tc_printable,
	    tc_punct,
	    tc_space,
................................................................................
	rde_param_i_error_clear (RDE_PARAM p)
	{
	    ER_CLEAR (p);
	}
	SCOPE void
	rde_param_i_error_nonterminal (RDE_PARAM p, int s)
	{
	    
	    return;
	    long int pos;
	    if (!p->ER) return;
	    pos = 1 + (long int) rde_stack_top (p->LS);
	    if (p->ER->loc != pos) return;
	    error_set (p, s);
	    p->ER->loc = pos;
	}
................................................................................
	}
	SCOPE void
	rde_param_i_test_ascii (RDE_PARAM p)
	{
	    test_class (p, UniCharIsAscii, tc_ascii);
	}
	SCOPE void
	rde_param_i_test_control (RDE_PARAM p)
	{
	    test_class (p, Tcl_UniCharIsControl, tc_control);
	}
	SCOPE void
	rde_param_i_test_char (RDE_PARAM p, const char* c, int msg)
	{
	    ASSERT_BOUNDS(msg,p->numstr);
	    p->ST = Tcl_UtfNcmp (p->CC, c, 1) == 0;
	    if (p->ST) {
		ER_CLEAR (p);
	    } else {
		error_set (p, msg);
................................................................................
	SCOPE void
	rde_param_i_next_ascii (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_ascii (p);
	}
	SCOPE void
	rde_param_i_next_control (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_control (p);
	}
	SCOPE void
	rde_param_i_next_ddigit (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_ddigit (p);
	}
................................................................................
		p->CL = (long int) rde_stack_top (p->LS);
		rde_stack_push (p->ES, p->ER);
		if (p->ER) { p->ER->refCount ++; }
	    }
	    return p->ST;
	}
	SCOPE void
	rde_param_i_next_str (RDE_PARAM p, const char* str, int m)
	{
	    int at = p->CL;
	    
	    while (*str) {
		rde_param_i_input_next (p, m);
		if (!p->ST) {
		    p->ER->loc = at+1;
		    p->CL = at;
		    return;
		}
		rde_param_i_test_char (p, str, m);
		if (!p->ST) {
		    p->ER->loc = at+1;
		    p->CL = at;
		    return;
		}
		str = Tcl_UtfNext (str);
	    }
	}
	SCOPE void
	rde_param_i_next_class (RDE_PARAM p, const char* class, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    while (*class) {
		p->ST = Tcl_UtfNcmp (p->CC, class, 1) == 0;
		if (p->ST) {
		    ER_CLEAR (p);
................................................................................
        static void optional_137 (RDE_PARAM p);
        static void sequence_143 (RDE_PARAM p);
        static void sym_Definition (RDE_PARAM p);
        static void sequence_148 (RDE_PARAM p);
        static void sym_DIGIT (RDE_PARAM p);
        static void sequence_153 (RDE_PARAM p);
        static void sym_DOT (RDE_PARAM p);


        static void notahead_157 (RDE_PARAM p);
        static void sym_EOF (RDE_PARAM p);
        static void sym_EOL (RDE_PARAM p);
        static void sequence_165 (RDE_PARAM p);
        static void kleene_167 (RDE_PARAM p);
        static void sequence_169 (RDE_PARAM p);
        static void sym_Expression (RDE_PARAM p);
        static void sequence_176 (RDE_PARAM p);
        static void sym_Final (RDE_PARAM p);
        static void kleene_182 (RDE_PARAM p);
        static void sequence_186 (RDE_PARAM p);
        static void sym_Grammar (RDE_PARAM p);
        static void sequence_191 (RDE_PARAM p);
        static void sym_GRAPH (RDE_PARAM p);
        static void sequence_197 (RDE_PARAM p);
        static void sym_Header (RDE_PARAM p);
        static void choice_202 (RDE_PARAM p);
        static void choice_206 (RDE_PARAM p);
        static void kleene_208 (RDE_PARAM p);
        static void sequence_210 (RDE_PARAM p);
        static void sym_Ident (RDE_PARAM p);
        static void sequence_215 (RDE_PARAM p);
        static void sym_Identifier (RDE_PARAM p);
        static void sequence_220 (RDE_PARAM p);
        static void sym_IS (RDE_PARAM p);
        static void sequence_225 (RDE_PARAM p);
        static void sym_LEAF (RDE_PARAM p);
        static void notahead_230 (RDE_PARAM p);
        static void sequence_233 (RDE_PARAM p);
        static void kleene_235 (RDE_PARAM p);
        static void sequence_239 (RDE_PARAM p);
        static void notahead_243 (RDE_PARAM p);
        static void sequence_246 (RDE_PARAM p);
        static void kleene_248 (RDE_PARAM p);
        static void sequence_252 (RDE_PARAM p);
        static void choice_254 (RDE_PARAM p);
        static void sym_Literal (RDE_PARAM p);
        static void sequence_259 (RDE_PARAM p);
        static void sym_LOWER (RDE_PARAM p);
        static void sequence_264 (RDE_PARAM p);
        static void sym_NOT (RDE_PARAM p);
        static void sequence_269 (RDE_PARAM p);
        static void sym_OPEN (RDE_PARAM p);
        static void sym_OPENB (RDE_PARAM p);
        static void notahead_278 (RDE_PARAM p);
        static void sequence_281 (RDE_PARAM p);
        static void sym_PEG (RDE_PARAM p);
        static void sequence_286 (RDE_PARAM p);
        static void sym_PLUS (RDE_PARAM p);
        static void choice_291 (RDE_PARAM p);
        static void optional_293 (RDE_PARAM p);
        static void sequence_296 (RDE_PARAM p);
        static void sym_Prefix (RDE_PARAM p);
        static void sequence_317 (RDE_PARAM p);
        static void choice_322 (RDE_PARAM p);
        static void sym_Primary (RDE_PARAM p);
        static void sequence_327 (RDE_PARAM p);
        static void sym_PRINTABLE (RDE_PARAM p);
        static void sequence_332 (RDE_PARAM p);
        static void sym_PUNCT (RDE_PARAM p);
        static void sequence_337 (RDE_PARAM p);
        static void sym_QUESTION (RDE_PARAM p);
        static void sequence_343 (RDE_PARAM p);
        static void choice_346 (RDE_PARAM p);
        static void sym_Range (RDE_PARAM p);
        static void sequence_351 (RDE_PARAM p);
        static void sym_SEMICOLON (RDE_PARAM p);
        static void poskleene_355 (RDE_PARAM p);
        static void sym_Sequence (RDE_PARAM p);
        static void sequence_360 (RDE_PARAM p);
        static void sym_SLASH (RDE_PARAM p);
        static void sequence_365 (RDE_PARAM p);
        static void sym_SPACE (RDE_PARAM p);
        static void sequence_370 (RDE_PARAM p);
        static void sym_STAR (RDE_PARAM p);
        static void sym_StartExpr (RDE_PARAM p);
        static void choice_382 (RDE_PARAM p);
        static void optional_384 (RDE_PARAM p);
        static void sequence_386 (RDE_PARAM p);
        static void sym_Suffix (RDE_PARAM p);
        static void sym_TO (RDE_PARAM p);
        static void sequence_393 (RDE_PARAM p);
        static void sym_UPPER (RDE_PARAM p);
        static void sequence_398 (RDE_PARAM p);
        static void sym_VOID (RDE_PARAM p);
        static void choice_403 (RDE_PARAM p);
        static void kleene_405 (RDE_PARAM p);
        static void sym_WHITESPACE (RDE_PARAM p);
        static void sequence_410 (RDE_PARAM p);
        static void sym_WORDCHAR (RDE_PARAM p);
        static void sequence_415 (RDE_PARAM p);
        static void sym_XDIGIT (RDE_PARAM p);
        
        /*
         * Precomputed table of strings (symbols, error messages, etc.).
         */
        
        static char const* p_string [178] = {
            /*        0 = */   "alnum",
            /*        1 = */   "alpha",
            /*        2 = */   "ascii",
            /*        3 = */   "control",
            /*        4 = */   "ddigit",
            /*        5 = */   "digit",
            /*        6 = */   "graph",
            /*        7 = */   "lower",
            /*        8 = */   "print",
            /*        9 = */   "punct",
            /*       10 = */   "space",
            /*       11 = */   "upper",
            /*       12 = */   "wordchar",
            /*       13 = */   "xdigit",
            /*       14 = */   "str <alnum>",
            /*       15 = */   "n ALNUM",
            /*       16 = */   "ALNUM",
            /*       17 = */   "str <alpha>",
            /*       18 = */   "n ALPHA",
            /*       19 = */   "ALPHA",
            /*       20 = */   "t &",
            /*       21 = */   "n AND",
            /*       22 = */   "AND",
            /*       23 = */   "t '",
            /*       24 = */   "n APOSTROPH",
            /*       25 = */   "APOSTROPH",
            /*       26 = */   "str <ascii>",
            /*       27 = */   "n ASCII",
            /*       28 = */   "ASCII",
            /*       29 = */   "n Attribute",
            /*       30 = */   "Attribute",
            /*       31 = */   "n Char",
            /*       32 = */   "Char",
            /*       33 = */   "t \134",
            /*       34 = */   ".. 0 2",
            /*       35 = */   ".. 0 7",
            /*       36 = */   "n CharOctalFull",
            /*       37 = */   "CharOctalFull",
            /*       38 = */   "n CharOctalPart",
            /*       39 = */   "CharOctalPart",
            /*       40 = */   "cl nrt'\42\133\135\134",
            /*       41 = */   "n CharSpecial",
            /*       42 = */   "CharSpecial",
            /*       43 = */   "dot",
            /*       44 = */   "n CharUnescaped",
            /*       45 = */   "CharUnescaped",
            /*       46 = */   "str \134u",
            /*       47 = */   "n CharUnicode",
            /*       48 = */   "CharUnicode",
            /*       49 = */   "n Class",
            /*       50 = */   "Class",
            /*       51 = */   "t \51",
            /*       52 = */   "n CLOSE",
            /*       53 = */   "CLOSE",
            /*       54 = */   "t \135",
            /*       55 = */   "n CLOSEB",
            /*       56 = */   "CLOSEB",
            /*       57 = */   "t :",
            /*       58 = */   "n COLON",
            /*       59 = */   "COLON",
            /*       60 = */   "t #",
            /*       61 = */   "n COMMENT",
            /*       62 = */   "COMMENT",
            /*       63 = */   "str <control>",
            /*       64 = */   "n CONTROL",
            /*       65 = */   "CONTROL",
            /*       66 = */   "t \42",
            /*       67 = */   "n DAPOSTROPH",
            /*       68 = */   "DAPOSTROPH",
            /*       69 = */   "str <ddigit>",
            /*       70 = */   "n DDIGIT",
            /*       71 = */   "DDIGIT",
            /*       72 = */   "n Definition",
            /*       73 = */   "Definition",
            /*       74 = */   "str <digit>",
            /*       75 = */   "n DIGIT",
            /*       76 = */   "DIGIT",
            /*       77 = */   "t .",
            /*       78 = */   "n DOT",
            /*       79 = */   "DOT",
            /*       80 = */   "n EOF",
            /*       81 = */   "EOF",
            /*       82 = */   "cl \n\r",
            /*       83 = */   "n EOL",
            /*       84 = */   "EOL",
            /*       85 = */   "n Expression",
            /*       86 = */   "Expression",
            /*       87 = */   "str END",
            /*       88 = */   "n Final",
            /*       89 = */   "Final",
            /*       90 = */   "n Grammar",
            /*       91 = */   "Grammar",
            /*       92 = */   "str <graph>",
            /*       93 = */   "n GRAPH",
            /*       94 = */   "GRAPH",
            /*       95 = */   "n Header",
            /*       96 = */   "Header",
            /*       97 = */   "cl _:",
            /*       98 = */   "n Ident",
            /*       99 = */   "Ident",
            /*      100 = */   "n Identifier",
            /*      101 = */   "Identifier",
            /*      102 = */   "str <-",
            /*      103 = */   "n IS",
            /*      104 = */   "IS",
            /*      105 = */   "str leaf",
            /*      106 = */   "n LEAF",
            /*      107 = */   "LEAF",
            /*      108 = */   "n Literal",
            /*      109 = */   "Literal",
            /*      110 = */   "str <lower>",
            /*      111 = */   "n LOWER",
            /*      112 = */   "LOWER",
            /*      113 = */   "t !",
            /*      114 = */   "n NOT",
            /*      115 = */   "NOT",
            /*      116 = */   "t \50",
            /*      117 = */   "n OPEN",
            /*      118 = */   "OPEN",
            /*      119 = */   "t \133",
            /*      120 = */   "n OPENB",
            /*      121 = */   "OPENB",
            /*      122 = */   "str PEG",
            /*      123 = */   "n PEG",
            /*      124 = */   "PEG",
            /*      125 = */   "t +",
            /*      126 = */   "n PLUS",
            /*      127 = */   "PLUS",
            /*      128 = */   "n Prefix",
            /*      129 = */   "Prefix",
            /*      130 = */   "n Primary",
            /*      131 = */   "Primary",
            /*      132 = */   "str <print>",
            /*      133 = */   "n PRINTABLE",
            /*      134 = */   "PRINTABLE",
            /*      135 = */   "str <punct>",
            /*      136 = */   "n PUNCT",
            /*      137 = */   "PUNCT",
            /*      138 = */   "t ?",
            /*      139 = */   "n QUESTION",
            /*      140 = */   "QUESTION",
            /*      141 = */   "n Range",
            /*      142 = */   "Range",
            /*      143 = */   "t \73",
            /*      144 = */   "n SEMICOLON",
            /*      145 = */   "SEMICOLON",
            /*      146 = */   "n Sequence",
            /*      147 = */   "Sequence",
            /*      148 = */   "t /",
            /*      149 = */   "n SLASH",
            /*      150 = */   "SLASH",
            /*      151 = */   "str <space>",
            /*      152 = */   "n SPACE",
            /*      153 = */   "SPACE",
            /*      154 = */   "t *",
            /*      155 = */   "n STAR",
            /*      156 = */   "STAR",
            /*      157 = */   "n StartExpr",
            /*      158 = */   "StartExpr",
            /*      159 = */   "n Suffix",
            /*      160 = */   "Suffix",
            /*      161 = */   "t -",
            /*      162 = */   "n TO",
            /*      163 = */   "TO",
            /*      164 = */   "str <upper>",
            /*      165 = */   "n UPPER",
            /*      166 = */   "UPPER",
            /*      167 = */   "str void",
            /*      168 = */   "n VOID",
            /*      169 = */   "VOID",
            /*      170 = */   "n WHITESPACE",
            /*      171 = */   "WHITESPACE",
            /*      172 = */   "str <wordchar>",
            /*      173 = */   "n WORDCHAR",
            /*      174 = */   "WORDCHAR",
            /*      175 = */   "str <xdigit>",
            /*      176 = */   "n XDIGIT",
            /*      177 = */   "XDIGIT"
        };
        
        /*
         * Grammar Start Expression
         */
        
        static void MAIN (RDE_PARAM p) {
................................................................................
        static void sym_ALNUM (RDE_PARAM p) {
           /*
            * x
            *     "<alnum>"
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_start (p, 16)) return ;
            sequence_4 (p);
            rde_param_i_symbol_done_leaf (p, 16, 15);
            return;
        }
        
        static void sequence_4 (RDE_PARAM p) {
           /*
            * x
            *     "<alnum>"
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_str (p, "<alnum>", 14);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
        static void sym_ALPHA (RDE_PARAM p) {
           /*
            * x
            *     "<alpha>"
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_start (p, 19)) return ;
            sequence_9 (p);
            rde_param_i_symbol_done_leaf (p, 19, 18);
            return;
        }
        
        static void sequence_9 (RDE_PARAM p) {
           /*
            * x
            *     "<alpha>"
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_str (p, "<alpha>", 17);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
        static void sym_AND (RDE_PARAM p) {
           /*
            * x
            *     '&'
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_start (p, 22)) return ;
            sequence_14 (p);
            rde_param_i_symbol_done_leaf (p, 22, 21);
            return;
        }
        
        static void sequence_14 (RDE_PARAM p) {
           /*
            * x
            *     '&'
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_char (p, "&", 20);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
         */
        
        static void sym_APOSTROPH (RDE_PARAM p) {
           /*
            * '''
            */
        
            if (rde_param_i_symbol_void_start (p, 25)) return ;
            rde_param_i_next_char (p, "'", 23);
            rde_param_i_symbol_done_void (p, 25, 24);
            return;
        }
        
        /*
         * leaf Symbol 'ASCII'
         */
        
................................................................................
        static void sym_ASCII (RDE_PARAM p) {
           /*
            * x
            *     "<ascii>"
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_start (p, 28)) return ;
            sequence_21 (p);
            rde_param_i_symbol_done_leaf (p, 28, 27);
            return;
        }
        
        static void sequence_21 (RDE_PARAM p) {
           /*
            * x
            *     "<ascii>"
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_str (p, "<ascii>", 26);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
            * x
            *     /
            *         (VOID)
            *         (LEAF)
            *     (COLON)
            */
        
            if (rde_param_i_symbol_start_d (p, 30)) return ;
            sequence_29 (p);
            rde_param_i_symbol_done_d_reduce (p, 30, 29);
            return;
        }
        
        static void sequence_29 (RDE_PARAM p) {
           /*
            * x
            *     /
................................................................................
            *     (CharSpecial)
            *     (CharOctalFull)
            *     (CharOctalPart)
            *     (CharUnicode)
            *     (CharUnescaped)
            */
        
            if (rde_param_i_symbol_start_d (p, 32)) return ;
            choice_37 (p);
            rde_param_i_symbol_done_d_reduce (p, 32, 31);
            return;
        }
        
        static void choice_37 (RDE_PARAM p) {
           /*
            * /
            *     (CharSpecial)
................................................................................
            * x
            *     '\'
            *     range (0 .. 2)
            *     range (0 .. 7)
            *     range (0 .. 7)
            */
        
            if (rde_param_i_symbol_start (p, 37)) return ;
            sequence_44 (p);
            rde_param_i_symbol_done_leaf (p, 37, 36);
            return;
        }
        
        static void sequence_44 (RDE_PARAM p) {
           /*
            * x
            *     '\'
            *     range (0 .. 2)
            *     range (0 .. 7)
            *     range (0 .. 7)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_char (p, "\134", 33);
            if (rde_param_i_seq_void2void(p)) return;
            rde_param_i_next_range (p, "0", "2", 34);
            if (rde_param_i_seq_void2void(p)) return;
            rde_param_i_next_range (p, "0", "7", 35);
            if (rde_param_i_seq_void2void(p)) return;
            rde_param_i_next_range (p, "0", "7", 35);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
         * leaf Symbol 'CharOctalPart'
         */
................................................................................
            * x
            *     '\'
            *     range (0 .. 7)
            *     ?
            *         range (0 .. 7)
            */
        
            if (rde_param_i_symbol_start (p, 39)) return ;
            sequence_52 (p);
            rde_param_i_symbol_done_leaf (p, 39, 38);
            return;
        }
        
        static void sequence_52 (RDE_PARAM p) {
           /*
            * x
            *     '\'
            *     range (0 .. 7)
            *     ?
            *         range (0 .. 7)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_char (p, "\134", 33);
            if (rde_param_i_seq_void2void(p)) return;
            rde_param_i_next_range (p, "0", "7", 35);
            if (rde_param_i_seq_void2void(p)) return;
            optional_50 (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        static void optional_50 (RDE_PARAM p) {
           /*
            * ?
            *     range (0 .. 7)
            */
        
            rde_param_i_state_push_2 (p);
            rde_param_i_next_range (p, "0", "7", 35);
            rde_param_i_state_merge_ok (p);
            return;
        }
        
        /*
         * leaf Symbol 'CharSpecial'
         */
................................................................................
        static void sym_CharSpecial (RDE_PARAM p) {
           /*
            * x
            *     '\'
            *     [nrt'\"[]\]
            */
        
            if (rde_param_i_symbol_start (p, 42)) return ;
            sequence_57 (p);
            rde_param_i_symbol_done_leaf (p, 42, 41);
            return;
        }
        
        static void sequence_57 (RDE_PARAM p) {
           /*
            * x
            *     '\'
            *     [nrt'\"[]\]
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_char (p, "\134", 33);
            if (rde_param_i_seq_void2void(p)) return;
            rde_param_i_next_class (p, "nrt'\42\133\135\134", 40);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
         * leaf Symbol 'CharUnescaped'
         */
................................................................................
           /*
            * x
            *     !
            *         '\'
            *     <dot>
            */
        
            if (rde_param_i_symbol_start (p, 45)) return ;
            sequence_64 (p);
            rde_param_i_symbol_done_leaf (p, 45, 44);
            return;
        }
        
        static void sequence_64 (RDE_PARAM p) {
           /*
            * x
            *     !
................................................................................
            *         '\'
            *     <dot>
            */
        
            rde_param_i_state_push_void (p);
            notahead_61 (p);
            if (rde_param_i_seq_void2void(p)) return;
            rde_param_i_input_next (p, 43);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        static void notahead_61 (RDE_PARAM p) {
           /*
            * !
            *     '\'
            */
        
            rde_param_i_loc_push (p);
            rde_param_i_next_char (p, "\134", 33);
            rde_param_i_notahead_exit (p);
            return;
        }
        
        /*
         * leaf Symbol 'CharUnicode'
         */
................................................................................
            *             ?
            *                 x
            *                     <xdigit>
            *                     ?
            *                         <xdigit>
            */
        
            if (rde_param_i_symbol_start (p, 48)) return ;
            sequence_82 (p);
            rde_param_i_symbol_done_leaf (p, 48, 47);
            return;
        }
        
        static void sequence_82 (RDE_PARAM p) {
           /*
            * x
            *     "\u"
................................................................................
            *                 x
            *                     <xdigit>
            *                     ?
            *                         <xdigit>
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_str (p, "\134u", 46);
            if (rde_param_i_seq_void2void(p)) return;
            rde_param_i_next_xdigit (p, 13);
            if (rde_param_i_seq_void2void(p)) return;
            optional_80 (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        static void optional_80 (RDE_PARAM p) {
................................................................................
            *         x
            *             <xdigit>
            *             ?
            *                 <xdigit>
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_xdigit (p, 13);
            if (rde_param_i_seq_void2void(p)) return;
            optional_76 (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        static void optional_76 (RDE_PARAM p) {
................................................................................
            * x
            *     <xdigit>
            *     ?
            *         <xdigit>
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_xdigit (p, 13);
            if (rde_param_i_seq_void2void(p)) return;
            optional_72 (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        static void optional_72 (RDE_PARAM p) {
           /*
            * ?
            *     <xdigit>
            */
        
            rde_param_i_state_push_2 (p);
            rde_param_i_next_xdigit (p, 13);
            rde_param_i_state_merge_ok (p);
            return;
        }
        
        /*
         * value Symbol 'Class'
         */
................................................................................
            *             !
            *                 (CLOSEB)
            *             (Range)
            *     (CLOSEB)
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_start_d (p, 50)) return ;
            sequence_96 (p);
            rde_param_i_symbol_done_d_reduce (p, 50, 49);
            return;
        }
        
        static void sequence_96 (RDE_PARAM p) {
           /*
            * x
            *     (OPENB)
................................................................................
        static void sym_CLOSE (RDE_PARAM p) {
           /*
            * x
            *     '\)'
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_void_start (p, 53)) return ;
            sequence_101 (p);
            rde_param_i_symbol_done_void (p, 53, 52);
            return;
        }
        
        static void sequence_101 (RDE_PARAM p) {
           /*
            * x
            *     '\)'
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_char (p, "\51", 51);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
         */
        
        static void sym_CLOSEB (RDE_PARAM p) {
           /*
            * ']'
            */
        
            if (rde_param_i_symbol_void_start (p, 56)) return ;
            rde_param_i_next_char (p, "\135", 54);
            rde_param_i_symbol_done_void (p, 56, 55);
            return;
        }
        
        /*
         * void Symbol 'COLON'
         */
        
................................................................................
        static void sym_COLON (RDE_PARAM p) {
           /*
            * x
            *     ':'
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_void_start (p, 59)) return ;
            sequence_108 (p);
            rde_param_i_symbol_done_void (p, 59, 58);
            return;
        }
        
        static void sequence_108 (RDE_PARAM p) {
           /*
            * x
            *     ':'
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_char (p, ":", 57);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
            *         x
            *             !
            *                 (EOL)
            *             <dot>
            *     (EOL)
            */
        
            if (rde_param_i_symbol_void_start (p, 62)) return ;
            sequence_121 (p);
            rde_param_i_symbol_done_void (p, 62, 61);
            return;
        }
        
        static void sequence_121 (RDE_PARAM p) {
           /*
            * x
            *     '#'
................................................................................
            *             !
            *                 (EOL)
            *             <dot>
            *     (EOL)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_char (p, "#", 60);
            if (rde_param_i_seq_void2void(p)) return;
            kleene_118 (p);
            if (rde_param_i_seq_void2void(p)) return;
            sym_EOL (p);
            rde_param_i_state_merge_void (p);
            return;
        }
................................................................................
            *         (EOL)
            *     <dot>
            */
        
            rde_param_i_state_push_void (p);
            notahead_113 (p);
            if (rde_param_i_seq_void2void(p)) return;
            rde_param_i_input_next (p, 43);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        static void notahead_113 (RDE_PARAM p) {
           /*
            * !
................................................................................
        static void sym_CONTROL (RDE_PARAM p) {
           /*
            * x
            *     "<control>"
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_start (p, 65)) return ;
            sequence_126 (p);
            rde_param_i_symbol_done_leaf (p, 65, 64);
            return;
        }
        
        static void sequence_126 (RDE_PARAM p) {
           /*
            * x
            *     "<control>"
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_str (p, "<control>", 63);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
         */
        
        static void sym_DAPOSTROPH (RDE_PARAM p) {
           /*
            * '\"'
            */
        
            if (rde_param_i_symbol_void_start (p, 68)) return ;
            rde_param_i_next_char (p, "\42", 66);
            rde_param_i_symbol_done_void (p, 68, 67);
            return;
        }
        
        /*
         * leaf Symbol 'DDIGIT'
         */
        
................................................................................
        static void sym_DDIGIT (RDE_PARAM p) {
           /*
            * x
            *     "<ddigit>"
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_start (p, 71)) return ;
            sequence_133 (p);
            rde_param_i_symbol_done_leaf (p, 71, 70);
            return;
        }
        
        static void sequence_133 (RDE_PARAM p) {
           /*
            * x
            *     "<ddigit>"
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_str (p, "<ddigit>", 69);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
            *         (Attribute)
            *     (Identifier)
            *     (IS)
            *     (Expression)
            *     (SEMICOLON)
            */
        
            if (rde_param_i_symbol_start_d (p, 73)) return ;
            sequence_143 (p);
            rde_param_i_symbol_done_d_reduce (p, 73, 72);
            return;
        }
        
        static void sequence_143 (RDE_PARAM p) {
           /*
            * x
            *     ?
................................................................................
        static void sym_DIGIT (RDE_PARAM p) {
           /*
            * x
            *     "<digit>"
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_start (p, 76)) return ;
            sequence_148 (p);
            rde_param_i_symbol_done_leaf (p, 76, 75);
            return;
        }
        
        static void sequence_148 (RDE_PARAM p) {
           /*
            * x
            *     "<digit>"
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_str (p, "<digit>", 74);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
        static void sym_DOT (RDE_PARAM p) {
           /*
            * x
            *     '.'
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_start (p, 79)) return ;
            sequence_153 (p);
            rde_param_i_symbol_done_leaf (p, 79, 78);
            return;
        }
        
        static void sequence_153 (RDE_PARAM p) {
           /*
            * x
            *     '.'
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_char (p, ".", 77);
































            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
        
        static void sym_EOF (RDE_PARAM p) {
           /*
            * !
            *     <dot>
            */
        
            if (rde_param_i_symbol_void_start (p, 81)) return ;
            notahead_157 (p);
            rde_param_i_symbol_done_void (p, 81, 80);
            return;
        }
        
        static void notahead_157 (RDE_PARAM p) {
           /*
            * !
            *     <dot>
            */
        
            rde_param_i_loc_push (p);
            rde_param_i_input_next (p, 43);
            rde_param_i_notahead_exit (p);
            return;
        }
        
        /*
         * void Symbol 'EOL'
         */
        
        static void sym_EOL (RDE_PARAM p) {
           /*
            * [\n\r]
            */
        
            if (rde_param_i_symbol_void_start (p, 84)) return ;
            rde_param_i_next_class (p, "\n\r", 82);
            rde_param_i_symbol_done_void (p, 84, 83);
            return;
        }
        
        /*
         * value Symbol 'Expression'
         */
        
................................................................................
            *     (Sequence)
            *     *
            *         x
            *             (SLASH)
            *             (Sequence)
            */
        
            if (rde_param_i_symbol_start_d (p, 86)) return ;
            sequence_169 (p);
            rde_param_i_symbol_done_d_reduce (p, 86, 85);
            return;
        }
        
        static void sequence_169 (RDE_PARAM p) {
           /*
            * x
            *     (Sequence)
            *     *
            *         x
            *             (SLASH)
            *             (Sequence)
            */
        
            rde_param_i_state_push_value (p);
            sym_Sequence (p);
            if (rde_param_i_seq_value2value(p)) return;
            kleene_167 (p);
            rde_param_i_state_merge_value (p);
            return;
        }
        
        static void kleene_167 (RDE_PARAM p) {
           /*
            * *
            *     x
            *         (SLASH)
            *         (Sequence)
            */
        
            while (1) {
                rde_param_i_state_push_2 (p);
                sequence_165 (p);
                if (rde_param_i_kleene_close(p)) return;
            }
            return;
        }
        
        static void sequence_165 (RDE_PARAM p) {
           /*
            * x
            *     (SLASH)
            *     (Sequence)
            */
        
            rde_param_i_state_push_void (p);
................................................................................
        /*
         * void Symbol 'Final'
         */
        
        static void sym_Final (RDE_PARAM p) {
           /*
            * x
            *     "END"
            *     (WHITESPACE)
            *     (SEMICOLON)
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_void_start (p, 89)) return ;
            sequence_176 (p);
            rde_param_i_symbol_done_void (p, 89, 88);
            return;
        }
        
        static void sequence_176 (RDE_PARAM p) {
           /*
            * x
            *     "END"
            *     (WHITESPACE)
            *     (SEMICOLON)
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_str (p, "END", 87);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            if (rde_param_i_seq_void2void(p)) return;
            sym_SEMICOLON (p);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
................................................................................
            *     (Header)
            *     *
            *         (Definition)
            *     (Final)
            *     (EOF)
            */
        
            if (rde_param_i_symbol_start_d (p, 91)) return ;
            sequence_186 (p);
            rde_param_i_symbol_done_d_reduce (p, 91, 90);
            return;
        }
        
        static void sequence_186 (RDE_PARAM p) {
           /*
            * x
            *     (WHITESPACE)
            *     (Header)
            *     *
            *         (Definition)
            *     (Final)
................................................................................
            */
        
            rde_param_i_state_push_void (p);
            sym_WHITESPACE (p);
            if (rde_param_i_seq_void2value(p)) return;
            sym_Header (p);
            if (rde_param_i_seq_value2value(p)) return;
            kleene_182 (p);
            if (rde_param_i_seq_value2value(p)) return;
            sym_Final (p);
            if (rde_param_i_seq_value2value(p)) return;
            sym_EOF (p);
            rde_param_i_state_merge_value (p);
            return;
        }
        
        static void kleene_182 (RDE_PARAM p) {
           /*
            * *
            *     (Definition)
            */
        
            while (1) {
                rde_param_i_state_push_2 (p);
................................................................................
        static void sym_GRAPH (RDE_PARAM p) {
           /*
            * x
            *     "<graph>"
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_start (p, 94)) return ;
            sequence_191 (p);
            rde_param_i_symbol_done_leaf (p, 94, 93);
            return;
        }
        
        static void sequence_191 (RDE_PARAM p) {
           /*
            * x
            *     "<graph>"
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_str (p, "<graph>", 92);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
           /*
            * x
            *     (PEG)
            *     (Identifier)
            *     (StartExpr)
            */
        
            if (rde_param_i_symbol_start_d (p, 96)) return ;
            sequence_197 (p);
            rde_param_i_symbol_done_d_reduce (p, 96, 95);
            return;
        }
        
        static void sequence_197 (RDE_PARAM p) {
           /*
            * x
            *     (PEG)
            *     (Identifier)
            *     (StartExpr)
            */
        
................................................................................
            *         <alpha>
            *     *
            *         /
            *             [_:]
            *             <alnum>
            */
        
            if (rde_param_i_symbol_start (p, 99)) return ;
            sequence_210 (p);
            rde_param_i_symbol_done_leaf (p, 99, 98);
            return;
        }
        
        static void sequence_210 (RDE_PARAM p) {
           /*
            * x
            *     /
            *         [_:]
            *         <alpha>
            *     *
            *         /
            *             [_:]
            *             <alnum>
            */
        
            rde_param_i_state_push_void (p);
            choice_202 (p);
            if (rde_param_i_seq_void2void(p)) return;
            kleene_208 (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        static void choice_202 (RDE_PARAM p) {
           /*
            * /
            *     [_:]
            *     <alpha>
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_class (p, "_:", 97);
            if (rde_param_i_bra_void2void(p)) return;
            rde_param_i_next_alpha (p, 1);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        static void kleene_208 (RDE_PARAM p) {
           /*
            * *
            *     /
            *         [_:]
            *         <alnum>
            */
        
            while (1) {
                rde_param_i_state_push_2 (p);
                choice_206 (p);
                if (rde_param_i_kleene_close(p)) return;
            }
            return;
        }
        
        static void choice_206 (RDE_PARAM p) {
           /*
            * /
            *     [_:]
            *     <alnum>
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_class (p, "_:", 97);
            if (rde_param_i_bra_void2void(p)) return;
            rde_param_i_next_alnum (p, 0);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
         * value Symbol 'Identifier'
         */
................................................................................
        static void sym_Identifier (RDE_PARAM p) {
           /*
            * x
            *     (Ident)
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_start_d (p, 101)) return ;
            sequence_215 (p);
            rde_param_i_symbol_done_d_reduce (p, 101, 100);
            return;
        }
        
        static void sequence_215 (RDE_PARAM p) {
           /*
            * x
            *     (Ident)
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_value (p);
................................................................................
        static void sym_IS (RDE_PARAM p) {
           /*
            * x
            *     "<-"
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_void_start (p, 104)) return ;
            sequence_220 (p);
            rde_param_i_symbol_done_void (p, 104, 103);
            return;
        }
        
        static void sequence_220 (RDE_PARAM p) {
           /*
            * x
            *     "<-"
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_str (p, "<-", 102);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
        static void sym_LEAF (RDE_PARAM p) {
           /*
            * x
            *     "leaf"
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_start (p, 107)) return ;
            sequence_225 (p);
            rde_param_i_symbol_done_leaf (p, 107, 106);
            return;
        }
        
        static void sequence_225 (RDE_PARAM p) {
           /*
            * x
            *     "leaf"
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_str (p, "leaf", 105);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
            *                 !
            *                     (DAPOSTROPH)
            *                 (Char)
            *         (DAPOSTROPH)
            *         (WHITESPACE)
            */
        
            if (rde_param_i_symbol_start_d (p, 109)) return ;
            choice_254 (p);
            rde_param_i_symbol_done_d_reduce (p, 109, 108);
            return;
        }
        
        static void choice_254 (RDE_PARAM p) {
           /*
            * /
            *     x
            *         (APOSTROPH)
            *         *
            *             x
            *                 !
................................................................................
            *                     (DAPOSTROPH)
            *                 (Char)
            *         (DAPOSTROPH)
            *         (WHITESPACE)
            */
        
            rde_param_i_state_push_value (p);
            sequence_239 (p);
            if (rde_param_i_bra_value2value(p)) return;
            sequence_252 (p);
            rde_param_i_state_merge_value (p);
            return;
        }
        
        static void sequence_239 (RDE_PARAM p) {
           /*
            * x
            *     (APOSTROPH)
            *     *
            *         x
            *             !
            *                 (APOSTROPH)
................................................................................
            *     (APOSTROPH)
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            sym_APOSTROPH (p);
            if (rde_param_i_seq_void2value(p)) return;
            kleene_235 (p);
            if (rde_param_i_seq_value2value(p)) return;
            sym_APOSTROPH (p);
            if (rde_param_i_seq_value2value(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_value (p);
            return;
        }
        
        static void kleene_235 (RDE_PARAM p) {
           /*
            * *
            *     x
            *         !
            *             (APOSTROPH)
            *         (Char)
            */
        
            while (1) {
                rde_param_i_state_push_2 (p);
                sequence_233 (p);
                if (rde_param_i_kleene_close(p)) return;
            }
            return;
        }
        
        static void sequence_233 (RDE_PARAM p) {
           /*
            * x
            *     !
            *         (APOSTROPH)
            *     (Char)
            */
        
            rde_param_i_state_push_void (p);
            notahead_230 (p);
            if (rde_param_i_seq_void2value(p)) return;
            sym_Char (p);
            rde_param_i_state_merge_value (p);
            return;
        }
        
        static void notahead_230 (RDE_PARAM p) {
           /*
            * !
            *     (APOSTROPH)
            */
        
            rde_param_i_loc_push (p);
            sym_APOSTROPH (p);
            rde_param_i_notahead_exit (p);
            return;
        }
        
        static void sequence_252 (RDE_PARAM p) {
           /*
            * x
            *     (DAPOSTROPH)
            *     *
            *         x
            *             !
            *                 (DAPOSTROPH)
................................................................................
            *     (DAPOSTROPH)
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            sym_DAPOSTROPH (p);
            if (rde_param_i_seq_void2value(p)) return;
            kleene_248 (p);
            if (rde_param_i_seq_value2value(p)) return;
            sym_DAPOSTROPH (p);
            if (rde_param_i_seq_value2value(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_value (p);
            return;
        }
        
        static void kleene_248 (RDE_PARAM p) {
           /*
            * *
            *     x
            *         !
            *             (DAPOSTROPH)
            *         (Char)
            */
        
            while (1) {
                rde_param_i_state_push_2 (p);
                sequence_246 (p);
                if (rde_param_i_kleene_close(p)) return;
            }
            return;
        }
        
        static void sequence_246 (RDE_PARAM p) {
           /*
            * x
            *     !
            *         (DAPOSTROPH)
            *     (Char)
            */
        
            rde_param_i_state_push_void (p);
            notahead_243 (p);
            if (rde_param_i_seq_void2value(p)) return;
            sym_Char (p);
            rde_param_i_state_merge_value (p);
            return;
        }
        
        static void notahead_243 (RDE_PARAM p) {
           /*
            * !
            *     (DAPOSTROPH)
            */
        
            rde_param_i_loc_push (p);
            sym_DAPOSTROPH (p);
................................................................................
        static void sym_LOWER (RDE_PARAM p) {
           /*
            * x
            *     "<lower>"
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_start (p, 112)) return ;
            sequence_259 (p);
            rde_param_i_symbol_done_leaf (p, 112, 111);
            return;
        }
        
        static void sequence_259 (RDE_PARAM p) {
           /*
            * x
            *     "<lower>"
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_str (p, "<lower>", 110);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
        static void sym_NOT (RDE_PARAM p) {
           /*
            * x
            *     '!'
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_start (p, 115)) return ;
            sequence_264 (p);
            rde_param_i_symbol_done_leaf (p, 115, 114);
            return;
        }
        
        static void sequence_264 (RDE_PARAM p) {
           /*
            * x
            *     '!'
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_char (p, "!", 113);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
        static void sym_OPEN (RDE_PARAM p) {
           /*
            * x
            *     '\('
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_void_start (p, 118)) return ;
            sequence_269 (p);
            rde_param_i_symbol_done_void (p, 118, 117);
            return;
        }
        
        static void sequence_269 (RDE_PARAM p) {
           /*
            * x
            *     '\('
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_char (p, "\50", 116);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
         */
        
        static void sym_OPENB (RDE_PARAM p) {
           /*
            * '['
            */
        
            if (rde_param_i_symbol_void_start (p, 121)) return ;
            rde_param_i_next_char (p, "\133", 119);
            rde_param_i_symbol_done_void (p, 121, 120);
            return;
        }
        
        /*
         * void Symbol 'PEG'
         */
        
        static void sym_PEG (RDE_PARAM p) {
           /*
            * x
            *     "PEG"
            *     !
            *         /
            *             [_:]
            *             <alnum>
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_void_start (p, 124)) return ;
            sequence_281 (p);
            rde_param_i_symbol_done_void (p, 124, 123);
            return;
        }
        
        static void sequence_281 (RDE_PARAM p) {
           /*
            * x
            *     "PEG"
            *     !
            *         /
            *             [_:]
            *             <alnum>
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_str (p, "PEG", 122);
            if (rde_param_i_seq_void2void(p)) return;
            notahead_278 (p);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        static void notahead_278 (RDE_PARAM p) {
           /*
            * !
            *     /
            *         [_:]
            *         <alnum>
            */
        
            rde_param_i_loc_push (p);
            choice_206 (p);
            rde_param_i_notahead_exit (p);
            return;
        }
        
        /*
         * leaf Symbol 'PLUS'
         */
        
        static void sym_PLUS (RDE_PARAM p) {
           /*
            * x
            *     '+'
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_start (p, 127)) return ;
            sequence_286 (p);
            rde_param_i_symbol_done_leaf (p, 127, 126);
            return;
        }
        
        static void sequence_286 (RDE_PARAM p) {
           /*
            * x
            *     '+'
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_char (p, "+", 125);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
            *     ?
            *         /
            *             (AND)
            *             (NOT)
            *     (Suffix)
            */
        
            if (rde_param_i_symbol_start_d (p, 129)) return ;
            sequence_296 (p);
            rde_param_i_symbol_done_d_reduce (p, 129, 128);
            return;
        }
        
        static void sequence_296 (RDE_PARAM p) {
           /*
            * x
            *     ?
            *         /
            *             (AND)
            *             (NOT)
            *     (Suffix)
            */
        
            rde_param_i_state_push_value (p);
            optional_293 (p);
            if (rde_param_i_seq_value2value(p)) return;
            sym_Suffix (p);
            rde_param_i_state_merge_value (p);
            return;
        }
        
        static void optional_293 (RDE_PARAM p) {
           /*
            * ?
            *     /
            *         (AND)
            *         (NOT)
            */
        
            rde_param_i_state_push_2 (p);
            choice_291 (p);
            rde_param_i_state_merge_ok (p);
            return;
        }
        
        static void choice_291 (RDE_PARAM p) {
           /*
            * /
            *     (AND)
            *     (NOT)
            */
        
            rde_param_i_state_push_value (p);
................................................................................
            *         (Expression)
            *         (CLOSE)
            *     (Literal)
            *     (Class)
            *     (DOT)
            */
        
            if (rde_param_i_symbol_start_d (p, 131)) return ;
            choice_322 (p);
            rde_param_i_symbol_done_d_reduce (p, 131, 130);
            return;
        }
        
        static void choice_322 (RDE_PARAM p) {
           /*
            * /
            *     (ALNUM)
            *     (ALPHA)
            *     (ASCII)
            *     (CONTROL)
            *     (DDIGIT)
................................................................................
            if (rde_param_i_bra_value2value(p)) return;
            sym_WORDCHAR (p);
            if (rde_param_i_bra_value2value(p)) return;
            sym_XDIGIT (p);
            if (rde_param_i_bra_value2value(p)) return;
            sym_Identifier (p);
            if (rde_param_i_bra_value2value(p)) return;
            sequence_317 (p);
            if (rde_param_i_bra_value2value(p)) return;
            sym_Literal (p);
            if (rde_param_i_bra_value2value(p)) return;
            sym_Class (p);
            if (rde_param_i_bra_value2value(p)) return;
            sym_DOT (p);
            rde_param_i_state_merge_value (p);
            return;
        }
        
        static void sequence_317 (RDE_PARAM p) {
           /*
            * x
            *     (OPEN)
            *     (Expression)
            *     (CLOSE)
            */
        
................................................................................
        static void sym_PRINTABLE (RDE_PARAM p) {
           /*
            * x
            *     "<print>"
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_start (p, 134)) return ;
            sequence_327 (p);
            rde_param_i_symbol_done_leaf (p, 134, 133);
            return;
        }
        
        static void sequence_327 (RDE_PARAM p) {
           /*
            * x
            *     "<print>"
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_str (p, "<print>", 132);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
        static void sym_PUNCT (RDE_PARAM p) {
           /*
            * x
            *     "<punct>"
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_start (p, 137)) return ;
            sequence_332 (p);
            rde_param_i_symbol_done_leaf (p, 137, 136);
            return;
        }
        
        static void sequence_332 (RDE_PARAM p) {
           /*
            * x
            *     "<punct>"
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_str (p, "<punct>", 135);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
        static void sym_QUESTION (RDE_PARAM p) {
           /*
            * x
            *     '?'
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_start (p, 140)) return ;
            sequence_337 (p);
            rde_param_i_symbol_done_leaf (p, 140, 139);
            return;
        }
        
        static void sequence_337 (RDE_PARAM p) {
           /*
            * x
            *     '?'
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_char (p, "?", 138);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
            *     x
            *         (Char)
            *         (TO)
            *         (Char)
            *     (Char)
            */
        
            if (rde_param_i_symbol_start_d (p, 142)) return ;
            choice_346 (p);
            rde_param_i_symbol_done_d_reduce (p, 142, 141);
            return;
        }
        
        static void choice_346 (RDE_PARAM p) {
           /*
            * /
            *     x
            *         (Char)
            *         (TO)
            *         (Char)
            *     (Char)
            */
        
            rde_param_i_state_push_value (p);
            sequence_343 (p);
            if (rde_param_i_bra_value2value(p)) return;
            sym_Char (p);
            rde_param_i_state_merge_value (p);
            return;
        }
        
        static void sequence_343 (RDE_PARAM p) {
           /*
            * x
            *     (Char)
            *     (TO)
            *     (Char)
            */
        
................................................................................
        static void sym_SEMICOLON (RDE_PARAM p) {
           /*
            * x
            *     ';'
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_void_start (p, 145)) return ;
            sequence_351 (p);
            rde_param_i_symbol_done_void (p, 145, 144);
            return;
        }
        
        static void sequence_351 (RDE_PARAM p) {
           /*
            * x
            *     ';'
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_char (p, "\73", 143);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
        
        static void sym_Sequence (RDE_PARAM p) {
           /*
            * +
            *     (Prefix)
            */
        
            if (rde_param_i_symbol_start_d (p, 147)) return ;
            poskleene_355 (p);
            rde_param_i_symbol_done_d_reduce (p, 147, 146);
            return;
        }
        
        static void poskleene_355 (RDE_PARAM p) {
           /*
            * +
            *     (Prefix)
            */
        
            rde_param_i_loc_push (p);
            sym_Prefix (p);
................................................................................
        static void sym_SLASH (RDE_PARAM p) {
           /*
            * x
            *     '/'
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_void_start (p, 150)) return ;
            sequence_360 (p);
            rde_param_i_symbol_done_void (p, 150, 149);
            return;
        }
        
        static void sequence_360 (RDE_PARAM p) {
           /*
            * x
            *     '/'
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_char (p, "/", 148);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
        static void sym_SPACE (RDE_PARAM p) {
           /*
            * x
            *     "<space>"
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_start (p, 153)) return ;
            sequence_365 (p);
            rde_param_i_symbol_done_leaf (p, 153, 152);
            return;
        }
        
        static void sequence_365 (RDE_PARAM p) {
           /*
            * x
            *     "<space>"
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_str (p, "<space>", 151);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
        static void sym_STAR (RDE_PARAM p) {
           /*
            * x
            *     '*'
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_start (p, 156)) return ;
            sequence_370 (p);
            rde_param_i_symbol_done_leaf (p, 156, 155);
            return;
        }
        
        static void sequence_370 (RDE_PARAM p) {
           /*
            * x
            *     '*'
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_char (p, "*", 154);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
           /*
            * x
            *     (OPEN)
            *     (Expression)
            *     (CLOSE)
            */
        
            if (rde_param_i_symbol_start_d (p, 158)) return ;
            sequence_317 (p);
            rde_param_i_symbol_done_d_reduce (p, 158, 157);
            return;
        }
        
        /*
         * value Symbol 'Suffix'
         */
        
................................................................................
            *     ?
            *         /
            *             (QUESTION)
            *             (STAR)
            *             (PLUS)
            */
        
            if (rde_param_i_symbol_start_d (p, 160)) return ;
            sequence_386 (p);
            rde_param_i_symbol_done_d_reduce (p, 160, 159);
            return;
        }
        
        static void sequence_386 (RDE_PARAM p) {
           /*
            * x
            *     (Primary)
            *     ?
            *         /
            *             (QUESTION)
            *             (STAR)
            *             (PLUS)
            */
        
            rde_param_i_state_push_value (p);
            sym_Primary (p);
            if (rde_param_i_seq_value2value(p)) return;
            optional_384 (p);
            rde_param_i_state_merge_value (p);
            return;
        }
        
        static void optional_384 (RDE_PARAM p) {
           /*
            * ?
            *     /
            *         (QUESTION)
            *         (STAR)
            *         (PLUS)
            */
        
            rde_param_i_state_push_2 (p);
            choice_382 (p);
            rde_param_i_state_merge_ok (p);
            return;
        }
        
        static void choice_382 (RDE_PARAM p) {
           /*
            * /
            *     (QUESTION)
            *     (STAR)
            *     (PLUS)
            */
        
................................................................................
         */
        
        static void sym_TO (RDE_PARAM p) {
           /*
            * '-'
            */
        
            if (rde_param_i_symbol_void_start (p, 163)) return ;
            rde_param_i_next_char (p, "-", 161);
            rde_param_i_symbol_done_void (p, 163, 162);
            return;
        }
        
        /*
         * leaf Symbol 'UPPER'
         */
        
................................................................................
        static void sym_UPPER (RDE_PARAM p) {
           /*
            * x
            *     "<upper>"
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_start (p, 166)) return ;
            sequence_393 (p);
            rde_param_i_symbol_done_leaf (p, 166, 165);
            return;
        }
        
        static void sequence_393 (RDE_PARAM p) {
           /*
            * x
            *     "<upper>"
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_str (p, "<upper>", 164);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
        static void sym_VOID (RDE_PARAM p) {
           /*
            * x
            *     "void"
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_start (p, 169)) return ;
            sequence_398 (p);
            rde_param_i_symbol_done_leaf (p, 169, 168);
            return;
        }
        
        static void sequence_398 (RDE_PARAM p) {
           /*
            * x
            *     "void"
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_str (p, "void", 167);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
           /*
            * *
            *     /
            *         <space>
            *         (COMMENT)
            */
        
            if (rde_param_i_symbol_void_start (p, 171)) return ;
            kleene_405 (p);
            rde_param_i_symbol_done_void (p, 171, 170);
            return;
        }
        
        static void kleene_405 (RDE_PARAM p) {
           /*
            * *
            *     /
            *         <space>
            *         (COMMENT)
            */
        
            while (1) {
                rde_param_i_state_push_2 (p);
                choice_403 (p);
                if (rde_param_i_kleene_close(p)) return;
            }
            return;
        }
        
        static void choice_403 (RDE_PARAM p) {
           /*
            * /
            *     <space>
            *     (COMMENT)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_space (p, 10);
            if (rde_param_i_bra_void2void(p)) return;
            sym_COMMENT (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
        static void sym_WORDCHAR (RDE_PARAM p) {
           /*
            * x
            *     "<wordchar>"
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_start (p, 174)) return ;
            sequence_410 (p);
            rde_param_i_symbol_done_leaf (p, 174, 173);
            return;
        }
        
        static void sequence_410 (RDE_PARAM p) {
           /*
            * x
            *     "<wordchar>"
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_str (p, "<wordchar>", 172);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
        /*
................................................................................
        static void sym_XDIGIT (RDE_PARAM p) {
           /*
            * x
            *     "<xdigit>"
            *     (WHITESPACE)
            */
        
            if (rde_param_i_symbol_start (p, 177)) return ;
            sequence_415 (p);
            rde_param_i_symbol_done_leaf (p, 177, 176);
            return;
        }
        
        static void sequence_415 (RDE_PARAM p) {
           /*
            * x
            *     "<xdigit>"
            *     (WHITESPACE)
            */
        
            rde_param_i_state_push_void (p);
            rde_param_i_next_str (p, "<xdigit>", 175);
            if (rde_param_i_seq_void2void(p)) return;
            sym_WHITESPACE (p);
            rde_param_i_state_merge_void (p);
            return;
        }
        
    }
................................................................................

	    rde_param_reset (p, NULL);
	    rde_param_data  (p, buf, len);
	    MAIN (p) ; /* Entrypoint for the generated code. */
	    return COMPLETE (p, interp);
	}

	/* See also rde_critcl/m.c, param_COMPLETE() */
	static int COMPLETE (RDE_PARAM p, Tcl_Interp* interp)
	{
	    if (rde_param_query_st (p)) {
		long int  ac;
		Tcl_Obj** av;

		rde_param_query_ast (p, &ac, &av);
................................................................................
		    memcpy(lv + 3, av, ac * sizeof (Tcl_Obj*));
		    lv [0] = Tcl_NewObj ();
		    lv [1] = Tcl_NewIntObj (1 + lsv [lsc-1]);
		    lv [2] = Tcl_NewIntObj (rde_param_query_cl (p));

		    Tcl_SetObjResult (interp, Tcl_NewListObj (3, lv));
		    ckfree ((char*) lv);

		} else if (ac == 0) {
		    /*
		     * Match, but no AST. This is possible if the grammar
		     * consists of only the start expression.
		     */
		    Tcl_SetObjResult (interp, Tcl_NewStringObj ("",-1));
		} else {
		    Tcl_SetObjResult (interp, av [0]);
		}

		return TCL_OK;
	    } else {
		Tcl_Obj* xv [1];
		const ERROR_STATE* er = rde_param_query_er (p);
		Tcl_Obj* res = rde_param_query_er_tcl (p, er);
		/* res = list (location, list(msg)) */

		/* Stick the exception type-tag before the existing elements */
		xv [0] = Tcl_NewStringObj ("pt::rde",-1);
		Tcl_ListObjReplace(interp, res, 0, 0, 1, xv);

		Tcl_SetObjResult (interp, res);
		return TCL_ERROR;
	    }
	}
    }

Changes to modules/pt/tests/data/ok/peg_cparam-critcl/4_choice.

26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
...
382
383
384
385
386
387
388




389
390
391
392
393
394
395
...
477
478
479
480
481
482
483

484
485
486
487
488
489
490
...
818
819
820
821
822
823
824


825
826
827
828
829
830
831
....
1047
1048
1049
1050
1051
1052
1053





1054
1055
1056
1057
1058
1059
1060
1061
....
1354
1355
1356
1357
1358
1359
1360







1361
1362
1363
1364
1365
1366
1367
....
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643

1644
1645
1646

1647
1648
1649
1650
1651

1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
....
1686
1687
1688
1689
1690
1691
1692
1693
1694














1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
....
1802
1803
1804
1805
1806
1807
1808

1809
1810
1811
1812
1813
1814
1815
....
1824
1825
1826
1827
1828
1829
1830







1831
1832
1833
1834
1835
1836
1837
1838
1839

1840

1841
1842
1843
1844
1845
1846
1847
1848
1849
##

namespace eval ::PARSER {
    # # ## ### ##### ######## ############# #####################
    ## Supporting code for the main command.

    catch {
	#critcl::cheaders -g
	#critcl::debug memory symbols
    }

    # # ## ### ###### ######## #############
    ## RDE runtime, inlined, and made static.

    # This is the C code for the RDE, i.e. the implementation
................................................................................
	    long int off  = tc->num;
	    char* ch;
	    int clen;
	    Tcl_UniChar uni;
	    if (len < 0) {
		len = strlen (string);
	    }




	    
	    if ((tc->num + len) >= tc->max) {
		int   new = len + (tc->max ? (2 * tc->max) : RDE_STACK_INITIAL_SIZE);
		char* str = ckrealloc (tc->str, new * sizeof(char));
		ASSERT (str,"Memory allocation failure for token character array");
		tc->max = new;
		tc->str = str;
................................................................................
	    ClientData clientData;
	} RDE_PARAM_;
	typedef int (*UniCharClass) (int);
	typedef enum test_class_id {
	    tc_alnum,
	    tc_alpha,
	    tc_ascii,

	    tc_ddigit,
	    tc_digit,
	    tc_graph,
	    tc_lower,
	    tc_printable,
	    tc_punct,
	    tc_space,
................................................................................
	rde_param_i_error_clear (RDE_PARAM p)
	{
	    ER_CLEAR (p);
	}
	SCOPE void
	rde_param_i_error_nonterminal (RDE_PARAM p, int s)
	{


	    long int pos;
	    if (!p->ER) return;
	    pos = 1 + (long int) rde_stack_top (p->LS);
	    if (p->ER->loc != pos) return;
	    error_set (p, s);
	    p->ER->loc = pos;
	}
................................................................................
	}
	SCOPE void
	rde_param_i_test_ascii (RDE_PARAM p)
	{
	    test_class (p, UniCharIsAscii, tc_ascii);
	}
	SCOPE void





	rde_param_i_test_char (RDE_PARAM p, char* c, int msg)
	{
	    ASSERT_BOUNDS(msg,p->numstr);
	    p->ST = Tcl_UtfNcmp (p->CC, c, 1) == 0;
	    if (p->ST) {
		ER_CLEAR (p);
	    } else {
		error_set (p, msg);
................................................................................
	SCOPE void
	rde_param_i_next_ascii (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_ascii (p);
	}







	SCOPE void
	rde_param_i_next_ddigit (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_ddigit (p);
	}
................................................................................
		p->CL = (long int) rde_stack_top (p->LS);
		rde_stack_push (p->ES, p->ER);
		if (p->ER) { p->ER->refCount ++; }
	    }
	    return p->ST;
	}
	SCOPE void
	rde_param_i_next_str (RDE_PARAM p, char* str, int m)
	{
	    int at = p->CL;

	    while (*str) {
		rde_param_i_input_next (p, m);
		if (!p->ST) {

		    p->CL = at;
		    return;
		}
		rde_param_i_test_char (p, str, m);
		if (!p->ST) {

		    p->CL = at;
		    return;
		}
		str = Tcl_UtfNext (str);
	    }
	}
	SCOPE void
	rde_param_i_next_class (RDE_PARAM p, char* class, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    while (*class) {
		p->ST = Tcl_UtfNcmp (p->CC, class, 1) == 0;
		if (p->ST) {
		    ER_CLEAR (p);
................................................................................
         */
        
        
        /*
         * Precomputed table of strings (symbols, error messages, etc.).
         */
        
        static char const* p_string [1] = {
            /*        0 = */   "cl 'abc'"














        };
        
        /*
         * Grammar Start Expression
         */
        
        static void MAIN (RDE_PARAM p) {
            rde_param_i_next_class (p, "abc", 0);
            return;
        }
        
    }

    ## END of GENERATED CODE. DO NOT EDIT.
    # # ## ### ###### ######## #############
................................................................................

	    rde_param_reset (p, NULL);
	    rde_param_data  (p, buf, len);
	    MAIN (p) ; /* Entrypoint for the generated code. */
	    return COMPLETE (p, interp);
	}


	static int COMPLETE (RDE_PARAM p, Tcl_Interp* interp)
	{
	    if (rde_param_query_st (p)) {
		long int  ac;
		Tcl_Obj** av;

		rde_param_query_ast (p, &ac, &av);
................................................................................
		    memcpy(lv + 3, av, ac * sizeof (Tcl_Obj*));
		    lv [0] = Tcl_NewObj ();
		    lv [1] = Tcl_NewIntObj (1 + lsv [lsc-1]);
		    lv [2] = Tcl_NewIntObj (rde_param_query_cl (p));

		    Tcl_SetObjResult (interp, Tcl_NewListObj (3, lv));
		    ckfree ((char*) lv);







		} else {
		    Tcl_SetObjResult (interp, av [0]);
		}

		return TCL_OK;
	    } else {
		Tcl_Obj* xv [1];
		const ERROR_STATE* er = rde_param_query_er (p);
		Tcl_Obj* res = rde_param_query_er_tcl (p, er);



		xv [0] = Tcl_NewStringObj ("pt::rde",-1);
		Tcl_ListObjReplace(interp, res, 0, 1, 1, xv);

		Tcl_SetObjResult (interp, res);
		return TCL_ERROR;
	    }
	}
    }







|







 







>
>
>
>







 







>







 







>
>







 







>
>
>
>
>
|







 







>
>
>
>
>
>
>







 







|


>



>





>







|







 







|
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>







|







 







>







 







>
>
>
>
>
>
>









>

>

|







26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
...
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
...
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
...
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
....
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
....
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
....
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
....
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
....
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
....
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
##

namespace eval ::PARSER {
    # # ## ### ##### ######## ############# #####################
    ## Supporting code for the main command.

    catch {
	#critcl::cflags -g
	#critcl::debug memory symbols
    }

    # # ## ### ###### ######## #############
    ## RDE runtime, inlined, and made static.

    # This is the C code for the RDE, i.e. the implementation
................................................................................
	    long int off  = tc->num;
	    char* ch;
	    int clen;
	    Tcl_UniChar uni;
	    if (len < 0) {
		len = strlen (string);
	    }
	    
	    if (!len) {
		return tc->str + base;
	    }
	    
	    if ((tc->num + len) >= tc->max) {
		int   new = len + (tc->max ? (2 * tc->max) : RDE_STACK_INITIAL_SIZE);
		char* str = ckrealloc (tc->str, new * sizeof(char));
		ASSERT (str,"Memory allocation failure for token character array");
		tc->max = new;
		tc->str = str;
................................................................................
	    ClientData clientData;
	} RDE_PARAM_;
	typedef int (*UniCharClass) (int);
	typedef enum test_class_id {
	    tc_alnum,
	    tc_alpha,
	    tc_ascii,
	    tc_control,
	    tc_ddigit,
	    tc_digit,
	    tc_graph,
	    tc_lower,
	    tc_printable,
	    tc_punct,
	    tc_space,
................................................................................
	rde_param_i_error_clear (RDE_PARAM p)
	{
	    ER_CLEAR (p);
	}
	SCOPE void
	rde_param_i_error_nonterminal (RDE_PARAM p, int s)
	{
	    
	    return;
	    long int pos;
	    if (!p->ER) return;
	    pos = 1 + (long int) rde_stack_top (p->LS);
	    if (p->ER->loc != pos) return;
	    error_set (p, s);
	    p->ER->loc = pos;
	}
................................................................................
	}
	SCOPE void
	rde_param_i_test_ascii (RDE_PARAM p)
	{
	    test_class (p, UniCharIsAscii, tc_ascii);
	}
	SCOPE void
	rde_param_i_test_control (RDE_PARAM p)
	{
	    test_class (p, Tcl_UniCharIsControl, tc_control);
	}
	SCOPE void
	rde_param_i_test_char (RDE_PARAM p, const char* c, int msg)
	{
	    ASSERT_BOUNDS(msg,p->numstr);
	    p->ST = Tcl_UtfNcmp (p->CC, c, 1) == 0;
	    if (p->ST) {
		ER_CLEAR (p);
	    } else {
		error_set (p, msg);
................................................................................
	SCOPE void
	rde_param_i_next_ascii (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_ascii (p);
	}
	SCOPE void
	rde_param_i_next_control (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_control (p);
	}
	SCOPE void
	rde_param_i_next_ddigit (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_ddigit (p);
	}
................................................................................
		p->CL = (long int) rde_stack_top (p->LS);
		rde_stack_push (p->ES, p->ER);
		if (p->ER) { p->ER->refCount ++; }
	    }
	    return p->ST;
	}
	SCOPE void
	rde_param_i_next_str (RDE_PARAM p, const char* str, int m)
	{
	    int at = p->CL;
	    
	    while (*str) {
		rde_param_i_input_next (p, m);
		if (!p->ST) {
		    p->ER->loc = at+1;
		    p->CL = at;
		    return;
		}
		rde_param_i_test_char (p, str, m);
		if (!p->ST) {
		    p->ER->loc = at+1;
		    p->CL = at;
		    return;
		}
		str = Tcl_UtfNext (str);
	    }
	}
	SCOPE void
	rde_param_i_next_class (RDE_PARAM p, const char* class, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    while (*class) {
		p->ST = Tcl_UtfNcmp (p->CC, class, 1) == 0;
		if (p->ST) {
		    ER_CLEAR (p);
................................................................................
         */
        
        
        /*
         * Precomputed table of strings (symbols, error messages, etc.).
         */
        
        static char const* p_string [15] = {
            /*        0 = */   "alnum",
            /*        1 = */   "alpha",
            /*        2 = */   "ascii",
            /*        3 = */   "control",
            /*        4 = */   "ddigit",
            /*        5 = */   "digit",
            /*        6 = */   "graph",
            /*        7 = */   "lower",
            /*        8 = */   "print",
            /*        9 = */   "punct",
            /*       10 = */   "space",
            /*       11 = */   "upper",
            /*       12 = */   "wordchar",
            /*       13 = */   "xdigit",
            /*       14 = */   "cl abc"
        };
        
        /*
         * Grammar Start Expression
         */
        
        static void MAIN (RDE_PARAM p) {
            rde_param_i_next_class (p, "abc", 14);
            return;
        }
        
    }

    ## END of GENERATED CODE. DO NOT EDIT.
    # # ## ### ###### ######## #############
................................................................................

	    rde_param_reset (p, NULL);
	    rde_param_data  (p, buf, len);
	    MAIN (p) ; /* Entrypoint for the generated code. */
	    return COMPLETE (p, interp);
	}

	/* See also rde_critcl/m.c, param_COMPLETE() */
	static int COMPLETE (RDE_PARAM p, Tcl_Interp* interp)
	{
	    if (rde_param_query_st (p)) {
		long int  ac;
		Tcl_Obj** av;

		rde_param_query_ast (p, &ac, &av);
................................................................................
		    memcpy(lv + 3, av, ac * sizeof (Tcl_Obj*));
		    lv [0] = Tcl_NewObj ();
		    lv [1] = Tcl_NewIntObj (1 + lsv [lsc-1]);
		    lv [2] = Tcl_NewIntObj (rde_param_query_cl (p));

		    Tcl_SetObjResult (interp, Tcl_NewListObj (3, lv));
		    ckfree ((char*) lv);

		} else if (ac == 0) {
		    /*
		     * Match, but no AST. This is possible if the grammar
		     * consists of only the start expression.
		     */
		    Tcl_SetObjResult (interp, Tcl_NewStringObj ("",-1));
		} else {
		    Tcl_SetObjResult (interp, av [0]);
		}

		return TCL_OK;
	    } else {
		Tcl_Obj* xv [1];
		const ERROR_STATE* er = rde_param_query_er (p);
		Tcl_Obj* res = rde_param_query_er_tcl (p, er);
		/* res = list (location, list(msg)) */

		/* Stick the exception type-tag before the existing elements */
		xv [0] = Tcl_NewStringObj ("pt::rde",-1);
		Tcl_ListObjReplace(interp, res, 0, 0, 1, xv);

		Tcl_SetObjResult (interp, res);
		return TCL_ERROR;
	    }
	}
    }

Changes to modules/pt/tests/data/ok/peg_cparam-critcl/5_sequence.

26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
...
382
383
384
385
386
387
388




389
390
391
392
393
394
395
...
477
478
479
480
481
482
483

484
485
486
487
488
489
490
...
818
819
820
821
822
823
824


825
826
827
828
829
830
831
....
1047
1048
1049
1050
1051
1052
1053





1054
1055
1056
1057
1058
1059
1060
1061
....
1354
1355
1356
1357
1358
1359
1360







1361
1362
1363
1364
1365
1366
1367
....
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643

1644
1645
1646

1647
1648
1649
1650
1651

1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
....
1686
1687
1688
1689
1690
1691
1692
1693
1694














1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
....
1802
1803
1804
1805
1806
1807
1808

1809
1810
1811
1812
1813
1814
1815
....
1824
1825
1826
1827
1828
1829
1830







1831
1832
1833
1834
1835
1836
1837
1838
1839

1840

1841
1842
1843
1844
1845
1846
1847
1848
1849
##

namespace eval ::PARSER {
    # # ## ### ##### ######## ############# #####################
    ## Supporting code for the main command.

    catch {
	#critcl::cheaders -g
	#critcl::debug memory symbols
    }

    # # ## ### ###### ######## #############
    ## RDE runtime, inlined, and made static.

    # This is the C code for the RDE, i.e. the implementation
................................................................................
	    long int off  = tc->num;
	    char* ch;
	    int clen;
	    Tcl_UniChar uni;
	    if (len < 0) {
		len = strlen (string);
	    }




	    
	    if ((tc->num + len) >= tc->max) {
		int   new = len + (tc->max ? (2 * tc->max) : RDE_STACK_INITIAL_SIZE);
		char* str = ckrealloc (tc->str, new * sizeof(char));
		ASSERT (str,"Memory allocation failure for token character array");
		tc->max = new;
		tc->str = str;
................................................................................
	    ClientData clientData;
	} RDE_PARAM_;
	typedef int (*UniCharClass) (int);
	typedef enum test_class_id {
	    tc_alnum,
	    tc_alpha,
	    tc_ascii,

	    tc_ddigit,
	    tc_digit,
	    tc_graph,
	    tc_lower,
	    tc_printable,
	    tc_punct,
	    tc_space,
................................................................................
	rde_param_i_error_clear (RDE_PARAM p)
	{
	    ER_CLEAR (p);
	}
	SCOPE void
	rde_param_i_error_nonterminal (RDE_PARAM p, int s)
	{


	    long int pos;
	    if (!p->ER) return;
	    pos = 1 + (long int) rde_stack_top (p->LS);
	    if (p->ER->loc != pos) return;
	    error_set (p, s);
	    p->ER->loc = pos;
	}
................................................................................
	}
	SCOPE void
	rde_param_i_test_ascii (RDE_PARAM p)
	{
	    test_class (p, UniCharIsAscii, tc_ascii);
	}
	SCOPE void





	rde_param_i_test_char (RDE_PARAM p, char* c, int msg)
	{
	    ASSERT_BOUNDS(msg,p->numstr);
	    p->ST = Tcl_UtfNcmp (p->CC, c, 1) == 0;
	    if (p->ST) {
		ER_CLEAR (p);
	    } else {
		error_set (p, msg);
................................................................................
	SCOPE void
	rde_param_i_next_ascii (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_ascii (p);
	}







	SCOPE void
	rde_param_i_next_ddigit (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_ddigit (p);
	}
................................................................................
		p->CL = (long int) rde_stack_top (p->LS);
		rde_stack_push (p->ES, p->ER);
		if (p->ER) { p->ER->refCount ++; }
	    }
	    return p->ST;
	}
	SCOPE void
	rde_param_i_next_str (RDE_PARAM p, char* str, int m)
	{
	    int at = p->CL;

	    while (*str) {
		rde_param_i_input_next (p, m);
		if (!p->ST) {

		    p->CL = at;
		    return;
		}
		rde_param_i_test_char (p, str, m);
		if (!p->ST) {

		    p->CL = at;
		    return;
		}
		str = Tcl_UtfNext (str);
	    }
	}
	SCOPE void
	rde_param_i_next_class (RDE_PARAM p, char* class, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    while (*class) {
		p->ST = Tcl_UtfNcmp (p->CC, class, 1) == 0;
		if (p->ST) {
		    ER_CLEAR (p);
................................................................................
         */
        
        
        /*
         * Precomputed table of strings (symbols, error messages, etc.).
         */
        
        static char const* p_string [1] = {
            /*        0 = */   "str 'abc'"














        };
        
        /*
         * Grammar Start Expression
         */
        
        static void MAIN (RDE_PARAM p) {
            rde_param_i_next_str (p, "abc", 0);
            return;
        }
        
    }

    ## END of GENERATED CODE. DO NOT EDIT.
    # # ## ### ###### ######## #############
................................................................................

	    rde_param_reset (p, NULL);
	    rde_param_data  (p, buf, len);
	    MAIN (p) ; /* Entrypoint for the generated code. */
	    return COMPLETE (p, interp);
	}


	static int COMPLETE (RDE_PARAM p, Tcl_Interp* interp)
	{
	    if (rde_param_query_st (p)) {
		long int  ac;
		Tcl_Obj** av;

		rde_param_query_ast (p, &ac, &av);
................................................................................
		    memcpy(lv + 3, av, ac * sizeof (Tcl_Obj*));
		    lv [0] = Tcl_NewObj ();
		    lv [1] = Tcl_NewIntObj (1 + lsv [lsc-1]);
		    lv [2] = Tcl_NewIntObj (rde_param_query_cl (p));

		    Tcl_SetObjResult (interp, Tcl_NewListObj (3, lv));
		    ckfree ((char*) lv);







		} else {
		    Tcl_SetObjResult (interp, av [0]);
		}

		return TCL_OK;
	    } else {
		Tcl_Obj* xv [1];
		const ERROR_STATE* er = rde_param_query_er (p);
		Tcl_Obj* res = rde_param_query_er_tcl (p, er);



		xv [0] = Tcl_NewStringObj ("pt::rde",-1);
		Tcl_ListObjReplace(interp, res, 0, 1, 1, xv);

		Tcl_SetObjResult (interp, res);
		return TCL_ERROR;
	    }
	}
    }







|







 







>
>
>
>







 







>







 







>
>







 







>
>
>
>
>
|







 







>
>
>
>
>
>
>







 







|


>



>





>







|







 







|
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>







|







 







>







 







>
>
>
>
>
>
>









>

>

|







26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
...
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
...
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
...
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
....
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
....
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
....
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
....
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
....
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
....
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
##

namespace eval ::PARSER {
    # # ## ### ##### ######## ############# #####################
    ## Supporting code for the main command.

    catch {
	#critcl::cflags -g
	#critcl::debug memory symbols
    }

    # # ## ### ###### ######## #############
    ## RDE runtime, inlined, and made static.

    # This is the C code for the RDE, i.e. the implementation
................................................................................
	    long int off  = tc->num;
	    char* ch;
	    int clen;
	    Tcl_UniChar uni;
	    if (len < 0) {
		len = strlen (string);
	    }
	    
	    if (!len) {
		return tc->str + base;
	    }
	    
	    if ((tc->num + len) >= tc->max) {
		int   new = len + (tc->max ? (2 * tc->max) : RDE_STACK_INITIAL_SIZE);
		char* str = ckrealloc (tc->str, new * sizeof(char));
		ASSERT (str,"Memory allocation failure for token character array");
		tc->max = new;
		tc->str = str;
................................................................................
	    ClientData clientData;
	} RDE_PARAM_;
	typedef int (*UniCharClass) (int);
	typedef enum test_class_id {
	    tc_alnum,
	    tc_alpha,
	    tc_ascii,
	    tc_control,
	    tc_ddigit,
	    tc_digit,
	    tc_graph,
	    tc_lower,
	    tc_printable,
	    tc_punct,
	    tc_space,
................................................................................
	rde_param_i_error_clear (RDE_PARAM p)
	{
	    ER_CLEAR (p);
	}
	SCOPE void
	rde_param_i_error_nonterminal (RDE_PARAM p, int s)
	{
	    
	    return;
	    long int pos;
	    if (!p->ER) return;
	    pos = 1 + (long int) rde_stack_top (p->LS);
	    if (p->ER->loc != pos) return;
	    error_set (p, s);
	    p->ER->loc = pos;
	}
................................................................................
	}
	SCOPE void
	rde_param_i_test_ascii (RDE_PARAM p)
	{
	    test_class (p, UniCharIsAscii, tc_ascii);
	}
	SCOPE void
	rde_param_i_test_control (RDE_PARAM p)
	{
	    test_class (p, Tcl_UniCharIsControl, tc_control);
	}
	SCOPE void
	rde_param_i_test_char (RDE_PARAM p, const char* c, int msg)
	{
	    ASSERT_BOUNDS(msg,p->numstr);
	    p->ST = Tcl_UtfNcmp (p->CC, c, 1) == 0;
	    if (p->ST) {
		ER_CLEAR (p);
	    } else {
		error_set (p, msg);
................................................................................
	SCOPE void
	rde_param_i_next_ascii (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_ascii (p);
	}
	SCOPE void
	rde_param_i_next_control (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_control (p);
	}
	SCOPE void
	rde_param_i_next_ddigit (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_ddigit (p);
	}
................................................................................
		p->CL = (long int) rde_stack_top (p->LS);
		rde_stack_push (p->ES, p->ER);
		if (p->ER) { p->ER->refCount ++; }
	    }
	    return p->ST;
	}
	SCOPE void
	rde_param_i_next_str (RDE_PARAM p, const char* str, int m)
	{
	    int at = p->CL;
	    
	    while (*str) {
		rde_param_i_input_next (p, m);
		if (!p->ST) {
		    p->ER->loc = at+1;
		    p->CL = at;
		    return;
		}
		rde_param_i_test_char (p, str, m);
		if (!p->ST) {
		    p->ER->loc = at+1;
		    p->CL = at;
		    return;
		}
		str = Tcl_UtfNext (str);
	    }
	}
	SCOPE void
	rde_param_i_next_class (RDE_PARAM p, const char* class, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    while (*class) {
		p->ST = Tcl_UtfNcmp (p->CC, class, 1) == 0;
		if (p->ST) {
		    ER_CLEAR (p);
................................................................................
         */
        
        
        /*
         * Precomputed table of strings (symbols, error messages, etc.).
         */
        
        static char const* p_string [15] = {
            /*        0 = */   "alnum",
            /*        1 = */   "alpha",
            /*        2 = */   "ascii",
            /*        3 = */   "control",
            /*        4 = */   "ddigit",
            /*        5 = */   "digit",
            /*        6 = */   "graph",
            /*        7 = */   "lower",
            /*        8 = */   "print",
            /*        9 = */   "punct",
            /*       10 = */   "space",
            /*       11 = */   "upper",
            /*       12 = */   "wordchar",
            /*       13 = */   "xdigit",
            /*       14 = */   "str abc"
        };
        
        /*
         * Grammar Start Expression
         */
        
        static void MAIN (RDE_PARAM p) {
            rde_param_i_next_str (p, "abc", 14);
            return;
        }
        
    }

    ## END of GENERATED CODE. DO NOT EDIT.
    # # ## ### ###### ######## #############
................................................................................

	    rde_param_reset (p, NULL);
	    rde_param_data  (p, buf, len);
	    MAIN (p) ; /* Entrypoint for the generated code. */
	    return COMPLETE (p, interp);
	}

	/* See also rde_critcl/m.c, param_COMPLETE() */
	static int COMPLETE (RDE_PARAM p, Tcl_Interp* interp)
	{
	    if (rde_param_query_st (p)) {
		long int  ac;
		Tcl_Obj** av;

		rde_param_query_ast (p, &ac, &av);
................................................................................
		    memcpy(lv + 3, av, ac * sizeof (Tcl_Obj*));
		    lv [0] = Tcl_NewObj ();
		    lv [1] = Tcl_NewIntObj (1 + lsv [lsc-1]);
		    lv [2] = Tcl_NewIntObj (rde_param_query_cl (p));

		    Tcl_SetObjResult (interp, Tcl_NewListObj (3, lv));
		    ckfree ((char*) lv);

		} else if (ac == 0) {
		    /*
		     * Match, but no AST. This is possible if the grammar
		     * consists of only the start expression.
		     */
		    Tcl_SetObjResult (interp, Tcl_NewStringObj ("",-1));
		} else {
		    Tcl_SetObjResult (interp, av [0]);
		}

		return TCL_OK;
	    } else {
		Tcl_Obj* xv [1];
		const ERROR_STATE* er = rde_param_query_er (p);
		Tcl_Obj* res = rde_param_query_er_tcl (p, er);
		/* res = list (location, list(msg)) */

		/* Stick the exception type-tag before the existing elements */
		xv [0] = Tcl_NewStringObj ("pt::rde",-1);
		Tcl_ListObjReplace(interp, res, 0, 0, 1, xv);

		Tcl_SetObjResult (interp, res);
		return TCL_ERROR;
	    }
	}
    }

Changes to modules/pt/tests/data/ok/peg_cparam-critcl/6_optional.

26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
...
382
383
384
385
386
387
388




389
390
391
392
393
394
395
...
477
478
479
480
481
482
483

484
485
486
487
488
489
490
...
818
819
820
821
822
823
824


825
826
827
828
829
830
831
....
1047
1048
1049
1050
1051
1052
1053





1054
1055
1056
1057
1058
1059
1060
1061
....
1354
1355
1356
1357
1358
1359
1360







1361
1362
1363
1364
1365
1366
1367
....
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643

1644
1645
1646

1647
1648
1649
1650
1651

1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
....
1687
1688
1689
1690
1691
1692
1693
1694
1695














1696
1697
1698
1699
1700
1701
1702
....
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
....
1815
1816
1817
1818
1819
1820
1821

1822
1823
1824
1825
1826
1827
1828
....
1837
1838
1839
1840
1841
1842
1843







1844
1845
1846
1847
1848
1849
1850
1851
1852

1853

1854
1855
1856
1857
1858
1859
1860
1861
1862
##

namespace eval ::PARSER {
    # # ## ### ##### ######## ############# #####################
    ## Supporting code for the main command.

    catch {
	#critcl::cheaders -g
	#critcl::debug memory symbols
    }

    # # ## ### ###### ######## #############
    ## RDE runtime, inlined, and made static.

    # This is the C code for the RDE, i.e. the implementation
................................................................................
	    long int off  = tc->num;
	    char* ch;
	    int clen;
	    Tcl_UniChar uni;
	    if (len < 0) {
		len = strlen (string);
	    }




	    
	    if ((tc->num + len) >= tc->max) {
		int   new = len + (tc->max ? (2 * tc->max) : RDE_STACK_INITIAL_SIZE);
		char* str = ckrealloc (tc->str, new * sizeof(char));
		ASSERT (str,"Memory allocation failure for token character array");
		tc->max = new;
		tc->str = str;
................................................................................
	    ClientData clientData;
	} RDE_PARAM_;
	typedef int (*UniCharClass) (int);
	typedef enum test_class_id {
	    tc_alnum,
	    tc_alpha,
	    tc_ascii,

	    tc_ddigit,
	    tc_digit,
	    tc_graph,
	    tc_lower,
	    tc_printable,
	    tc_punct,
	    tc_space,
................................................................................
	rde_param_i_error_clear (RDE_PARAM p)
	{
	    ER_CLEAR (p);
	}
	SCOPE void
	rde_param_i_error_nonterminal (RDE_PARAM p, int s)
	{


	    long int pos;
	    if (!p->ER) return;
	    pos = 1 + (long int) rde_stack_top (p->LS);
	    if (p->ER->loc != pos) return;
	    error_set (p, s);
	    p->ER->loc = pos;
	}
................................................................................
	}
	SCOPE void
	rde_param_i_test_ascii (RDE_PARAM p)
	{
	    test_class (p, UniCharIsAscii, tc_ascii);
	}
	SCOPE void





	rde_param_i_test_char (RDE_PARAM p, char* c, int msg)
	{
	    ASSERT_BOUNDS(msg,p->numstr);
	    p->ST = Tcl_UtfNcmp (p->CC, c, 1) == 0;
	    if (p->ST) {
		ER_CLEAR (p);
	    } else {
		error_set (p, msg);
................................................................................
	SCOPE void
	rde_param_i_next_ascii (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_ascii (p);
	}







	SCOPE void
	rde_param_i_next_ddigit (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_ddigit (p);
	}
................................................................................
		p->CL = (long int) rde_stack_top (p->LS);
		rde_stack_push (p->ES, p->ER);
		if (p->ER) { p->ER->refCount ++; }
	    }
	    return p->ST;
	}
	SCOPE void
	rde_param_i_next_str (RDE_PARAM p, char* str, int m)
	{
	    int at = p->CL;

	    while (*str) {
		rde_param_i_input_next (p, m);
		if (!p->ST) {

		    p->CL = at;
		    return;
		}
		rde_param_i_test_char (p, str, m);
		if (!p->ST) {

		    p->CL = at;
		    return;
		}
		str = Tcl_UtfNext (str);
	    }
	}
	SCOPE void
	rde_param_i_next_class (RDE_PARAM p, char* class, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    while (*class) {
		p->ST = Tcl_UtfNcmp (p->CC, class, 1) == 0;
		if (p->ST) {
		    ER_CLEAR (p);
................................................................................
        
        static void optional_2 (RDE_PARAM p);
        
        /*
         * Precomputed table of strings (symbols, error messages, etc.).
         */
        
        static char const* p_string [1] = {
            /*        0 = */   "t a"














        };
        
        /*
         * Grammar Start Expression
         */
        
        static void MAIN (RDE_PARAM p) {
................................................................................
        static void optional_2 (RDE_PARAM p) {
           /*
            * ?
            *     'a'
            */
        
            rde_param_i_state_push_2 (p);
            rde_param_i_next_char (p, "a", 0);
            rde_param_i_state_merge_ok (p);
            return;
        }
        
    }

    ## END of GENERATED CODE. DO NOT EDIT.
................................................................................

	    rde_param_reset (p, NULL);
	    rde_param_data  (p, buf, len);
	    MAIN (p) ; /* Entrypoint for the generated code. */
	    return COMPLETE (p, interp);
	}


	static int COMPLETE (RDE_PARAM p, Tcl_Interp* interp)
	{
	    if (rde_param_query_st (p)) {
		long int  ac;
		Tcl_Obj** av;

		rde_param_query_ast (p, &ac, &av);
................................................................................
		    memcpy(lv + 3, av, ac * sizeof (Tcl_Obj*));
		    lv [0] = Tcl_NewObj ();
		    lv [1] = Tcl_NewIntObj (1 + lsv [lsc-1]);
		    lv [2] = Tcl_NewIntObj (rde_param_query_cl (p));

		    Tcl_SetObjResult (interp, Tcl_NewListObj (3, lv));
		    ckfree ((char*) lv);







		} else {
		    Tcl_SetObjResult (interp, av [0]);
		}

		return TCL_OK;
	    } else {
		Tcl_Obj* xv [1];
		const ERROR_STATE* er = rde_param_query_er (p);
		Tcl_Obj* res = rde_param_query_er_tcl (p, er);



		xv [0] = Tcl_NewStringObj ("pt::rde",-1);
		Tcl_ListObjReplace(interp, res, 0, 1, 1, xv);

		Tcl_SetObjResult (interp, res);
		return TCL_ERROR;
	    }
	}
    }







|







 







>
>
>
>







 







>







 







>
>







 







>
>
>
>
>
|







 







>
>
>
>
>
>
>







 







|


>



>





>







|







 







|
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>







 







|







 







>







 







>
>
>
>
>
>
>









>

>

|







26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
...
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
...
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
...
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
....
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
....
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
....
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
....
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
....
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
....
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
....
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
##

namespace eval ::PARSER {
    # # ## ### ##### ######## ############# #####################
    ## Supporting code for the main command.

    catch {
	#critcl::cflags -g
	#critcl::debug memory symbols
    }

    # # ## ### ###### ######## #############
    ## RDE runtime, inlined, and made static.

    # This is the C code for the RDE, i.e. the implementation
................................................................................
	    long int off  = tc->num;
	    char* ch;
	    int clen;
	    Tcl_UniChar uni;
	    if (len < 0) {
		len = strlen (string);
	    }
	    
	    if (!len) {
		return tc->str + base;
	    }
	    
	    if ((tc->num + len) >= tc->max) {
		int   new = len + (tc->max ? (2 * tc->max) : RDE_STACK_INITIAL_SIZE);
		char* str = ckrealloc (tc->str, new * sizeof(char));
		ASSERT (str,"Memory allocation failure for token character array");
		tc->max = new;
		tc->str = str;
................................................................................
	    ClientData clientData;
	} RDE_PARAM_;
	typedef int (*UniCharClass) (int);
	typedef enum test_class_id {
	    tc_alnum,
	    tc_alpha,
	    tc_ascii,
	    tc_control,
	    tc_ddigit,
	    tc_digit,
	    tc_graph,
	    tc_lower,
	    tc_printable,
	    tc_punct,
	    tc_space,
................................................................................
	rde_param_i_error_clear (RDE_PARAM p)
	{
	    ER_CLEAR (p);
	}
	SCOPE void
	rde_param_i_error_nonterminal (RDE_PARAM p, int s)
	{
	    
	    return;
	    long int pos;
	    if (!p->ER) return;
	    pos = 1 + (long int) rde_stack_top (p->LS);
	    if (p->ER->loc != pos) return;
	    error_set (p, s);
	    p->ER->loc = pos;
	}
................................................................................
	}
	SCOPE void
	rde_param_i_test_ascii (RDE_PARAM p)
	{
	    test_class (p, UniCharIsAscii, tc_ascii);
	}
	SCOPE void
	rde_param_i_test_control (RDE_PARAM p)
	{
	    test_class (p, Tcl_UniCharIsControl, tc_control);
	}
	SCOPE void
	rde_param_i_test_char (RDE_PARAM p, const char* c, int msg)
	{
	    ASSERT_BOUNDS(msg,p->numstr);
	    p->ST = Tcl_UtfNcmp (p->CC, c, 1) == 0;
	    if (p->ST) {
		ER_CLEAR (p);
	    } else {
		error_set (p, msg);
................................................................................
	SCOPE void
	rde_param_i_next_ascii (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_ascii (p);
	}
	SCOPE void
	rde_param_i_next_control (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_control (p);
	}
	SCOPE void
	rde_param_i_next_ddigit (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_ddigit (p);
	}
................................................................................
		p->CL = (long int) rde_stack_top (p->LS);
		rde_stack_push (p->ES, p->ER);
		if (p->ER) { p->ER->refCount ++; }
	    }
	    return p->ST;
	}
	SCOPE void
	rde_param_i_next_str (RDE_PARAM p, const char* str, int m)
	{
	    int at = p->CL;
	    
	    while (*str) {
		rde_param_i_input_next (p, m);
		if (!p->ST) {
		    p->ER->loc = at+1;
		    p->CL = at;
		    return;
		}
		rde_param_i_test_char (p, str, m);
		if (!p->ST) {
		    p->ER->loc = at+1;
		    p->CL = at;
		    return;
		}
		str = Tcl_UtfNext (str);
	    }
	}
	SCOPE void
	rde_param_i_next_class (RDE_PARAM p, const char* class, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    while (*class) {
		p->ST = Tcl_UtfNcmp (p->CC, class, 1) == 0;
		if (p->ST) {
		    ER_CLEAR (p);
................................................................................
        
        static void optional_2 (RDE_PARAM p);
        
        /*
         * Precomputed table of strings (symbols, error messages, etc.).
         */
        
        static char const* p_string [15] = {
            /*        0 = */   "alnum",
            /*        1 = */   "alpha",
            /*        2 = */   "ascii",
            /*        3 = */   "control",
            /*        4 = */   "ddigit",
            /*        5 = */   "digit",
            /*        6 = */   "graph",
            /*        7 = */   "lower",
            /*        8 = */   "print",
            /*        9 = */   "punct",
            /*       10 = */   "space",
            /*       11 = */   "upper",
            /*       12 = */   "wordchar",
            /*       13 = */   "xdigit",
            /*       14 = */   "t a"
        };
        
        /*
         * Grammar Start Expression
         */
        
        static void MAIN (RDE_PARAM p) {
................................................................................
        static void optional_2 (RDE_PARAM p) {
           /*
            * ?
            *     'a'
            */
        
            rde_param_i_state_push_2 (p);
            rde_param_i_next_char (p, "a", 14);
            rde_param_i_state_merge_ok (p);
            return;
        }
        
    }

    ## END of GENERATED CODE. DO NOT EDIT.
................................................................................

	    rde_param_reset (p, NULL);
	    rde_param_data  (p, buf, len);
	    MAIN (p) ; /* Entrypoint for the generated code. */
	    return COMPLETE (p, interp);
	}

	/* See also rde_critcl/m.c, param_COMPLETE() */
	static int COMPLETE (RDE_PARAM p, Tcl_Interp* interp)
	{
	    if (rde_param_query_st (p)) {
		long int  ac;
		Tcl_Obj** av;

		rde_param_query_ast (p, &ac, &av);
................................................................................
		    memcpy(lv + 3, av, ac * sizeof (Tcl_Obj*));
		    lv [0] = Tcl_NewObj ();
		    lv [1] = Tcl_NewIntObj (1 + lsv [lsc-1]);
		    lv [2] = Tcl_NewIntObj (rde_param_query_cl (p));

		    Tcl_SetObjResult (interp, Tcl_NewListObj (3, lv));
		    ckfree ((char*) lv);

		} else if (ac == 0) {
		    /*
		     * Match, but no AST. This is possible if the grammar
		     * consists of only the start expression.
		     */
		    Tcl_SetObjResult (interp, Tcl_NewStringObj ("",-1));
		} else {
		    Tcl_SetObjResult (interp, av [0]);
		}

		return TCL_OK;
	    } else {
		Tcl_Obj* xv [1];
		const ERROR_STATE* er = rde_param_query_er (p);
		Tcl_Obj* res = rde_param_query_er_tcl (p, er);
		/* res = list (location, list(msg)) */

		/* Stick the exception type-tag before the existing elements */
		xv [0] = Tcl_NewStringObj ("pt::rde",-1);
		Tcl_ListObjReplace(interp, res, 0, 0, 1, xv);

		Tcl_SetObjResult (interp, res);
		return TCL_ERROR;
	    }
	}
    }

Changes to modules/pt/tests/data/ok/peg_cparam-critcl/7_kleene.

26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
...
382
383
384
385
386
387
388




389
390
391
392
393
394
395
...
477
478
479
480
481
482
483

484
485
486
487
488
489
490
...
818
819
820
821
822
823
824


825
826
827
828
829
830
831
....
1047
1048
1049
1050
1051
1052
1053





1054
1055
1056
1057
1058
1059
1060
1061
....
1354
1355
1356
1357
1358
1359
1360







1361
1362
1363
1364
1365
1366
1367
....
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643

1644
1645
1646

1647
1648
1649
1650
1651

1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
....
1687
1688
1689
1690
1691
1692
1693
1694
1695














1696
1697
1698
1699
1700
1701
1702
....
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
....
1817
1818
1819
1820
1821
1822
1823

1824
1825
1826
1827
1828
1829
1830
....
1839
1840
1841
1842
1843
1844
1845







1846
1847
1848
1849
1850
1851
1852
1853
1854

1855

1856
1857
1858
1859
1860
1861
1862
1863
1864
##

namespace eval ::PARSER {
    # # ## ### ##### ######## ############# #####################
    ## Supporting code for the main command.

    catch {
	#critcl::cheaders -g
	#critcl::debug memory symbols
    }

    # # ## ### ###### ######## #############
    ## RDE runtime, inlined, and made static.

    # This is the C code for the RDE, i.e. the implementation
................................................................................
	    long int off  = tc->num;
	    char* ch;
	    int clen;
	    Tcl_UniChar uni;
	    if (len < 0) {
		len = strlen (string);
	    }




	    
	    if ((tc->num + len) >= tc->max) {
		int   new = len + (tc->max ? (2 * tc->max) : RDE_STACK_INITIAL_SIZE);
		char* str = ckrealloc (tc->str, new * sizeof(char));
		ASSERT (str,"Memory allocation failure for token character array");
		tc->max = new;
		tc->str = str;
................................................................................
	    ClientData clientData;
	} RDE_PARAM_;
	typedef int (*UniCharClass) (int);
	typedef enum test_class_id {
	    tc_alnum,
	    tc_alpha,
	    tc_ascii,

	    tc_ddigit,
	    tc_digit,
	    tc_graph,
	    tc_lower,
	    tc_printable,
	    tc_punct,
	    tc_space,
................................................................................
	rde_param_i_error_clear (RDE_PARAM p)
	{
	    ER_CLEAR (p);
	}
	SCOPE void
	rde_param_i_error_nonterminal (RDE_PARAM p, int s)
	{


	    long int pos;
	    if (!p->ER) return;
	    pos = 1 + (long int) rde_stack_top (p->LS);
	    if (p->ER->loc != pos) return;
	    error_set (p, s);
	    p->ER->loc = pos;
	}
................................................................................
	}
	SCOPE void
	rde_param_i_test_ascii (RDE_PARAM p)
	{
	    test_class (p, UniCharIsAscii, tc_ascii);
	}
	SCOPE void





	rde_param_i_test_char (RDE_PARAM p, char* c, int msg)
	{
	    ASSERT_BOUNDS(msg,p->numstr);
	    p->ST = Tcl_UtfNcmp (p->CC, c, 1) == 0;
	    if (p->ST) {
		ER_CLEAR (p);
	    } else {
		error_set (p, msg);
................................................................................
	SCOPE void
	rde_param_i_next_ascii (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_ascii (p);
	}







	SCOPE void
	rde_param_i_next_ddigit (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_ddigit (p);
	}
................................................................................
		p->CL = (long int) rde_stack_top (p->LS);
		rde_stack_push (p->ES, p->ER);
		if (p->ER) { p->ER->refCount ++; }
	    }
	    return p->ST;
	}
	SCOPE void
	rde_param_i_next_str (RDE_PARAM p, char* str, int m)
	{
	    int at = p->CL;

	    while (*str) {
		rde_param_i_input_next (p, m);
		if (!p->ST) {

		    p->CL = at;
		    return;
		}
		rde_param_i_test_char (p, str, m);
		if (!p->ST) {

		    p->CL = at;
		    return;
		}
		str = Tcl_UtfNext (str);
	    }
	}
	SCOPE void
	rde_param_i_next_class (RDE_PARAM p, char* class, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    while (*class) {
		p->ST = Tcl_UtfNcmp (p->CC, class, 1) == 0;
		if (p->ST) {
		    ER_CLEAR (p);
................................................................................
        
        static void kleene_2 (RDE_PARAM p);
        
        /*
         * Precomputed table of strings (symbols, error messages, etc.).
         */
        
        static char const* p_string [1] = {
            /*        0 = */   "t a"














        };
        
        /*
         * Grammar Start Expression
         */
        
        static void MAIN (RDE_PARAM p) {
................................................................................
           /*
            * *
            *     'a'
            */
        
            while (1) {
                rde_param_i_state_push_2 (p);
                rde_param_i_next_char (p, "a", 0);
                if (rde_param_i_kleene_close(p)) return;
            }
            return;
        }
        
    }

................................................................................

	    rde_param_reset (p, NULL);
	    rde_param_data  (p, buf, len);
	    MAIN (p) ; /* Entrypoint for the generated code. */
	    return COMPLETE (p, interp);
	}


	static int COMPLETE (RDE_PARAM p, Tcl_Interp* interp)
	{
	    if (rde_param_query_st (p)) {
		long int  ac;
		Tcl_Obj** av;

		rde_param_query_ast (p, &ac, &av);
................................................................................
		    memcpy(lv + 3, av, ac * sizeof (Tcl_Obj*));
		    lv [0] = Tcl_NewObj ();
		    lv [1] = Tcl_NewIntObj (1 + lsv [lsc-1]);
		    lv [2] = Tcl_NewIntObj (rde_param_query_cl (p));

		    Tcl_SetObjResult (interp, Tcl_NewListObj (3, lv));
		    ckfree ((char*) lv);







		} else {
		    Tcl_SetObjResult (interp, av [0]);
		}

		return TCL_OK;
	    } else {
		Tcl_Obj* xv [1];
		const ERROR_STATE* er = rde_param_query_er (p);
		Tcl_Obj* res = rde_param_query_er_tcl (p, er);



		xv [0] = Tcl_NewStringObj ("pt::rde",-1);
		Tcl_ListObjReplace(interp, res, 0, 1, 1, xv);

		Tcl_SetObjResult (interp, res);
		return TCL_ERROR;
	    }
	}
    }







|







 







>
>
>
>







 







>







 







>
>







 







>
>
>
>
>
|







 







>
>
>
>
>
>
>







 







|


>



>





>







|







 







|
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>







 







|







 







>







 







>
>
>
>
>
>
>









>

>

|







26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
...
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
...
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
...
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
....
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
....
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
....
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
....
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
....
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
....
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
....
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
##

namespace eval ::PARSER {
    # # ## ### ##### ######## ############# #####################
    ## Supporting code for the main command.

    catch {
	#critcl::cflags -g
	#critcl::debug memory symbols
    }

    # # ## ### ###### ######## #############
    ## RDE runtime, inlined, and made static.

    # This is the C code for the RDE, i.e. the implementation
................................................................................
	    long int off  = tc->num;
	    char* ch;
	    int clen;
	    Tcl_UniChar uni;
	    if (len < 0) {
		len = strlen (string);
	    }
	    
	    if (!len) {
		return tc->str + base;
	    }
	    
	    if ((tc->num + len) >= tc->max) {
		int   new = len + (tc->max ? (2 * tc->max) : RDE_STACK_INITIAL_SIZE);
		char* str = ckrealloc (tc->str, new * sizeof(char));
		ASSERT (str,"Memory allocation failure for token character array");
		tc->max = new;
		tc->str = str;
................................................................................
	    ClientData clientData;
	} RDE_PARAM_;
	typedef int (*UniCharClass) (int);
	typedef enum test_class_id {
	    tc_alnum,
	    tc_alpha,
	    tc_ascii,
	    tc_control,
	    tc_ddigit,
	    tc_digit,
	    tc_graph,
	    tc_lower,
	    tc_printable,
	    tc_punct,
	    tc_space,
................................................................................
	rde_param_i_error_clear (RDE_PARAM p)
	{
	    ER_CLEAR (p);
	}
	SCOPE void
	rde_param_i_error_nonterminal (RDE_PARAM p, int s)
	{
	    
	    return;
	    long int pos;
	    if (!p->ER) return;
	    pos = 1 + (long int) rde_stack_top (p->LS);
	    if (p->ER->loc != pos) return;
	    error_set (p, s);
	    p->ER->loc = pos;
	}
................................................................................
	}
	SCOPE void
	rde_param_i_test_ascii (RDE_PARAM p)
	{
	    test_class (p, UniCharIsAscii, tc_ascii);
	}
	SCOPE void
	rde_param_i_test_control (RDE_PARAM p)
	{
	    test_class (p, Tcl_UniCharIsControl, tc_control);
	}
	SCOPE void
	rde_param_i_test_char (RDE_PARAM p, const char* c, int msg)
	{
	    ASSERT_BOUNDS(msg,p->numstr);
	    p->ST = Tcl_UtfNcmp (p->CC, c, 1) == 0;
	    if (p->ST) {
		ER_CLEAR (p);
	    } else {
		error_set (p, msg);
................................................................................
	SCOPE void
	rde_param_i_next_ascii (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_ascii (p);
	}
	SCOPE void
	rde_param_i_next_control (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_control (p);
	}
	SCOPE void
	rde_param_i_next_ddigit (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_ddigit (p);
	}
................................................................................
		p->CL = (long int) rde_stack_top (p->LS);
		rde_stack_push (p->ES, p->ER);
		if (p->ER) { p->ER->refCount ++; }
	    }
	    return p->ST;
	}
	SCOPE void
	rde_param_i_next_str (RDE_PARAM p, const char* str, int m)
	{
	    int at = p->CL;
	    
	    while (*str) {
		rde_param_i_input_next (p, m);
		if (!p->ST) {
		    p->ER->loc = at+1;
		    p->CL = at;
		    return;
		}
		rde_param_i_test_char (p, str, m);
		if (!p->ST) {
		    p->ER->loc = at+1;
		    p->CL = at;
		    return;
		}
		str = Tcl_UtfNext (str);
	    }
	}
	SCOPE void
	rde_param_i_next_class (RDE_PARAM p, const char* class, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    while (*class) {
		p->ST = Tcl_UtfNcmp (p->CC, class, 1) == 0;
		if (p->ST) {
		    ER_CLEAR (p);
................................................................................
        
        static void kleene_2 (RDE_PARAM p);
        
        /*
         * Precomputed table of strings (symbols, error messages, etc.).
         */
        
        static char const* p_string [15] = {
            /*        0 = */   "alnum",
            /*        1 = */   "alpha",
            /*        2 = */   "ascii",
            /*        3 = */   "control",
            /*        4 = */   "ddigit",
            /*        5 = */   "digit",
            /*        6 = */   "graph",
            /*        7 = */   "lower",
            /*        8 = */   "print",
            /*        9 = */   "punct",
            /*       10 = */   "space",
            /*       11 = */   "upper",
            /*       12 = */   "wordchar",
            /*       13 = */   "xdigit",
            /*       14 = */   "t a"
        };
        
        /*
         * Grammar Start Expression
         */
        
        static void MAIN (RDE_PARAM p) {
................................................................................
           /*
            * *
            *     'a'
            */
        
            while (1) {
                rde_param_i_state_push_2 (p);
                rde_param_i_next_char (p, "a", 14);
                if (rde_param_i_kleene_close(p)) return;
            }
            return;
        }
        
    }

................................................................................

	    rde_param_reset (p, NULL);
	    rde_param_data  (p, buf, len);
	    MAIN (p) ; /* Entrypoint for the generated code. */
	    return COMPLETE (p, interp);
	}

	/* See also rde_critcl/m.c, param_COMPLETE() */
	static int COMPLETE (RDE_PARAM p, Tcl_Interp* interp)
	{
	    if (rde_param_query_st (p)) {
		long int  ac;
		Tcl_Obj** av;

		rde_param_query_ast (p, &ac, &av);
................................................................................
		    memcpy(lv + 3, av, ac * sizeof (Tcl_Obj*));
		    lv [0] = Tcl_NewObj ();
		    lv [1] = Tcl_NewIntObj (1 + lsv [lsc-1]);
		    lv [2] = Tcl_NewIntObj (rde_param_query_cl (p));

		    Tcl_SetObjResult (interp, Tcl_NewListObj (3, lv));
		    ckfree ((char*) lv);

		} else if (ac == 0) {
		    /*
		     * Match, but no AST. This is possible if the grammar
		     * consists of only the start expression.
		     */
		    Tcl_SetObjResult (interp, Tcl_NewStringObj ("",-1));
		} else {
		    Tcl_SetObjResult (interp, av [0]);
		}

		return TCL_OK;
	    } else {
		Tcl_Obj* xv [1];
		const ERROR_STATE* er = rde_param_query_er (p);
		Tcl_Obj* res = rde_param_query_er_tcl (p, er);
		/* res = list (location, list(msg)) */

		/* Stick the exception type-tag before the existing elements */
		xv [0] = Tcl_NewStringObj ("pt::rde",-1);
		Tcl_ListObjReplace(interp, res, 0, 0, 1, xv);

		Tcl_SetObjResult (interp, res);
		return TCL_ERROR;
	    }
	}
    }

Changes to modules/pt/tests/data/ok/peg_cparam-critcl/8_pkleene.

26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
...
382
383
384
385
386
387
388




389
390
391
392
393
394
395
...
477
478
479
480
481
482
483

484
485
486
487
488
489
490
...
818
819
820
821
822
823
824


825
826
827
828
829
830
831
....
1047
1048
1049
1050
1051
1052
1053





1054
1055
1056
1057
1058
1059
1060
1061
....
1354
1355
1356
1357
1358
1359
1360







1361
1362
1363
1364
1365
1366
1367
....
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643

1644
1645
1646

1647
1648
1649
1650
1651

1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
....
1687
1688
1689
1690
1691
1692
1693
1694
1695














1696
1697
1698
1699
1700
1701
1702
....
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
....
1820
1821
1822
1823
1824
1825
1826

1827
1828
1829
1830
1831
1832
1833
....
1842
1843
1844
1845
1846
1847
1848







1849
1850
1851
1852
1853
1854
1855
1856
1857

1858

1859
1860
1861
1862
1863
1864
1865
1866
1867
##

namespace eval ::PARSER {
    # # ## ### ##### ######## ############# #####################
    ## Supporting code for the main command.

    catch {
	#critcl::cheaders -g
	#critcl::debug memory symbols
    }

    # # ## ### ###### ######## #############
    ## RDE runtime, inlined, and made static.

    # This is the C code for the RDE, i.e. the implementation
................................................................................
	    long int off  = tc->num;
	    char* ch;
	    int clen;
	    Tcl_UniChar uni;
	    if (len < 0) {
		len = strlen (string);
	    }




	    
	    if ((tc->num + len) >= tc->max) {
		int   new = len + (tc->max ? (2 * tc->max) : RDE_STACK_INITIAL_SIZE);
		char* str = ckrealloc (tc->str, new * sizeof(char));
		ASSERT (str,"Memory allocation failure for token character array");
		tc->max = new;
		tc->str = str;
................................................................................
	    ClientData clientData;
	} RDE_PARAM_;
	typedef int (*UniCharClass) (int);
	typedef enum test_class_id {
	    tc_alnum,
	    tc_alpha,
	    tc_ascii,

	    tc_ddigit,
	    tc_digit,
	    tc_graph,
	    tc_lower,
	    tc_printable,
	    tc_punct,
	    tc_space,
................................................................................
	rde_param_i_error_clear (RDE_PARAM p)
	{
	    ER_CLEAR (p);
	}
	SCOPE void
	rde_param_i_error_nonterminal (RDE_PARAM p, int s)
	{


	    long int pos;
	    if (!p->ER) return;
	    pos = 1 + (long int) rde_stack_top (p->LS);
	    if (p->ER->loc != pos) return;
	    error_set (p, s);
	    p->ER->loc = pos;
	}
................................................................................
	}
	SCOPE void
	rde_param_i_test_ascii (RDE_PARAM p)
	{
	    test_class (p, UniCharIsAscii, tc_ascii);
	}
	SCOPE void





	rde_param_i_test_char (RDE_PARAM p, char* c, int msg)
	{
	    ASSERT_BOUNDS(msg,p->numstr);
	    p->ST = Tcl_UtfNcmp (p->CC, c, 1) == 0;
	    if (p->ST) {
		ER_CLEAR (p);
	    } else {
		error_set (p, msg);
................................................................................
	SCOPE void
	rde_param_i_next_ascii (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_ascii (p);
	}







	SCOPE void
	rde_param_i_next_ddigit (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_ddigit (p);
	}
................................................................................
		p->CL = (long int) rde_stack_top (p->LS);
		rde_stack_push (p->ES, p->ER);
		if (p->ER) { p->ER->refCount ++; }
	    }
	    return p->ST;
	}
	SCOPE void
	rde_param_i_next_str (RDE_PARAM p, char* str, int m)
	{
	    int at = p->CL;

	    while (*str) {
		rde_param_i_input_next (p, m);
		if (!p->ST) {

		    p->CL = at;
		    return;
		}
		rde_param_i_test_char (p, str, m);
		if (!p->ST) {

		    p->CL = at;
		    return;
		}
		str = Tcl_UtfNext (str);
	    }
	}
	SCOPE void
	rde_param_i_next_class (RDE_PARAM p, char* class, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    while (*class) {
		p->ST = Tcl_UtfNcmp (p->CC, class, 1) == 0;
		if (p->ST) {
		    ER_CLEAR (p);
................................................................................
        
        static void poskleene_2 (RDE_PARAM p);
        
        /*
         * Precomputed table of strings (symbols, error messages, etc.).
         */
        
        static char const* p_string [1] = {
            /*        0 = */   "t a"














        };
        
        /*
         * Grammar Start Expression
         */
        
        static void MAIN (RDE_PARAM p) {
................................................................................
        static void poskleene_2 (RDE_PARAM p) {
           /*
            * +
            *     'a'
            */
        
            rde_param_i_loc_push (p);
            rde_param_i_next_char (p, "a", 0);
            if (rde_param_i_kleene_abort(p)) return;
            while (1) {
                rde_param_i_state_push_2 (p);
                rde_param_i_next_char (p, "a", 0);
                if (rde_param_i_kleene_close(p)) return;
            }
            return;
        }
        
    }

................................................................................

	    rde_param_reset (p, NULL);
	    rde_param_data  (p, buf, len);
	    MAIN (p) ; /* Entrypoint for the generated code. */
	    return COMPLETE (p, interp);
	}


	static int COMPLETE (RDE_PARAM p, Tcl_Interp* interp)
	{
	    if (rde_param_query_st (p)) {
		long int  ac;
		Tcl_Obj** av;

		rde_param_query_ast (p, &ac, &av);
................................................................................
		    memcpy(lv + 3, av, ac * sizeof (Tcl_Obj*));
		    lv [0] = Tcl_NewObj ();
		    lv [1] = Tcl_NewIntObj (1 + lsv [lsc-1]);
		    lv [2] = Tcl_NewIntObj (rde_param_query_cl (p));

		    Tcl_SetObjResult (interp, Tcl_NewListObj (3, lv));
		    ckfree ((char*) lv);







		} else {
		    Tcl_SetObjResult (interp, av [0]);
		}

		return TCL_OK;
	    } else {
		Tcl_Obj* xv [1];
		const ERROR_STATE* er = rde_param_query_er (p);
		Tcl_Obj* res = rde_param_query_er_tcl (p, er);



		xv [0] = Tcl_NewStringObj ("pt::rde",-1);
		Tcl_ListObjReplace(interp, res, 0, 1, 1, xv);

		Tcl_SetObjResult (interp, res);
		return TCL_ERROR;
	    }
	}
    }







|







 







>
>
>
>







 







>







 







>
>







 







>
>
>
>
>
|







 







>
>
>
>
>
>
>







 







|


>



>





>







|







 







|
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>







 







|



|







 







>







 







>
>
>
>
>
>
>









>

>

|







26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
...
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
...
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
...
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
....
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
....
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
....
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
....
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
....
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
....
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
....
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
##

namespace eval ::PARSER {
    # # ## ### ##### ######## ############# #####################
    ## Supporting code for the main command.

    catch {
	#critcl::cflags -g
	#critcl::debug memory symbols
    }

    # # ## ### ###### ######## #############
    ## RDE runtime, inlined, and made static.

    # This is the C code for the RDE, i.e. the implementation
................................................................................
	    long int off  = tc->num;
	    char* ch;
	    int clen;
	    Tcl_UniChar uni;
	    if (len < 0) {
		len = strlen (string);
	    }
	    
	    if (!len) {
		return tc->str + base;
	    }
	    
	    if ((tc->num + len) >= tc->max) {
		int   new = len + (tc->max ? (2 * tc->max) : RDE_STACK_INITIAL_SIZE);
		char* str = ckrealloc (tc->str, new * sizeof(char));
		ASSERT (str,"Memory allocation failure for token character array");
		tc->max = new;
		tc->str = str;
................................................................................
	    ClientData clientData;
	} RDE_PARAM_;
	typedef int (*UniCharClass) (int);
	typedef enum test_class_id {
	    tc_alnum,
	    tc_alpha,
	    tc_ascii,
	    tc_control,
	    tc_ddigit,
	    tc_digit,
	    tc_graph,
	    tc_lower,
	    tc_printable,
	    tc_punct,
	    tc_space,
................................................................................
	rde_param_i_error_clear (RDE_PARAM p)
	{
	    ER_CLEAR (p);
	}
	SCOPE void
	rde_param_i_error_nonterminal (RDE_PARAM p, int s)
	{
	    
	    return;
	    long int pos;
	    if (!p->ER) return;
	    pos = 1 + (long int) rde_stack_top (p->LS);
	    if (p->ER->loc != pos) return;
	    error_set (p, s);
	    p->ER->loc = pos;
	}
................................................................................
	}
	SCOPE void
	rde_param_i_test_ascii (RDE_PARAM p)
	{
	    test_class (p, UniCharIsAscii, tc_ascii);
	}
	SCOPE void
	rde_param_i_test_control (RDE_PARAM p)
	{
	    test_class (p, Tcl_UniCharIsControl, tc_control);
	}
	SCOPE void
	rde_param_i_test_char (RDE_PARAM p, const char* c, int msg)
	{
	    ASSERT_BOUNDS(msg,p->numstr);
	    p->ST = Tcl_UtfNcmp (p->CC, c, 1) == 0;
	    if (p->ST) {
		ER_CLEAR (p);
	    } else {
		error_set (p, msg);
................................................................................
	SCOPE void
	rde_param_i_next_ascii (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_ascii (p);
	}
	SCOPE void
	rde_param_i_next_control (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_control (p);
	}
	SCOPE void
	rde_param_i_next_ddigit (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_ddigit (p);
	}
................................................................................
		p->CL = (long int) rde_stack_top (p->LS);
		rde_stack_push (p->ES, p->ER);
		if (p->ER) { p->ER->refCount ++; }
	    }
	    return p->ST;
	}
	SCOPE void
	rde_param_i_next_str (RDE_PARAM p, const char* str, int m)
	{
	    int at = p->CL;
	    
	    while (*str) {
		rde_param_i_input_next (p, m);
		if (!p->ST) {
		    p->ER->loc = at+1;
		    p->CL = at;
		    return;
		}
		rde_param_i_test_char (p, str, m);
		if (!p->ST) {
		    p->ER->loc = at+1;
		    p->CL = at;
		    return;
		}
		str = Tcl_UtfNext (str);
	    }
	}
	SCOPE void
	rde_param_i_next_class (RDE_PARAM p, const char* class, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    while (*class) {
		p->ST = Tcl_UtfNcmp (p->CC, class, 1) == 0;
		if (p->ST) {
		    ER_CLEAR (p);
................................................................................
        
        static void poskleene_2 (RDE_PARAM p);
        
        /*
         * Precomputed table of strings (symbols, error messages, etc.).
         */
        
        static char const* p_string [15] = {
            /*        0 = */   "alnum",
            /*        1 = */   "alpha",
            /*        2 = */   "ascii",
            /*        3 = */   "control",
            /*        4 = */   "ddigit",
            /*        5 = */   "digit",
            /*        6 = */   "graph",
            /*        7 = */   "lower",
            /*        8 = */   "print",
            /*        9 = */   "punct",
            /*       10 = */   "space",
            /*       11 = */   "upper",
            /*       12 = */   "wordchar",
            /*       13 = */   "xdigit",
            /*       14 = */   "t a"
        };
        
        /*
         * Grammar Start Expression
         */
        
        static void MAIN (RDE_PARAM p) {
................................................................................
        static void poskleene_2 (RDE_PARAM p) {
           /*
            * +
            *     'a'
            */
        
            rde_param_i_loc_push (p);
            rde_param_i_next_char (p, "a", 14);
            if (rde_param_i_kleene_abort(p)) return;
            while (1) {
                rde_param_i_state_push_2 (p);
                rde_param_i_next_char (p, "a", 14);
                if (rde_param_i_kleene_close(p)) return;
            }
            return;
        }
        
    }

................................................................................

	    rde_param_reset (p, NULL);
	    rde_param_data  (p, buf, len);
	    MAIN (p) ; /* Entrypoint for the generated code. */
	    return COMPLETE (p, interp);
	}

	/* See also rde_critcl/m.c, param_COMPLETE() */
	static int COMPLETE (RDE_PARAM p, Tcl_Interp* interp)
	{
	    if (rde_param_query_st (p)) {
		long int  ac;
		Tcl_Obj** av;

		rde_param_query_ast (p, &ac, &av);
................................................................................
		    memcpy(lv + 3, av, ac * sizeof (Tcl_Obj*));
		    lv [0] = Tcl_NewObj ();
		    lv [1] = Tcl_NewIntObj (1 + lsv [lsc-1]);
		    lv [2] = Tcl_NewIntObj (rde_param_query_cl (p));

		    Tcl_SetObjResult (interp, Tcl_NewListObj (3, lv));
		    ckfree ((char*) lv);

		} else if (ac == 0) {
		    /*
		     * Match, but no AST. This is possible if the grammar
		     * consists of only the start expression.
		     */
		    Tcl_SetObjResult (interp, Tcl_NewStringObj ("",-1));
		} else {
		    Tcl_SetObjResult (interp, av [0]);
		}

		return TCL_OK;
	    } else {
		Tcl_Obj* xv [1];
		const ERROR_STATE* er = rde_param_query_er (p);
		Tcl_Obj* res = rde_param_query_er_tcl (p, er);
		/* res = list (location, list(msg)) */

		/* Stick the exception type-tag before the existing elements */
		xv [0] = Tcl_NewStringObj ("pt::rde",-1);
		Tcl_ListObjReplace(interp, res, 0, 0, 1, xv);

		Tcl_SetObjResult (interp, res);
		return TCL_ERROR;
	    }
	}
    }

Changes to modules/pt/tests/data/ok/peg_cparam-critcl/9_ahead.

26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
...
382
383
384
385
386
387
388




389
390
391
392
393
394
395
...
477
478
479
480
481
482
483

484
485
486
487
488
489
490
...
818
819
820
821
822
823
824


825
826
827
828
829
830
831
....
1047
1048
1049
1050
1051
1052
1053





1054
1055
1056
1057
1058
1059
1060
1061
....
1354
1355
1356
1357
1358
1359
1360







1361
1362
1363
1364
1365
1366
1367
....
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643

1644
1645
1646

1647
1648
1649
1650
1651

1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
....
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699














1700
1701
1702
1703
1704
1705
1706
....
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
....
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
....
1854
1855
1856
1857
1858
1859
1860

1861
1862
1863
1864
1865
1866
1867
....
1876
1877
1878
1879
1880
1881
1882







1883
1884
1885
1886
1887
1888
1889
1890
1891

1892

1893
1894
1895
1896
1897
1898
1899
1900
1901
##

namespace eval ::PARSER {
    # # ## ### ##### ######## ############# #####################
    ## Supporting code for the main command.

    catch {
	#critcl::cheaders -g
	#critcl::debug memory symbols
    }

    # # ## ### ###### ######## #############
    ## RDE runtime, inlined, and made static.

    # This is the C code for the RDE, i.e. the implementation
................................................................................
	    long int off  = tc->num;
	    char* ch;
	    int clen;
	    Tcl_UniChar uni;
	    if (len < 0) {
		len = strlen (string);
	    }




	    
	    if ((tc->num + len) >= tc->max) {
		int   new = len + (tc->max ? (2 * tc->max) : RDE_STACK_INITIAL_SIZE);
		char* str = ckrealloc (tc->str, new * sizeof(char));
		ASSERT (str,"Memory allocation failure for token character array");
		tc->max = new;
		tc->str = str;
................................................................................
	    ClientData clientData;
	} RDE_PARAM_;
	typedef int (*UniCharClass) (int);
	typedef enum test_class_id {
	    tc_alnum,
	    tc_alpha,
	    tc_ascii,

	    tc_ddigit,
	    tc_digit,
	    tc_graph,
	    tc_lower,
	    tc_printable,
	    tc_punct,
	    tc_space,
................................................................................
	rde_param_i_error_clear (RDE_PARAM p)
	{
	    ER_CLEAR (p);
	}
	SCOPE void
	rde_param_i_error_nonterminal (RDE_PARAM p, int s)
	{


	    long int pos;
	    if (!p->ER) return;
	    pos = 1 + (long int) rde_stack_top (p->LS);
	    if (p->ER->loc != pos) return;
	    error_set (p, s);
	    p->ER->loc = pos;
	}
................................................................................
	}
	SCOPE void
	rde_param_i_test_ascii (RDE_PARAM p)
	{
	    test_class (p, UniCharIsAscii, tc_ascii);
	}
	SCOPE void





	rde_param_i_test_char (RDE_PARAM p, char* c, int msg)
	{
	    ASSERT_BOUNDS(msg,p->numstr);
	    p->ST = Tcl_UtfNcmp (p->CC, c, 1) == 0;
	    if (p->ST) {
		ER_CLEAR (p);
	    } else {
		error_set (p, msg);
................................................................................
	SCOPE void
	rde_param_i_next_ascii (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_ascii (p);
	}







	SCOPE void
	rde_param_i_next_ddigit (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_ddigit (p);
	}
................................................................................
		p->CL = (long int) rde_stack_top (p->LS);
		rde_stack_push (p->ES, p->ER);
		if (p->ER) { p->ER->refCount ++; }
	    }
	    return p->ST;
	}
	SCOPE void
	rde_param_i_next_str (RDE_PARAM p, char* str, int m)
	{
	    int at = p->CL;

	    while (*str) {
		rde_param_i_input_next (p, m);
		if (!p->ST) {

		    p->CL = at;
		    return;
		}
		rde_param_i_test_char (p, str, m);
		if (!p->ST) {

		    p->CL = at;
		    return;
		}
		str = Tcl_UtfNext (str);
	    }
	}
	SCOPE void
	rde_param_i_next_class (RDE_PARAM p, char* class, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    while (*class) {
		p->ST = Tcl_UtfNcmp (p->CC, class, 1) == 0;
		if (p->ST) {
		    ER_CLEAR (p);
................................................................................
        static void sequence_6 (RDE_PARAM p);
        static void sym_TEST (RDE_PARAM p);
        
        /*
         * Precomputed table of strings (symbols, error messages, etc.).
         */
        
        static char const* p_string [3] = {
            /*        0 = */   "t a",
            /*        1 = */   "n TEST",
            /*        2 = */   "TEST"














        };
        
        /*
         * Grammar Start Expression
         */
        
        static void MAIN (RDE_PARAM p) {
................................................................................
           /*
            * x
            *     &
            *         'a'
            *     (IDENTIFIER)
            */
        
            if (rde_param_i_symbol_start (p, 2)) return ;
            sequence_6 (p);
            rde_param_i_symbol_done_leaf (p, 2, 1);
            return;
        }
        
        static void sequence_6 (RDE_PARAM p) {
           /*
            * x
            *     &
................................................................................
        static void ahead_3 (RDE_PARAM p) {
           /*
            * &
            *     'a'
            */
        
            rde_param_i_loc_push (p);
            rde_param_i_next_char (p, "a", 0);
            rde_param_i_loc_pop_rewind (p);
            return;
        }
        
    }

    ## END of GENERATED CODE. DO NOT EDIT.
................................................................................

	    rde_param_reset (p, NULL);
	    rde_param_data  (p, buf, len);
	    MAIN (p) ; /* Entrypoint for the generated code. */
	    return COMPLETE (p, interp);
	}


	static int COMPLETE (RDE_PARAM p, Tcl_Interp* interp)
	{
	    if (rde_param_query_st (p)) {
		long int  ac;
		Tcl_Obj** av;

		rde_param_query_ast (p, &ac, &av);
................................................................................
		    memcpy(lv + 3, av, ac * sizeof (Tcl_Obj*));
		    lv [0] = Tcl_NewObj ();
		    lv [1] = Tcl_NewIntObj (1 + lsv [lsc-1]);
		    lv [2] = Tcl_NewIntObj (rde_param_query_cl (p));

		    Tcl_SetObjResult (interp, Tcl_NewListObj (3, lv));
		    ckfree ((char*) lv);







		} else {
		    Tcl_SetObjResult (interp, av [0]);
		}

		return TCL_OK;
	    } else {
		Tcl_Obj* xv [1];
		const ERROR_STATE* er = rde_param_query_er (p);
		Tcl_Obj* res = rde_param_query_er_tcl (p, er);



		xv [0] = Tcl_NewStringObj ("pt::rde",-1);
		Tcl_ListObjReplace(interp, res, 0, 1, 1, xv);

		Tcl_SetObjResult (interp, res);
		return TCL_ERROR;
	    }
	}
    }







|







 







>
>
>
>







 







>







 







>
>







 







>
>
>
>
>
|







 







>
>
>
>
>
>
>







 







|


>



>





>







|







 







|
|
|
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>







 







|

|







 







|







 







>







 







>
>
>
>
>
>
>









>

>

|







26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
...
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
...
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
...
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
....
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
....
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
....
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
....
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
....
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
....
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
....
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
....
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
##

namespace eval ::PARSER {
    # # ## ### ##### ######## ############# #####################
    ## Supporting code for the main command.

    catch {
	#critcl::cflags -g
	#critcl::debug memory symbols
    }

    # # ## ### ###### ######## #############
    ## RDE runtime, inlined, and made static.

    # This is the C code for the RDE, i.e. the implementation
................................................................................
	    long int off  = tc->num;
	    char* ch;
	    int clen;
	    Tcl_UniChar uni;
	    if (len < 0) {
		len = strlen (string);
	    }
	    
	    if (!len) {
		return tc->str + base;
	    }
	    
	    if ((tc->num + len) >= tc->max) {
		int   new = len + (tc->max ? (2 * tc->max) : RDE_STACK_INITIAL_SIZE);
		char* str = ckrealloc (tc->str, new * sizeof(char));
		ASSERT (str,"Memory allocation failure for token character array");
		tc->max = new;
		tc->str = str;
................................................................................
	    ClientData clientData;
	} RDE_PARAM_;
	typedef int (*UniCharClass) (int);
	typedef enum test_class_id {
	    tc_alnum,
	    tc_alpha,
	    tc_ascii,
	    tc_control,
	    tc_ddigit,
	    tc_digit,
	    tc_graph,
	    tc_lower,
	    tc_printable,
	    tc_punct,
	    tc_space,
................................................................................
	rde_param_i_error_clear (RDE_PARAM p)
	{
	    ER_CLEAR (p);
	}
	SCOPE void
	rde_param_i_error_nonterminal (RDE_PARAM p, int s)
	{
	    
	    return;
	    long int pos;
	    if (!p->ER) return;
	    pos = 1 + (long int) rde_stack_top (p->LS);
	    if (p->ER->loc != pos) return;
	    error_set (p, s);
	    p->ER->loc = pos;
	}
................................................................................
	}
	SCOPE void
	rde_param_i_test_ascii (RDE_PARAM p)
	{
	    test_class (p, UniCharIsAscii, tc_ascii);
	}
	SCOPE void
	rde_param_i_test_control (RDE_PARAM p)
	{
	    test_class (p, Tcl_UniCharIsControl, tc_control);
	}
	SCOPE void
	rde_param_i_test_char (RDE_PARAM p, const char* c, int msg)
	{
	    ASSERT_BOUNDS(msg,p->numstr);
	    p->ST = Tcl_UtfNcmp (p->CC, c, 1) == 0;
	    if (p->ST) {
		ER_CLEAR (p);
	    } else {
		error_set (p, msg);
................................................................................
	SCOPE void
	rde_param_i_next_ascii (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_ascii (p);
	}
	SCOPE void
	rde_param_i_next_control (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_control (p);
	}
	SCOPE void
	rde_param_i_next_ddigit (RDE_PARAM p, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    rde_param_i_test_ddigit (p);
	}
................................................................................
		p->CL = (long int) rde_stack_top (p->LS);
		rde_stack_push (p->ES, p->ER);
		if (p->ER) { p->ER->refCount ++; }
	    }
	    return p->ST;
	}
	SCOPE void
	rde_param_i_next_str (RDE_PARAM p, const char* str, int m)
	{
	    int at = p->CL;
	    
	    while (*str) {
		rde_param_i_input_next (p, m);
		if (!p->ST) {
		    p->ER->loc = at+1;
		    p->CL = at;
		    return;
		}
		rde_param_i_test_char (p, str, m);
		if (!p->ST) {
		    p->ER->loc = at+1;
		    p->CL = at;
		    return;
		}
		str = Tcl_UtfNext (str);
	    }
	}
	SCOPE void
	rde_param_i_next_class (RDE_PARAM p, const char* class, int m)
	{
	    rde_param_i_input_next (p, m);
	    if (!p->ST) return;
	    while (*class) {
		p->ST = Tcl_UtfNcmp (p->CC, class, 1) == 0;
		if (p->ST) {
		    ER_CLEAR (p);
................................................................................
        static void sequence_6 (RDE_PARAM p);
        static void sym_TEST (RDE_PARAM p);
        
        /*
         * Precomputed table of strings (symbols, error messages, etc.).
         */
        
        static char const* p_string [17] = {
            /*        0 = */   "alnum",
            /*        1 = */   "alpha",
            /*        2 = */   "ascii",
            /*        3 = */   "control",
            /*        4 = */   "ddigit",
            /*        5 = */   "digit",
            /*        6 = */   "graph",
            /*        7 = */   "lower",
            /*        8 = */   "print",
            /*        9 = */   "punct",
            /*       10 = */   "space",
            /*       11 = */   "upper",
            /*       12 = */   "wordchar",
            /*       13 = */   "xdigit",
            /*       14 = */   "t a",
            /*       15 = */   "n TEST",
            /*       16 = */   "TEST"
        };
        
        /*
         * Grammar Start Expression
         */
        
        static void MAIN (RDE_PARAM p) {
................................................................................
           /*
            * x
            *     &
            *         'a'
            *     (IDENTIFIER)
            */
        
            if (rde_param_i_symbol_start (p, 16)) return ;
            sequence_6 (p);
            rde_param_i_symbol_done_leaf (p, 16, 15);
            return;
        }
        
        static void sequence_6 (RDE_PARAM p) {
           /*
            * x
            *     &
................................................................................
        static void ahead_3 (RDE_PARAM p) {
           /*
            * &
            *     'a'
            */
        
            rde_param_i_loc_push (p);
            rde_param_i_next_char (p, "a", 14);
            rde_param_i_loc_pop_rewind (p);
            return;
        }
        
    }

    ## END of GENERATED CODE. DO NOT EDIT.
................................................................................

	    rde_param_reset (p, NULL);
	    rde_param_data  (p, buf, len);
	    MAIN (p) ; /* Entrypoint for the generated code. */
	    return COMPLETE (p, interp);
	}

	/* See also rde_critcl/m.c, param_COMPLETE() */
	static int COMPLETE (RDE_PARAM p, Tcl_Interp* interp)
	{
	    if (rde_param_query_st (p)) {
		long int  ac;
		Tcl_Obj** av;

		rde_param_query_ast (p, &ac, &av);
................................................................................
		    memcpy(lv + 3, av, ac * sizeof (Tcl_Obj*));
		    lv [0] = Tcl_NewObj ();
		    lv [1] = Tcl_NewIntObj (1 + lsv [lsc-1]);
		    lv [2] = Tcl_NewIntObj (rde_param_query_cl (p));

		    Tcl_SetObjResult (interp, Tcl_NewListObj (3, lv));
		    ckfree ((char*) lv);

		} else if (ac == 0) {
		    /*
		     * Match, but no AST. This is possible if the grammar
		     * consists of only the start expression.
		     */
		    Tcl_SetObjResult (interp, Tcl_NewStringObj ("",-1));
		} else {
		    Tcl_SetObjResult (interp, av [0]);
		}

		return TCL_OK;
	    } else {
		Tcl_Obj* xv [1];
		const ERROR_STATE* er = rde_param_query_er (p);
		Tcl_Obj* res = rde_param_query_er_tcl (p, er);
		/* res = list (location, list(msg)) */

		/* Stick the exception type-tag before the existing elements */
		xv [0] = Tcl_NewStringObj ("pt::rde",-1);
		Tcl_ListObjReplace(interp, res, 0, 0, 1, xv);

		Tcl_SetObjResult (interp, res);
		return TCL_ERROR;
	    }
	}
    }

Changes to modules/pt/tests/data/ok/peg_cparam/0_basic_arithmetic.

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
..
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
...
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
...
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
...
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
...
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
...
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
...
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
<<attributes>> void <<ns>>sym_Sign (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_Term (<<STATE>> <<state>>);

/*
 * Precomputed table of strings (symbols, error messages, etc.).
 */

static char const* <<string-table>> [21] = {
    /*        0 = */   "cl '-+'",
    /*        1 = */   "n AddOp",
    /*        2 = */   "AddOp",
    /*        3 = */   "cl '0123456789'",
    /*        4 = */   "n Digit",
    /*        5 = */   "Digit",
    /*        6 = */   "t \50",
    /*        7 = */   "t \51",
    /*        8 = */   "n Expression",
    /*        9 = */   "Expression",
    /*       10 = */   "n Factor",
    /*       11 = */   "Factor",
    /*       12 = */   "cl '*/'",
    /*       13 = */   "n MulOp",
    /*       14 = */   "MulOp",
    /*       15 = */   "n Number",
    /*       16 = */   "Number",
    /*       17 = */   "n Sign",
    /*       18 = */   "Sign",
    /*       19 = */   "n Term",
    /*       20 = */   "Term"














};

/*
 * Grammar Start Expression
 */

<<attributes>> void <<ns>><<main>> (<<STATE>> <<state>>) { <<prelude>>
................................................................................
 */

<<attributes>> void <<ns>>sym_AddOp (<<STATE>> <<state>>) { <<prelude>>
   /*
    * [-+]
    */

    if (rde_param_i_symbol_start (<<state>>, 2)) return ;
    rde_param_i_next_class (<<state>>, "-+", 0);
    rde_param_i_symbol_done_leaf (<<state>>, 2, 1);
    return;
}

/*
 * value Symbol 'Digit'
 */

<<attributes>> void <<ns>>sym_Digit (<<STATE>> <<state>>) { <<prelude>>
   /*
    * [0123456789]
    */

    if (rde_param_i_symbol_start (<<state>>, 5)) return ;
    rde_param_i_next_class (<<state>>, "0123456789", 3);
    rde_param_i_symbol_done_leaf (<<state>>, 5, 4);
    return;
}

/*
 * value Symbol 'Expression'
 */

................................................................................
    *         (Factor)
    *         *
    *             x
    *                 (MulOp)
    *                 (Factor)
    */

    if (rde_param_i_symbol_start_d (<<state>>, 9)) return ;
    <<self>> <<ns>>choice_20 (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 9, 8);
    return;
}

<<attributes>> void <<ns>>choice_20 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * /
    *     x
................................................................................
    * x
    *     '\('
    *     (Expression)
    *     '\)'
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_char (<<state>>, "\50", 6);
    if (rde_param_i_seq_void2value(<<state>>)) return;
    <<self>> <<ns>>sym_Expression (<<state>>);
    if (rde_param_i_seq_value2value(<<state>>)) return;
    rde_param_i_next_char (<<state>>, "\51", 7);
    rde_param_i_state_merge_value (<<state>>);
    return;
}

<<attributes>> void <<ns>>sequence_18 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
................................................................................
    *     (Term)
    *     *
    *         x
    *             (AddOp)
    *             (Term)
    */

    if (rde_param_i_symbol_start_d (<<state>>, 11)) return ;
    <<self>> <<ns>>sequence_30 (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 11, 10);
    return;
}

<<attributes>> void <<ns>>sequence_30 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     (Term)
................................................................................
 */

<<attributes>> void <<ns>>sym_MulOp (<<STATE>> <<state>>) { <<prelude>>
   /*
    * [\u002a\u002f]
    */

    if (rde_param_i_symbol_start (<<state>>, 14)) return ;
    rde_param_i_next_class (<<state>>, "*/", 12);
    rde_param_i_symbol_done_leaf (<<state>>, 14, 13);
    return;
}

/*
 * value Symbol 'Number'
 */

................................................................................
    * x
    *     ?
    *         (Sign)
    *     +
    *         (Digit)
    */

    if (rde_param_i_symbol_start_d (<<state>>, 16)) return ;
    <<self>> <<ns>>sequence_41 (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 16, 15);
    return;
}

<<attributes>> void <<ns>>sequence_41 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     ?
................................................................................
 */

<<attributes>> void <<ns>>sym_Sign (<<STATE>> <<state>>) { <<prelude>>
   /*
    * [-+]
    */

    if (rde_param_i_symbol_start (<<state>>, 18)) return ;
    rde_param_i_next_class (<<state>>, "-+", 0);
    rde_param_i_symbol_done_leaf (<<state>>, 18, 17);
    return;
}

/*
 * value Symbol 'Term'
 */

<<attributes>> void <<ns>>sym_Term (<<STATE>> <<state>>) { <<prelude>>
   /*
    * (Number)
    */

    if (rde_param_i_symbol_start_d (<<state>>, 20)) return ;
    <<self>> <<ns>>sym_Number (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 20, 19);
    return;
}

/*
 */






|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>







 







|
|
|












|
|
|







 







|

|







 







|



|







 







|

|







 







|
|
|







 







|

|







 







|
|
|












|

|





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
..
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
...
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
...
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
...
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
...
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
...
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
...
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
<<attributes>> void <<ns>>sym_Sign (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_Term (<<STATE>> <<state>>);

/*
 * Precomputed table of strings (symbols, error messages, etc.).
 */

static char const* <<string-table>> [35] = {
    /*        0 = */   "alnum",
    /*        1 = */   "alpha",
    /*        2 = */   "ascii",
    /*        3 = */   "control",
    /*        4 = */   "ddigit",
    /*        5 = */   "digit",
    /*        6 = */   "graph",
    /*        7 = */   "lower",
    /*        8 = */   "print",
    /*        9 = */   "punct",
    /*       10 = */   "space",
    /*       11 = */   "upper",
    /*       12 = */   "wordchar",
    /*       13 = */   "xdigit",
    /*       14 = */   "cl -+",
    /*       15 = */   "n AddOp",
    /*       16 = */   "AddOp",
    /*       17 = */   "cl 0123456789",
    /*       18 = */   "n Digit",
    /*       19 = */   "Digit",
    /*       20 = */   "t \50",
    /*       21 = */   "t \51",
    /*       22 = */   "n Expression",
    /*       23 = */   "Expression",
    /*       24 = */   "n Factor",
    /*       25 = */   "Factor",
    /*       26 = */   "cl */",
    /*       27 = */   "n MulOp",
    /*       28 = */   "MulOp",
    /*       29 = */   "n Number",
    /*       30 = */   "Number",
    /*       31 = */   "n Sign",
    /*       32 = */   "Sign",
    /*       33 = */   "n Term",
    /*       34 = */   "Term"
};

/*
 * Grammar Start Expression
 */

<<attributes>> void <<ns>><<main>> (<<STATE>> <<state>>) { <<prelude>>
................................................................................
 */

<<attributes>> void <<ns>>sym_AddOp (<<STATE>> <<state>>) { <<prelude>>
   /*
    * [-+]
    */

    if (rde_param_i_symbol_start (<<state>>, 16)) return ;
    rde_param_i_next_class (<<state>>, "-+", 14);
    rde_param_i_symbol_done_leaf (<<state>>, 16, 15);
    return;
}

/*
 * value Symbol 'Digit'
 */

<<attributes>> void <<ns>>sym_Digit (<<STATE>> <<state>>) { <<prelude>>
   /*
    * [0123456789]
    */

    if (rde_param_i_symbol_start (<<state>>, 19)) return ;
    rde_param_i_next_class (<<state>>, "0123456789", 17);
    rde_param_i_symbol_done_leaf (<<state>>, 19, 18);
    return;
}

/*
 * value Symbol 'Expression'
 */

................................................................................
    *         (Factor)
    *         *
    *             x
    *                 (MulOp)
    *                 (Factor)
    */

    if (rde_param_i_symbol_start_d (<<state>>, 23)) return ;
    <<self>> <<ns>>choice_20 (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 23, 22);
    return;
}

<<attributes>> void <<ns>>choice_20 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * /
    *     x
................................................................................
    * x
    *     '\('
    *     (Expression)
    *     '\)'
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_char (<<state>>, "\50", 20);
    if (rde_param_i_seq_void2value(<<state>>)) return;
    <<self>> <<ns>>sym_Expression (<<state>>);
    if (rde_param_i_seq_value2value(<<state>>)) return;
    rde_param_i_next_char (<<state>>, "\51", 21);
    rde_param_i_state_merge_value (<<state>>);
    return;
}

<<attributes>> void <<ns>>sequence_18 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
................................................................................
    *     (Term)
    *     *
    *         x
    *             (AddOp)
    *             (Term)
    */

    if (rde_param_i_symbol_start_d (<<state>>, 25)) return ;
    <<self>> <<ns>>sequence_30 (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 25, 24);
    return;
}

<<attributes>> void <<ns>>sequence_30 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     (Term)
................................................................................
 */

<<attributes>> void <<ns>>sym_MulOp (<<STATE>> <<state>>) { <<prelude>>
   /*
    * [\u002a\u002f]
    */

    if (rde_param_i_symbol_start (<<state>>, 28)) return ;
    rde_param_i_next_class (<<state>>, "*/", 26);
    rde_param_i_symbol_done_leaf (<<state>>, 28, 27);
    return;
}

/*
 * value Symbol 'Number'
 */

................................................................................
    * x
    *     ?
    *         (Sign)
    *     +
    *         (Digit)
    */

    if (rde_param_i_symbol_start_d (<<state>>, 30)) return ;
    <<self>> <<ns>>sequence_41 (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 30, 29);
    return;
}

<<attributes>> void <<ns>>sequence_41 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     ?
................................................................................
 */

<<attributes>> void <<ns>>sym_Sign (<<STATE>> <<state>>) { <<prelude>>
   /*
    * [-+]
    */

    if (rde_param_i_symbol_start (<<state>>, 32)) return ;
    rde_param_i_next_class (<<state>>, "-+", 14);
    rde_param_i_symbol_done_leaf (<<state>>, 32, 31);
    return;
}

/*
 * value Symbol 'Term'
 */

<<attributes>> void <<ns>>sym_Term (<<STATE>> <<state>>) { <<prelude>>
   /*
    * (Number)
    */

    if (rde_param_i_symbol_start_d (<<state>>, 34)) return ;
    <<self>> <<ns>>sym_Number (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 34, 33);
    return;
}

/*
 */

Changes to modules/pt/tests/data/ok/peg_cparam/10_notahead.

12
13
14
15
16
17
18
19
20
21
22














23
24
25
26
27
28
29
..
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
..
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<<attributes>> void <<ns>>sequence_6 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_TEST (<<STATE>> <<state>>);

/*
 * Precomputed table of strings (symbols, error messages, etc.).
 */

static char const* <<string-table>> [3] = {
    /*        0 = */   "t a",
    /*        1 = */   "n TEST",
    /*        2 = */   "TEST"














};

/*
 * Grammar Start Expression
 */

<<attributes>> void <<ns>><<main>> (<<STATE>> <<state>>) { <<prelude>>
................................................................................
   /*
    * x
    *     !
    *         'a'
    *     (IDENTIFIER)
    */

    if (rde_param_i_symbol_start (<<state>>, 2)) return ;
    <<self>> <<ns>>sequence_6 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 2, 1);
    return;
}

<<attributes>> void <<ns>>sequence_6 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     !
................................................................................
<<attributes>> void <<ns>>notahead_3 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * !
    *     'a'
    */

    rde_param_i_loc_push (<<state>>);
    rde_param_i_next_char (<<state>>, "a", 0);
    rde_param_i_notahead_exit (<<state>>);
    return;
}

/*
 */






|
|
|
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>







 







|

|







 







|






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
..
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
..
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<<attributes>> void <<ns>>sequence_6 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_TEST (<<STATE>> <<state>>);

/*
 * Precomputed table of strings (symbols, error messages, etc.).
 */

static char const* <<string-table>> [17] = {
    /*        0 = */   "alnum",
    /*        1 = */   "alpha",
    /*        2 = */   "ascii",
    /*        3 = */   "control",
    /*        4 = */   "ddigit",
    /*        5 = */   "digit",
    /*        6 = */   "graph",
    /*        7 = */   "lower",
    /*        8 = */   "print",
    /*        9 = */   "punct",
    /*       10 = */   "space",
    /*       11 = */   "upper",
    /*       12 = */   "wordchar",
    /*       13 = */   "xdigit",
    /*       14 = */   "t a",
    /*       15 = */   "n TEST",
    /*       16 = */   "TEST"
};

/*
 * Grammar Start Expression
 */

<<attributes>> void <<ns>><<main>> (<<STATE>> <<state>>) { <<prelude>>
................................................................................
   /*
    * x
    *     !
    *         'a'
    *     (IDENTIFIER)
    */

    if (rde_param_i_symbol_start (<<state>>, 16)) return ;
    <<self>> <<ns>>sequence_6 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 16, 15);
    return;
}

<<attributes>> void <<ns>>sequence_6 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     !
................................................................................
<<attributes>> void <<ns>>notahead_3 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * !
    *     'a'
    */

    rde_param_i_loc_push (<<state>>);
    rde_param_i_next_char (<<state>>, "a", 14);
    rde_param_i_notahead_exit (<<state>>);
    return;
}

/*
 */

Changes to modules/pt/tests/data/ok/peg_cparam/11_epsilon.

10
11
12
13
14
15
16
17
18














19
20
21
22
23
24
25
..
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<<attributes>> void <<ns>>choice_3 (<<STATE>> <<state>>);

/*
 * Precomputed table of strings (symbols, error messages, etc.).
 */

static char const* <<string-table>> [1] = {
    /*        0 = */   "t a"














};

/*
 * Grammar Start Expression
 */

<<attributes>> void <<ns>><<main>> (<<STATE>> <<state>>) { <<prelude>>
................................................................................
   /*
    * /
    *     'a'
    *     <epsilon>
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_char (<<state>>, "a", 0);
    if (rde_param_i_bra_void2void(<<state>>)) return;
    rde_param_i_status_ok (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
 */






|
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>







 







|








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
..
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<<attributes>> void <<ns>>choice_3 (<<STATE>> <<state>>);

/*
 * Precomputed table of strings (symbols, error messages, etc.).
 */

static char const* <<string-table>> [15] = {
    /*        0 = */   "alnum",
    /*        1 = */   "alpha",
    /*        2 = */   "ascii",
    /*        3 = */   "control",
    /*        4 = */   "ddigit",
    /*        5 = */   "digit",
    /*        6 = */   "graph",
    /*        7 = */   "lower",
    /*        8 = */   "print",
    /*        9 = */   "punct",
    /*       10 = */   "space",
    /*       11 = */   "upper",
    /*       12 = */   "wordchar",
    /*       13 = */   "xdigit",
    /*       14 = */   "t a"
};

/*
 * Grammar Start Expression
 */

<<attributes>> void <<ns>><<main>> (<<STATE>> <<state>>) { <<prelude>>
................................................................................
   /*
    * /
    *     'a'
    *     <epsilon>
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_char (<<state>>, "a", 14);
    if (rde_param_i_bra_void2void(<<state>>)) return;
    rde_param_i_status_ok (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
 */

Changes to modules/pt/tests/data/ok/peg_cparam/1_functions.

13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28














29
30
31
32
33
34
35
..
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
..
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
<<attributes>> void <<ns>>sequence_9 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_Sinus (<<STATE>> <<state>>);

/*
 * Precomputed table of strings (symbols, error messages, etc.).
 */

static char const* <<string-table>> [8] = {
    /*        0 = */   "n Expression",
    /*        1 = */   "Expression",
    /*        2 = */   "n Function",
    /*        3 = */   "Function",
    /*        4 = */   "str 'sin\50'",
    /*        5 = */   "t \51",
    /*        6 = */   "n Sinus",
    /*        7 = */   "Sinus"














};

/*
 * Grammar Start Expression
 */

<<attributes>> void <<ns>><<main>> (<<STATE>> <<state>>) { <<prelude>>
................................................................................
 */

<<attributes>> void <<ns>>sym_Expression (<<STATE>> <<state>>) { <<prelude>>
   /*
    * (Function)
    */

    if (rde_param_i_symbol_start_d (<<state>>, 1)) return ;
    <<self>> <<ns>>sym_Function (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 1, 0);
    return;
}

/*
 * value Symbol 'Function'
 */

<<attributes>> void <<ns>>sym_Function (<<STATE>> <<state>>) { <<prelude>>
   /*
    * (Sinus)
    */

    if (rde_param_i_symbol_start_d (<<state>>, 3)) return ;
    <<self>> <<ns>>sym_Sinus (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 3, 2);
    return;
}

/*
 * value Symbol 'Sinus'
 */

................................................................................
   /*
    * x
    *     "sin\("
    *     (Expression)
    *     '\)'
    */

    if (rde_param_i_symbol_start_d (<<state>>, 7)) return ;
    <<self>> <<ns>>sequence_9 (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 7, 6);
    return;
}

<<attributes>> void <<ns>>sequence_9 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "sin\("
    *     (Expression)
    *     '\)'
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_str (<<state>>, "sin\50", 4);
    if (rde_param_i_seq_void2value(<<state>>)) return;
    <<self>> <<ns>>sym_Expression (<<state>>);
    if (rde_param_i_seq_value2value(<<state>>)) return;
    rde_param_i_next_char (<<state>>, "\51", 5);
    rde_param_i_state_merge_value (<<state>>);
    return;
}

/*
 */






|
|
|
|
|
|
|
|
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>







 







|

|












|

|







 







|

|












|



|






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
..
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
..
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
<<attributes>> void <<ns>>sequence_9 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_Sinus (<<STATE>> <<state>>);

/*
 * Precomputed table of strings (symbols, error messages, etc.).
 */

static char const* <<string-table>> [22] = {
    /*        0 = */   "alnum",
    /*        1 = */   "alpha",
    /*        2 = */   "ascii",
    /*        3 = */   "control",
    /*        4 = */   "ddigit",
    /*        5 = */   "digit",
    /*        6 = */   "graph",
    /*        7 = */   "lower",
    /*        8 = */   "print",
    /*        9 = */   "punct",
    /*       10 = */   "space",
    /*       11 = */   "upper",
    /*       12 = */   "wordchar",
    /*       13 = */   "xdigit",
    /*       14 = */   "n Expression",
    /*       15 = */   "Expression",
    /*       16 = */   "n Function",
    /*       17 = */   "Function",
    /*       18 = */   "str sin\50",
    /*       19 = */   "t \51",
    /*       20 = */   "n Sinus",
    /*       21 = */   "Sinus"
};

/*
 * Grammar Start Expression
 */

<<attributes>> void <<ns>><<main>> (<<STATE>> <<state>>) { <<prelude>>
................................................................................
 */

<<attributes>> void <<ns>>sym_Expression (<<STATE>> <<state>>) { <<prelude>>
   /*
    * (Function)
    */

    if (rde_param_i_symbol_start_d (<<state>>, 15)) return ;
    <<self>> <<ns>>sym_Function (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 15, 14);
    return;
}

/*
 * value Symbol 'Function'
 */

<<attributes>> void <<ns>>sym_Function (<<STATE>> <<state>>) { <<prelude>>
   /*
    * (Sinus)
    */

    if (rde_param_i_symbol_start_d (<<state>>, 17)) return ;
    <<self>> <<ns>>sym_Sinus (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 17, 16);
    return;
}

/*
 * value Symbol 'Sinus'
 */

................................................................................
   /*
    * x
    *     "sin\("
    *     (Expression)
    *     '\)'
    */

    if (rde_param_i_symbol_start_d (<<state>>, 21)) return ;
    <<self>> <<ns>>sequence_9 (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 21, 20);
    return;
}

<<attributes>> void <<ns>>sequence_9 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "sin\("
    *     (Expression)
    *     '\)'
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_str (<<state>>, "sin\50", 18);
    if (rde_param_i_seq_void2value(<<state>>)) return;
    <<self>> <<ns>>sym_Expression (<<state>>);
    if (rde_param_i_seq_value2value(<<state>>)) return;
    rde_param_i_next_char (<<state>>, "\51", 19);
    rde_param_i_state_merge_value (<<state>>);
    return;
}

/*
 */

Changes to modules/pt/tests/data/ok/peg_cparam/2_fun_arithmetic.

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
..
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
...
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
...
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
...
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
...
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
...
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
...
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
...
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
<<attributes>> void <<ns>>sym_Sinus (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_Term (<<STATE>> <<state>>);

/*
 * Precomputed table of strings (symbols, error messages, etc.).
 */

static char const* <<string-table>> [26] = {
    /*        0 = */   "cl '-+'",
    /*        1 = */   "n AddOp",
    /*        2 = */   "AddOp",
    /*        3 = */   "cl '0123456789'",
    /*        4 = */   "n Digit",
    /*        5 = */   "Digit",
    /*        6 = */   "t \50",
    /*        7 = */   "t \51",
    /*        8 = */   "n Expression",
    /*        9 = */   "Expression",
    /*       10 = */   "n Factor",
    /*       11 = */   "Factor",
    /*       12 = */   "n Function",
    /*       13 = */   "Function",
    /*       14 = */   "cl '*/'",
    /*       15 = */   "n MulOp",
    /*       16 = */   "MulOp",
    /*       17 = */   "n Number",
    /*       18 = */   "Number",
    /*       19 = */   "n Sign",
    /*       20 = */   "Sign",
    /*       21 = */   "str 'sin\50'",
    /*       22 = */   "n Sinus",
    /*       23 = */   "Sinus",
    /*       24 = */   "n Term",
    /*       25 = */   "Term"














};

/*
 * Grammar Start Expression
 */

<<attributes>> void <<ns>><<main>> (<<STATE>> <<state>>) { <<prelude>>
................................................................................
 */

<<attributes>> void <<ns>>sym_AddOp (<<STATE>> <<state>>) { <<prelude>>
   /*
    * [-+]
    */

    if (rde_param_i_symbol_start (<<state>>, 2)) return ;
    rde_param_i_next_class (<<state>>, "-+", 0);
    rde_param_i_symbol_done_leaf (<<state>>, 2, 1);
    return;
}

/*
 * value Symbol 'Digit'
 */

<<attributes>> void <<ns>>sym_Digit (<<STATE>> <<state>>) { <<prelude>>
   /*
    * [0123456789]
    */

    if (rde_param_i_symbol_start (<<state>>, 5)) return ;
    rde_param_i_next_class (<<state>>, "0123456789", 3);
    rde_param_i_symbol_done_leaf (<<state>>, 5, 4);
    return;
}

/*
 * value Symbol 'Expression'
 */

................................................................................
    *         (Factor)
    *         *
    *             x
    *                 (MulOp)
    *                 (Factor)
    */

    if (rde_param_i_symbol_start_d (<<state>>, 9)) return ;
    <<self>> <<ns>>choice_21 (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 9, 8);
    return;
}

<<attributes>> void <<ns>>choice_21 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * /
    *     (Function)
................................................................................
    * x
    *     '\('
    *     (Expression)
    *     '\)'
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_char (<<state>>, "\50", 6);
    if (rde_param_i_seq_void2value(<<state>>)) return;
    <<self>> <<ns>>sym_Expression (<<state>>);
    if (rde_param_i_seq_value2value(<<state>>)) return;
    rde_param_i_next_char (<<state>>, "\51", 7);
    rde_param_i_state_merge_value (<<state>>);
    return;
}

<<attributes>> void <<ns>>sequence_19 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
................................................................................
    *     (Term)
    *     *
    *         x
    *             (AddOp)
    *             (Term)
    */

    if (rde_param_i_symbol_start_d (<<state>>, 11)) return ;
    <<self>> <<ns>>sequence_31 (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 11, 10);
    return;
}

<<attributes>> void <<ns>>sequence_31 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     (Term)
................................................................................
 */

<<attributes>> void <<ns>>sym_Function (<<STATE>> <<state>>) { <<prelude>>
   /*
    * (Sinus)
    */

    if (rde_param_i_symbol_start_d (<<state>>, 13)) return ;
    <<self>> <<ns>>sym_Sinus (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 13, 12);
    return;
}

/*
 * value Symbol 'MulOp'
 */

<<attributes>> void <<ns>>sym_MulOp (<<STATE>> <<state>>) { <<prelude>>
   /*
    * [\u002a\u002f]
    */

    if (rde_param_i_symbol_start (<<state>>, 16)) return ;
    rde_param_i_next_class (<<state>>, "*/", 14);
    rde_param_i_symbol_done_leaf (<<state>>, 16, 15);
    return;
}

/*
 * value Symbol 'Number'
 */

................................................................................
    * x
    *     ?
    *         (Sign)
    *     +
    *         (Digit)
    */

    if (rde_param_i_symbol_start_d (<<state>>, 18)) return ;
    <<self>> <<ns>>sequence_44 (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 18, 17);
    return;
}

<<attributes>> void <<ns>>sequence_44 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     ?
................................................................................
 */

<<attributes>> void <<ns>>sym_Sign (<<STATE>> <<state>>) { <<prelude>>
   /*
    * [-+]
    */

    if (rde_param_i_symbol_start (<<state>>, 20)) return ;
    rde_param_i_next_class (<<state>>, "-+", 0);
    rde_param_i_symbol_done_leaf (<<state>>, 20, 19);
    return;
}

/*
 * value Symbol 'Sinus'
 */

................................................................................
   /*
    * x
    *     "sin\("
    *     (Expression)
    *     '\)'
    */

    if (rde_param_i_symbol_start_d (<<state>>, 23)) return ;
    <<self>> <<ns>>sequence_52 (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 23, 22);
    return;
}

<<attributes>> void <<ns>>sequence_52 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "sin\("
    *     (Expression)
    *     '\)'
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_str (<<state>>, "sin\50", 21);
    if (rde_param_i_seq_void2value(<<state>>)) return;
    <<self>> <<ns>>sym_Expression (<<state>>);
    if (rde_param_i_seq_value2value(<<state>>)) return;
    rde_param_i_next_char (<<state>>, "\51", 7);
    rde_param_i_state_merge_value (<<state>>);
    return;
}

/*
 * value Symbol 'Term'
 */

<<attributes>> void <<ns>>sym_Term (<<STATE>> <<state>>) { <<prelude>>
   /*
    * (Number)
    */

    if (rde_param_i_symbol_start_d (<<state>>, 25)) return ;
    <<self>> <<ns>>sym_Number (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 25, 24);
    return;
}

/*
 */






|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>







 







|
|
|












|
|
|







 







|

|







 







|



|







 







|

|







 







|

|












|
|
|







 







|

|







 







|
|
|







 







|

|












|



|













|

|





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
..
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
...
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
...
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
...
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
...
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
...
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
...
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
...
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
<<attributes>> void <<ns>>sym_Sinus (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_Term (<<STATE>> <<state>>);

/*
 * Precomputed table of strings (symbols, error messages, etc.).
 */

static char const* <<string-table>> [40] = {
    /*        0 = */   "alnum",
    /*        1 = */   "alpha",
    /*        2 = */   "ascii",
    /*        3 = */   "control",
    /*        4 = */   "ddigit",
    /*        5 = */   "digit",
    /*        6 = */   "graph",
    /*        7 = */   "lower",
    /*        8 = */   "print",
    /*        9 = */   "punct",
    /*       10 = */   "space",
    /*       11 = */   "upper",
    /*       12 = */   "wordchar",
    /*       13 = */   "xdigit",
    /*       14 = */   "cl -+",
    /*       15 = */   "n AddOp",
    /*       16 = */   "AddOp",
    /*       17 = */   "cl 0123456789",
    /*       18 = */   "n Digit",
    /*       19 = */   "Digit",
    /*       20 = */   "t \50",
    /*       21 = */   "t \51",
    /*       22 = */   "n Expression",
    /*       23 = */   "Expression",
    /*       24 = */   "n Factor",
    /*       25 = */   "Factor",
    /*       26 = */   "n Function",
    /*       27 = */   "Function",
    /*       28 = */   "cl */",
    /*       29 = */   "n MulOp",
    /*       30 = */   "MulOp",
    /*       31 = */   "n Number",
    /*       32 = */   "Number",
    /*       33 = */   "n Sign",
    /*       34 = */   "Sign",
    /*       35 = */   "str sin\50",
    /*       36 = */   "n Sinus",
    /*       37 = */   "Sinus",
    /*       38 = */   "n Term",
    /*       39 = */   "Term"
};

/*
 * Grammar Start Expression
 */

<<attributes>> void <<ns>><<main>> (<<STATE>> <<state>>) { <<prelude>>
................................................................................
 */

<<attributes>> void <<ns>>sym_AddOp (<<STATE>> <<state>>) { <<prelude>>
   /*
    * [-+]
    */

    if (rde_param_i_symbol_start (<<state>>, 16)) return ;
    rde_param_i_next_class (<<state>>, "-+", 14);
    rde_param_i_symbol_done_leaf (<<state>>, 16, 15);
    return;
}

/*
 * value Symbol 'Digit'
 */

<<attributes>> void <<ns>>sym_Digit (<<STATE>> <<state>>) { <<prelude>>
   /*
    * [0123456789]
    */

    if (rde_param_i_symbol_start (<<state>>, 19)) return ;
    rde_param_i_next_class (<<state>>, "0123456789", 17);
    rde_param_i_symbol_done_leaf (<<state>>, 19, 18);
    return;
}

/*
 * value Symbol 'Expression'
 */

................................................................................
    *         (Factor)
    *         *
    *             x
    *                 (MulOp)
    *                 (Factor)
    */

    if (rde_param_i_symbol_start_d (<<state>>, 23)) return ;
    <<self>> <<ns>>choice_21 (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 23, 22);
    return;
}

<<attributes>> void <<ns>>choice_21 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * /
    *     (Function)
................................................................................
    * x
    *     '\('
    *     (Expression)
    *     '\)'
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_char (<<state>>, "\50", 20);
    if (rde_param_i_seq_void2value(<<state>>)) return;
    <<self>> <<ns>>sym_Expression (<<state>>);
    if (rde_param_i_seq_value2value(<<state>>)) return;
    rde_param_i_next_char (<<state>>, "\51", 21);
    rde_param_i_state_merge_value (<<state>>);
    return;
}

<<attributes>> void <<ns>>sequence_19 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
................................................................................
    *     (Term)
    *     *
    *         x
    *             (AddOp)
    *             (Term)
    */

    if (rde_param_i_symbol_start_d (<<state>>, 25)) return ;
    <<self>> <<ns>>sequence_31 (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 25, 24);
    return;
}

<<attributes>> void <<ns>>sequence_31 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     (Term)
................................................................................
 */

<<attributes>> void <<ns>>sym_Function (<<STATE>> <<state>>) { <<prelude>>
   /*
    * (Sinus)
    */

    if (rde_param_i_symbol_start_d (<<state>>, 27)) return ;
    <<self>> <<ns>>sym_Sinus (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 27, 26);
    return;
}

/*
 * value Symbol 'MulOp'
 */

<<attributes>> void <<ns>>sym_MulOp (<<STATE>> <<state>>) { <<prelude>>
   /*
    * [\u002a\u002f]
    */

    if (rde_param_i_symbol_start (<<state>>, 30)) return ;
    rde_param_i_next_class (<<state>>, "*/", 28);
    rde_param_i_symbol_done_leaf (<<state>>, 30, 29);
    return;
}

/*
 * value Symbol 'Number'
 */

................................................................................
    * x
    *     ?
    *         (Sign)
    *     +
    *         (Digit)
    */

    if (rde_param_i_symbol_start_d (<<state>>, 32)) return ;
    <<self>> <<ns>>sequence_44 (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 32, 31);
    return;
}

<<attributes>> void <<ns>>sequence_44 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     ?
................................................................................
 */

<<attributes>> void <<ns>>sym_Sign (<<STATE>> <<state>>) { <<prelude>>
   /*
    * [-+]
    */

    if (rde_param_i_symbol_start (<<state>>, 34)) return ;
    rde_param_i_next_class (<<state>>, "-+", 14);
    rde_param_i_symbol_done_leaf (<<state>>, 34, 33);
    return;
}

/*
 * value Symbol 'Sinus'
 */

................................................................................
   /*
    * x
    *     "sin\("
    *     (Expression)
    *     '\)'
    */

    if (rde_param_i_symbol_start_d (<<state>>, 37)) return ;
    <<self>> <<ns>>sequence_52 (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 37, 36);
    return;
}

<<attributes>> void <<ns>>sequence_52 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "sin\("
    *     (Expression)
    *     '\)'
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_str (<<state>>, "sin\50", 35);
    if (rde_param_i_seq_void2value(<<state>>)) return;
    <<self>> <<ns>>sym_Expression (<<state>>);
    if (rde_param_i_seq_value2value(<<state>>)) return;
    rde_param_i_next_char (<<state>>, "\51", 21);
    rde_param_i_state_merge_value (<<state>>);
    return;
}

/*
 * value Symbol 'Term'
 */

<<attributes>> void <<ns>>sym_Term (<<STATE>> <<state>>) { <<prelude>>
   /*
    * (Number)
    */

    if (rde_param_i_symbol_start_d (<<state>>, 39)) return ;
    <<self>> <<ns>>sym_Number (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 39, 38);
    return;
}

/*
 */

Changes to modules/pt/tests/data/ok/peg_cparam/3_peg_itself.

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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337








338
339
340
341
342
343
344
...
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
...
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
...
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
...
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
...
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
...
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
...
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
...
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
...
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
...
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
...
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
...
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
...
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
...
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
...
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
...
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
...
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
...
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
....
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
....
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
....
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
....
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
....
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
....
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
....
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
....
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
....
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
....
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
....
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
....
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
....
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
....
1491
1492
1493
1494
1495
1496
1497
1498

1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512

1513
1514
1515
1516
1517


1518
1519
1520
1521
1522
1523
1524
1525
....
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
....
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
....
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
....
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
....
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
....
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
....
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
....
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
....
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
....
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
....
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
....
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
....
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
....
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
....
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
....
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161




2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174




2175
2176
2177
2178
2179


2180
2181
2182
2183
2184














2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
....
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
....
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
....
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
....
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
....
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
....
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
....
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
....
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
....
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
....
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
....
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
....
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
....
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
....
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
....
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
....
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
....
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
....
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
....
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
....
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
<<attributes>> void <<ns>>optional_137 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_143 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_Definition (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_148 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_DIGIT (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_153 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_DOT (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_158 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_END (<<STATE>> <<state>>);
<<attributes>> void <<ns>>notahead_162 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_EOF (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_EOL (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_170 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>kleene_172 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_174 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_Expression (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_180 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_Final (<<STATE>> <<state>>);
<<attributes>> void <<ns>>kleene_186 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_190 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_Grammar (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_195 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_GRAPH (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_201 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_Header (<<STATE>> <<state>>);
<<attributes>> void <<ns>>choice_206 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>choice_210 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>kleene_212 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_214 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_Ident (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_219 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_Identifier (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_224 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_IS (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_229 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_LEAF (<<STATE>> <<state>>);
<<attributes>> void <<ns>>notahead_234 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_237 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>kleene_239 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_243 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>notahead_247 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_250 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>kleene_252 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_256 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>choice_258 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_Literal (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_263 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_LOWER (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_268 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_NOT (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_273 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_OPEN (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_OPENB (<<STATE>> <<state>>);

<<attributes>> void <<ns>>sequence_280 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_PEG (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_285 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_PLUS (<<STATE>> <<state>>);
<<attributes>> void <<ns>>choice_290 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>optional_292 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_295 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_Prefix (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_316 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>choice_321 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_Primary (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_326 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_PRINTABLE (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_331 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_PUNCT (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_336 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_QUESTION (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_342 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>choice_345 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_Range (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_350 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_SEMICOLON (<<STATE>> <<state>>);
<<attributes>> void <<ns>>poskleene_354 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_Sequence (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_359 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_SLASH (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_364 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_SPACE (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_369 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_STAR (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_StartExpr (<<STATE>> <<state>>);
<<attributes>> void <<ns>>choice_381 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>optional_383 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_385 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_Suffix (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_TO (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_392 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_UPPER (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_397 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_VOID (<<STATE>> <<state>>);
<<attributes>> void <<ns>>choice_402 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>kleene_404 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_WHITESPACE (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_409 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_WORDCHAR (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_414 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_XDIGIT (<<STATE>> <<state>>);

/*
 * Precomputed table of strings (symbols, error messages, etc.).
 */

static char const* <<string-table>> [170] = {
    /*        0 = */   "str '<alnum>'",
    /*        1 = */   "n ALNUM",
    /*        2 = */   "ALNUM",
    /*        3 = */   "str '<alpha>'",
    /*        4 = */   "n ALPHA",
    /*        5 = */   "ALPHA",
    /*        6 = */   "t &",
    /*        7 = */   "n AND",
    /*        8 = */   "AND",
    /*        9 = */   "t '",
    /*       10 = */   "n APOSTROPH",
    /*       11 = */   "APOSTROPH",
    /*       12 = */   "str '<ascii>'",
    /*       13 = */   "n ASCII",
    /*       14 = */   "ASCII",
    /*       15 = */   "n Attribute",
    /*       16 = */   "Attribute",
    /*       17 = */   "n Char",
    /*       18 = */   "Char",
    /*       19 = */   "t \134",
    /*       20 = */   ".. 0 2",
    /*       21 = */   ".. 0 7",
    /*       22 = */   "n CharOctalFull",
    /*       23 = */   "CharOctalFull",
    /*       24 = */   "n CharOctalPart",
    /*       25 = */   "CharOctalPart",
    /*       26 = */   "cl 'nrt'\42\133\135\134'",
    /*       27 = */   "n CharSpecial",
    /*       28 = */   "CharSpecial",
    /*       29 = */   "dot",
    /*       30 = */   "n CharUnescaped",
    /*       31 = */   "CharUnescaped",
    /*       32 = */   "str '\134u'",
    /*       33 = */   "xdigit",
    /*       34 = */   "n CharUnicode",
    /*       35 = */   "CharUnicode",
    /*       36 = */   "n Class",
    /*       37 = */   "Class",
    /*       38 = */   "t \51",
    /*       39 = */   "n CLOSE",
    /*       40 = */   "CLOSE",
    /*       41 = */   "t \135",
    /*       42 = */   "n CLOSEB",
    /*       43 = */   "CLOSEB",
    /*       44 = */   "t :",
    /*       45 = */   "n COLON",
    /*       46 = */   "COLON",
    /*       47 = */   "t #",
    /*       48 = */   "n COMMENT",
    /*       49 = */   "COMMENT",
    /*       50 = */   "str '<control>'",
    /*       51 = */   "n CONTROL",
    /*       52 = */   "CONTROL",
    /*       53 = */   "t \42",
    /*       54 = */   "n DAPOSTROPH",
    /*       55 = */   "DAPOSTROPH",
    /*       56 = */   "str '<ddigit>'",
    /*       57 = */   "n DDIGIT",
    /*       58 = */   "DDIGIT",
    /*       59 = */   "n Definition",
    /*       60 = */   "Definition",
    /*       61 = */   "str '<digit>'",
    /*       62 = */   "n DIGIT",
    /*       63 = */   "DIGIT",
    /*       64 = */   "t .",
    /*       65 = */   "n DOT",
    /*       66 = */   "DOT",
    /*       67 = */   "str 'END'",
    /*       68 = */   "n END",
    /*       69 = */   "END",
    /*       70 = */   "n EOF",
    /*       71 = */   "EOF",
    /*       72 = */   "cl '\n\r'",
    /*       73 = */   "n EOL",
    /*       74 = */   "EOL",
    /*       75 = */   "n Expression",
    /*       76 = */   "Expression",
    /*       77 = */   "n Final",
    /*       78 = */   "Final",
    /*       79 = */   "n Grammar",
    /*       80 = */   "Grammar",
    /*       81 = */   "str '<graph>'",
    /*       82 = */   "n GRAPH",
    /*       83 = */   "GRAPH",
    /*       84 = */   "n Header",
    /*       85 = */   "Header",
    /*       86 = */   "cl '_:'",
    /*       87 = */   "alpha",
    /*       88 = */   "alnum",
    /*       89 = */   "n Ident",
    /*       90 = */   "Ident",
    /*       91 = */   "n Identifier",
    /*       92 = */   "Identifier",
    /*       93 = */   "str '<-'",
    /*       94 = */   "n IS",
    /*       95 = */   "IS",
    /*       96 = */   "str 'leaf'",
    /*       97 = */   "n LEAF",
    /*       98 = */   "LEAF",
    /*       99 = */   "n Literal",
    /*      100 = */   "Literal",
    /*      101 = */   "str '<lower>'",
    /*      102 = */   "n LOWER",
    /*      103 = */   "LOWER",
    /*      104 = */   "t !",
    /*      105 = */   "n NOT",
    /*      106 = */   "NOT",
    /*      107 = */   "t \50",
    /*      108 = */   "n OPEN",
    /*      109 = */   "OPEN",
    /*      110 = */   "t \133",
    /*      111 = */   "n OPENB",
    /*      112 = */   "OPENB",
    /*      113 = */   "str 'PEG'",
    /*      114 = */   "n PEG",
    /*      115 = */   "PEG",
    /*      116 = */   "t +",
    /*      117 = */   "n PLUS",
    /*      118 = */   "PLUS",
    /*      119 = */   "n Prefix",
    /*      120 = */   "Prefix",
    /*      121 = */   "n Primary",
    /*      122 = */   "Primary",
    /*      123 = */   "str '<print>'",
    /*      124 = */   "n PRINTABLE",
    /*      125 = */   "PRINTABLE",
    /*      126 = */   "str '<punct>'",
    /*      127 = */   "n PUNCT",
    /*      128 = */   "PUNCT",
    /*      129 = */   "t ?",
    /*      130 = */   "n QUESTION",
    /*      131 = */   "QUESTION",
    /*      132 = */   "n Range",
    /*      133 = */   "Range",
    /*      134 = */   "t \73",
    /*      135 = */   "n SEMICOLON",
    /*      136 = */   "SEMICOLON",
    /*      137 = */   "n Sequence",
    /*      138 = */   "Sequence",
    /*      139 = */   "t /",
    /*      140 = */   "n SLASH",
    /*      141 = */   "SLASH",
    /*      142 = */   "str '<space>'",
    /*      143 = */   "n SPACE",
    /*      144 = */   "SPACE",
    /*      145 = */   "t *",
    /*      146 = */   "n STAR",
    /*      147 = */   "STAR",
    /*      148 = */   "n StartExpr",
    /*      149 = */   "StartExpr",
    /*      150 = */   "n Suffix",
    /*      151 = */   "Suffix",
    /*      152 = */   "t -",
    /*      153 = */   "n TO",
    /*      154 = */   "TO",
    /*      155 = */   "str '<upper>'",
    /*      156 = */   "n UPPER",
    /*      157 = */   "UPPER",
    /*      158 = */   "str 'void'",
    /*      159 = */   "n VOID",
    /*      160 = */   "VOID",
    /*      161 = */   "space",
    /*      162 = */   "n WHITESPACE",
    /*      163 = */   "WHITESPACE",
    /*      164 = */   "str '<wordchar>'",
    /*      165 = */   "n WORDCHAR",
    /*      166 = */   "WORDCHAR",
    /*      167 = */   "str '<xdigit>'",
    /*      168 = */   "n XDIGIT",
    /*      169 = */   "XDIGIT"








};

/*
 * Grammar Start Expression
 */

<<attributes>> void <<ns>><<main>> (<<STATE>> <<state>>) { <<prelude>>
................................................................................
<<attributes>> void <<ns>>sym_ALNUM (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<alnum>"
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_start (<<state>>, 2)) return ;
    <<self>> <<ns>>sequence_4 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 2, 1);
    return;
}

<<attributes>> void <<ns>>sequence_4 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<alnum>"
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_str (<<state>>, "<alnum>", 0);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................
<<attributes>> void <<ns>>sym_ALPHA (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<alpha>"
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_start (<<state>>, 5)) return ;
    <<self>> <<ns>>sequence_9 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 5, 4);
    return;
}

<<attributes>> void <<ns>>sequence_9 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<alpha>"
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_str (<<state>>, "<alpha>", 3);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................
<<attributes>> void <<ns>>sym_AND (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     '&'
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_start (<<state>>, 8)) return ;
    <<self>> <<ns>>sequence_14 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 8, 7);
    return;
}

<<attributes>> void <<ns>>sequence_14 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     '&'
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_char (<<state>>, "&", 6);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................
 */

<<attributes>> void <<ns>>sym_APOSTROPH (<<STATE>> <<state>>) { <<prelude>>
   /*
    * '''
    */

    if (rde_param_i_symbol_void_start (<<state>>, 11)) return ;
    rde_param_i_next_char (<<state>>, "'", 9);
    rde_param_i_symbol_done_void (<<state>>, 11, 10);
    return;
}

/*
 * leaf Symbol 'ASCII'
 */

................................................................................
<<attributes>> void <<ns>>sym_ASCII (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<ascii>"
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_start (<<state>>, 14)) return ;
    <<self>> <<ns>>sequence_21 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 14, 13);
    return;
}

<<attributes>> void <<ns>>sequence_21 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<ascii>"
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_str (<<state>>, "<ascii>", 12);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................
    * x
    *     /
    *         (VOID)
    *         (LEAF)
    *     (COLON)
    */

    if (rde_param_i_symbol_start_d (<<state>>, 16)) return ;
    <<self>> <<ns>>sequence_29 (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 16, 15);
    return;
}

<<attributes>> void <<ns>>sequence_29 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     /
................................................................................
    *     (CharSpecial)
    *     (CharOctalFull)
    *     (CharOctalPart)
    *     (CharUnicode)
    *     (CharUnescaped)
    */

    if (rde_param_i_symbol_start_d (<<state>>, 18)) return ;
    <<self>> <<ns>>choice_37 (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 18, 17);
    return;
}

<<attributes>> void <<ns>>choice_37 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * /
    *     (CharSpecial)
................................................................................
    * x
    *     '\'
    *     range (0 .. 2)
    *     range (0 .. 7)
    *     range (0 .. 7)
    */

    if (rde_param_i_symbol_start (<<state>>, 23)) return ;
    <<self>> <<ns>>sequence_44 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 23, 22);
    return;
}

<<attributes>> void <<ns>>sequence_44 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     '\'
    *     range (0 .. 2)
    *     range (0 .. 7)
    *     range (0 .. 7)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_char (<<state>>, "\134", 19);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    rde_param_i_next_range (<<state>>, "0", "2", 20);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    rde_param_i_next_range (<<state>>, "0", "7", 21);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    rde_param_i_next_range (<<state>>, "0", "7", 21);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
 * leaf Symbol 'CharOctalPart'
 */
................................................................................
    * x
    *     '\'
    *     range (0 .. 7)
    *     ?
    *         range (0 .. 7)
    */

    if (rde_param_i_symbol_start (<<state>>, 25)) return ;
    <<self>> <<ns>>sequence_52 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 25, 24);
    return;
}

<<attributes>> void <<ns>>sequence_52 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     '\'
    *     range (0 .. 7)
    *     ?
    *         range (0 .. 7)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_char (<<state>>, "\134", 19);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    rde_param_i_next_range (<<state>>, "0", "7", 21);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>optional_50 (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

<<attributes>> void <<ns>>optional_50 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * ?
    *     range (0 .. 7)
    */

    rde_param_i_state_push_2 (<<state>>);
    rde_param_i_next_range (<<state>>, "0", "7", 21);
    rde_param_i_state_merge_ok (<<state>>);
    return;
}

/*
 * leaf Symbol 'CharSpecial'
 */
................................................................................
<<attributes>> void <<ns>>sym_CharSpecial (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     '\'
    *     [nrt'\"[]\]
    */

    if (rde_param_i_symbol_start (<<state>>, 28)) return ;
    <<self>> <<ns>>sequence_57 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 28, 27);
    return;
}

<<attributes>> void <<ns>>sequence_57 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     '\'
    *     [nrt'\"[]\]
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_char (<<state>>, "\134", 19);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    rde_param_i_next_class (<<state>>, "nrt'\42\133\135\134", 26);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
 * leaf Symbol 'CharUnescaped'
 */
................................................................................
   /*
    * x
    *     !
    *         '\'
    *     <dot>
    */

    if (rde_param_i_symbol_start (<<state>>, 31)) return ;
    <<self>> <<ns>>sequence_64 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 31, 30);
    return;
}

<<attributes>> void <<ns>>sequence_64 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     !
................................................................................
    *         '\'
    *     <dot>
    */

    rde_param_i_state_push_void (<<state>>);
    <<self>> <<ns>>notahead_61 (<<state>>);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    rde_param_i_input_next (<<state>>, 29);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

<<attributes>> void <<ns>>notahead_61 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * !
    *     '\'
    */

    rde_param_i_loc_push (<<state>>);
    rde_param_i_next_char (<<state>>, "\134", 19);
    rde_param_i_notahead_exit (<<state>>);
    return;
}

/*
 * leaf Symbol 'CharUnicode'
 */
................................................................................
    *             ?
    *                 x
    *                     <xdigit>
    *                     ?
    *                         <xdigit>
    */

    if (rde_param_i_symbol_start (<<state>>, 35)) return ;
    <<self>> <<ns>>sequence_82 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 35, 34);
    return;
}

<<attributes>> void <<ns>>sequence_82 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "\u"
................................................................................
    *                 x
    *                     <xdigit>
    *                     ?
    *                         <xdigit>
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_str (<<state>>, "\134u", 32);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    rde_param_i_next_xdigit (<<state>>, 33);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>optional_80 (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

<<attributes>> void <<ns>>optional_80 (<<STATE>> <<state>>) { <<prelude>>
................................................................................
    *         x
    *             <xdigit>
    *             ?
    *                 <xdigit>
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_xdigit (<<state>>, 33);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>optional_76 (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

<<attributes>> void <<ns>>optional_76 (<<STATE>> <<state>>) { <<prelude>>
................................................................................
    * x
    *     <xdigit>
    *     ?
    *         <xdigit>
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_xdigit (<<state>>, 33);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>optional_72 (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

<<attributes>> void <<ns>>optional_72 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * ?
    *     <xdigit>
    */

    rde_param_i_state_push_2 (<<state>>);
    rde_param_i_next_xdigit (<<state>>, 33);
    rde_param_i_state_merge_ok (<<state>>);
    return;
}

/*
 * value Symbol 'Class'
 */
................................................................................
    *             !
    *                 (CLOSEB)
    *             (Range)
    *     (CLOSEB)
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_start_d (<<state>>, 37)) return ;
    <<self>> <<ns>>sequence_96 (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 37, 36);
    return;
}

<<attributes>> void <<ns>>sequence_96 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     (OPENB)
................................................................................
<<attributes>> void <<ns>>sym_CLOSE (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     '\)'
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_void_start (<<state>>, 40)) return ;
    <<self>> <<ns>>sequence_101 (<<state>>);
    rde_param_i_symbol_done_void (<<state>>, 40, 39);
    return;
}

<<attributes>> void <<ns>>sequence_101 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     '\)'
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_char (<<state>>, "\51", 38);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................
 */

<<attributes>> void <<ns>>sym_CLOSEB (<<STATE>> <<state>>) { <<prelude>>
   /*
    * ']'
    */

    if (rde_param_i_symbol_void_start (<<state>>, 43)) return ;
    rde_param_i_next_char (<<state>>, "\135", 41);
    rde_param_i_symbol_done_void (<<state>>, 43, 42);
    return;
}

/*
 * void Symbol 'COLON'
 */

................................................................................
<<attributes>> void <<ns>>sym_COLON (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     ':'
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_void_start (<<state>>, 46)) return ;
    <<self>> <<ns>>sequence_108 (<<state>>);
    rde_param_i_symbol_done_void (<<state>>, 46, 45);
    return;
}

<<attributes>> void <<ns>>sequence_108 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     ':'
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_char (<<state>>, ":", 44);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................
    *         x
    *             !
    *                 (EOL)
    *             <dot>
    *     (EOL)
    */

    if (rde_param_i_symbol_void_start (<<state>>, 49)) return ;
    <<self>> <<ns>>sequence_121 (<<state>>);
    rde_param_i_symbol_done_void (<<state>>, 49, 48);
    return;
}

<<attributes>> void <<ns>>sequence_121 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     '#'
................................................................................
    *             !
    *                 (EOL)
    *             <dot>
    *     (EOL)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_char (<<state>>, "#", 47);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>kleene_118 (<<state>>);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_EOL (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}
................................................................................
    *         (EOL)
    *     <dot>
    */

    rde_param_i_state_push_void (<<state>>);
    <<self>> <<ns>>notahead_113 (<<state>>);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    rde_param_i_input_next (<<state>>, 29);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

<<attributes>> void <<ns>>notahead_113 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * !
................................................................................
<<attributes>> void <<ns>>sym_CONTROL (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<control>"
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_start (<<state>>, 52)) return ;
    <<self>> <<ns>>sequence_126 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 52, 51);
    return;
}

<<attributes>> void <<ns>>sequence_126 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<control>"
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_str (<<state>>, "<control>", 50);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................
 */

<<attributes>> void <<ns>>sym_DAPOSTROPH (<<STATE>> <<state>>) { <<prelude>>
   /*
    * '\"'
    */

    if (rde_param_i_symbol_void_start (<<state>>, 55)) return ;
    rde_param_i_next_char (<<state>>, "\42", 53);
    rde_param_i_symbol_done_void (<<state>>, 55, 54);
    return;
}

/*
 * leaf Symbol 'DDIGIT'
 */

................................................................................
<<attributes>> void <<ns>>sym_DDIGIT (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<ddigit>"
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_start (<<state>>, 58)) return ;
    <<self>> <<ns>>sequence_133 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 58, 57);
    return;
}

<<attributes>> void <<ns>>sequence_133 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<ddigit>"
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_str (<<state>>, "<ddigit>", 56);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................
    *         (Attribute)
    *     (Identifier)
    *     (IS)
    *     (Expression)
    *     (SEMICOLON)
    */

    if (rde_param_i_symbol_start_d (<<state>>, 60)) return ;
    <<self>> <<ns>>sequence_143 (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 60, 59);
    return;
}

<<attributes>> void <<ns>>sequence_143 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     ?
................................................................................
<<attributes>> void <<ns>>sym_DIGIT (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<digit>"
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_start (<<state>>, 63)) return ;
    <<self>> <<ns>>sequence_148 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 63, 62);
    return;
}

<<attributes>> void <<ns>>sequence_148 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<digit>"
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_str (<<state>>, "<digit>", 61);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................
<<attributes>> void <<ns>>sym_DOT (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     '.'
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_start (<<state>>, 66)) return ;
    <<self>> <<ns>>sequence_153 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 66, 65);
    return;
}

<<attributes>> void <<ns>>sequence_153 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     '.'
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_char (<<state>>, ".", 64);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
 * void Symbol 'END'
 */

<<attributes>> void <<ns>>sym_END (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "END"
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_void_start (<<state>>, 69)) return ;
    <<self>> <<ns>>sequence_158 (<<state>>);
    rde_param_i_symbol_done_void (<<state>>, 69, 68);
    return;
}

<<attributes>> void <<ns>>sequence_158 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "END"
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_str (<<state>>, "END", 67);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................

<<attributes>> void <<ns>>sym_EOF (<<STATE>> <<state>>) { <<prelude>>
   /*
    * !
    *     <dot>
    */

    if (rde_param_i_symbol_void_start (<<state>>, 71)) return ;
    <<self>> <<ns>>notahead_162 (<<state>>);
    rde_param_i_symbol_done_void (<<state>>, 71, 70);
    return;
}

<<attributes>> void <<ns>>notahead_162 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * !
    *     <dot>
    */

    rde_param_i_loc_push (<<state>>);
    rde_param_i_input_next (<<state>>, 29);
    rde_param_i_notahead_exit (<<state>>);
    return;
}

/*
 * void Symbol 'EOL'
 */

<<attributes>> void <<ns>>sym_EOL (<<STATE>> <<state>>) { <<prelude>>
   /*
    * [\n\r]
    */

    if (rde_param_i_symbol_void_start (<<state>>, 74)) return ;
    rde_param_i_next_class (<<state>>, "\n\r", 72);
    rde_param_i_symbol_done_void (<<state>>, 74, 73);
    return;
}

/*
 * value Symbol 'Expression'
 */

................................................................................
    *     (Sequence)
    *     *
    *         x
    *             (SLASH)
    *             (Sequence)
    */

    if (rde_param_i_symbol_start_d (<<state>>, 76)) return ;
    <<self>> <<ns>>sequence_174 (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 76, 75);
    return;
}

<<attributes>> void <<ns>>sequence_174 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     (Sequence)
    *     *
    *         x
    *             (SLASH)
    *             (Sequence)
    */

    rde_param_i_state_push_value (<<state>>);
    <<self>> <<ns>>sym_Sequence (<<state>>);
    if (rde_param_i_seq_value2value(<<state>>)) return;
    <<self>> <<ns>>kleene_172 (<<state>>);
    rde_param_i_state_merge_value (<<state>>);
    return;
}

<<attributes>> void <<ns>>kleene_172 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * *
    *     x
    *         (SLASH)
    *         (Sequence)
    */

    while (1) {
        rde_param_i_state_push_2 (<<state>>);
        <<self>> <<ns>>sequence_170 (<<state>>);
        if (rde_param_i_kleene_close(<<state>>)) return;
    }
    return;
}

<<attributes>> void <<ns>>sequence_170 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     (SLASH)
    *     (Sequence)
    */

    rde_param_i_state_push_void (<<state>>);
................................................................................
/*
 * void Symbol 'Final'
 */

<<attributes>> void <<ns>>sym_Final (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     (END)

    *     (SEMICOLON)
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_void_start (<<state>>, 78)) return ;
    <<self>> <<ns>>sequence_180 (<<state>>);
    rde_param_i_symbol_done_void (<<state>>, 78, 77);
    return;
}

<<attributes>> void <<ns>>sequence_180 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     (END)

    *     (SEMICOLON)
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);


    <<self>> <<ns>>sym_END (<<state>>);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_SEMICOLON (<<state>>);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}
................................................................................
    *     (Header)
    *     *
    *         (Definition)
    *     (Final)
    *     (EOF)
    */

    if (rde_param_i_symbol_start_d (<<state>>, 80)) return ;
    <<self>> <<ns>>sequence_190 (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 80, 79);
    return;
}

<<attributes>> void <<ns>>sequence_190 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     (WHITESPACE)
    *     (Header)
    *     *
    *         (Definition)
    *     (Final)
................................................................................
    */

    rde_param_i_state_push_void (<<state>>);
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    if (rde_param_i_seq_void2value(<<state>>)) return;
    <<self>> <<ns>>sym_Header (<<state>>);
    if (rde_param_i_seq_value2value(<<state>>)) return;
    <<self>> <<ns>>kleene_186 (<<state>>);
    if (rde_param_i_seq_value2value(<<state>>)) return;
    <<self>> <<ns>>sym_Final (<<state>>);
    if (rde_param_i_seq_value2value(<<state>>)) return;
    <<self>> <<ns>>sym_EOF (<<state>>);
    rde_param_i_state_merge_value (<<state>>);
    return;
}

<<attributes>> void <<ns>>kleene_186 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * *
    *     (Definition)
    */

    while (1) {
        rde_param_i_state_push_2 (<<state>>);
................................................................................
<<attributes>> void <<ns>>sym_GRAPH (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<graph>"
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_start (<<state>>, 83)) return ;
    <<self>> <<ns>>sequence_195 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 83, 82);
    return;
}

<<attributes>> void <<ns>>sequence_195 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<graph>"
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_str (<<state>>, "<graph>", 81);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................
   /*
    * x
    *     (PEG)
    *     (Identifier)
    *     (StartExpr)
    */

    if (rde_param_i_symbol_start_d (<<state>>, 85)) return ;
    <<self>> <<ns>>sequence_201 (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 85, 84);
    return;
}

<<attributes>> void <<ns>>sequence_201 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     (PEG)
    *     (Identifier)
    *     (StartExpr)
    */

................................................................................
    *         <alpha>
    *     *
    *         /
    *             [_:]
    *             <alnum>
    */

    if (rde_param_i_symbol_start (<<state>>, 90)) return ;
    <<self>> <<ns>>sequence_214 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 90, 89);
    return;
}

<<attributes>> void <<ns>>sequence_214 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     /
    *         [_:]
    *         <alpha>
    *     *
    *         /
    *             [_:]
    *             <alnum>
    */

    rde_param_i_state_push_void (<<state>>);
    <<self>> <<ns>>choice_206 (<<state>>);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>kleene_212 (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

<<attributes>> void <<ns>>choice_206 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * /
    *     [_:]
    *     <alpha>
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_class (<<state>>, "_:", 86);
    if (rde_param_i_bra_void2void(<<state>>)) return;
    rde_param_i_next_alpha (<<state>>, 87);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

<<attributes>> void <<ns>>kleene_212 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * *
    *     /
    *         [_:]
    *         <alnum>
    */

    while (1) {
        rde_param_i_state_push_2 (<<state>>);
        <<self>> <<ns>>choice_210 (<<state>>);
        if (rde_param_i_kleene_close(<<state>>)) return;
    }
    return;
}

<<attributes>> void <<ns>>choice_210 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * /
    *     [_:]
    *     <alnum>
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_class (<<state>>, "_:", 86);
    if (rde_param_i_bra_void2void(<<state>>)) return;
    rde_param_i_next_alnum (<<state>>, 88);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
 * value Symbol 'Identifier'
 */
................................................................................
<<attributes>> void <<ns>>sym_Identifier (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     (Ident)
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_start_d (<<state>>, 92)) return ;
    <<self>> <<ns>>sequence_219 (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 92, 91);
    return;
}

<<attributes>> void <<ns>>sequence_219 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     (Ident)
    *     (WHITESPACE)
    */

    rde_param_i_state_push_value (<<state>>);
................................................................................
<<attributes>> void <<ns>>sym_IS (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<-"
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_void_start (<<state>>, 95)) return ;
    <<self>> <<ns>>sequence_224 (<<state>>);
    rde_param_i_symbol_done_void (<<state>>, 95, 94);
    return;
}

<<attributes>> void <<ns>>sequence_224 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<-"
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_str (<<state>>, "<-", 93);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................
<<attributes>> void <<ns>>sym_LEAF (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "leaf"
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_start (<<state>>, 98)) return ;
    <<self>> <<ns>>sequence_229 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 98, 97);
    return;
}

<<attributes>> void <<ns>>sequence_229 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "leaf"
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_str (<<state>>, "leaf", 96);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................
    *                 !
    *                     (DAPOSTROPH)
    *                 (Char)
    *         (DAPOSTROPH)
    *         (WHITESPACE)
    */

    if (rde_param_i_symbol_start_d (<<state>>, 100)) return ;
    <<self>> <<ns>>choice_258 (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 100, 99);
    return;
}

<<attributes>> void <<ns>>choice_258 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * /
    *     x
    *         (APOSTROPH)
    *         *
    *             x
    *                 !
................................................................................
    *                     (DAPOSTROPH)
    *                 (Char)
    *         (DAPOSTROPH)
    *         (WHITESPACE)
    */

    rde_param_i_state_push_value (<<state>>);
    <<self>> <<ns>>sequence_243 (<<state>>);
    if (rde_param_i_bra_value2value(<<state>>)) return;
    <<self>> <<ns>>sequence_256 (<<state>>);
    rde_param_i_state_merge_value (<<state>>);
    return;
}

<<attributes>> void <<ns>>sequence_243 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     (APOSTROPH)
    *     *
    *         x
    *             !
    *                 (APOSTROPH)
................................................................................
    *     (APOSTROPH)
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    <<self>> <<ns>>sym_APOSTROPH (<<state>>);
    if (rde_param_i_seq_void2value(<<state>>)) return;
    <<self>> <<ns>>kleene_239 (<<state>>);
    if (rde_param_i_seq_value2value(<<state>>)) return;
    <<self>> <<ns>>sym_APOSTROPH (<<state>>);
    if (rde_param_i_seq_value2value(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_value (<<state>>);
    return;
}

<<attributes>> void <<ns>>kleene_239 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * *
    *     x
    *         !
    *             (APOSTROPH)
    *         (Char)
    */

    while (1) {
        rde_param_i_state_push_2 (<<state>>);
        <<self>> <<ns>>sequence_237 (<<state>>);
        if (rde_param_i_kleene_close(<<state>>)) return;
    }
    return;
}

<<attributes>> void <<ns>>sequence_237 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     !
    *         (APOSTROPH)
    *     (Char)
    */

    rde_param_i_state_push_void (<<state>>);
    <<self>> <<ns>>notahead_234 (<<state>>);
    if (rde_param_i_seq_void2value(<<state>>)) return;
    <<self>> <<ns>>sym_Char (<<state>>);
    rde_param_i_state_merge_value (<<state>>);
    return;
}

<<attributes>> void <<ns>>notahead_234 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * !
    *     (APOSTROPH)
    */

    rde_param_i_loc_push (<<state>>);
    <<self>> <<ns>>sym_APOSTROPH (<<state>>);
    rde_param_i_notahead_exit (<<state>>);
    return;
}

<<attributes>> void <<ns>>sequence_256 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     (DAPOSTROPH)
    *     *
    *         x
    *             !
    *                 (DAPOSTROPH)
................................................................................
    *     (DAPOSTROPH)
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    <<self>> <<ns>>sym_DAPOSTROPH (<<state>>);
    if (rde_param_i_seq_void2value(<<state>>)) return;
    <<self>> <<ns>>kleene_252 (<<state>>);
    if (rde_param_i_seq_value2value(<<state>>)) return;
    <<self>> <<ns>>sym_DAPOSTROPH (<<state>>);
    if (rde_param_i_seq_value2value(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_value (<<state>>);
    return;
}

<<attributes>> void <<ns>>kleene_252 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * *
    *     x
    *         !
    *             (DAPOSTROPH)
    *         (Char)
    */

    while (1) {
        rde_param_i_state_push_2 (<<state>>);
        <<self>> <<ns>>sequence_250 (<<state>>);
        if (rde_param_i_kleene_close(<<state>>)) return;
    }
    return;
}

<<attributes>> void <<ns>>sequence_250 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     !
    *         (DAPOSTROPH)
    *     (Char)
    */

    rde_param_i_state_push_void (<<state>>);
    <<self>> <<ns>>notahead_247 (<<state>>);
    if (rde_param_i_seq_void2value(<<state>>)) return;
    <<self>> <<ns>>sym_Char (<<state>>);
    rde_param_i_state_merge_value (<<state>>);
    return;
}

<<attributes>> void <<ns>>notahead_247 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * !
    *     (DAPOSTROPH)
    */

    rde_param_i_loc_push (<<state>>);
    <<self>> <<ns>>sym_DAPOSTROPH (<<state>>);
................................................................................
<<attributes>> void <<ns>>sym_LOWER (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<lower>"
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_start (<<state>>, 103)) return ;
    <<self>> <<ns>>sequence_263 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 103, 102);
    return;
}

<<attributes>> void <<ns>>sequence_263 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<lower>"
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_str (<<state>>, "<lower>", 101);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................
<<attributes>> void <<ns>>sym_NOT (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     '!'
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_start (<<state>>, 106)) return ;
    <<self>> <<ns>>sequence_268 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 106, 105);
    return;
}

<<attributes>> void <<ns>>sequence_268 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     '!'
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_char (<<state>>, "!", 104);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................
<<attributes>> void <<ns>>sym_OPEN (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     '\('
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_void_start (<<state>>, 109)) return ;
    <<self>> <<ns>>sequence_273 (<<state>>);
    rde_param_i_symbol_done_void (<<state>>, 109, 108);
    return;
}

<<attributes>> void <<ns>>sequence_273 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     '\('
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_char (<<state>>, "\50", 107);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................
 */

<<attributes>> void <<ns>>sym_OPENB (<<STATE>> <<state>>) { <<prelude>>
   /*
    * '['
    */

    if (rde_param_i_symbol_void_start (<<state>>, 112)) return ;
    rde_param_i_next_char (<<state>>, "\133", 110);
    rde_param_i_symbol_done_void (<<state>>, 112, 111);
    return;
}

/*
 * void Symbol 'PEG'
 */

<<attributes>> void <<ns>>sym_PEG (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "PEG"




    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_void_start (<<state>>, 115)) return ;
    <<self>> <<ns>>sequence_280 (<<state>>);
    rde_param_i_symbol_done_void (<<state>>, 115, 114);
    return;
}

<<attributes>> void <<ns>>sequence_280 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "PEG"




    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_str (<<state>>, "PEG", 113);


    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}















/*
 * leaf Symbol 'PLUS'
 */

<<attributes>> void <<ns>>sym_PLUS (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     '+'
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_start (<<state>>, 118)) return ;
    <<self>> <<ns>>sequence_285 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 118, 117);
    return;
}

<<attributes>> void <<ns>>sequence_285 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     '+'
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_char (<<state>>, "+", 116);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................
    *     ?
    *         /
    *             (AND)
    *             (NOT)
    *     (Suffix)
    */

    if (rde_param_i_symbol_start_d (<<state>>, 120)) return ;
    <<self>> <<ns>>sequence_295 (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 120, 119);
    return;
}

<<attributes>> void <<ns>>sequence_295 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     ?
    *         /
    *             (AND)
    *             (NOT)
    *     (Suffix)
    */

    rde_param_i_state_push_value (<<state>>);
    <<self>> <<ns>>optional_292 (<<state>>);
    if (rde_param_i_seq_value2value(<<state>>)) return;
    <<self>> <<ns>>sym_Suffix (<<state>>);
    rde_param_i_state_merge_value (<<state>>);
    return;
}

<<attributes>> void <<ns>>optional_292 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * ?
    *     /
    *         (AND)
    *         (NOT)
    */

    rde_param_i_state_push_2 (<<state>>);
    <<self>> <<ns>>choice_290 (<<state>>);
    rde_param_i_state_merge_ok (<<state>>);
    return;
}

<<attributes>> void <<ns>>choice_290 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * /
    *     (AND)
    *     (NOT)
    */

    rde_param_i_state_push_value (<<state>>);
................................................................................
    *         (Expression)
    *         (CLOSE)
    *     (Literal)
    *     (Class)
    *     (DOT)
    */

    if (rde_param_i_symbol_start_d (<<state>>, 122)) return ;
    <<self>> <<ns>>choice_321 (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 122, 121);
    return;
}

<<attributes>> void <<ns>>choice_321 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * /
    *     (ALNUM)
    *     (ALPHA)
    *     (ASCII)
    *     (CONTROL)
    *     (DDIGIT)
................................................................................
    if (rde_param_i_bra_value2value(<<state>>)) return;
    <<self>> <<ns>>sym_WORDCHAR (<<state>>);
    if (rde_param_i_bra_value2value(<<state>>)) return;
    <<self>> <<ns>>sym_XDIGIT (<<state>>);
    if (rde_param_i_bra_value2value(<<state>>)) return;
    <<self>> <<ns>>sym_Identifier (<<state>>);
    if (rde_param_i_bra_value2value(<<state>>)) return;
    <<self>> <<ns>>sequence_316 (<<state>>);
    if (rde_param_i_bra_value2value(<<state>>)) return;
    <<self>> <<ns>>sym_Literal (<<state>>);
    if (rde_param_i_bra_value2value(<<state>>)) return;
    <<self>> <<ns>>sym_Class (<<state>>);
    if (rde_param_i_bra_value2value(<<state>>)) return;
    <<self>> <<ns>>sym_DOT (<<state>>);
    rde_param_i_state_merge_value (<<state>>);
    return;
}

<<attributes>> void <<ns>>sequence_316 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     (OPEN)
    *     (Expression)
    *     (CLOSE)
    */

................................................................................
<<attributes>> void <<ns>>sym_PRINTABLE (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<print>"
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_start (<<state>>, 125)) return ;
    <<self>> <<ns>>sequence_326 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 125, 124);
    return;
}

<<attributes>> void <<ns>>sequence_326 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<print>"
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_str (<<state>>, "<print>", 123);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................
<<attributes>> void <<ns>>sym_PUNCT (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<punct>"
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_start (<<state>>, 128)) return ;
    <<self>> <<ns>>sequence_331 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 128, 127);
    return;
}

<<attributes>> void <<ns>>sequence_331 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<punct>"
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_str (<<state>>, "<punct>", 126);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................
<<attributes>> void <<ns>>sym_QUESTION (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     '?'
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_start (<<state>>, 131)) return ;
    <<self>> <<ns>>sequence_336 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 131, 130);
    return;
}

<<attributes>> void <<ns>>sequence_336 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     '?'
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_char (<<state>>, "?", 129);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................
    *     x
    *         (Char)
    *         (TO)
    *         (Char)
    *     (Char)
    */

    if (rde_param_i_symbol_start_d (<<state>>, 133)) return ;
    <<self>> <<ns>>choice_345 (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 133, 132);
    return;
}

<<attributes>> void <<ns>>choice_345 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * /
    *     x
    *         (Char)
    *         (TO)
    *         (Char)
    *     (Char)
    */

    rde_param_i_state_push_value (<<state>>);
    <<self>> <<ns>>sequence_342 (<<state>>);
    if (rde_param_i_bra_value2value(<<state>>)) return;
    <<self>> <<ns>>sym_Char (<<state>>);
    rde_param_i_state_merge_value (<<state>>);
    return;
}

<<attributes>> void <<ns>>sequence_342 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     (Char)
    *     (TO)
    *     (Char)
    */

................................................................................
<<attributes>> void <<ns>>sym_SEMICOLON (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     ';'
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_void_start (<<state>>, 136)) return ;
    <<self>> <<ns>>sequence_350 (<<state>>);
    rde_param_i_symbol_done_void (<<state>>, 136, 135);
    return;
}

<<attributes>> void <<ns>>sequence_350 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     ';'
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_char (<<state>>, "\73", 134);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................

<<attributes>> void <<ns>>sym_Sequence (<<STATE>> <<state>>) { <<prelude>>
   /*
    * +
    *     (Prefix)
    */

    if (rde_param_i_symbol_start_d (<<state>>, 138)) return ;
    <<self>> <<ns>>poskleene_354 (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 138, 137);
    return;
}

<<attributes>> void <<ns>>poskleene_354 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * +
    *     (Prefix)
    */

    rde_param_i_loc_push (<<state>>);
    <<self>> <<ns>>sym_Prefix (<<state>>);
................................................................................
<<attributes>> void <<ns>>sym_SLASH (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     '/'
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_void_start (<<state>>, 141)) return ;
    <<self>> <<ns>>sequence_359 (<<state>>);
    rde_param_i_symbol_done_void (<<state>>, 141, 140);
    return;
}

<<attributes>> void <<ns>>sequence_359 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     '/'
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_char (<<state>>, "/", 139);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................
<<attributes>> void <<ns>>sym_SPACE (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<space>"
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_start (<<state>>, 144)) return ;
    <<self>> <<ns>>sequence_364 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 144, 143);
    return;
}

<<attributes>> void <<ns>>sequence_364 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<space>"
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_str (<<state>>, "<space>", 142);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................
<<attributes>> void <<ns>>sym_STAR (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     '*'
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_start (<<state>>, 147)) return ;
    <<self>> <<ns>>sequence_369 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 147, 146);
    return;
}

<<attributes>> void <<ns>>sequence_369 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     '*'
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_char (<<state>>, "*", 145);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................
   /*
    * x
    *     (OPEN)
    *     (Expression)
    *     (CLOSE)
    */

    if (rde_param_i_symbol_start_d (<<state>>, 149)) return ;
    <<self>> <<ns>>sequence_316 (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 149, 148);
    return;
}

/*
 * value Symbol 'Suffix'
 */

................................................................................
    *     ?
    *         /
    *             (QUESTION)
    *             (STAR)
    *             (PLUS)
    */

    if (rde_param_i_symbol_start_d (<<state>>, 151)) return ;
    <<self>> <<ns>>sequence_385 (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 151, 150);
    return;
}

<<attributes>> void <<ns>>sequence_385 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     (Primary)
    *     ?
    *         /
    *             (QUESTION)
    *             (STAR)
    *             (PLUS)
    */

    rde_param_i_state_push_value (<<state>>);
    <<self>> <<ns>>sym_Primary (<<state>>);
    if (rde_param_i_seq_value2value(<<state>>)) return;
    <<self>> <<ns>>optional_383 (<<state>>);
    rde_param_i_state_merge_value (<<state>>);
    return;
}

<<attributes>> void <<ns>>optional_383 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * ?
    *     /
    *         (QUESTION)
    *         (STAR)
    *         (PLUS)
    */

    rde_param_i_state_push_2 (<<state>>);
    <<self>> <<ns>>choice_381 (<<state>>);
    rde_param_i_state_merge_ok (<<state>>);
    return;
}

<<attributes>> void <<ns>>choice_381 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * /
    *     (QUESTION)
    *     (STAR)
    *     (PLUS)
    */

................................................................................
 */

<<attributes>> void <<ns>>sym_TO (<<STATE>> <<state>>) { <<prelude>>
   /*
    * '-'
    */

    if (rde_param_i_symbol_void_start (<<state>>, 154)) return ;
    rde_param_i_next_char (<<state>>, "-", 152);
    rde_param_i_symbol_done_void (<<state>>, 154, 153);
    return;
}

/*
 * leaf Symbol 'UPPER'
 */

................................................................................
<<attributes>> void <<ns>>sym_UPPER (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<upper>"
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_start (<<state>>, 157)) return ;
    <<self>> <<ns>>sequence_392 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 157, 156);
    return;
}

<<attributes>> void <<ns>>sequence_392 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<upper>"
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_str (<<state>>, "<upper>", 155);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................
<<attributes>> void <<ns>>sym_VOID (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "void"
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_start (<<state>>, 160)) return ;
    <<self>> <<ns>>sequence_397 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 160, 159);
    return;
}

<<attributes>> void <<ns>>sequence_397 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "void"
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_str (<<state>>, "void", 158);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................
   /*
    * *
    *     /
    *         <space>
    *         (COMMENT)
    */

    if (rde_param_i_symbol_void_start (<<state>>, 163)) return ;
    <<self>> <<ns>>kleene_404 (<<state>>);
    rde_param_i_symbol_done_void (<<state>>, 163, 162);
    return;
}

<<attributes>> void <<ns>>kleene_404 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * *
    *     /
    *         <space>
    *         (COMMENT)
    */

    while (1) {
        rde_param_i_state_push_2 (<<state>>);
        <<self>> <<ns>>choice_402 (<<state>>);
        if (rde_param_i_kleene_close(<<state>>)) return;
    }
    return;
}

<<attributes>> void <<ns>>choice_402 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * /
    *     <space>
    *     (COMMENT)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_space (<<state>>, 161);
    if (rde_param_i_bra_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_COMMENT (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................
<<attributes>> void <<ns>>sym_WORDCHAR (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<wordchar>"
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_start (<<state>>, 166)) return ;
    <<self>> <<ns>>sequence_409 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 166, 165);
    return;
}

<<attributes>> void <<ns>>sequence_409 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<wordchar>"
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_str (<<state>>, "<wordchar>", 164);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................
<<attributes>> void <<ns>>sym_XDIGIT (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<xdigit>"
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_start (<<state>>, 169)) return ;
    <<self>> <<ns>>sequence_414 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 169, 168);
    return;
}

<<attributes>> void <<ns>>sequence_414 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<xdigit>"
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_str (<<state>>, "<xdigit>", 167);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
 */






<
<
|


|
|
|

|

|
|

|

|

|
|
|
|

|

|

|

|
|
|
|
|
|
|
|
|

|

|

|


>
|

|

|
|
|

|
|

|

|

|

|
|

|

|

|

|

|


|
|
|


|

|

|
|

|

|






|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
>
>
>
>
>
>
>
>







 







|

|











|







 







|

|











|







 







|

|











|







 







|
|
|







 







|

|











|







 







|

|







 







|

|







 







|

|













|

|

|

|







 







|

|













|

|













|







 







|

|











|

|







 







|

|







 







|











|







 







|

|







 







|

|







 







|







 







|













|







 







|

|







 







|

|











|







 







|
|
|







 







|

|











|







 







|

|







 







|







 







|







 







|

|











|







 







|
|
|







 







|

|











|







 







|

|







 







|

|











|







 







|

|











|
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<







 







|
|
|



|






|













|
|
|







 







|
|
|



|












|




|









|





|







 







|
>




|
|
|



|


|
>





>
>
|







 







|
|
|



|







 







|








|







 







|
|
|



|







|







 







|
|
|



|







 







|
|
|



|












|

|




|







|

|




|









|





|







|

|







 







|
|
|



|







 







|
|
|



|







|







 







|
|
|



|







|







 







|
|
|



|







 







|

|




|







 







|








|










|





|








|






|











|







 







|








|










|





|








|






|







 







|
|
|



|







|







 







|
|
|



|







|







 







|
|
|



|







|







 







|
|
|











>
>
>
>



|
|
|



|



>
>
>
>




|
>
>





>
>
>
>
>
>
>
>
>
>
>
>
>
>












|
|
|



|







|







 







|
|
|



|










|






|








|




|







 







|
|
|



|







 







|










|







 







|
|
|



|







|







 







|
|
|



|







|







 







|
|
|



|







|







 







|
|
|



|










|






|







 







|
|
|



|







|







 







|
|
|



|







 







|
|
|



|







|







 







|
|
|



|







|







 







|
|
|



|







|







 







|
|
|







 







|
|
|



|













|




|









|




|







 







|
|
|







 







|
|
|



|







|







 







|
|
|



|







|







 







|
|
|



|









|





|







|







 







|
|
|



|







|







 







|
|
|



|







|








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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
...
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
...
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
...
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
...
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
...
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
...
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
...
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
...
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
...
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
...
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
...
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
...
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
...
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
...
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
...
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
...
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
...
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
...
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
....
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
....
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
....
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
....
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
....
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
....
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
....
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
....
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
....
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
....
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
....
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
































1348
1349
1350
1351
1352
1353
1354
....
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
....
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
....
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
....
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
....
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
....
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
....
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
....
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
....
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
....
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
....
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
....
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
....
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
....
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
....
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
....
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
....
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
....
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
....
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
....
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
....
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
....
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
....
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
....
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
....
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
....
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
....
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
....
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
....
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
....
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
....
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
....
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
....
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
....
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
....
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
....
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
....
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
....
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
....
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
<<attributes>> void <<ns>>optional_137 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_143 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_Definition (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_148 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_DIGIT (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_153 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_DOT (<<STATE>> <<state>>);


<<attributes>> void <<ns>>notahead_157 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_EOF (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_EOL (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_165 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>kleene_167 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_169 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_Expression (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_176 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_Final (<<STATE>> <<state>>);
<<attributes>> void <<ns>>kleene_182 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_186 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_Grammar (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_191 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_GRAPH (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_197 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_Header (<<STATE>> <<state>>);
<<attributes>> void <<ns>>choice_202 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>choice_206 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>kleene_208 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_210 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_Ident (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_215 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_Identifier (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_220 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_IS (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_225 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_LEAF (<<STATE>> <<state>>);
<<attributes>> void <<ns>>notahead_230 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_233 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>kleene_235 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_239 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>notahead_243 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_246 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>kleene_248 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_252 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>choice_254 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_Literal (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_259 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_LOWER (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_264 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_NOT (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_269 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_OPEN (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_OPENB (<<STATE>> <<state>>);
<<attributes>> void <<ns>>notahead_278 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_281 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_PEG (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_286 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_PLUS (<<STATE>> <<state>>);
<<attributes>> void <<ns>>choice_291 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>optional_293 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_296 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_Prefix (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_317 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>choice_322 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_Primary (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_327 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_PRINTABLE (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_332 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_PUNCT (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_337 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_QUESTION (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_343 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>choice_346 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_Range (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_351 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_SEMICOLON (<<STATE>> <<state>>);
<<attributes>> void <<ns>>poskleene_355 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_Sequence (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_360 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_SLASH (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_365 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_SPACE (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_370 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_STAR (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_StartExpr (<<STATE>> <<state>>);
<<attributes>> void <<ns>>choice_382 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>optional_384 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_386 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_Suffix (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_TO (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_393 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_UPPER (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_398 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_VOID (<<STATE>> <<state>>);
<<attributes>> void <<ns>>choice_403 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>kleene_405 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_WHITESPACE (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_410 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_WORDCHAR (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sequence_415 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_XDIGIT (<<STATE>> <<state>>);

/*
 * Precomputed table of strings (symbols, error messages, etc.).
 */

static char const* <<string-table>> [178] = {
    /*        0 = */   "alnum",
    /*        1 = */   "alpha",
    /*        2 = */   "ascii",
    /*        3 = */   "control",
    /*        4 = */   "ddigit",
    /*        5 = */   "digit",
    /*        6 = */   "graph",
    /*        7 = */   "lower",
    /*        8 = */   "print",
    /*        9 = */   "punct",
    /*       10 = */   "space",
    /*       11 = */   "upper",
    /*       12 = */   "wordchar",
    /*       13 = */   "xdigit",
    /*       14 = */   "str <alnum>",
    /*       15 = */   "n ALNUM",
    /*       16 = */   "ALNUM",
    /*       17 = */   "str <alpha>",
    /*       18 = */   "n ALPHA",
    /*       19 = */   "ALPHA",
    /*       20 = */   "t &",
    /*       21 = */   "n AND",
    /*       22 = */   "AND",
    /*       23 = */   "t '",
    /*       24 = */   "n APOSTROPH",
    /*       25 = */   "APOSTROPH",
    /*       26 = */   "str <ascii>",
    /*       27 = */   "n ASCII",
    /*       28 = */   "ASCII",
    /*       29 = */   "n Attribute",
    /*       30 = */   "Attribute",
    /*       31 = */   "n Char",
    /*       32 = */   "Char",
    /*       33 = */   "t \134",
    /*       34 = */   ".. 0 2",
    /*       35 = */   ".. 0 7",
    /*       36 = */   "n CharOctalFull",
    /*       37 = */   "CharOctalFull",
    /*       38 = */   "n CharOctalPart",
    /*       39 = */   "CharOctalPart",
    /*       40 = */   "cl nrt'\42\133\135\134",
    /*       41 = */   "n CharSpecial",
    /*       42 = */   "CharSpecial",
    /*       43 = */   "dot",
    /*       44 = */   "n CharUnescaped",
    /*       45 = */   "CharUnescaped",
    /*       46 = */   "str \134u",
    /*       47 = */   "n CharUnicode",
    /*       48 = */   "CharUnicode",
    /*       49 = */   "n Class",
    /*       50 = */   "Class",
    /*       51 = */   "t \51",
    /*       52 = */   "n CLOSE",
    /*       53 = */   "CLOSE",
    /*       54 = */   "t \135",
    /*       55 = */   "n CLOSEB",
    /*       56 = */   "CLOSEB",
    /*       57 = */   "t :",
    /*       58 = */   "n COLON",
    /*       59 = */   "COLON",
    /*       60 = */   "t #",
    /*       61 = */   "n COMMENT",
    /*       62 = */   "COMMENT",
    /*       63 = */   "str <control>",
    /*       64 = */   "n CONTROL",
    /*       65 = */   "CONTROL",
    /*       66 = */   "t \42",
    /*       67 = */   "n DAPOSTROPH",
    /*       68 = */   "DAPOSTROPH",
    /*       69 = */   "str <ddigit>",
    /*       70 = */   "n DDIGIT",
    /*       71 = */   "DDIGIT",
    /*       72 = */   "n Definition",
    /*       73 = */   "Definition",
    /*       74 = */   "str <digit>",
    /*       75 = */   "n DIGIT",
    /*       76 = */   "DIGIT",
    /*       77 = */   "t .",
    /*       78 = */   "n DOT",
    /*       79 = */   "DOT",
    /*       80 = */   "n EOF",
    /*       81 = */   "EOF",
    /*       82 = */   "cl \n\r",
    /*       83 = */   "n EOL",
    /*       84 = */   "EOL",
    /*       85 = */   "n Expression",
    /*       86 = */   "Expression",
    /*       87 = */   "str END",
    /*       88 = */   "n Final",
    /*       89 = */   "Final",
    /*       90 = */   "n Grammar",
    /*       91 = */   "Grammar",
    /*       92 = */   "str <graph>",
    /*       93 = */   "n GRAPH",
    /*       94 = */   "GRAPH",
    /*       95 = */   "n Header",
    /*       96 = */   "Header",
    /*       97 = */   "cl _:",
    /*       98 = */   "n Ident",
    /*       99 = */   "Ident",
    /*      100 = */   "n Identifier",
    /*      101 = */   "Identifier",
    /*      102 = */   "str <-",
    /*      103 = */   "n IS",
    /*      104 = */   "IS",
    /*      105 = */   "str leaf",
    /*      106 = */   "n LEAF",
    /*      107 = */   "LEAF",
    /*      108 = */   "n Literal",
    /*      109 = */   "Literal",
    /*      110 = */   "str <lower>",
    /*      111 = */   "n LOWER",
    /*      112 = */   "LOWER",
    /*      113 = */   "t !",
    /*      114 = */   "n NOT",
    /*      115 = */   "NOT",
    /*      116 = */   "t \50",
    /*      117 = */   "n OPEN",
    /*      118 = */   "OPEN",
    /*      119 = */   "t \133",
    /*      120 = */   "n OPENB",
    /*      121 = */   "OPENB",
    /*      122 = */   "str PEG",
    /*      123 = */   "n PEG",
    /*      124 = */   "PEG",
    /*      125 = */   "t +",
    /*      126 = */   "n PLUS",
    /*      127 = */   "PLUS",
    /*      128 = */   "n Prefix",
    /*      129 = */   "Prefix",
    /*      130 = */   "n Primary",
    /*      131 = */   "Primary",
    /*      132 = */   "str <print>",
    /*      133 = */   "n PRINTABLE",
    /*      134 = */   "PRINTABLE",
    /*      135 = */   "str <punct>",
    /*      136 = */   "n PUNCT",
    /*      137 = */   "PUNCT",
    /*      138 = */   "t ?",
    /*      139 = */   "n QUESTION",
    /*      140 = */   "QUESTION",
    /*      141 = */   "n Range",
    /*      142 = */   "Range",
    /*      143 = */   "t \73",
    /*      144 = */   "n SEMICOLON",
    /*      145 = */   "SEMICOLON",
    /*      146 = */   "n Sequence",
    /*      147 = */   "Sequence",
    /*      148 = */   "t /",
    /*      149 = */   "n SLASH",
    /*      150 = */   "SLASH",
    /*      151 = */   "str <space>",
    /*      152 = */   "n SPACE",
    /*      153 = */   "SPACE",
    /*      154 = */   "t *",
    /*      155 = */   "n STAR",
    /*      156 = */   "STAR",
    /*      157 = */   "n StartExpr",
    /*      158 = */   "StartExpr",
    /*      159 = */   "n Suffix",
    /*      160 = */   "Suffix",
    /*      161 = */   "t -",
    /*      162 = */   "n TO",
    /*      163 = */   "TO",
    /*      164 = */   "str <upper>",
    /*      165 = */   "n UPPER",
    /*      166 = */   "UPPER",
    /*      167 = */   "str void",
    /*      168 = */   "n VOID",
    /*      169 = */   "VOID",
    /*      170 = */   "n WHITESPACE",
    /*      171 = */   "WHITESPACE",
    /*      172 = */   "str <wordchar>",
    /*      173 = */   "n WORDCHAR",
    /*      174 = */   "WORDCHAR",
    /*      175 = */   "str <xdigit>",
    /*      176 = */   "n XDIGIT",
    /*      177 = */   "XDIGIT"
};

/*
 * Grammar Start Expression
 */

<<attributes>> void <<ns>><<main>> (<<STATE>> <<state>>) { <<prelude>>
................................................................................
<<attributes>> void <<ns>>sym_ALNUM (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<alnum>"
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_start (<<state>>, 16)) return ;
    <<self>> <<ns>>sequence_4 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 16, 15);
    return;
}

<<attributes>> void <<ns>>sequence_4 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<alnum>"
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_str (<<state>>, "<alnum>", 14);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................
<<attributes>> void <<ns>>sym_ALPHA (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<alpha>"
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_start (<<state>>, 19)) return ;
    <<self>> <<ns>>sequence_9 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 19, 18);
    return;
}

<<attributes>> void <<ns>>sequence_9 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<alpha>"
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_str (<<state>>, "<alpha>", 17);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................
<<attributes>> void <<ns>>sym_AND (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     '&'
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_start (<<state>>, 22)) return ;
    <<self>> <<ns>>sequence_14 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 22, 21);
    return;
}

<<attributes>> void <<ns>>sequence_14 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     '&'
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_char (<<state>>, "&", 20);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................
 */

<<attributes>> void <<ns>>sym_APOSTROPH (<<STATE>> <<state>>) { <<prelude>>
   /*
    * '''
    */

    if (rde_param_i_symbol_void_start (<<state>>, 25)) return ;
    rde_param_i_next_char (<<state>>, "'", 23);
    rde_param_i_symbol_done_void (<<state>>, 25, 24);
    return;
}

/*
 * leaf Symbol 'ASCII'
 */

................................................................................
<<attributes>> void <<ns>>sym_ASCII (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<ascii>"
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_start (<<state>>, 28)) return ;
    <<self>> <<ns>>sequence_21 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 28, 27);
    return;
}

<<attributes>> void <<ns>>sequence_21 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<ascii>"
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_str (<<state>>, "<ascii>", 26);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................
    * x
    *     /
    *         (VOID)
    *         (LEAF)
    *     (COLON)
    */

    if (rde_param_i_symbol_start_d (<<state>>, 30)) return ;
    <<self>> <<ns>>sequence_29 (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 30, 29);
    return;
}

<<attributes>> void <<ns>>sequence_29 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     /
................................................................................
    *     (CharSpecial)
    *     (CharOctalFull)
    *     (CharOctalPart)
    *     (CharUnicode)
    *     (CharUnescaped)
    */

    if (rde_param_i_symbol_start_d (<<state>>, 32)) return ;
    <<self>> <<ns>>choice_37 (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 32, 31);
    return;
}

<<attributes>> void <<ns>>choice_37 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * /
    *     (CharSpecial)
................................................................................
    * x
    *     '\'
    *     range (0 .. 2)
    *     range (0 .. 7)
    *     range (0 .. 7)
    */

    if (rde_param_i_symbol_start (<<state>>, 37)) return ;
    <<self>> <<ns>>sequence_44 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 37, 36);
    return;
}

<<attributes>> void <<ns>>sequence_44 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     '\'
    *     range (0 .. 2)
    *     range (0 .. 7)
    *     range (0 .. 7)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_char (<<state>>, "\134", 33);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    rde_param_i_next_range (<<state>>, "0", "2", 34);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    rde_param_i_next_range (<<state>>, "0", "7", 35);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    rde_param_i_next_range (<<state>>, "0", "7", 35);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
 * leaf Symbol 'CharOctalPart'
 */
................................................................................
    * x
    *     '\'
    *     range (0 .. 7)
    *     ?
    *         range (0 .. 7)
    */

    if (rde_param_i_symbol_start (<<state>>, 39)) return ;
    <<self>> <<ns>>sequence_52 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 39, 38);
    return;
}

<<attributes>> void <<ns>>sequence_52 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     '\'
    *     range (0 .. 7)
    *     ?
    *         range (0 .. 7)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_char (<<state>>, "\134", 33);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    rde_param_i_next_range (<<state>>, "0", "7", 35);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>optional_50 (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

<<attributes>> void <<ns>>optional_50 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * ?
    *     range (0 .. 7)
    */

    rde_param_i_state_push_2 (<<state>>);
    rde_param_i_next_range (<<state>>, "0", "7", 35);
    rde_param_i_state_merge_ok (<<state>>);
    return;
}

/*
 * leaf Symbol 'CharSpecial'
 */
................................................................................
<<attributes>> void <<ns>>sym_CharSpecial (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     '\'
    *     [nrt'\"[]\]
    */

    if (rde_param_i_symbol_start (<<state>>, 42)) return ;
    <<self>> <<ns>>sequence_57 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 42, 41);
    return;
}

<<attributes>> void <<ns>>sequence_57 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     '\'
    *     [nrt'\"[]\]
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_char (<<state>>, "\134", 33);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    rde_param_i_next_class (<<state>>, "nrt'\42\133\135\134", 40);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
 * leaf Symbol 'CharUnescaped'
 */
................................................................................
   /*
    * x
    *     !
    *         '\'
    *     <dot>
    */

    if (rde_param_i_symbol_start (<<state>>, 45)) return ;
    <<self>> <<ns>>sequence_64 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 45, 44);
    return;
}

<<attributes>> void <<ns>>sequence_64 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     !
................................................................................
    *         '\'
    *     <dot>
    */

    rde_param_i_state_push_void (<<state>>);
    <<self>> <<ns>>notahead_61 (<<state>>);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    rde_param_i_input_next (<<state>>, 43);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

<<attributes>> void <<ns>>notahead_61 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * !
    *     '\'
    */

    rde_param_i_loc_push (<<state>>);
    rde_param_i_next_char (<<state>>, "\134", 33);
    rde_param_i_notahead_exit (<<state>>);
    return;
}

/*
 * leaf Symbol 'CharUnicode'
 */
................................................................................
    *             ?
    *                 x
    *                     <xdigit>
    *                     ?
    *                         <xdigit>
    */

    if (rde_param_i_symbol_start (<<state>>, 48)) return ;
    <<self>> <<ns>>sequence_82 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 48, 47);
    return;
}

<<attributes>> void <<ns>>sequence_82 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "\u"
................................................................................
    *                 x
    *                     <xdigit>
    *                     ?
    *                         <xdigit>
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_str (<<state>>, "\134u", 46);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    rde_param_i_next_xdigit (<<state>>, 13);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>optional_80 (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

<<attributes>> void <<ns>>optional_80 (<<STATE>> <<state>>) { <<prelude>>
................................................................................
    *         x
    *             <xdigit>
    *             ?
    *                 <xdigit>
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_xdigit (<<state>>, 13);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>optional_76 (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

<<attributes>> void <<ns>>optional_76 (<<STATE>> <<state>>) { <<prelude>>
................................................................................
    * x
    *     <xdigit>
    *     ?
    *         <xdigit>
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_xdigit (<<state>>, 13);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>optional_72 (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

<<attributes>> void <<ns>>optional_72 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * ?
    *     <xdigit>
    */

    rde_param_i_state_push_2 (<<state>>);
    rde_param_i_next_xdigit (<<state>>, 13);
    rde_param_i_state_merge_ok (<<state>>);
    return;
}

/*
 * value Symbol 'Class'
 */
................................................................................
    *             !
    *                 (CLOSEB)
    *             (Range)
    *     (CLOSEB)
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_start_d (<<state>>, 50)) return ;
    <<self>> <<ns>>sequence_96 (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 50, 49);
    return;
}

<<attributes>> void <<ns>>sequence_96 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     (OPENB)
................................................................................
<<attributes>> void <<ns>>sym_CLOSE (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     '\)'
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_void_start (<<state>>, 53)) return ;
    <<self>> <<ns>>sequence_101 (<<state>>);
    rde_param_i_symbol_done_void (<<state>>, 53, 52);
    return;
}

<<attributes>> void <<ns>>sequence_101 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     '\)'
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_char (<<state>>, "\51", 51);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................
 */

<<attributes>> void <<ns>>sym_CLOSEB (<<STATE>> <<state>>) { <<prelude>>
   /*
    * ']'
    */

    if (rde_param_i_symbol_void_start (<<state>>, 56)) return ;
    rde_param_i_next_char (<<state>>, "\135", 54);
    rde_param_i_symbol_done_void (<<state>>, 56, 55);
    return;
}

/*
 * void Symbol 'COLON'
 */

................................................................................
<<attributes>> void <<ns>>sym_COLON (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     ':'
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_void_start (<<state>>, 59)) return ;
    <<self>> <<ns>>sequence_108 (<<state>>);
    rde_param_i_symbol_done_void (<<state>>, 59, 58);
    return;
}

<<attributes>> void <<ns>>sequence_108 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     ':'
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_char (<<state>>, ":", 57);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................
    *         x
    *             !
    *                 (EOL)
    *             <dot>
    *     (EOL)
    */

    if (rde_param_i_symbol_void_start (<<state>>, 62)) return ;
    <<self>> <<ns>>sequence_121 (<<state>>);
    rde_param_i_symbol_done_void (<<state>>, 62, 61);
    return;
}

<<attributes>> void <<ns>>sequence_121 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     '#'
................................................................................
    *             !
    *                 (EOL)
    *             <dot>
    *     (EOL)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_char (<<state>>, "#", 60);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>kleene_118 (<<state>>);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_EOL (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}
................................................................................
    *         (EOL)
    *     <dot>
    */

    rde_param_i_state_push_void (<<state>>);
    <<self>> <<ns>>notahead_113 (<<state>>);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    rde_param_i_input_next (<<state>>, 43);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

<<attributes>> void <<ns>>notahead_113 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * !
................................................................................
<<attributes>> void <<ns>>sym_CONTROL (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<control>"
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_start (<<state>>, 65)) return ;
    <<self>> <<ns>>sequence_126 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 65, 64);
    return;
}

<<attributes>> void <<ns>>sequence_126 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<control>"
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_str (<<state>>, "<control>", 63);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................
 */

<<attributes>> void <<ns>>sym_DAPOSTROPH (<<STATE>> <<state>>) { <<prelude>>
   /*
    * '\"'
    */

    if (rde_param_i_symbol_void_start (<<state>>, 68)) return ;
    rde_param_i_next_char (<<state>>, "\42", 66);
    rde_param_i_symbol_done_void (<<state>>, 68, 67);
    return;
}

/*
 * leaf Symbol 'DDIGIT'
 */

................................................................................
<<attributes>> void <<ns>>sym_DDIGIT (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<ddigit>"
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_start (<<state>>, 71)) return ;
    <<self>> <<ns>>sequence_133 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 71, 70);
    return;
}

<<attributes>> void <<ns>>sequence_133 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<ddigit>"
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_str (<<state>>, "<ddigit>", 69);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................
    *         (Attribute)
    *     (Identifier)
    *     (IS)
    *     (Expression)
    *     (SEMICOLON)
    */

    if (rde_param_i_symbol_start_d (<<state>>, 73)) return ;
    <<self>> <<ns>>sequence_143 (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 73, 72);
    return;
}

<<attributes>> void <<ns>>sequence_143 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     ?
................................................................................
<<attributes>> void <<ns>>sym_DIGIT (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<digit>"
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_start (<<state>>, 76)) return ;
    <<self>> <<ns>>sequence_148 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 76, 75);
    return;
}

<<attributes>> void <<ns>>sequence_148 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<digit>"
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_str (<<state>>, "<digit>", 74);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................
<<attributes>> void <<ns>>sym_DOT (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     '.'
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_start (<<state>>, 79)) return ;
    <<self>> <<ns>>sequence_153 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 79, 78);
    return;
}

<<attributes>> void <<ns>>sequence_153 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     '.'
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_char (<<state>>, ".", 77);
































    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................

<<attributes>> void <<ns>>sym_EOF (<<STATE>> <<state>>) { <<prelude>>
   /*
    * !
    *     <dot>
    */

    if (rde_param_i_symbol_void_start (<<state>>, 81)) return ;
    <<self>> <<ns>>notahead_157 (<<state>>);
    rde_param_i_symbol_done_void (<<state>>, 81, 80);
    return;
}

<<attributes>> void <<ns>>notahead_157 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * !
    *     <dot>
    */

    rde_param_i_loc_push (<<state>>);
    rde_param_i_input_next (<<state>>, 43);
    rde_param_i_notahead_exit (<<state>>);
    return;
}

/*
 * void Symbol 'EOL'
 */

<<attributes>> void <<ns>>sym_EOL (<<STATE>> <<state>>) { <<prelude>>
   /*
    * [\n\r]
    */

    if (rde_param_i_symbol_void_start (<<state>>, 84)) return ;
    rde_param_i_next_class (<<state>>, "\n\r", 82);
    rde_param_i_symbol_done_void (<<state>>, 84, 83);
    return;
}

/*
 * value Symbol 'Expression'
 */

................................................................................
    *     (Sequence)
    *     *
    *         x
    *             (SLASH)
    *             (Sequence)
    */

    if (rde_param_i_symbol_start_d (<<state>>, 86)) return ;
    <<self>> <<ns>>sequence_169 (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 86, 85);
    return;
}

<<attributes>> void <<ns>>sequence_169 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     (Sequence)
    *     *
    *         x
    *             (SLASH)
    *             (Sequence)
    */

    rde_param_i_state_push_value (<<state>>);
    <<self>> <<ns>>sym_Sequence (<<state>>);
    if (rde_param_i_seq_value2value(<<state>>)) return;
    <<self>> <<ns>>kleene_167 (<<state>>);
    rde_param_i_state_merge_value (<<state>>);
    return;
}

<<attributes>> void <<ns>>kleene_167 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * *
    *     x
    *         (SLASH)
    *         (Sequence)
    */

    while (1) {
        rde_param_i_state_push_2 (<<state>>);
        <<self>> <<ns>>sequence_165 (<<state>>);
        if (rde_param_i_kleene_close(<<state>>)) return;
    }
    return;
}

<<attributes>> void <<ns>>sequence_165 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     (SLASH)
    *     (Sequence)
    */

    rde_param_i_state_push_void (<<state>>);
................................................................................
/*
 * void Symbol 'Final'
 */

<<attributes>> void <<ns>>sym_Final (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "END"
    *     (WHITESPACE)
    *     (SEMICOLON)
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_void_start (<<state>>, 89)) return ;
    <<self>> <<ns>>sequence_176 (<<state>>);
    rde_param_i_symbol_done_void (<<state>>, 89, 88);
    return;
}

<<attributes>> void <<ns>>sequence_176 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "END"
    *     (WHITESPACE)
    *     (SEMICOLON)
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_str (<<state>>, "END", 87);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_SEMICOLON (<<state>>);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}
................................................................................
    *     (Header)
    *     *
    *         (Definition)
    *     (Final)
    *     (EOF)
    */

    if (rde_param_i_symbol_start_d (<<state>>, 91)) return ;
    <<self>> <<ns>>sequence_186 (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 91, 90);
    return;
}

<<attributes>> void <<ns>>sequence_186 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     (WHITESPACE)
    *     (Header)
    *     *
    *         (Definition)
    *     (Final)
................................................................................
    */

    rde_param_i_state_push_void (<<state>>);
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    if (rde_param_i_seq_void2value(<<state>>)) return;
    <<self>> <<ns>>sym_Header (<<state>>);
    if (rde_param_i_seq_value2value(<<state>>)) return;
    <<self>> <<ns>>kleene_182 (<<state>>);
    if (rde_param_i_seq_value2value(<<state>>)) return;
    <<self>> <<ns>>sym_Final (<<state>>);
    if (rde_param_i_seq_value2value(<<state>>)) return;
    <<self>> <<ns>>sym_EOF (<<state>>);
    rde_param_i_state_merge_value (<<state>>);
    return;
}

<<attributes>> void <<ns>>kleene_182 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * *
    *     (Definition)
    */

    while (1) {
        rde_param_i_state_push_2 (<<state>>);
................................................................................
<<attributes>> void <<ns>>sym_GRAPH (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<graph>"
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_start (<<state>>, 94)) return ;
    <<self>> <<ns>>sequence_191 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 94, 93);
    return;
}

<<attributes>> void <<ns>>sequence_191 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<graph>"
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_str (<<state>>, "<graph>", 92);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................
   /*
    * x
    *     (PEG)
    *     (Identifier)
    *     (StartExpr)
    */

    if (rde_param_i_symbol_start_d (<<state>>, 96)) return ;
    <<self>> <<ns>>sequence_197 (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 96, 95);
    return;
}

<<attributes>> void <<ns>>sequence_197 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     (PEG)
    *     (Identifier)
    *     (StartExpr)
    */

................................................................................
    *         <alpha>
    *     *
    *         /
    *             [_:]
    *             <alnum>
    */

    if (rde_param_i_symbol_start (<<state>>, 99)) return ;
    <<self>> <<ns>>sequence_210 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 99, 98);
    return;
}

<<attributes>> void <<ns>>sequence_210 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     /
    *         [_:]
    *         <alpha>
    *     *
    *         /
    *             [_:]
    *             <alnum>
    */

    rde_param_i_state_push_void (<<state>>);
    <<self>> <<ns>>choice_202 (<<state>>);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>kleene_208 (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

<<attributes>> void <<ns>>choice_202 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * /
    *     [_:]
    *     <alpha>
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_class (<<state>>, "_:", 97);
    if (rde_param_i_bra_void2void(<<state>>)) return;
    rde_param_i_next_alpha (<<state>>, 1);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

<<attributes>> void <<ns>>kleene_208 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * *
    *     /
    *         [_:]
    *         <alnum>
    */

    while (1) {
        rde_param_i_state_push_2 (<<state>>);
        <<self>> <<ns>>choice_206 (<<state>>);
        if (rde_param_i_kleene_close(<<state>>)) return;
    }
    return;
}

<<attributes>> void <<ns>>choice_206 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * /
    *     [_:]
    *     <alnum>
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_class (<<state>>, "_:", 97);
    if (rde_param_i_bra_void2void(<<state>>)) return;
    rde_param_i_next_alnum (<<state>>, 0);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
 * value Symbol 'Identifier'
 */
................................................................................
<<attributes>> void <<ns>>sym_Identifier (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     (Ident)
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_start_d (<<state>>, 101)) return ;
    <<self>> <<ns>>sequence_215 (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 101, 100);
    return;
}

<<attributes>> void <<ns>>sequence_215 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     (Ident)
    *     (WHITESPACE)
    */

    rde_param_i_state_push_value (<<state>>);
................................................................................
<<attributes>> void <<ns>>sym_IS (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<-"
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_void_start (<<state>>, 104)) return ;
    <<self>> <<ns>>sequence_220 (<<state>>);
    rde_param_i_symbol_done_void (<<state>>, 104, 103);
    return;
}

<<attributes>> void <<ns>>sequence_220 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<-"
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_str (<<state>>, "<-", 102);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................
<<attributes>> void <<ns>>sym_LEAF (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "leaf"
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_start (<<state>>, 107)) return ;
    <<self>> <<ns>>sequence_225 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 107, 106);
    return;
}

<<attributes>> void <<ns>>sequence_225 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "leaf"
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_str (<<state>>, "leaf", 105);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................
    *                 !
    *                     (DAPOSTROPH)
    *                 (Char)
    *         (DAPOSTROPH)
    *         (WHITESPACE)
    */

    if (rde_param_i_symbol_start_d (<<state>>, 109)) return ;
    <<self>> <<ns>>choice_254 (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 109, 108);
    return;
}

<<attributes>> void <<ns>>choice_254 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * /
    *     x
    *         (APOSTROPH)
    *         *
    *             x
    *                 !
................................................................................
    *                     (DAPOSTROPH)
    *                 (Char)
    *         (DAPOSTROPH)
    *         (WHITESPACE)
    */

    rde_param_i_state_push_value (<<state>>);
    <<self>> <<ns>>sequence_239 (<<state>>);
    if (rde_param_i_bra_value2value(<<state>>)) return;
    <<self>> <<ns>>sequence_252 (<<state>>);
    rde_param_i_state_merge_value (<<state>>);
    return;
}

<<attributes>> void <<ns>>sequence_239 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     (APOSTROPH)
    *     *
    *         x
    *             !
    *                 (APOSTROPH)
................................................................................
    *     (APOSTROPH)
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    <<self>> <<ns>>sym_APOSTROPH (<<state>>);
    if (rde_param_i_seq_void2value(<<state>>)) return;
    <<self>> <<ns>>kleene_235 (<<state>>);
    if (rde_param_i_seq_value2value(<<state>>)) return;
    <<self>> <<ns>>sym_APOSTROPH (<<state>>);
    if (rde_param_i_seq_value2value(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_value (<<state>>);
    return;
}

<<attributes>> void <<ns>>kleene_235 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * *
    *     x
    *         !
    *             (APOSTROPH)
    *         (Char)
    */

    while (1) {
        rde_param_i_state_push_2 (<<state>>);
        <<self>> <<ns>>sequence_233 (<<state>>);
        if (rde_param_i_kleene_close(<<state>>)) return;
    }
    return;
}

<<attributes>> void <<ns>>sequence_233 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     !
    *         (APOSTROPH)
    *     (Char)
    */

    rde_param_i_state_push_void (<<state>>);
    <<self>> <<ns>>notahead_230 (<<state>>);
    if (rde_param_i_seq_void2value(<<state>>)) return;
    <<self>> <<ns>>sym_Char (<<state>>);
    rde_param_i_state_merge_value (<<state>>);
    return;
}

<<attributes>> void <<ns>>notahead_230 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * !
    *     (APOSTROPH)
    */

    rde_param_i_loc_push (<<state>>);
    <<self>> <<ns>>sym_APOSTROPH (<<state>>);
    rde_param_i_notahead_exit (<<state>>);
    return;
}

<<attributes>> void <<ns>>sequence_252 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     (DAPOSTROPH)
    *     *
    *         x
    *             !
    *                 (DAPOSTROPH)
................................................................................
    *     (DAPOSTROPH)
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    <<self>> <<ns>>sym_DAPOSTROPH (<<state>>);
    if (rde_param_i_seq_void2value(<<state>>)) return;
    <<self>> <<ns>>kleene_248 (<<state>>);
    if (rde_param_i_seq_value2value(<<state>>)) return;
    <<self>> <<ns>>sym_DAPOSTROPH (<<state>>);
    if (rde_param_i_seq_value2value(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_value (<<state>>);
    return;
}

<<attributes>> void <<ns>>kleene_248 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * *
    *     x
    *         !
    *             (DAPOSTROPH)
    *         (Char)
    */

    while (1) {
        rde_param_i_state_push_2 (<<state>>);
        <<self>> <<ns>>sequence_246 (<<state>>);
        if (rde_param_i_kleene_close(<<state>>)) return;
    }
    return;
}

<<attributes>> void <<ns>>sequence_246 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     !
    *         (DAPOSTROPH)
    *     (Char)
    */

    rde_param_i_state_push_void (<<state>>);
    <<self>> <<ns>>notahead_243 (<<state>>);
    if (rde_param_i_seq_void2value(<<state>>)) return;
    <<self>> <<ns>>sym_Char (<<state>>);
    rde_param_i_state_merge_value (<<state>>);
    return;
}

<<attributes>> void <<ns>>notahead_243 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * !
    *     (DAPOSTROPH)
    */

    rde_param_i_loc_push (<<state>>);
    <<self>> <<ns>>sym_DAPOSTROPH (<<state>>);
................................................................................
<<attributes>> void <<ns>>sym_LOWER (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<lower>"
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_start (<<state>>, 112)) return ;
    <<self>> <<ns>>sequence_259 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 112, 111);
    return;
}

<<attributes>> void <<ns>>sequence_259 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<lower>"
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_str (<<state>>, "<lower>", 110);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................
<<attributes>> void <<ns>>sym_NOT (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     '!'
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_start (<<state>>, 115)) return ;
    <<self>> <<ns>>sequence_264 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 115, 114);
    return;
}

<<attributes>> void <<ns>>sequence_264 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     '!'
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_char (<<state>>, "!", 113);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................
<<attributes>> void <<ns>>sym_OPEN (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     '\('
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_void_start (<<state>>, 118)) return ;
    <<self>> <<ns>>sequence_269 (<<state>>);
    rde_param_i_symbol_done_void (<<state>>, 118, 117);
    return;
}

<<attributes>> void <<ns>>sequence_269 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     '\('
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_char (<<state>>, "\50", 116);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................
 */

<<attributes>> void <<ns>>sym_OPENB (<<STATE>> <<state>>) { <<prelude>>
   /*
    * '['
    */

    if (rde_param_i_symbol_void_start (<<state>>, 121)) return ;
    rde_param_i_next_char (<<state>>, "\133", 119);
    rde_param_i_symbol_done_void (<<state>>, 121, 120);
    return;
}

/*
 * void Symbol 'PEG'
 */

<<attributes>> void <<ns>>sym_PEG (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "PEG"
    *     !
    *         /
    *             [_:]
    *             <alnum>
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_void_start (<<state>>, 124)) return ;
    <<self>> <<ns>>sequence_281 (<<state>>);
    rde_param_i_symbol_done_void (<<state>>, 124, 123);
    return;
}

<<attributes>> void <<ns>>sequence_281 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "PEG"
    *     !
    *         /
    *             [_:]
    *             <alnum>
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_str (<<state>>, "PEG", 122);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>notahead_278 (<<state>>);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

<<attributes>> void <<ns>>notahead_278 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * !
    *     /
    *         [_:]
    *         <alnum>
    */

    rde_param_i_loc_push (<<state>>);
    <<self>> <<ns>>choice_206 (<<state>>);
    rde_param_i_notahead_exit (<<state>>);
    return;
}

/*
 * leaf Symbol 'PLUS'
 */

<<attributes>> void <<ns>>sym_PLUS (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     '+'
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_start (<<state>>, 127)) return ;
    <<self>> <<ns>>sequence_286 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 127, 126);
    return;
}

<<attributes>> void <<ns>>sequence_286 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     '+'
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_char (<<state>>, "+", 125);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................
    *     ?
    *         /
    *             (AND)
    *             (NOT)
    *     (Suffix)
    */

    if (rde_param_i_symbol_start_d (<<state>>, 129)) return ;
    <<self>> <<ns>>sequence_296 (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 129, 128);
    return;
}

<<attributes>> void <<ns>>sequence_296 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     ?
    *         /
    *             (AND)
    *             (NOT)
    *     (Suffix)
    */

    rde_param_i_state_push_value (<<state>>);
    <<self>> <<ns>>optional_293 (<<state>>);
    if (rde_param_i_seq_value2value(<<state>>)) return;
    <<self>> <<ns>>sym_Suffix (<<state>>);
    rde_param_i_state_merge_value (<<state>>);
    return;
}

<<attributes>> void <<ns>>optional_293 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * ?
    *     /
    *         (AND)
    *         (NOT)
    */

    rde_param_i_state_push_2 (<<state>>);
    <<self>> <<ns>>choice_291 (<<state>>);
    rde_param_i_state_merge_ok (<<state>>);
    return;
}

<<attributes>> void <<ns>>choice_291 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * /
    *     (AND)
    *     (NOT)
    */

    rde_param_i_state_push_value (<<state>>);
................................................................................
    *         (Expression)
    *         (CLOSE)
    *     (Literal)
    *     (Class)
    *     (DOT)
    */

    if (rde_param_i_symbol_start_d (<<state>>, 131)) return ;
    <<self>> <<ns>>choice_322 (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 131, 130);
    return;
}

<<attributes>> void <<ns>>choice_322 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * /
    *     (ALNUM)
    *     (ALPHA)
    *     (ASCII)
    *     (CONTROL)
    *     (DDIGIT)
................................................................................
    if (rde_param_i_bra_value2value(<<state>>)) return;
    <<self>> <<ns>>sym_WORDCHAR (<<state>>);
    if (rde_param_i_bra_value2value(<<state>>)) return;
    <<self>> <<ns>>sym_XDIGIT (<<state>>);
    if (rde_param_i_bra_value2value(<<state>>)) return;
    <<self>> <<ns>>sym_Identifier (<<state>>);
    if (rde_param_i_bra_value2value(<<state>>)) return;
    <<self>> <<ns>>sequence_317 (<<state>>);
    if (rde_param_i_bra_value2value(<<state>>)) return;
    <<self>> <<ns>>sym_Literal (<<state>>);
    if (rde_param_i_bra_value2value(<<state>>)) return;
    <<self>> <<ns>>sym_Class (<<state>>);
    if (rde_param_i_bra_value2value(<<state>>)) return;
    <<self>> <<ns>>sym_DOT (<<state>>);
    rde_param_i_state_merge_value (<<state>>);
    return;
}

<<attributes>> void <<ns>>sequence_317 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     (OPEN)
    *     (Expression)
    *     (CLOSE)
    */

................................................................................
<<attributes>> void <<ns>>sym_PRINTABLE (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<print>"
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_start (<<state>>, 134)) return ;
    <<self>> <<ns>>sequence_327 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 134, 133);
    return;
}

<<attributes>> void <<ns>>sequence_327 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<print>"
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_str (<<state>>, "<print>", 132);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................
<<attributes>> void <<ns>>sym_PUNCT (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<punct>"
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_start (<<state>>, 137)) return ;
    <<self>> <<ns>>sequence_332 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 137, 136);
    return;
}

<<attributes>> void <<ns>>sequence_332 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<punct>"
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_str (<<state>>, "<punct>", 135);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................
<<attributes>> void <<ns>>sym_QUESTION (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     '?'
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_start (<<state>>, 140)) return ;
    <<self>> <<ns>>sequence_337 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 140, 139);
    return;
}

<<attributes>> void <<ns>>sequence_337 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     '?'
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_char (<<state>>, "?", 138);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................
    *     x
    *         (Char)
    *         (TO)
    *         (Char)
    *     (Char)
    */

    if (rde_param_i_symbol_start_d (<<state>>, 142)) return ;
    <<self>> <<ns>>choice_346 (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 142, 141);
    return;
}

<<attributes>> void <<ns>>choice_346 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * /
    *     x
    *         (Char)
    *         (TO)
    *         (Char)
    *     (Char)
    */

    rde_param_i_state_push_value (<<state>>);
    <<self>> <<ns>>sequence_343 (<<state>>);
    if (rde_param_i_bra_value2value(<<state>>)) return;
    <<self>> <<ns>>sym_Char (<<state>>);
    rde_param_i_state_merge_value (<<state>>);
    return;
}

<<attributes>> void <<ns>>sequence_343 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     (Char)
    *     (TO)
    *     (Char)
    */

................................................................................
<<attributes>> void <<ns>>sym_SEMICOLON (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     ';'
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_void_start (<<state>>, 145)) return ;
    <<self>> <<ns>>sequence_351 (<<state>>);
    rde_param_i_symbol_done_void (<<state>>, 145, 144);
    return;
}

<<attributes>> void <<ns>>sequence_351 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     ';'
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_char (<<state>>, "\73", 143);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................

<<attributes>> void <<ns>>sym_Sequence (<<STATE>> <<state>>) { <<prelude>>
   /*
    * +
    *     (Prefix)
    */

    if (rde_param_i_symbol_start_d (<<state>>, 147)) return ;
    <<self>> <<ns>>poskleene_355 (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 147, 146);
    return;
}

<<attributes>> void <<ns>>poskleene_355 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * +
    *     (Prefix)
    */

    rde_param_i_loc_push (<<state>>);
    <<self>> <<ns>>sym_Prefix (<<state>>);
................................................................................
<<attributes>> void <<ns>>sym_SLASH (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     '/'
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_void_start (<<state>>, 150)) return ;
    <<self>> <<ns>>sequence_360 (<<state>>);
    rde_param_i_symbol_done_void (<<state>>, 150, 149);
    return;
}

<<attributes>> void <<ns>>sequence_360 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     '/'
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_char (<<state>>, "/", 148);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................
<<attributes>> void <<ns>>sym_SPACE (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<space>"
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_start (<<state>>, 153)) return ;
    <<self>> <<ns>>sequence_365 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 153, 152);
    return;
}

<<attributes>> void <<ns>>sequence_365 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<space>"
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_str (<<state>>, "<space>", 151);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................
<<attributes>> void <<ns>>sym_STAR (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     '*'
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_start (<<state>>, 156)) return ;
    <<self>> <<ns>>sequence_370 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 156, 155);
    return;
}

<<attributes>> void <<ns>>sequence_370 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     '*'
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_char (<<state>>, "*", 154);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................
   /*
    * x
    *     (OPEN)
    *     (Expression)
    *     (CLOSE)
    */

    if (rde_param_i_symbol_start_d (<<state>>, 158)) return ;
    <<self>> <<ns>>sequence_317 (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 158, 157);
    return;
}

/*
 * value Symbol 'Suffix'
 */

................................................................................
    *     ?
    *         /
    *             (QUESTION)
    *             (STAR)
    *             (PLUS)
    */

    if (rde_param_i_symbol_start_d (<<state>>, 160)) return ;
    <<self>> <<ns>>sequence_386 (<<state>>);
    rde_param_i_symbol_done_d_reduce (<<state>>, 160, 159);
    return;
}

<<attributes>> void <<ns>>sequence_386 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     (Primary)
    *     ?
    *         /
    *             (QUESTION)
    *             (STAR)
    *             (PLUS)
    */

    rde_param_i_state_push_value (<<state>>);
    <<self>> <<ns>>sym_Primary (<<state>>);
    if (rde_param_i_seq_value2value(<<state>>)) return;
    <<self>> <<ns>>optional_384 (<<state>>);
    rde_param_i_state_merge_value (<<state>>);
    return;
}

<<attributes>> void <<ns>>optional_384 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * ?
    *     /
    *         (QUESTION)
    *         (STAR)
    *         (PLUS)
    */

    rde_param_i_state_push_2 (<<state>>);
    <<self>> <<ns>>choice_382 (<<state>>);
    rde_param_i_state_merge_ok (<<state>>);
    return;
}

<<attributes>> void <<ns>>choice_382 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * /
    *     (QUESTION)
    *     (STAR)
    *     (PLUS)
    */

................................................................................
 */

<<attributes>> void <<ns>>sym_TO (<<STATE>> <<state>>) { <<prelude>>
   /*
    * '-'
    */

    if (rde_param_i_symbol_void_start (<<state>>, 163)) return ;
    rde_param_i_next_char (<<state>>, "-", 161);
    rde_param_i_symbol_done_void (<<state>>, 163, 162);
    return;
}

/*
 * leaf Symbol 'UPPER'
 */

................................................................................
<<attributes>> void <<ns>>sym_UPPER (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<upper>"
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_start (<<state>>, 166)) return ;
    <<self>> <<ns>>sequence_393 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 166, 165);
    return;
}

<<attributes>> void <<ns>>sequence_393 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<upper>"
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_str (<<state>>, "<upper>", 164);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................
<<attributes>> void <<ns>>sym_VOID (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "void"
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_start (<<state>>, 169)) return ;
    <<self>> <<ns>>sequence_398 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 169, 168);
    return;
}

<<attributes>> void <<ns>>sequence_398 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "void"
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_str (<<state>>, "void", 167);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................
   /*
    * *
    *     /
    *         <space>
    *         (COMMENT)
    */

    if (rde_param_i_symbol_void_start (<<state>>, 171)) return ;
    <<self>> <<ns>>kleene_405 (<<state>>);
    rde_param_i_symbol_done_void (<<state>>, 171, 170);
    return;
}

<<attributes>> void <<ns>>kleene_405 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * *
    *     /
    *         <space>
    *         (COMMENT)
    */

    while (1) {
        rde_param_i_state_push_2 (<<state>>);
        <<self>> <<ns>>choice_403 (<<state>>);
        if (rde_param_i_kleene_close(<<state>>)) return;
    }
    return;
}

<<attributes>> void <<ns>>choice_403 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * /
    *     <space>
    *     (COMMENT)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_space (<<state>>, 10);
    if (rde_param_i_bra_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_COMMENT (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................
<<attributes>> void <<ns>>sym_WORDCHAR (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<wordchar>"
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_start (<<state>>, 174)) return ;
    <<self>> <<ns>>sequence_410 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 174, 173);
    return;
}

<<attributes>> void <<ns>>sequence_410 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<wordchar>"
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_str (<<state>>, "<wordchar>", 172);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
................................................................................
<<attributes>> void <<ns>>sym_XDIGIT (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<xdigit>"
    *     (WHITESPACE)
    */

    if (rde_param_i_symbol_start (<<state>>, 177)) return ;
    <<self>> <<ns>>sequence_415 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 177, 176);
    return;
}

<<attributes>> void <<ns>>sequence_415 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     "<xdigit>"
    *     (WHITESPACE)
    */

    rde_param_i_state_push_void (<<state>>);
    rde_param_i_next_str (<<state>>, "<xdigit>", 175);
    if (rde_param_i_seq_void2void(<<state>>)) return;
    <<self>> <<ns>>sym_WHITESPACE (<<state>>);
    rde_param_i_state_merge_void (<<state>>);
    return;
}

/*
 */

Changes to modules/pt/tests/data/ok/peg_cparam/4_choice.

9
10
11
12
13
14
15
16
17














18
19
20
21
22
23
24
25
26
27
28
29
30
 */


/*
 * Precomputed table of strings (symbols, error messages, etc.).
 */

static char const* <<string-table>> [1] = {
    /*        0 = */   "cl 'abc'"














};

/*
 * Grammar Start Expression
 */

<<attributes>> void <<ns>><<main>> (<<STATE>> <<state>>) { <<prelude>>
    rde_param_i_next_class (<<state>>, "abc", 0);
    return;
}

/*
 */






|
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>







|





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
 */


/*
 * Precomputed table of strings (symbols, error messages, etc.).
 */

static char const* <<string-table>> [15] = {
    /*        0 = */   "alnum",
    /*        1 = */   "alpha",
    /*        2 = */   "ascii",
    /*        3 = */   "control",
    /*        4 = */   "ddigit",
    /*        5 = */   "digit",
    /*        6 = */   "graph",
    /*        7 = */   "lower",
    /*        8 = */   "print",
    /*        9 = */   "punct",
    /*       10 = */   "space",
    /*       11 = */   "upper",
    /*       12 = */   "wordchar",
    /*       13 = */   "xdigit",
    /*       14 = */   "cl abc"
};

/*
 * Grammar Start Expression
 */

<<attributes>> void <<ns>><<main>> (<<STATE>> <<state>>) { <<prelude>>
    rde_param_i_next_class (<<state>>, "abc", 14);
    return;
}

/*
 */

Changes to modules/pt/tests/data/ok/peg_cparam/5_sequence.

9
10
11
12
13
14
15
16
17














18
19
20
21
22
23
24
25
26
27
28
29
30
 */


/*
 * Precomputed table of strings (symbols, error messages, etc.).
 */

static char const* <<string-table>> [1] = {
    /*        0 = */   "str 'abc'"














};

/*
 * Grammar Start Expression
 */

<<attributes>> void <<ns>><<main>> (<<STATE>> <<state>>) { <<prelude>>
    rde_param_i_next_str (<<state>>, "abc", 0);
    return;
}

/*
 */






|
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>







|





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
 */


/*
 * Precomputed table of strings (symbols, error messages, etc.).
 */

static char const* <<string-table>> [15] = {
    /*        0 = */   "alnum",
    /*        1 = */   "alpha",
    /*        2 = */   "ascii",
    /*        3 = */   "control",
    /*        4 = */   "ddigit",
    /*        5 = */   "digit",
    /*        6 = */   "graph",
    /*        7 = */   "lower",
    /*        8 = */   "print",
    /*        9 = */   "punct",
    /*       10 = */   "space",
    /*       11 = */   "upper",
    /*       12 = */   "wordchar",
    /*       13 = */   "xdigit",
    /*       14 = */   "str abc"
};

/*
 * Grammar Start Expression
 */

<<attributes>> void <<ns>><<main>> (<<STATE>> <<state>>) { <<prelude>>
    rde_param_i_next_str (<<state>>, "abc", 14);
    return;
}

/*
 */

Changes to modules/pt/tests/data/ok/peg_cparam/6_optional.

10
11
12
13
14
15
16
17
18














19
20
21
22
23
24
25
..
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<<attributes>> void <<ns>>optional_2 (<<STATE>> <<state>>);

/*
 * Precomputed table of strings (symbols, error messages, etc.).
 */

static char const* <<string-table>> [1] = {
    /*        0 = */   "t a"














};

/*
 * Grammar Start Expression
 */

<<attributes>> void <<ns>><<main>> (<<STATE>> <<state>>) { <<prelude>>
................................................................................
<<attributes>> void <<ns>>optional_2 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * ?
    *     'a'
    */

    rde_param_i_state_push_2 (<<state>>);
    rde_param_i_next_char (<<state>>, "a", 0);
    rde_param_i_state_merge_ok (<<state>>);
    return;
}

/*
 */






|
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>







 







|






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
..
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<<attributes>> void <<ns>>optional_2 (<<STATE>> <<state>>);

/*
 * Precomputed table of strings (symbols, error messages, etc.).
 */

static char const* <<string-table>> [15] = {
    /*        0 = */   "alnum",
    /*        1 = */   "alpha",
    /*        2 = */   "ascii",
    /*        3 = */   "control",
    /*        4 = */   "ddigit",
    /*        5 = */   "digit",
    /*        6 = */   "graph",
    /*        7 = */   "lower",
    /*        8 = */   "print",
    /*        9 = */   "punct",
    /*       10 = */   "space",
    /*       11 = */   "upper",
    /*       12 = */   "wordchar",
    /*       13 = */   "xdigit",
    /*       14 = */   "t a"
};

/*
 * Grammar Start Expression
 */

<<attributes>> void <<ns>><<main>> (<<STATE>> <<state>>) { <<prelude>>
................................................................................
<<attributes>> void <<ns>>optional_2 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * ?
    *     'a'
    */

    rde_param_i_state_push_2 (<<state>>);
    rde_param_i_next_char (<<state>>, "a", 14);
    rde_param_i_state_merge_ok (<<state>>);
    return;
}

/*
 */

Changes to modules/pt/tests/data/ok/peg_cparam/7_kleene.

10
11
12
13
14
15
16
17
18














19
20
21
22
23
24
25
..
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<<attributes>> void <<ns>>kleene_2 (<<STATE>> <<state>>);

/*
 * Precomputed table of strings (symbols, error messages, etc.).
 */

static char const* <<string-table>> [1] = {
    /*        0 = */   "t a"














};

/*
 * Grammar Start Expression
 */

<<attributes>> void <<ns>><<main>> (<<STATE>> <<state>>) { <<prelude>>
................................................................................
   /*
    * *
    *     'a'
    */

    while (1) {
        rde_param_i_state_push_2 (<<state>>);
        rde_param_i_next_char (<<state>>, "a", 0);
        if (rde_param_i_kleene_close(<<state>>)) return;
    }
    return;
}

/*
 */






|
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>







 







|







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
..
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<<attributes>> void <<ns>>kleene_2 (<<STATE>> <<state>>);

/*
 * Precomputed table of strings (symbols, error messages, etc.).
 */

static char const* <<string-table>> [15] = {
    /*        0 = */   "alnum",
    /*        1 = */   "alpha",
    /*        2 = */   "ascii",
    /*        3 = */   "control",
    /*        4 = */   "ddigit",
    /*        5 = */   "digit",
    /*        6 = */   "graph",
    /*        7 = */   "lower",
    /*        8 = */   "print",
    /*        9 = */   "punct",
    /*       10 = */   "space",
    /*       11 = */   "upper",
    /*       12 = */   "wordchar",
    /*       13 = */   "xdigit",
    /*       14 = */   "t a"
};

/*
 * Grammar Start Expression
 */

<<attributes>> void <<ns>><<main>> (<<STATE>> <<state>>) { <<prelude>>
................................................................................
   /*
    * *
    *     'a'
    */

    while (1) {
        rde_param_i_state_push_2 (<<state>>);
        rde_param_i_next_char (<<state>>, "a", 14);
        if (rde_param_i_kleene_close(<<state>>)) return;
    }
    return;
}

/*
 */

Changes to modules/pt/tests/data/ok/peg_cparam/8_pkleene.

10
11
12
13
14
15
16
17
18














19
20
21
22
23
24
25
..
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<<attributes>> void <<ns>>poskleene_2 (<<STATE>> <<state>>);

/*
 * Precomputed table of strings (symbols, error messages, etc.).
 */

static char const* <<string-table>> [1] = {
    /*        0 = */   "t a"














};

/*
 * Grammar Start Expression
 */

<<attributes>> void <<ns>><<main>> (<<STATE>> <<state>>) { <<prelude>>
................................................................................
<<attributes>> void <<ns>>poskleene_2 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * +
    *     'a'
    */

    rde_param_i_loc_push (<<state>>);
    rde_param_i_next_char (<<state>>, "a", 0);
    if (rde_param_i_kleene_abort(<<state>>)) return;
    while (1) {
        rde_param_i_state_push_2 (<<state>>);
        rde_param_i_next_char (<<state>>, "a", 0);
        if (rde_param_i_kleene_close(<<state>>)) return;
    }
    return;
}

/*
 */






|
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>







 







|



|







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
..
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<<attributes>> void <<ns>>poskleene_2 (<<STATE>> <<state>>);

/*
 * Precomputed table of strings (symbols, error messages, etc.).
 */

static char const* <<string-table>> [15] = {
    /*        0 = */   "alnum",
    /*        1 = */   "alpha",
    /*        2 = */   "ascii",
    /*        3 = */   "control",
    /*        4 = */   "ddigit",
    /*        5 = */   "digit",
    /*        6 = */   "graph",
    /*        7 = */   "lower",
    /*        8 = */   "print",
    /*        9 = */   "punct",
    /*       10 = */   "space",
    /*       11 = */   "upper",
    /*       12 = */   "wordchar",
    /*       13 = */   "xdigit",
    /*       14 = */   "t a"
};

/*
 * Grammar Start Expression
 */

<<attributes>> void <<ns>><<main>> (<<STATE>> <<state>>) { <<prelude>>
................................................................................
<<attributes>> void <<ns>>poskleene_2 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * +
    *     'a'
    */

    rde_param_i_loc_push (<<state>>);
    rde_param_i_next_char (<<state>>, "a", 14);
    if (rde_param_i_kleene_abort(<<state>>)) return;
    while (1) {
        rde_param_i_state_push_2 (<<state>>);
        rde_param_i_next_char (<<state>>, "a", 14);
        if (rde_param_i_kleene_close(<<state>>)) return;
    }
    return;
}

/*
 */

Changes to modules/pt/tests/data/ok/peg_cparam/9_ahead.

12
13
14
15
16
17
18
19
20
21
22














23
24
25
26
27
28
29
..
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
..
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<<attributes>> void <<ns>>sequence_6 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_TEST (<<STATE>> <<state>>);

/*
 * Precomputed table of strings (symbols, error messages, etc.).
 */

static char const* <<string-table>> [3] = {
    /*        0 = */   "t a",
    /*        1 = */   "n TEST",
    /*        2 = */   "TEST"














};

/*
 * Grammar Start Expression
 */

<<attributes>> void <<ns>><<main>> (<<STATE>> <<state>>) { <<prelude>>
................................................................................
   /*
    * x
    *     &
    *         'a'
    *     (IDENTIFIER)
    */

    if (rde_param_i_symbol_start (<<state>>, 2)) return ;
    <<self>> <<ns>>sequence_6 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 2, 1);
    return;
}

<<attributes>> void <<ns>>sequence_6 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     &
................................................................................
<<attributes>> void <<ns>>ahead_3 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * &
    *     'a'
    */

    rde_param_i_loc_push (<<state>>);
    rde_param_i_next_char (<<state>>, "a", 0);
    rde_param_i_loc_pop_rewind (<<state>>);
    return;
}

/*
 */






|
|
|
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>







 







|

|







 







|






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
..
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
..
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<<attributes>> void <<ns>>sequence_6 (<<STATE>> <<state>>);
<<attributes>> void <<ns>>sym_TEST (<<STATE>> <<state>>);

/*
 * Precomputed table of strings (symbols, error messages, etc.).
 */

static char const* <<string-table>> [17] = {
    /*        0 = */   "alnum",
    /*        1 = */   "alpha",
    /*        2 = */   "ascii",
    /*        3 = */   "control",
    /*        4 = */   "ddigit",
    /*        5 = */   "digit",
    /*        6 = */   "graph",
    /*        7 = */   "lower",
    /*        8 = */   "print",
    /*        9 = */   "punct",
    /*       10 = */   "space",
    /*       11 = */   "upper",
    /*       12 = */   "wordchar",
    /*       13 = */   "xdigit",
    /*       14 = */   "t a",
    /*       15 = */   "n TEST",
    /*       16 = */   "TEST"
};

/*
 * Grammar Start Expression
 */

<<attributes>> void <<ns>><<main>> (<<STATE>> <<state>>) { <<prelude>>
................................................................................
   /*
    * x
    *     &
    *         'a'
    *     (IDENTIFIER)
    */

    if (rde_param_i_symbol_start (<<state>>, 16)) return ;
    <<self>> <<ns>>sequence_6 (<<state>>);
    rde_param_i_symbol_done_leaf (<<state>>, 16, 15);
    return;
}

<<attributes>> void <<ns>>sequence_6 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * x
    *     &
................................................................................
<<attributes>> void <<ns>>ahead_3 (<<STATE>> <<state>>) { <<prelude>>
   /*
    * &
    *     'a'
    */

    rde_param_i_loc_push (<<state>>);
    rde_param_i_next_char (<<state>>, "a", 14);
    rde_param_i_loc_pop_rewind (<<state>>);
    return;
}

/*
 */

Changes to modules/pt/tests/data/ok/peg_json-indalign/3_peg_itself.

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
...
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
                "is"   : "x {t <} {t d} {t i} {t g} {t i} {t t} {t >} {n WHITESPACE}",
                "mode" : "leaf"
            },
            "DOT"           : {
                "is"   : "x {t .} {n WHITESPACE}",
                "mode" : "leaf"
            },
            "END"           : {
                "is"   : "x {t E} {t N} {t D} {n WHITESPACE}",
                "mode" : "void"
            },
            "EOF"           : {
                "is"   : "! dot",
                "mode" : "void"
            },
            "EOL"           : {
                "is"   : "/ {t {\n}} {t {\r}}",
                "mode" : "void"
            },
            "Expression"    : {
                "is"   : "x {n Sequence} {* {x {n SLASH} {n Sequence}}}",
                "mode" : "value"
            },
            "Final"         : {
                "is"   : "x {n END} {n SEMICOLON} {n WHITESPACE}",
                "mode" : "void"
            },
            "Grammar"       : {
                "is"   : "x {n WHITESPACE} {n Header} {* {n Definition}} {n Final} {n EOF}",
                "mode" : "value"
            },
            "GRAPH"         : {
................................................................................
                "mode" : "void"
            },
            "OPENB"         : {
                "is"   : "t {[}",
                "mode" : "void"
            },
            "PEG"           : {
                "is"   : "x {t P} {t E} {t G} {n WHITESPACE}",
                "mode" : "void"
            },
            "PLUS"          : {
                "is"   : "x {t +} {n WHITESPACE}",
                "mode" : "leaf"
            },
            "Prefix"        : {






<
<
<
<













|







 







|







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
...
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
                "is"   : "x {t <} {t d} {t i} {t g} {t i} {t t} {t >} {n WHITESPACE}",
                "mode" : "leaf"
            },
            "DOT"           : {
                "is"   : "x {t .} {n WHITESPACE}",
                "mode" : "leaf"
            },




            "EOF"           : {
                "is"   : "! dot",
                "mode" : "void"
            },
            "EOL"           : {
                "is"   : "/ {t {\n}} {t {\r}}",
                "mode" : "void"
            },
            "Expression"    : {
                "is"   : "x {n Sequence} {* {x {n SLASH} {n Sequence}}}",
                "mode" : "value"
            },
            "Final"         : {
                "is"   : "x {t E} {t N} {t D} {n WHITESPACE} {n SEMICOLON} {n WHITESPACE}",
                "mode" : "void"
            },
            "Grammar"       : {
                "is"   : "x {n WHITESPACE} {n Header} {* {n Definition}} {n Final} {n EOF}",
                "mode" : "value"
            },
            "GRAPH"         : {
................................................................................
                "mode" : "void"
            },
            "OPENB"         : {
                "is"   : "t {[}",
                "mode" : "void"
            },
            "PEG"           : {
                "is"   : "x {t P} {t E} {t G} {! {/ {t _} {t :} alnum}} {n WHITESPACE}",
                "mode" : "void"
            },
            "PLUS"          : {
                "is"   : "x {t +} {n WHITESPACE}",
                "mode" : "leaf"
            },
            "Prefix"        : {

Changes to modules/pt/tests/data/ok/peg_json-indented/3_peg_itself.

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
...
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
                "is" : "x {t <} {t d} {t i} {t g} {t i} {t t} {t >} {n WHITESPACE}",
                "mode" : "leaf"
            },
            "DOT" : {
                "is" : "x {t .} {n WHITESPACE}",
                "mode" : "leaf"
            },
            "END" : {
                "is" : "x {t E} {t N} {t D} {n WHITESPACE}",
                "mode" : "void"
            },
            "EOF" : {
                "is" : "! dot",
                "mode" : "void"
            },
            "EOL" : {
                "is" : "/ {t {\n}} {t {\r}}",
                "mode" : "void"
            },
            "Expression" : {
                "is" : "x {n Sequence} {* {x {n SLASH} {n Sequence}}}",
                "mode" : "value"
            },
            "Final" : {
                "is" : "x {n END} {n SEMICOLON} {n WHITESPACE}",
                "mode" : "void"
            },
            "Grammar" : {
                "is" : "x {n WHITESPACE} {n Header} {* {n Definition}} {n Final} {n EOF}",
                "mode" : "value"
            },
            "GRAPH" : {
................................................................................
                "mode" : "void"
            },
            "OPENB" : {
                "is" : "t {[}",
                "mode" : "void"
            },
            "PEG" : {
                "is" : "x {t P} {t E} {t G} {n WHITESPACE}",
                "mode" : "void"
            },
            "PLUS" : {
                "is" : "x {t +} {n WHITESPACE}",
                "mode" : "leaf"
            },
            "Prefix" : {






<
<
<
<













|







 







|







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
...
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
                "is" : "x {t <} {t d} {t i} {t g} {t i} {t t} {t >} {n WHITESPACE}",
                "mode" : "leaf"
            },
            "DOT" : {
                "is" : "x {t .} {n WHITESPACE}",
                "mode" : "leaf"
            },




            "EOF" : {
                "is" : "! dot",
                "mode" : "void"
            },
            "EOL" : {
                "is" : "/ {t {\n}} {t {\r}}",
                "mode" : "void"
            },
            "Expression" : {
                "is" : "x {n Sequence} {* {x {n SLASH} {n Sequence}}}",
                "mode" : "value"
            },
            "Final" : {
                "is" : "x {t E} {t N} {t D} {n WHITESPACE} {n SEMICOLON} {n WHITESPACE}",
                "mode" : "void"
            },
            "Grammar" : {
                "is" : "x {n WHITESPACE} {n Header} {* {n Definition}} {n Final} {n EOF}",
                "mode" : "value"
            },
            "GRAPH" : {
................................................................................
                "mode" : "void"
            },
            "OPENB" : {
                "is" : "t {[}",
                "mode" : "void"
            },
            "PEG" : {
                "is" : "x {t P} {t E} {t G} {! {/ {t _} {t :} alnum}} {n WHITESPACE}",
                "mode" : "void"
            },
            "PLUS" : {
                "is" : "x {t +} {n WHITESPACE}",
                "mode" : "leaf"
            },
            "Prefix" : {

Changes to modules/pt/tests/data/ok/peg_json-ultracompact/3_peg_itself.

1
{"pt::grammar::peg":{"rules":{"ALNUM":{"is":"x {t <} {t a} {t l} {t n} {t u} {t m} {t >} {n WHITESPACE}","mode":"leaf"},"ALPHA":{"is":"x {t <} {t a} {t l} {t p} {t h} {t a} {t >} {n WHITESPACE}","mode":"leaf"},"AND":{"is":"x {t &} {n WHITESPACE}","mode":"leaf"},"APOSTROPH":{"is":"t '","mode":"void"},"ASCII":{"is":"x {t <} {t a} {t s} {t c} {t i} {t i} {t >} {n WHITESPACE}","mode":"leaf"},"Attribute":{"is":"x {/ {n VOID} {n LEAF}} {n COLON}","mode":"value"},"Char":{"is":"/ {n CharSpecial} {n CharOctalFull} {n CharOctalPart} {n CharUnicode} {n CharUnescaped}","mode":"value"},"CharOctalFull":{"is":"x {t \\\\} {.. 0 2} {.. 0 7} {.. 0 7}","mode":"leaf"},"CharOctalPart":{"is":"x {t \\\\} {.. 0 7} {? {.. 0 7}}","mode":"leaf"},"CharSpecial":{"is":"x {t \\\\} {/ {t n} {t r} {t t} {t '} {t {\"}} {t {[}} {t \\]} {t \\\\}}","mode":"leaf"},"CharUnescaped":{"is":"x {! {t \\\\}} dot","mode":"leaf"},"CharUnicode":{"is":"x {t \\\\} {t u} xdigit {? {x xdigit {? {x xdigit {? xdigit}}}}}","mode":"leaf"},"Class":{"is":"x {n OPENB} {* {x {! {n CLOSEB}} {n Range}}} {n CLOSEB} {n WHITESPACE}","mode":"value"},"CLOSE":{"is":"x {t )} {n WHITESPACE}","mode":"void"},"CLOSEB":{"is":"t \\]","mode":"void"},"COLON":{"is":"x {t :} {n WHITESPACE}","mode":"void"},"COMMENT":{"is":"x {t #} {* {x {! {n EOL}} dot}} {n EOL}","mode":"void"},"CONTROL":{"is":"x {t <} {t c} {t o} {t n} {t t} {t r} {t o} {t l} {t >} {n WHITESPACE}","mode":"leaf"},"DAPOSTROPH":{"is":"t {\"}","mode":"void"},"DDIGIT":{"is":"x {t <} {t d} {t d} {t i} {t g} {t i} {t t} {t >} {n WHITESPACE}","mode":"leaf"},"Definition":{"is":"x {? {n Attribute}} {n Identifier} {n IS} {n Expression} {n SEMICOLON}","mode":"value"},"DIGIT":{"is":"x {t <} {t d} {t i} {t g} {t i} {t t} {t >} {n WHITESPACE}","mode":"leaf"},"DOT":{"is":"x {t .} {n WHITESPACE}","mode":"leaf"},"END":{"is":"x {t E} {t N} {t D} {n WHITESPACE}","mode":"void"},"EOF":{"is":"! dot","mode":"void"},"EOL":{"is":"/ {t {\n}} {t {\r}}","mode":"void"},"Expression":{"is":"x {n Sequence} {* {x {n SLASH} {n Sequence}}}","mode":"value"},"Final":{"is":"x {n END} {n SEMICOLON} {n WHITESPACE}","mode":"void"},"Grammar":{"is":"x {n WHITESPACE} {n Header} {* {n Definition}} {n Final} {n EOF}","mode":"value"},"GRAPH":{"is":"x {t <} {t g} {t r} {t a} {t p} {t h} {t >} {n WHITESPACE}","mode":"leaf"},"Header":{"is":"x {n PEG} {n Identifier} {n StartExpr}","mode":"value"},"Ident":{"is":"x {/ {t _} {t :} alpha} {* {/ {t _} {t :} alnum}}","mode":"leaf"},"Identifier":{"is":"x {n Ident} {n WHITESPACE}","mode":"value"},"IS":{"is":"x {t <} {t -} {n WHITESPACE}","mode":"void"},"LEAF":{"is":"x {t l} {t e} {t a} {t f} {n WHITESPACE}","mode":"leaf"},"Literal":{"is":"/ {x {n APOSTROPH} {* {x {! {n APOSTROPH}} {n Char}}} {n APOSTROPH} {n WHITESPACE}} {x {n DAPOSTROPH} {* {x {! {n DAPOSTROPH}} {n Char}}} {n DAPOSTROPH} {n WHITESPACE}}","mode":"value"},"LOWER":{"is":"x {t <} {t l} {t o} {t w} {t e} {t r} {t >} {n WHITESPACE}","mode":"leaf"},"NOT":{"is":"x {t !} {n WHITESPACE}","mode":"leaf"},"OPEN":{"is":"x {t (} {n WHITESPACE}","mode":"void"},"OPENB":{"is":"t {[}","mode":"void"},"PEG":{"is":"x {t P} {t E} {t G} {n WHITESPACE}","mode":"void"},"PLUS":{"is":"x {t +} {n WHITESPACE}","mode":"leaf"},"Prefix":{"is":"x {? {/ {n AND} {n NOT}}} {n Suffix}","mode":"value"},"Primary":{"is":"/ {n ALNUM} {n ALPHA} {n ASCII} {n CONTROL} {n DDIGIT} {n DIGIT} {n GRAPH} {n LOWER} {n PRINTABLE} {n PUNCT} {n SPACE} {n UPPER} {n WORDCHAR} {n XDIGIT} {n Identifier} {x {n OPEN} {n Expression} {n CLOSE}} {n Literal} {n Class} {n DOT}","mode":"value"},"PRINTABLE":{"is":"x {t <} {t p} {t r} {t i} {t n} {t t} {t >} {n WHITESPACE}","mode":"leaf"},"PUNCT":{"is":"x {t <} {t p} {t u} {t n} {t c} {t t} {t >} {n WHITESPACE}","mode":"leaf"},"QUESTION":{"is":"x {t ?} {n WHITESPACE}","mode":"leaf"},"Range":{"is":"/ {x {n Char} {n TO} {n Char}} {n Char}","mode":"value"},"SEMICOLON":{"is":"x {t {;}} {n WHITESPACE}","mode":"void"},"Sequence":{"is":"+ {n Prefix}","mode":"value"},"SLASH":{"is":"x {t /} {n WHITESPACE}","mode":"void"},"SPACE":{"is":"x {t <} {t s} {t p} {t a} {t c} {t e} {t >} {n WHITESPACE}","mode":"leaf"},"STAR":{"is":"x {t *} {n WHITESPACE}","mode":"leaf"},"StartExpr":{"is":"x {n OPEN} {n Expression} {n CLOSE}","mode":"value"},"Suffix":{"is":"x {n Primary} {? {/ {n QUESTION} {n STAR} {n PLUS}}}","mode":"value"},"TO":{"is":"t -","mode":"void"},"UPPER":{"is":"x {t <} {t u} {t p} {t p} {t e} {t r} {t >} {n WHITESPACE}","mode":"leaf"},"VOID":{"is":"x {t v} {t o} {t i} {t d} {n WHITESPACE}","mode":"leaf"},"WHITESPACE":{"is":"* {/ space {n COMMENT}}","mode":"void"},"WORDCHAR":{"is":"x {t <} {t w} {t o} {t r} {t d} {t c} {t h} {t a} {t r} {t >} {n WHITESPACE}","mode":"leaf"},"XDIGIT":{"is":"x {t <} {t x} {t d} {t i} {t g} {t i} {t t} {t >} {n WHITESPACE}","mode":"leaf"}},"start":"n Grammar"}}
|
1
{"pt::grammar::peg":{"rules":{"ALNUM":{"is":"x {t <} {t a} {t l} {t n} {t u} {t m} {t >} {n WHITESPACE}","mode":"leaf"},"ALPHA":{"is":"x {t <} {t a} {t l} {t p} {t h} {t a} {t >} {n WHITESPACE}","mode":"leaf"},"AND":{"is":"x {t &} {n WHITESPACE}","mode":"leaf"},"APOSTROPH":{"is":"t '","mode":"void"},"ASCII":{"is":"x {t <} {t a} {t s} {t c} {t i} {t i} {t >} {n WHITESPACE}","mode":"leaf"},"Attribute":{"is":"x {/ {n VOID} {n LEAF}} {n COLON}","mode":"value"},"Char":{"is":"/ {n CharSpecial} {n CharOctalFull} {n CharOctalPart} {n CharUnicode} {n CharUnescaped}","mode":"value"},"CharOctalFull":{"is":"x {t \\\\} {.. 0 2} {.. 0 7} {.. 0 7}","mode":"leaf"},"CharOctalPart":{"is":"x {t \\\\} {.. 0 7} {? {.. 0 7}}","mode":"leaf"},"CharSpecial":{"is":"x {t \\\\} {/ {t n} {t r} {t t} {t '} {t {\"}} {t {[}} {t \\]} {t \\\\}}","mode":"leaf"},"CharUnescaped":{"is":"x {! {t \\\\}} dot","mode":"leaf"},"CharUnicode":{"is":"x {t \\\\} {t u} xdigit {? {x xdigit {? {x xdigit {? xdigit}}}}}","mode":"leaf"},"Class":{"is":"x {n OPENB} {* {x {! {n CLOSEB}} {n Range}}} {n CLOSEB} {n WHITESPACE}","mode":"value"},"CLOSE":{"is":"x {t )} {n WHITESPACE}","mode":"void"},"CLOSEB":{"is":"t \\]","mode":"void"},"COLON":{"is":"x {t :} {n WHITESPACE}","mode":"void"},"COMMENT":{"is":"x {t #} {* {x {! {n EOL}} dot}} {n EOL}","mode":"void"},"CONTROL":{"is":"x {t <} {t c} {t o} {t n} {t t} {t r} {t o} {t l} {t >} {n WHITESPACE}","mode":"leaf"},"DAPOSTROPH":{"is":"t {\"}","mode":"void"},"DDIGIT":{"is":"x {t <} {t d} {t d} {t i} {t g} {t i} {t t} {t >} {n WHITESPACE}","mode":"leaf"},"Definition":{"is":"x {? {n Attribute}} {n Identifier} {n IS} {n Expression} {n SEMICOLON}","mode":"value"},"DIGIT":{"is":"x {t <} {t d} {t i} {t g} {t i} {t t} {t >} {n WHITESPACE}","mode":"leaf"},"DOT":{"is":"x {t .} {n WHITESPACE}","mode":"leaf"},"EOF":{"is":"! dot","mode":"void"},"EOL":{"is":"/ {t {\n}} {t {\r}}","mode":"void"},"Expression":{"is":"x {n Sequence} {* {x {n SLASH} {n Sequence}}}","mode":"value"},"Final":{"is":"x {t E} {t N} {t D} {n WHITESPACE} {n SEMICOLON} {n WHITESPACE}","mode":"void"},"Grammar":{"is":"x {n WHITESPACE} {n Header} {* {n Definition}} {n Final} {n EOF}","mode":"value"},"GRAPH":{"is":"x {t <} {t g} {t r} {t a} {t p} {t h} {t >} {n WHITESPACE}","mode":"leaf"},"Header":{"is":"x {n PEG} {n Identifier} {n StartExpr}","mode":"value"},"Ident":{"is":"x {/ {t _} {t :} alpha} {* {/ {t _} {t :} alnum}}","mode":"leaf"},"Identifier":{"is":"x {n Ident} {n WHITESPACE}","mode":"value"},"IS":{"is":"x {t <} {t -} {n WHITESPACE}","mode":"void"},"LEAF":{"is":"x {t l} {t e} {t a} {t f} {n WHITESPACE}","mode":"leaf"},"Literal":{"is":"/ {x {n APOSTROPH} {* {x {! {n APOSTROPH}} {n Char}}} {n APOSTROPH} {n WHITESPACE}} {x {n DAPOSTROPH} {* {x {! {n DAPOSTROPH}} {n Char}}} {n DAPOSTROPH} {n WHITESPACE}}","mode":"value"},"LOWER":{"is":"x {t <} {t l} {t o} {t w} {t e} {t r} {t >} {n WHITESPACE}","mode":"leaf"},"NOT":{"is":"x {t !} {n WHITESPACE}","mode":"leaf"},"OPEN":{"is":"x {t (} {n WHITESPACE}","mode":"void"},"OPENB":{"is":"t {[}","mode":"void"},"PEG":{"is":"x {t P} {t E} {t G} {! {/ {t _} {t :} alnum}} {n WHITESPACE}","mode":"void"},"PLUS":{"is":"x {t +} {n WHITESPACE}","mode":"leaf"},"Prefix":{"is":"x {? {/ {n AND} {n NOT}}} {n Suffix}","mode":"value"},"Primary":{"is":"/ {n ALNUM} {n ALPHA} {n ASCII} {n CONTROL} {n DDIGIT} {n DIGIT} {n GRAPH} {n LOWER} {n PRINTABLE} {n PUNCT} {n SPACE} {n UPPER} {n WORDCHAR} {n XDIGIT} {n Identifier} {x {n OPEN} {n Expression} {n CLOSE}} {n Literal} {n Class} {n DOT}","mode":"value"},"PRINTABLE":{"is":"x {t <} {t p} {t r} {t i} {t n} {t t} {t >} {n WHITESPACE}","mode":"leaf"},"PUNCT":{"is":"x {t <} {t p} {t u} {t n} {t c} {t t} {t >} {n WHITESPACE}","mode":"leaf"},"QUESTION":{"is":"x {t ?} {n WHITESPACE}","mode":"leaf"},"Range":{"is":"/ {x {n Char} {n TO} {n Char}} {n Char}","mode":"value"},"SEMICOLON":{"is":"x {t {;}} {n WHITESPACE}","mode":"void"},"Sequence":{"is":"+ {n Prefix}","mode":"value"},"SLASH":{"is":"x {t /} {n WHITESPACE}","mode":"void"},"SPACE":{"is":"x {t <} {t s} {t p} {t a} {t c} {t e} {t >} {n WHITESPACE}","mode":"leaf"},"STAR":{"is":"x {t *} {n WHITESPACE}","mode":"leaf"},"StartExpr":{"is":"x {n OPEN} {n Expression} {n CLOSE}","mode":"value"},"Suffix":{"is":"x {n Primary} {? {/ {n QUESTION} {n STAR} {n PLUS}}}","mode":"value"},"TO":{"is":"t -","mode":"void"},"UPPER":{"is":"x {t <} {t u} {t p} {t p} {t e} {t r} {t >} {n WHITESPACE}","mode":"leaf"},"VOID":{"is":"x {t v} {t o} {t i} {t d} {n WHITESPACE}","mode":"leaf"},"WHITESPACE":{"is":"* {/ space {n COMMENT}}","mode":"void"},"WORDCHAR":{"is":"x {t <} {t w} {t o} {t r} {t d} {t c} {t h} {t a} {t r} {t >} {n WHITESPACE}","mode":"leaf"},"XDIGIT":{"is":"x {t <} {t x} {t d} {t i} {t g} {t i} {t t} {t >} {n WHITESPACE}","mode":"leaf"}},"start":"n Grammar"}}

Changes to modules/pt/tests/data/ok/peg_param-compact/3_peg_itself.

2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
....
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
....
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
....
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550



2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568



2569
2570
2571
2572
2573
2574
2575
2576


















2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598





















2599
2600
2601
2602
2603
2604
2605
....
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
....
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
....
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
....
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
....
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
....
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
....
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
....
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
....
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
....
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
....
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
....
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
....
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
....
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
....
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
....
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
....
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
....
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
....
3848
3849
3850
3851
3852
3853
3854





3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873





3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898






3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923















3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
....
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
....
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
....
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
....
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
....
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
....
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
....
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
....
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
....
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
....
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
....
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
....
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
....
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
....
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
....
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
....
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
....
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
....
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
....
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
....
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
....
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
....
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
....
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
....
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
....
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
....
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
....
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
char_274:
# '.'

         input_next        "t ."
     ok! test_char         "."
         return
#
# void Symbol 'END'
#

sym_END:
# x
#     'E'
#     'N'
#     'D'
#     (WHITESPACE)

         symbol_restore    END
  found! return
         loc_push

         call              sequence_289

         value_clear
         symbol_save       END
         error_nonterminal END
         loc_pop_discard
         return

sequence_289:
# x
#     'E'
#     'N'
#     'D'
#     (WHITESPACE)

         loc_push
         error_clear

         error_push

         call              char_282

         error_pop_merge
   fail! jump              failed_290
         error_push

         call              char_284

         error_pop_merge
   fail! jump              failed_290
         error_push

         call              char_286

         error_pop_merge
   fail! jump              failed_290
         error_push

         call              sym_WHITESPACE

         error_pop_merge
   fail! jump              failed_290

         loc_pop_discard
         return

failed_290:
         loc_pop_rewind
         return

char_282:
# 'E'

         input_next        "t E"
     ok! test_char         "E"
         return

char_284:
# 'N'

         input_next        "t N"
     ok! test_char         "N"
         return

char_286:
# 'D'

         input_next        "t D"
     ok! test_char         "D"
         return
#
# void Symbol 'EOF'
#

sym_EOF:
# !
#     <dot>

         symbol_restore    EOF
  found! return
         loc_push

         call              notahead_294

         value_clear
         symbol_save       EOF
         error_nonterminal EOF
         loc_pop_discard
         return

notahead_294:
# !
#     <dot>

         loc_push

         input_next        "dot"

................................................................................
#     '\n'
#     '\r'

         symbol_restore    EOL
  found! return
         loc_push

         call              choice_302

         value_clear
         symbol_save       EOL
         error_nonterminal EOL
         loc_pop_discard
         return

choice_302:
# /
#     '\n'
#     '\r'

         error_clear

         loc_push
         error_push

         call              char_297

         error_pop_merge
     ok! jump              oknoast_301

         loc_pop_rewind
         loc_push
         error_push

         call              char_299

         error_pop_merge
     ok! jump              oknoast_301

         loc_pop_rewind
         status_fail
         return

oknoast_301:
         loc_pop_discard
         return

char_297:
# '\n'

         input_next        "t \\n"
     ok! test_char         "\\n"
         return

char_299:
# '\r'

         input_next        "t \\r"
     ok! test_char         "\\r"
         return
#
# value Symbol 'Expression'
................................................................................
#     (Sequence)
#     *
#         x
#             (SLASH)
#             (Sequence)

         symbol_restore    Expression
  found! jump              found_318
         loc_push
         ast_push

         call              sequence_315

   fail! value_clear
     ok! value_reduce      Expression
         symbol_save       Expression
         error_nonterminal Expression
         ast_pop_rewind
         loc_pop_discard

found_318:
     ok! ast_value_push
         return

sequence_315:
# x
#     (Sequence)
#     *
#         x
#             (SLASH)
#             (Sequence)

................................................................................
         error_clear

         error_push

         call              sym_Sequence

         error_pop_merge
   fail! jump              failed_316
         error_push

         call              kleene_312

         error_pop_merge
   fail! jump              failed_316

         ast_pop_discard
         loc_pop_discard
         return

failed_316:
         ast_pop_rewind
         loc_pop_rewind
         return

kleene_312:
# *
#     x
#         (SLASH)
#         (Sequence)

         loc_push
         error_push

         call              sequence_308

         error_pop_merge
   fail! jump              failed_313
         loc_pop_discard
         jump              kleene_312

failed_313:
         loc_pop_rewind
         status_ok
         return

sequence_308:
# x
#     (SLASH)
#     (Sequence)

         loc_push
         error_clear

         error_push

         call              sym_SLASH

         error_pop_merge
   fail! jump              failednoast_310
         ast_push
         error_push

         call              sym_Sequence

         error_pop_merge
   fail! jump              failed_309

         ast_pop_discard
         loc_pop_discard
         return

failed_309:
         ast_pop_rewind

failednoast_310:
         loc_pop_rewind
         return
#
# void Symbol 'Final'
#

sym_Final:
# x
#     (END)



#     (SEMICOLON)
#     (WHITESPACE)

         symbol_restore    Final
  found! return
         loc_push

         call              sequence_323

         value_clear
         symbol_save       Final
         error_nonterminal Final
         loc_pop_discard
         return

sequence_323:
# x
#     (END)



#     (SEMICOLON)
#     (WHITESPACE)

         loc_push
         error_clear

         error_push



















         call              sym_END

         error_pop_merge
   fail! jump              failed_324
         error_push

         call              sym_SEMICOLON

         error_pop_merge
   fail! jump              failed_324
         error_push

         call              sym_WHITESPACE

         error_pop_merge
   fail! jump              failed_324

         loc_pop_discard
         return

failed_324:
         loc_pop_rewind





















         return
#
# value Symbol 'Grammar'
#

sym_Grammar:
# x
................................................................................
#     (Header)
#     *
#         (Definition)
#     (Final)
#     (EOF)

         symbol_restore    Grammar
  found! jump              found_339
         loc_push
         ast_push

         call              sequence_335

   fail! value_clear
     ok! value_reduce      Grammar
         symbol_save       Grammar
         error_nonterminal Grammar
         ast_pop_rewind
         loc_pop_discard

found_339:
     ok! ast_value_push
         return

sequence_335:
# x
#     (WHITESPACE)
#     (Header)
#     *
#         (Definition)
#     (Final)
#     (EOF)
................................................................................
         error_clear

         error_push

         call              sym_WHITESPACE

         error_pop_merge
   fail! jump              failednoast_337
         ast_push
         error_push

         call              sym_Header

         error_pop_merge
   fail! jump              failed_336
         error_push

         call              kleene_330

         error_pop_merge
   fail! jump              failed_336
         error_push

         call              sym_Final

         error_pop_merge
   fail! jump              failed_336
         error_push

         call              sym_EOF

         error_pop_merge
   fail! jump              failed_336

         ast_pop_discard
         loc_pop_discard
         return

failed_336:
         ast_pop_rewind

failednoast_337:
         loc_pop_rewind
         return

kleene_330:
# *
#     (Definition)

         loc_push
         error_push

         call              sym_Definition

         error_pop_merge
   fail! jump              failed_331
         loc_pop_discard
         jump              kleene_330

failed_331:
         loc_pop_rewind
         status_ok
         return
#
# leaf Symbol 'GRAPH'
#

................................................................................
#     'a'
#     'p'
#     'h'
#     '>'
#     (WHITESPACE)

         symbol_restore    GRAPH
  found! jump              found_352
         loc_push

         call              sequence_349

   fail! value_clear
     ok! value_leaf        GRAPH
         symbol_save       GRAPH
         error_nonterminal GRAPH
         loc_pop_discard

found_352:
     ok! ast_value_push
         return

sequence_349:
# x
#     '<'
#     'g'
#     'r'
#     'a'
#     'p'
#     'h'
................................................................................
         error_clear

         error_push

         call              char_2

         error_pop_merge
   fail! jump              failed_350
         error_push

         call              char_238

         error_pop_merge
   fail! jump              failed_350
         error_push

         call              char_109

         error_pop_merge
   fail! jump              failed_350
         error_push

         call              char_4

         error_pop_merge
   fail! jump              failed_350
         error_push

         call              char_25

         error_pop_merge
   fail! jump              failed_350
         error_push

         call              char_27

         error_pop_merge
   fail! jump              failed_350
         error_push

         call              char_14

         error_pop_merge
   fail! jump              failed_350
         error_push

         call              sym_WHITESPACE

         error_pop_merge
   fail! jump              failed_350

         loc_pop_discard
         return

failed_350:
         loc_pop_rewind
         return
#
# value Symbol 'Header'
#

sym_Header:
# x
#     (PEG)
#     (Identifier)
#     (StartExpr)

         symbol_restore    Header
  found! jump              found_361
         loc_push
         ast_push

         call              sequence_357

   fail! value_clear
     ok! value_reduce      Header
         symbol_save       Header
         error_nonterminal Header
         ast_pop_rewind
         loc_pop_discard

found_361:
     ok! ast_value_push
         return

sequence_357:
# x
#     (PEG)
#     (Identifier)
#     (StartExpr)

         loc_push
         error_clear

         error_push

         call              sym_PEG

         error_pop_merge
   fail! jump              failednoast_359
         ast_push
         error_push

         call              sym_Identifier

         error_pop_merge
   fail! jump              failed_358
         error_push

         call              sym_StartExpr

         error_pop_merge
   fail! jump              failed_358

         ast_pop_discard
         loc_pop_discard
         return

failed_358:
         ast_pop_rewind

failednoast_359:
         loc_pop_rewind
         return
#
# leaf Symbol 'Ident'
#

sym_Ident:
................................................................................
#     *
#         /
#             '_'
#             ':'
#             <alnum>

         symbol_restore    Ident
  found! jump              found_384
         loc_push

         call              sequence_381

   fail! value_clear
     ok! value_leaf        Ident
         symbol_save       Ident
         error_nonterminal Ident
         loc_pop_discard

found_384:
     ok! ast_value_push
         return

sequence_381:
# x
#     /
#         '_'
#         ':'
#         <alpha>
#     *
#         /
................................................................................
#             <alnum>

         loc_push
         error_clear

         error_push

         call              choice_369

         error_pop_merge
   fail! jump              failed_382
         error_push

         call              kleene_378

         error_pop_merge
   fail! jump              failed_382

         loc_pop_discard
         return

failed_382:
         loc_pop_rewind
         return

choice_369:
# /
#     '_'
#     ':'
#     <alpha>

         error_clear

         loc_push
         error_push

         call              char_363

         error_pop_merge
     ok! jump              oknoast_368

         loc_pop_rewind
         loc_push
         error_push

         call              char_191

         error_pop_merge
     ok! jump              oknoast_368

         loc_pop_rewind
         loc_push
         error_push

         call              alpha_366

         error_pop_merge
     ok! jump              oknoast_368

         loc_pop_rewind
         status_fail
         return

oknoast_368:
         loc_pop_discard
         return

char_363:
# '_'

         input_next        "t _"
     ok! test_char         "_"
         return

alpha_366:
# <alpha>

         input_next        "alpha"
     ok! test_alpha
         return

kleene_378:
# *
#     /
#         '_'
#         ':'
#         <alnum>

         loc_push
         error_push

         call              choice_376

         error_pop_merge
   fail! jump              failed_379
         loc_pop_discard
         jump              kleene_378

failed_379:
         loc_pop_rewind
         status_ok
         return

choice_376:
# /
#     '_'
#     ':'
#     <alnum>

         error_clear

         loc_push
         error_push

         call              char_363

         error_pop_merge
     ok! jump              oknoast_375

         loc_pop_rewind
         loc_push
         error_push

         call              char_191

         error_pop_merge
     ok! jump              oknoast_375

         loc_pop_rewind
         loc_push
         error_push

         call              alnum_373

         error_pop_merge
     ok! jump              oknoast_375

         loc_pop_rewind
         status_fail
         return

oknoast_375:
         loc_pop_discard
         return

alnum_373:
# <alnum>

         input_next        "alnum"
     ok! test_alnum
         return
#
# value Symbol 'Identifier'
................................................................................

sym_Identifier:
# x
#     (Ident)
#     (WHITESPACE)

         symbol_restore    Identifier
  found! jump              found_391
         loc_push
         ast_push

         call              sequence_388

   fail! value_clear
     ok! value_reduce      Identifier
         symbol_save       Identifier
         error_nonterminal Identifier
         ast_pop_rewind
         loc_pop_discard

found_391:
     ok! ast_value_push
         return

sequence_388:
# x
#     (Ident)
#     (WHITESPACE)

         ast_push
         loc_push
         error_clear

         error_push

         call              sym_Ident

         error_pop_merge
   fail! jump              failed_389
         error_push

         call              sym_WHITESPACE

         error_pop_merge
   fail! jump              failed_389

         ast_pop_discard
         loc_pop_discard
         return

failed_389:
         ast_pop_rewind
         loc_pop_rewind
         return
#
# void Symbol 'IS'
#

................................................................................
#     '-'
#     (WHITESPACE)

         symbol_restore    IS
  found! return
         loc_push

         call              sequence_397

         value_clear
         symbol_save       IS
         error_nonterminal IS
         loc_pop_discard
         return

sequence_397:
# x
#     '<'
#     '-'
#     (WHITESPACE)

         loc_push
         error_clear

         error_push

         call              char_2

         error_pop_merge
   fail! jump              failed_398
         error_push

         call              char_394

         error_pop_merge
   fail! jump              failed_398
         error_push

         call              sym_WHITESPACE

         error_pop_merge
   fail! jump              failed_398

         loc_pop_discard
         return

failed_398:
         loc_pop_rewind
         return

char_394:
# '-'

         input_next        "t -"
     ok! test_char         "-"
         return
#
# leaf Symbol 'LEAF'
................................................................................
#     'l'
#     'e'
#     'a'
#     'f'
#     (WHITESPACE)

         symbol_restore    LEAF
  found! jump              found_411
         loc_push

         call              sequence_408

   fail! value_clear
     ok! value_leaf        LEAF
         symbol_save       LEAF
         error_nonterminal LEAF
         loc_pop_discard

found_411:
     ok! ast_value_push
         return

sequence_408:
# x
#     'l'
#     'e'
#     'a'
#     'f'
#     (WHITESPACE)

................................................................................
         error_clear

         error_push

         call              char_6

         error_pop_merge
   fail! jump              failed_409
         error_push

         call              char_402

         error_pop_merge
   fail! jump              failed_409
         error_push

         call              char_4

         error_pop_merge
   fail! jump              failed_409
         error_push

         call              char_405

         error_pop_merge
   fail! jump              failed_409
         error_push

         call              sym_WHITESPACE

         error_pop_merge
   fail! jump              failed_409

         loc_pop_discard
         return

failed_409:
         loc_pop_rewind
         return

char_402:
# 'e'

         input_next        "t e"
     ok! test_char         "e"
         return

char_405:
# 'f'

         input_next        "t f"
     ok! test_char         "f"
         return
#
# value Symbol 'Literal'
................................................................................
#                 !
#                     (DAPOSTROPH)
#                 (Char)
#         (DAPOSTROPH)
#         (WHITESPACE)

         symbol_restore    Literal
  found! jump              found_452
         loc_push
         ast_push

         call              choice_450

   fail! value_clear
     ok! value_reduce      Literal
         symbol_save       Literal
         error_nonterminal Literal
         ast_pop_rewind
         loc_pop_discard

found_452:
     ok! ast_value_push
         return

choice_450:
# /
#     x
#         (APOSTROPH)
#         *
#             x
#                 !
#                     (APOSTROPH)
................................................................................

         error_clear

         ast_push
         loc_push
         error_push

         call              sequence_427

         error_pop_merge
     ok! jump              ok_449

         ast_pop_rewind
         loc_pop_rewind
         ast_push
         loc_push
         error_push

         call              sequence_445

         error_pop_merge
     ok! jump              ok_449

         ast_pop_rewind
         loc_pop_rewind
         status_fail
         return

ok_449:
         ast_pop_discard
         loc_pop_discard
         return

sequence_427:
# x
#     (APOSTROPH)
#     *
#         x
#             !
#                 (APOSTROPH)
#             (Char)
................................................................................
         error_clear

         error_push

         call              sym_APOSTROPH

         error_pop_merge
   fail! jump              failednoast_429
         ast_push
         error_push

         call              kleene_422

         error_pop_merge
   fail! jump              failed_428
         error_push

         call              sym_APOSTROPH

         error_pop_merge
   fail! jump              failed_428
         error_push

         call              sym_WHITESPACE

         error_pop_merge
   fail! jump              failed_428

         ast_pop_discard
         loc_pop_discard
         return

failed_428:
         ast_pop_rewind

failednoast_429:
         loc_pop_rewind
         return

kleene_422:
# *
#     x
#         !
#             (APOSTROPH)
#         (Char)

         loc_push
         error_push

         call              sequence_418

         error_pop_merge
   fail! jump              failed_423
         loc_pop_discard
         jump              kleene_422

failed_423:
         loc_pop_rewind
         status_ok
         return

sequence_418:
# x
#     !
#         (APOSTROPH)
#     (Char)

         loc_push
         error_clear

         error_push

         call              notahead_415

         error_pop_merge
   fail! jump              failednoast_420
         ast_push
         error_push

         call              sym_Char

         error_pop_merge
   fail! jump              failed_419

         ast_pop_discard
         loc_pop_discard
         return

failed_419:
         ast_pop_rewind

failednoast_420:
         loc_pop_rewind
         return

notahead_415:
# !
#     (APOSTROPH)

         loc_push

         call              sym_APOSTROPH

         loc_pop_rewind
         status_negate
         return

sequence_445:
# x
#     (DAPOSTROPH)
#     *
#         x
#             !
#                 (DAPOSTROPH)
#             (Char)
................................................................................
         error_clear

         error_push

         call              sym_DAPOSTROPH

         error_pop_merge
   fail! jump              failednoast_447
         ast_push
         error_push

         call              kleene_440

         error_pop_merge
   fail! jump              failed_446
         error_push

         call              sym_DAPOSTROPH

         error_pop_merge
   fail! jump              failed_446
         error_push

         call              sym_WHITESPACE

         error_pop_merge
   fail! jump              failed_446

         ast_pop_discard
         loc_pop_discard
         return

failed_446:
         ast_pop_rewind

failednoast_447:
         loc_pop_rewind
         return

kleene_440:
# *
#     x
#         !
#             (DAPOSTROPH)
#         (Char)

         loc_push
         error_push

         call              sequence_436

         error_pop_merge
   fail! jump              failed_441
         loc_pop_discard
         jump              kleene_440

failed_441:
         loc_pop_rewind
         status_ok
         return

sequence_436:
# x
#     !
#         (DAPOSTROPH)
#     (Char)

         loc_push
         error_clear

         error_push

         call              notahead_433

         error_pop_merge
   fail! jump              failednoast_438
         ast_push
         error_push

         call              sym_Char

         error_pop_merge
   fail! jump              failed_437

         ast_pop_discard
         loc_pop_discard
         return

failed_437:
         ast_pop_rewind

failednoast_438:
         loc_pop_rewind
         return

notahead_433:
# !
#     (DAPOSTROPH)

         loc_push

         call              sym_DAPOSTROPH

................................................................................
#     'w'
#     'e'
#     'r'
#     '>'
#     (WHITESPACE)

         symbol_restore    LOWER
  found! jump              found_466
         loc_push

         call              sequence_463

   fail! value_clear
     ok! value_leaf        LOWER
         symbol_save       LOWER
         error_nonterminal LOWER
         loc_pop_discard

found_466:
     ok! ast_value_push
         return

sequence_463:
# x
#     '<'
#     'l'
#     'o'
#     'w'
#     'e'
#     'r'
................................................................................
         error_clear

         error_push

         call              char_2

         error_pop_merge
   fail! jump              failed_464
         error_push

         call              char_6

         error_pop_merge
   fail! jump              failed_464
         error_push

         call              char_217

         error_pop_merge
   fail! jump              failed_464
         error_push

         call              char_457

         error_pop_merge
   fail! jump              failed_464
         error_push

         call              char_402

         error_pop_merge
   fail! jump              failed_464
         error_push

         call              char_109

         error_pop_merge
   fail! jump              failed_464
         error_push

         call              char_14

         error_pop_merge
   fail! jump              failed_464
         error_push

         call              sym_WHITESPACE

         error_pop_merge
   fail! jump              failed_464

         loc_pop_discard
         return

failed_464:
         loc_pop_rewind
         return

char_457:
# 'w'

         input_next        "t w"
     ok! test_char         "w"
         return
#
# leaf Symbol 'NOT'
................................................................................

sym_NOT:
# x
#     '!'
#     (WHITESPACE)

         symbol_restore    NOT
  found! jump              found_474
         loc_push

         call              sequence_471

   fail! value_clear
     ok! value_leaf        NOT
         symbol_save       NOT
         error_nonterminal NOT
         loc_pop_discard

found_474:
     ok! ast_value_push
         return

sequence_471:
# x
#     '!'
#     (WHITESPACE)

         loc_push
         error_clear

         error_push

         call              char_468

         error_pop_merge
   fail! jump              failed_472
         error_push

         call              sym_WHITESPACE

         error_pop_merge
   fail! jump              failed_472

         loc_pop_discard
         return

failed_472:
         loc_pop_rewind
         return

char_468:
# '!'

         input_next        "t !"
     ok! test_char         "!"
         return
#
# void Symbol 'OPEN'
................................................................................
#     '\('
#     (WHITESPACE)

         symbol_restore    OPEN
  found! return
         loc_push

         call              sequence_479

         value_clear
         symbol_save       OPEN
         error_nonterminal OPEN
         loc_pop_discard
         return

sequence_479:
# x
#     '\('
#     (WHITESPACE)

         loc_push
         error_clear

         error_push

         call              char_476

         error_pop_merge
   fail! jump              failed_480
         error_push

         call              sym_WHITESPACE

         error_pop_merge
   fail! jump              failed_480

         loc_pop_discard
         return

failed_480:
         loc_pop_rewind
         return

char_476:
# '\('

         input_next        "t ("
     ok! test_char         "("
         return
#
# void Symbol 'OPENB'
................................................................................
#

sym_PEG:
# x
#     'P'
#     'E'
#     'G'





#     (WHITESPACE)

         symbol_restore    PEG
  found! return
         loc_push

         call              sequence_491

         value_clear
         symbol_save       PEG
         error_nonterminal PEG
         loc_pop_discard
         return

sequence_491:
# x
#     'P'
#     'E'
#     'G'





#     (WHITESPACE)

         loc_push
         error_clear

         error_push

         call              char_485

         error_pop_merge
   fail! jump              failed_492
         error_push

         call              char_282

         error_pop_merge
   fail! jump              failed_492
         error_push

         call              char_488

         error_pop_merge
   fail! jump              failed_492
         error_push







         call              sym_WHITESPACE

         error_pop_merge
   fail! jump              failed_492

         loc_pop_discard
         return

failed_492:
         loc_pop_rewind
         return

char_485:
# 'P'

         input_next        "t P"
     ok! test_char         "P"
         return

char_488:
# 'G'

         input_next        "t G"
     ok! test_char         "G"
         return















#
# leaf Symbol 'PLUS'
#

sym_PLUS:
# x
#     '+'
#     (WHITESPACE)

         symbol_restore    PLUS
  found! jump              found_501
         loc_push

         call              sequence_498

   fail! value_clear
     ok! value_leaf        PLUS
         symbol_save       PLUS
         error_nonterminal PLUS
         loc_pop_discard

found_501:
     ok! ast_value_push
         return

sequence_498:
# x
#     '+'
#     (WHITESPACE)

         loc_push
         error_clear

         error_push

         call              char_495

         error_pop_merge
   fail! jump              failed_499
         error_push

         call              sym_WHITESPACE

         error_pop_merge
   fail! jump              failed_499

         loc_pop_discard
         return

failed_499:
         loc_pop_rewind
         return

char_495:
# '+'

         input_next        "t +"
     ok! test_char         "+"
         return
#
# value Symbol 'Prefix'
................................................................................
#     ?
#         /
#             (AND)
#             (NOT)
#     (Suffix)

         symbol_restore    Prefix
  found! jump              found_514
         loc_push
         ast_push

         call              sequence_511

   fail! value_clear
     ok! value_reduce      Prefix
         symbol_save       Prefix
         error_nonterminal Prefix
         ast_pop_rewind
         loc_pop_discard

found_514:
     ok! ast_value_push
         return

sequence_511:
# x
#     ?
#         /
#             (AND)
#             (NOT)
#     (Suffix)

         ast_push
         loc_push
         error_clear

         error_push

         call              optional_508

         error_pop_merge
   fail! jump              failed_512
         error_push

         call              sym_Suffix

         error_pop_merge
   fail! jump              failed_512

         ast_pop_discard
         loc_pop_discard
         return

failed_512:
         ast_pop_rewind
         loc_pop_rewind
         return

optional_508:
# ?
#     /
#         (AND)
#         (NOT)

         loc_push
         error_push

         call              choice_506

         error_pop_merge
   fail! loc_pop_rewind
     ok! loc_pop_discard
         status_ok
         return

choice_506:
# /
#     (AND)
#     (NOT)

         error_clear

         ast_push
         loc_push
         error_push

         call              sym_AND

         error_pop_merge
     ok! jump              ok_505

         ast_pop_rewind
         loc_pop_rewind
         ast_push
         loc_push
         error_push

         call              sym_NOT

         error_pop_merge
     ok! jump              ok_505

         ast_pop_rewind
         loc_pop_rewind
         status_fail
         return

ok_505:
         ast_pop_discard
         loc_pop_discard
         return
#
# value Symbol 'Primary'
#

................................................................................
#         (Expression)
#         (CLOSE)
#     (Literal)
#     (Class)
#     (DOT)

         symbol_restore    Primary
  found! jump              found_544
         loc_push
         ast_push

         call              choice_542

   fail! value_clear
     ok! value_reduce      Primary
         symbol_save       Primary
         error_nonterminal Primary
         ast_pop_rewind
         loc_pop_discard

found_544:
     ok! ast_value_push
         return

choice_542:
# /
#     (ALNUM)
#     (ALPHA)
#     (ASCII)
#     (CONTROL)
#     (DDIGIT)
#     (DIGIT)
................................................................................
         ast_push
         loc_push
         error_push

         call              sym_ALNUM

         error_pop_merge
     ok! jump              ok_541

         ast_pop_rewind
         loc_pop_rewind
         ast_push
         loc_push
         error_push

         call              sym_ALPHA

         error_pop_merge
     ok! jump              ok_541

         ast_pop_rewind
         loc_pop_rewind
         ast_push
         loc_push
         error_push

         call              sym_ASCII

         error_pop_merge
     ok! jump              ok_541

         ast_pop_rewind
         loc_pop_rewind
         ast_push
         loc_push
         error_push

         call              sym_CONTROL

         error_pop_merge
     ok! jump              ok_541

         ast_pop_rewind
         loc_pop_rewind
         ast_push
         loc_push
         error_push

         call              sym_DDIGIT

         error_pop_merge
     ok! jump              ok_541

         ast_pop_rewind
         loc_pop_rewind
         ast_push
         loc_push
         error_push

         call              sym_DIGIT

         error_pop_merge
     ok! jump              ok_541

         ast_pop_rewind
         loc_pop_rewind
         ast_push
         loc_push
         error_push

         call              sym_GRAPH

         error_pop_merge
     ok! jump              ok_541

         ast_pop_rewind
         loc_pop_rewind
         ast_push
         loc_push
         error_push

         call              sym_LOWER

         error_pop_merge
     ok! jump              ok_541

         ast_pop_rewind
         loc_pop_rewind
         ast_push
         loc_push
         error_push

         call              sym_PRINTABLE

         error_pop_merge
     ok! jump              ok_541

         ast_pop_rewind
         loc_pop_rewind
         ast_push
         loc_push
         error_push

         call              sym_PUNCT

         error_pop_merge
     ok! jump              ok_541

         ast_pop_rewind
         loc_pop_rewind
         ast_push
         loc_push
         error_push

         call              sym_SPACE

         error_pop_merge
     ok! jump              ok_541

         ast_pop_rewind
         loc_pop_rewind
         ast_push
         loc_push
         error_push

         call              sym_UPPER

         error_pop_merge
     ok! jump              ok_541

         ast_pop_rewind
         loc_pop_rewind
         ast_push
         loc_push
         error_push

         call              sym_WORDCHAR

         error_pop_merge
     ok! jump              ok_541

         ast_pop_rewind
         loc_pop_rewind
         ast_push
         loc_push
         error_push

         call              sym_XDIGIT

         error_pop_merge
     ok! jump              ok_541

         ast_pop_rewind
         loc_pop_rewind
         ast_push
         loc_push
         error_push

         call              sym_Identifier

         error_pop_merge
     ok! jump              ok_541

         ast_pop_rewind
         loc_pop_rewind
         ast_push
         loc_push
         error_push

         call              sequence_534

         error_pop_merge
     ok! jump              ok_541

         ast_pop_rewind
         loc_pop_rewind
         ast_push
         loc_push
         error_push

         call              sym_Literal

         error_pop_merge
     ok! jump              ok_541

         ast_pop_rewind
         loc_pop_rewind
         ast_push
         loc_push
         error_push

         call              sym_Class

         error_pop_merge
     ok! jump              ok_541

         ast_pop_rewind
         loc_pop_rewind
         ast_push
         loc_push
         error_push

         call              sym_DOT

         error_pop_merge
     ok! jump              ok_541

         ast_pop_rewind
         loc_pop_rewind
         status_fail
         return

ok_541:
         ast_pop_discard
         loc_pop_discard
         return

sequence_534:
# x
#     (OPEN)
#     (Expression)
#     (CLOSE)

         loc_push
         error_clear

         error_push

         call              sym_OPEN

         error_pop_merge
   fail! jump              failednoast_536
         ast_push
         error_push

         call              sym_Expression

         error_pop_merge
   fail! jump              failed_535
         error_push

         call              sym_CLOSE

         error_pop_merge
   fail! jump              failed_535

         ast_pop_discard
         loc_pop_discard
         return

failed_535:
         ast_pop_rewind

failednoast_536:
         loc_pop_rewind
         return
#
# leaf Symbol 'PRINTABLE'
#

sym_PRINTABLE:
................................................................................
#     'i'
#     'n'
#     't'
#     '>'
#     (WHITESPACE)

         symbol_restore    PRINTABLE
  found! jump              found_557
         loc_push

         call              sequence_554

   fail! value_clear
     ok! value_leaf        PRINTABLE
         symbol_save       PRINTABLE
         error_nonterminal PRINTABLE
         loc_pop_discard

found_557:
     ok! ast_value_push
         return

sequence_554:
# x
#     '<'
#     'p'
#     'r'
#     'i'
#     'n'
#     't'
................................................................................
         error_clear

         error_push

         call              char_2

         error_pop_merge
   fail! jump              failed_555
         error_push

         call              char_25

         error_pop_merge
   fail! jump              failed_555
         error_push

         call              char_109

         error_pop_merge
   fail! jump              failed_555
         error_push

         call              char_54

         error_pop_merge
   fail! jump              failed_555
         error_push

         call              char_8

         error_pop_merge
   fail! jump              failed_555
         error_push

         call              char_111

         error_pop_merge
   fail! jump              failed_555
         error_push

         call              char_14

         error_pop_merge
   fail! jump              failed_555
         error_push

         call              sym_WHITESPACE

         error_pop_merge
   fail! jump              failed_555

         loc_pop_discard
         return

failed_555:
         loc_pop_rewind
         return
#
# leaf Symbol 'PUNCT'
#

sym_PUNCT:
................................................................................
#     'n'
#     'c'
#     't'
#     '>'
#     (WHITESPACE)

         symbol_restore    PUNCT
  found! jump              found_570
         loc_push

         call              sequence_567

   fail! value_clear
     ok! value_leaf        PUNCT
         symbol_save       PUNCT
         error_nonterminal PUNCT
         loc_pop_discard

found_570:
     ok! ast_value_push
         return

sequence_567:
# x
#     '<'
#     'p'
#     'u'
#     'n'
#     'c'
#     't'
................................................................................
         error_clear

         error_push

         call              char_2

         error_pop_merge
   fail! jump              failed_568
         error_push

         call              char_25

         error_pop_merge
   fail! jump              failed_568
         error_push

         call              char_10

         error_pop_merge
   fail! jump              failed_568
         error_push

         call              char_8

         error_pop_merge
   fail! jump              failed_568
         error_push

         call              char_52

         error_pop_merge
   fail! jump              failed_568
         error_push

         call              char_111

         error_pop_merge
   fail! jump              failed_568
         error_push

         call              char_14

         error_pop_merge
   fail! jump              failed_568
         error_push

         call              sym_WHITESPACE

         error_pop_merge
   fail! jump              failed_568

         loc_pop_discard
         return

failed_568:
         loc_pop_rewind
         return
#
# leaf Symbol 'QUESTION'
#

sym_QUESTION:
# x
#     '?'
#     (WHITESPACE)

         symbol_restore    QUESTION
  found! jump              found_578
         loc_push

         call              sequence_575

   fail! value_clear
     ok! value_leaf        QUESTION
         symbol_save       QUESTION
         error_nonterminal QUESTION
         loc_pop_discard

found_578:
     ok! ast_value_push
         return

sequence_575:
# x
#     '?'
#     (WHITESPACE)

         loc_push
         error_clear

         error_push

         call              char_572

         error_pop_merge
   fail! jump              failed_576
         error_push

         call              sym_WHITESPACE

         error_pop_merge
   fail! jump              failed_576

         loc_pop_discard
         return

failed_576:
         loc_pop_rewind
         return

char_572:
# '?'

         input_next        "t ?"
     ok! test_char         "?"
         return
#
# value Symbol 'Range'
................................................................................
#     x
#         (Char)
#         (TO)
#         (Char)
#     (Char)

         symbol_restore    Range
  found! jump              found_590
         loc_push
         ast_push

         call              choice_588

   fail! value_clear
     ok! value_reduce      Range
         symbol_save       Range
         error_nonterminal Range
         ast_pop_rewind
         loc_pop_discard

found_590:
     ok! ast_value_push
         return

choice_588:
# /
#     x
#         (Char)
#         (TO)
#         (Char)
#     (Char)

         error_clear

         ast_push
         loc_push
         error_push

         call              sequence_583

         error_pop_merge
     ok! jump              ok_587

         ast_pop_rewind
         loc_pop_rewind
         ast_push
         loc_push
         error_push

         call              sym_Char

         error_pop_merge
     ok! jump              ok_587

         ast_pop_rewind
         loc_pop_rewind
         status_fail
         return

ok_587:
         ast_pop_discard
         loc_pop_discard
         return

sequence_583:
# x
#     (Char)
#     (TO)
#     (Char)

         ast_push
         loc_push
................................................................................
         error_clear

         error_push

         call              sym_Char

         error_pop_merge
   fail! jump              failed_584
         error_push

         call              sym_TO

         error_pop_merge
   fail! jump              failed_584
         error_push

         call              sym_Char

         error_pop_merge
   fail! jump              failed_584

         ast_pop_discard
         loc_pop_discard
         return

failed_584:
         ast_pop_rewind
         loc_pop_rewind
         return
#
# void Symbol 'SEMICOLON'
#

................................................................................
#     ';'
#     (WHITESPACE)

         symbol_restore    SEMICOLON
  found! return
         loc_push

         call              sequence_595

         value_clear
         symbol_save       SEMICOLON
         error_nonterminal SEMICOLON
         loc_pop_discard
         return

sequence_595:
# x
#     ';'
#     (WHITESPACE)

         loc_push
         error_clear

         error_push

         call              char_592

         error_pop_merge
   fail! jump              failed_596
         error_push

         call              sym_WHITESPACE

         error_pop_merge
   fail! jump              failed_596

         loc_pop_discard
         return

failed_596:
         loc_pop_rewind
         return

char_592:
# ';'

         input_next        "t ;"
     ok! test_char         ";"
         return
#
# value Symbol 'Sequence'
................................................................................
#

sym_Sequence:
# +
#     (Prefix)

         symbol_restore    Sequence
  found! jump              found_604
         loc_push
         ast_push

         call              poskleene_600

   fail! value_clear
     ok! value_reduce      Sequence
         symbol_save       Sequence
         error_nonterminal Sequence
         ast_pop_rewind
         loc_pop_discard

found_604:
     ok! ast_value_push
         return

poskleene_600:
# +
#     (Prefix)

         loc_push

         call              sym_Prefix

   fail! jump              failed_601

loop_602:
         loc_pop_discard
         loc_push
         error_push

         call              sym_Prefix

         error_pop_merge
     ok! jump              loop_602
         status_ok

failed_601:
         loc_pop_rewind
         return
#
# void Symbol 'SLASH'
#

sym_SLASH:
................................................................................
#     '/'
#     (WHITESPACE)

         symbol_restore    SLASH
  found! return
         loc_push

         call              sequence_609

         value_clear
         symbol_save       SLASH
         error_nonterminal SLASH
         loc_pop_discard
         return

sequence_609:
# x
#     '/'
#     (WHITESPACE)

         loc_push
         error_clear

         error_push

         call              char_606

         error_pop_merge
   fail! jump              failed_610
         error_push

         call              sym_WHITESPACE

         error_pop_merge
   fail! jump              failed_610

         loc_pop_discard
         return

failed_610:
         loc_pop_rewind
         return

char_606:
# '/'

         input_next        "t /"
     ok! test_char         "/"
         return
#
# leaf Symbol 'SPACE'
................................................................................
#     'a'
#     'c'
#     'e'
#     '>'
#     (WHITESPACE)

         symbol_restore    SPACE
  found! jump              found_624
         loc_push

         call              sequence_621

   fail! value_clear
     ok! value_leaf        SPACE
         symbol_save       SPACE
         error_nonterminal SPACE
         loc_pop_discard

found_624:
     ok! ast_value_push
         return

sequence_621:
# x
#     '<'
#     's'
#     'p'
#     'a'
#     'c'
#     'e'
................................................................................
         error_clear

         error_push

         call              char_2

         error_pop_merge
   fail! jump              failed_622
         error_push

         call              char_50

         error_pop_merge
   fail! jump              failed_622
         error_push

         call              char_25

         error_pop_merge
   fail! jump              failed_622
         error_push

         call              char_4

         error_pop_merge
   fail! jump              failed_622
         error_push

         call              char_52

         error_pop_merge
   fail! jump              failed_622
         error_push

         call              char_402

         error_pop_merge
   fail! jump              failed_622
         error_push

         call              char_14

         error_pop_merge
   fail! jump              failed_622
         error_push

         call              sym_WHITESPACE

         error_pop_merge
   fail! jump              failed_622

         loc_pop_discard
         return

failed_622:
         loc_pop_rewind
         return
#
# leaf Symbol 'STAR'
#

sym_STAR:
# x
#     '*'
#     (WHITESPACE)

         symbol_restore    STAR
  found! jump              found_632
         loc_push

         call              sequence_629

   fail! value_clear
     ok! value_leaf        STAR
         symbol_save       STAR
         error_nonterminal STAR
         loc_pop_discard

found_632:
     ok! ast_value_push
         return

sequence_629:
# x
#     '*'
#     (WHITESPACE)

         loc_push
         error_clear

         error_push

         call              char_626

         error_pop_merge
   fail! jump              failed_630
         error_push

         call              sym_WHITESPACE

         error_pop_merge
   fail! jump              failed_630

         loc_pop_discard
         return

failed_630:
         loc_pop_rewind
         return

char_626:
# '*'

         input_next        "t *"
     ok! test_char         "*"
         return
#
# value Symbol 'StartExpr'
................................................................................
sym_StartExpr:
# x
#     (OPEN)
#     (Expression)
#     (CLOSE)

         symbol_restore    StartExpr
  found! jump              found_638
         loc_push
         ast_push

         call              sequence_534

   fail! value_clear
     ok! value_reduce      StartExpr
         symbol_save       StartExpr
         error_nonterminal StartExpr
         ast_pop_rewind
         loc_pop_discard

found_638:
     ok! ast_value_push
         return
#
# value Symbol 'Suffix'
#

sym_Suffix:
................................................................................
#     ?
#         /
#             (QUESTION)
#             (STAR)
#             (PLUS)

         symbol_restore    Suffix
  found! jump              found_652
         loc_push
         ast_push

         call              sequence_649

   fail! value_clear
     ok! value_reduce      Suffix
         symbol_save       Suffix
         error_nonterminal Suffix
         ast_pop_rewind
         loc_pop_discard

found_652:
     ok! ast_value_push
         return

sequence_649:
# x
#     (Primary)
#     ?
#         /
#             (QUESTION)
#             (STAR)
#             (PLUS)
................................................................................
         error_clear

         error_push

         call              sym_Primary

         error_pop_merge
   fail! jump              failed_650
         error_push

         call              optional_647

         error_pop_merge
   fail! jump              failed_650

         ast_pop_discard
         loc_pop_discard
         return

failed_650:
         ast_pop_rewind
         loc_pop_rewind
         return

optional_647:
# ?
#     /
#         (QUESTION)
#         (STAR)
#         (PLUS)

         loc_push
         error_push

         call              choice_645

         error_pop_merge
   fail! loc_pop_rewind
     ok! loc_pop_discard
         status_ok
         return

choice_645:
# /
#     (QUESTION)
#     (STAR)
#     (PLUS)

         error_clear

................................................................................
         ast_push
         loc_push
         error_push

         call              sym_QUESTION

         error_pop_merge
     ok! jump              ok_644

         ast_pop_rewind
         loc_pop_rewind
         ast_push
         loc_push
         error_push

         call              sym_STAR

         error_pop_merge
     ok! jump              ok_644

         ast_pop_rewind
         loc_pop_rewind
         ast_push
         loc_push
         error_push

         call              sym_PLUS

         error_pop_merge
     ok! jump              ok_644

         ast_pop_rewind
         loc_pop_rewind
         status_fail
         return

ok_644:
         ast_pop_discard
         loc_pop_discard
         return
#
# void Symbol 'TO'
#

................................................................................
sym_TO:
# '-'

         symbol_restore    TO
  found! return
         loc_push

         call              char_394

         value_clear
         symbol_save       TO
         error_nonterminal TO
         loc_pop_discard
         return
#
................................................................................
#     'p'
#     'e'
#     'r'
#     '>'
#     (WHITESPACE)

         symbol_restore    UPPER
  found! jump              found_667
         loc_push

         call              sequence_664

   fail! value_clear
     ok! value_leaf        UPPER
         symbol_save       UPPER
         error_nonterminal UPPER
         loc_pop_discard

found_667:
     ok! ast_value_push
         return

sequence_664:
# x
#     '<'
#     'u'
#     'p'
#     'p'
#     'e'
#     'r'
................................................................................
         error_clear

         error_push

         call              char_2

         error_pop_merge
   fail! jump              failed_665
         error_push

         call              char_10

         error_pop_merge
   fail! jump              failed_665
         error_push

         call              char_25

         error_pop_merge
   fail! jump              failed_665
         error_push

         call              char_25

         error_pop_merge
   fail! jump              failed_665
         error_push

         call              char_402

         error_pop_merge
   fail! jump              failed_665
         error_push

         call              char_109

         error_pop_merge
   fail! jump              failed_665
         error_push

         call              char_14

         error_pop_merge
   fail! jump              failed_665
         error_push

         call              sym_WHITESPACE

         error_pop_merge
   fail! jump              failed_665

         loc_pop_discard
         return

failed_665:
         loc_pop_rewind
         return
#
# leaf Symbol 'VOID'
#

sym_VOID:
................................................................................
#     'v'
#     'o'
#     'i'
#     'd'
#     (WHITESPACE)

         symbol_restore    VOID
  found! jump              found_678
         loc_push

         call              sequence_675

   fail! value_clear
     ok! value_leaf        VOID
         symbol_save       VOID
         error_nonterminal VOID
         loc_pop_discard

found_678:
     ok! ast_value_push
         return

sequence_675:
# x
#     'v'
#     'o'
#     'i'
#     'd'
#     (WHITESPACE)

         loc_push
         error_clear

         error_push

         call              char_669

         error_pop_merge
   fail! jump              failed_676
         error_push

         call              char_217

         error_pop_merge
   fail! jump              failed_676
         error_push

         call              char_54

         error_pop_merge
   fail! jump              failed_676
         error_push

         call              char_234

         error_pop_merge
   fail! jump              failed_676
         error_push

         call              sym_WHITESPACE

         error_pop_merge
   fail! jump              failed_676

         loc_pop_discard
         return

failed_676:
         loc_pop_rewind
         return

char_669:
# 'v'

         input_next        "t v"
     ok! test_char         "v"
         return
#
# void Symbol 'WHITESPACE'
................................................................................
#         <space>
#         (COMMENT)

         symbol_restore    WHITESPACE
  found! return
         loc_push

         call              kleene_686

         value_clear
         symbol_save       WHITESPACE
         error_nonterminal WHITESPACE
         loc_pop_discard
         return

kleene_686:
# *
#     /
#         <space>
#         (COMMENT)

         loc_push
         error_push

         call              choice_684

         error_pop_merge
   fail! jump              failed_687
         loc_pop_discard
         jump              kleene_686

failed_687:
         loc_pop_rewind
         status_ok
         return

choice_684:
# /
#     <space>
#     (COMMENT)

         error_clear

         loc_push
         error_push

         call              space_680

         error_pop_merge
     ok! jump              oknoast_683

         loc_pop_rewind
         loc_push
         error_push

         call              sym_COMMENT

         error_pop_merge
     ok! jump              oknoast_683

         loc_pop_rewind
         status_fail
         return

oknoast_683:
         loc_pop_discard
         return

space_680:
# <space>

         input_next        "space"
     ok! test_space
         return
#
# leaf Symbol 'WORDCHAR'
................................................................................
#     'h'
#     'a'
#     'r'
#     '>'
#     (WHITESPACE)

         symbol_restore    WORDCHAR
  found! jump              found_704
         loc_push

         call              sequence_701

   fail! value_clear
     ok! value_leaf        WORDCHAR
         symbol_save       WORDCHAR
         error_nonterminal WORDCHAR
         loc_pop_discard

found_704:
     ok! ast_value_push
         return

sequence_701:
# x
#     '<'
#     'w'
#     'o'
#     'r'
#     'd'
#     'c'
....................................................