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 jdev52's avatar jdev52

updated naming convention

parent 61afca07
default: all default: all
all: mfpl all: evanshogan_parser
mfpl: lex.yy.c evanshogan_parser: lex.yy.c
g++ -o mfpl g++ -o evanshogan_parser parser.y evanshogan.y
bison parser.y bison evanshogan.y
lex.yy.c: lexer.l lex.yy.c: evanshogan.l
flex lexer.l flex evanshogan.l
clean: clean:
-@rm -f lex.yy.c -@rm -f lex.yy.c
-@rm -f -@rm -f
-@rm -f mfpl -@rm -f evanshogan_parser
\ No newline at end of file \ No newline at end of file
...@@ -23,7 +23,7 @@ test_files=`ls ./sample_input` ...@@ -23,7 +23,7 @@ test_files=`ls ./sample_input`
diff_files=0 diff_files=0
for file in $test_files; do 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 \ diff_lines=`diff ./my_output/$file.out \
./expected_output/$file.out \ ./expected_output/$file.out \
...@@ -41,3 +41,4 @@ done ...@@ -41,3 +41,4 @@ done
echo echo
echo "Number of different input files: $diff_files" echo "Number of different input files: $diff_files"
echo echo
make clean
%{ %{
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
...@@ -7,9 +7,6 @@ ___Entering new scope... ...@@ -7,9 +7,6 @@ ___Entering new scope...
___Exiting scope... ___Exiting scope...
Line 1: Arg 2 cannot be a function
___Exiting scope...
Line 1: Arg 1 cannot be a function
Bye! 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