Index of /~tyson/classes/515.s09/src/p1
Name Last modified Size Description
Parent Directory 03-Feb-2009 16:34 -
Makefile 21-Jan-2009 14:37 2k
error.cpp 21-Jan-2009 14:37 10k
error.h 21-Jan-2009 14:37 4k
expr.l 25-Jan-2009 16:38 3k
expr.y 21-Jan-2009 14:37 3k
gpl_assert.cpp 25-Jan-2009 16:44 1k
gpl_assert.h 21-Jan-2009 14:37 1k
grammar 21-Jan-2009 14:37 1k
p1_srt.tar 25-Jan-2009 16:44 40k
parser.cpp 21-Jan-2009 14:37 1k
parser.h 21-Jan-2009 14:37 1k
tmp/ 30-Jan-2009 10:51 -
CSCI 515
Program 1
Steps to getting this to work
1) copy all these files to your machine
2) edit the Makefile so it is configured for your machine (Linus, cygwin, OSX)
3) type: $ make make
4) type: $ make
NOTE: you will get lots of errors for library file on step (3)
if step (3) failed to find makedepend, install makedepend
if step (4) failed, Check the software installation page:
~tyson/515/docs/software_installation.html
You can experiment with the parser in two ways:
1) put the expression in a filename, and run the parser
$ parser filename
2) run the parser and type in the expression
$ parser <return>
....
5 + 4 - 3<return>
^D
Note: in the UNIX/Linux world ^D (control-D) signals end of file (EOF).