Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 28 lines (23 sloc) 0.906 kb
3ebfa07 @abw Initial revision
authored
1 #!/bin/sh
2 #========================================================================
3 #
4 # yc - yapp compile
5 #
6 # This calls 'yapp', distributed with the Parse::Yapp module, to
7 # compile the parser grammar and construct the ../Template/Grammar.pm
8 # file. The grammar is defined in ./Parser.yp. The skeleton file
9 # Grammar.pm.skel is used as a template for creating the grammar file.
10 # An output file 'Parser.output' is generated containing a summary of
11 # the rule and state tables.
12 #
13 # You only need to run this script if you have changed the grammar and
14 # wish to recompile it.
15 #
5a89101 @abw Fixed a bug in the parser/grammar to make NEXT/LAST work correctly in…
authored
16 # Andy Wardley <abw@wardley.org>
3ebfa07 @abw Initial revision
authored
17 #
18 #========================================================================
19
cd09559 * Made GRAMMAR, OUTPUT, and PARSER env-var configurable, using := sy…
Darren Chamberlain authored
20 : ${GRAMMAR:="Parser.yp"}
21 : ${OUTPUT:="../lib/Template/Grammar.pm"}
22 : ${TEMPLATE:="Grammar.pm.skel"}
3ebfa07 @abw Initial revision
authored
23
24 echo "Compiling parser grammar (${GRAMMAR} -> ${OUTPUT})"
25
26 yapp -v -s -o ${OUTPUT} -t ${TEMPLATE} ${GRAMMAR}
27
Something went wrong with that request. Please try again.