path:
root/
lemon/
README (
plain)
blob: da97edb9aa06ab345e39f0b508fd7ef97e367d47
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
|
An example of using the Lemon parser generator.
Lemon itself is a public domain parser generator by D. Richard Hipp.
LEMON FILES
===============================================================================
lemon.c The lemon source code
lempar.c The lemon parser standard template
lemon.txt The lemon documentation
OUR FILES
===============================================================================
cfg.y The grammar we want to parse (see test.txt for a sample file)
readcfg.c The main program, which directs the parsing of the config file
readcfg.h Headers for things common to main program and generated parser
tok.c A function to split the configuration file into parseable tokens
slurp.c A utility to read a whole file into a malloc'd buffer
test.txt Sample file that we want to parse using the grammar in cfg.y
TRY IT
===============================================================================
make
./readcfg test.txt
MORE INFO
===============================================================================
Read NOTES.tdh
|