#!/bin/sh

# translate the shmall C compiler from source to a schant executable

SRC=src

cat \
  $SRC/shmall/clex.scm \
  $SRC/shmall/misc.scm \
  $SRC/shmall/shunt.scm \
  $SRC/shmall/error.scm \
  $SRC/shmall/recursive-descent.scm \
  > shmall.scm

# compile shmall C compiler

cat bin/schant-compiler.txt shmall.scm | \
  bin/schant-int \
  > shmall.txt

rm shmall.scm
