Commit b07bd5be authored by joni's avatar joni
Browse files

...

parent 790b7698
Pipeline #47 canceled with stages
.DEFAULT_GOAL := build
build:
gcc Access.cpp Declare.cpp error.cpp ParserExercise.cpp Parser.cpp Scope.cpp Sentence.cpp
gcc Access.cpp Declare.cpp error.cpp ParserExercise.cpp Parser.cpp Scope.cpp Sentence.cpp -lstdc++ -o parser
test_all: test_simple test_fail_access test_fail_declare test_complex
test_simple:
./parser simple.txt
test_fail_access:
./parser fail_access.txt
test_fail_declare:
./parser fail_declare.txt
test_complex:
./parser complex.txt
SCOPE hello {
DECLARE foo;
ACCESS foo;
DECLARE bar;
SCOPE birb{
DECLARE xyz;
ACCESS bar;
ACCESS hello::foo;
SCOPE dirp {
DECLARE drep;
ACCESS bar;
ACCESS hello::foo;
SCOPE hootie_hello {
DECLARE xyz;
ACCESS ba33r;
ACCESS hello::foo;
}
}
}
}
DECLARE haps;
\ No newline at end of file
SCOPE hello {
DECLARE foo;
ACCESS foo;
DECLARE bar;
SCOPE hootie {
ACCESS xyz;
DECLARE xyz;
ACCESS barZ;
ACCESS hello3::foo;
}
}
DECLARE haps;
\ No newline at end of file
SCOPE hello {
DECLARE foo;
ACCESS foo;
DECLARE foo;
DECLARE bar;
SCOPE hootie {
DECLARE xyz;
ACCESS bar;
DECLARE bar;
ACCESS hello::foo;
DECLARE hello::foo;
}
}
\ No newline at end of file
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