rem BATCH FILE TO TEST THE COMPILER AND INTERPRETER
	cd src

rem GENERATE A BYTE CODE LISTING FOR THE TEST PROGRAM `toxcc'
	oxcc -qwLGb toxcc.c

rem GENERATE A .anf FILE FOR `toxcc'
	oxcc -qwLGn toxcc.c

rem GENERATE A .byt FILE FOR THE BACKEND PROGRAM `oxccb'
	oxcc -qwGb oxccb.c

rem USE THE COMPILER TO INTERPRET `oxccb' AND GENERATE LISTING
	oxcc -qwrf oxccb.c "-(-L -o toxcc.l1 toxcc.anf"

rem USE `bterp' TO INTERPRET `oxccb' AND GENERATE LISTING	
	bterp oxccb -L -o toxcc.l2 toxcc.anf

rem toxcc.lst, toxcc.l1 and toxcc.l2 SHOULD BE SUBSTANTIALLY THE SAME

rem INTERPRET TOXCC WITH THE COMPILER
	oxcc -qwr toxcc.c

rem GENERATE A .byt FILE FOR `toxcc'
	oxcc -qwGb toxcc.c

rem INTERPRET TOXCC WITH `bterp'
	bterp toxcc

rem USE `bterp' TO INTERPRET `oxccb' AND GENERATE .byt FILE FOR `toxcc'
	bterp oxccb toxcc
	
rem INTERPRET TOXCC WITH `bterp'
	bterp toxcc

	cd ..

