This server is intended for use for Academic Classwork related Git repositories only. Projects/repositories will generally be removed after 6 months following close of the semester. Inactive repositories from previous semester are now being archived when no activity for 365 days. They are renamed and marked as 'archived'. After 90 days in that state they will be removed from the system completely.

Commit 99a9fea0 authored by Jonathan Evans's avatar Jonathan Evans

updated naming convention

parent 61afca07
default: all
all: mfpl
all: evanshogan_parser
mfpl: lex.yy.c parser.tab.c
g++ parser.tab.c -o mfpl
evanshogan_parser: lex.yy.c evanshogan.tab.c
g++ evanshogan.tab.c -o evanshogan_parser
parser.tab.c: parser.y
bison parser.y
evanshogan.tab.c: evanshogan.y
bison evanshogan.y
lex.yy.c: lexer.l
flex lexer.l
lex.yy.c: evanshogan.l
flex evanshogan.l
clean:
-@rm -f lex.yy.c
-@rm -f parser.tab.c
-@rm -f mfpl
\ No newline at end of file
-@rm -f evanshogan.tab.c
-@rm -f evanshogan_parser
\ No newline at end of file
......@@ -23,7 +23,7 @@ test_files=`ls ./sample_input`
diff_files=0
for file in $test_files; do
./mfpl < ./sample_input/$file > ./my_output/$file.out
./evanshogan_parser < ./sample_input/$file > ./my_output/$file.out
diff_lines=`diff ./my_output/$file.out \
./expected_output/$file.out \
......@@ -41,3 +41,4 @@ done
echo
echo "Number of different input files: $diff_files"
echo
make clean
//Anna's.y
%{
#include <stdio.h>
#include <stdlib.h>
......
......@@ -7,9 +7,6 @@ ___Entering new scope...
___Exiting scope...
___Exiting scope...
Line 1: Arg 1 cannot be a function
Line 1: Arg 2 cannot be a function
Bye!
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment