Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: fde062c824
Fetching contributors…

Cannot retrieve contributors at this time

executable file 28 lines (23 sloc) 0.906 kB
#!/bin/sh
#========================================================================
#
# yc - yapp compile
#
# This calls 'yapp', distributed with the Parse::Yapp module, to
# compile the parser grammar and construct the ../Template/Grammar.pm
# file. The grammar is defined in ./Parser.yp. The skeleton file
# Grammar.pm.skel is used as a template for creating the grammar file.
# An output file 'Parser.output' is generated containing a summary of
# the rule and state tables.
#
# You only need to run this script if you have changed the grammar and
# wish to recompile it.
#
# Andy Wardley <abw@wardley.org>
#
#========================================================================
: ${GRAMMAR:="Parser.yp"}
: ${OUTPUT:="../lib/Template/Grammar.pm"}
: ${TEMPLATE:="Grammar.pm.skel"}
echo "Compiling parser grammar (${GRAMMAR} -> ${OUTPUT})"
yapp -v -s -o ${OUTPUT} -t ${TEMPLATE} ${GRAMMAR}
Jump to Line
Something went wrong with that request. Please try again.