#!/bin/bash

############################
## compile and run the new parser program
##
rm -f new.o context.o tokenizer.o
g++ -c new.cpp context.cpp tokenizer.cpp
if [ $? -ne 0 ]; then
    echo "compiler errors"
    exit
fi
g++ -o new new.o context.o tokenizer.o -pthread
if [ $? -ne 0 ]; then
    echo "linker errors"
    exit
fi
