#! /bin/sh -e
# [mx] make '*.img'

#destination directory for parser and scanner table image files
BINSTYX=.
#destination directory for parser and scanner table and term interface source files
GENSTYX=.
#source directory of language specification file
SPESTYX=.

export BINSTYX GENSTYX SPESTYX

#create source files
styx st    -makeIMG -verbose
styx sp11  -makeIMG -verbose
styx sp21  -makeIMG -verbose
styx php50 -makeIMG -verbose
styx php52 -makeIMG -verbose
styx json  -makeIMG -verbose
styx lua   -makeIMG -verbose

#test example
#pim_test st    <some smalltalk80 source>
#pim_test sp11  <some express source>
#pim_test sp21  <some step exchange file>
#pim_test php50 <some PHP (<=5.0) source with standard open/close tags>
#pim_test php52 <some PHP (<=5.2) source with standard open/close tags>
#pim_test json  <some json source>
#pim_test lua  <some lua (>= 5.1) source>
