File: cparam.inc

package info (click to toggle)
tcllib 1.14-dfsg-3%2Bdeb7u1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 33,036 kB
  • sloc: tcl: 148,302; ansic: 14,067; sh: 10,320; xml: 1,766; yacc: 753; pascal: 551; makefile: 129; perl: 84; f90: 84; python: 33; ruby: 13; php: 11
file content (28 lines) | stat: -rw-r--r-- 782 bytes parent folder | download | duplicates (2)
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

[section {C/PARAM code representation of parsing expression grammars}]

[include whatis_cparam_rawc.inc]
[para]

The bulk of such a framework has to be specified through the option
[option -template]. The additional options

[list_begin options]
[opt_def -fun-qualifier string]
[opt_def -indent integer]
[opt_def -main string]
[opt_def -namespace string]
[opt_def -prelude string]
[opt_def -self-command string]
[opt_def -state-decl string]
[opt_def -state-ref string]
[opt_def -string-varname string]
[list_end]

provide code snippets which help to glue framework and generated code
together. Their placeholders are in the [emph generated] code.

[subsection Example]

We are forgoing an example of this representation, with apologies.
It would be way to large for this document.