diff --git a/Q1/Artefacts/antlr4_parse_tree.png b/Q1/Artefacts/antlr4_parse_tree.png new file mode 100644 index 0000000..05ac231 Binary files /dev/null and b/Q1/Artefacts/antlr4_parse_tree.png differ diff --git a/Q1/Artefacts/antlr4_parse_tree.svg b/Q1/Artefacts/antlr4_parse_tree.svg new file mode 100644 index 0000000..3b8019f --- /dev/null +++ b/Q1/Artefacts/antlr4_parse_tree.svg @@ -0,0 +1,340 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +2320390 + + + +; + + + +repeatStat + + + +; + + + +2 + + + +MOVE + + + +waitStat + + + +1 + + + +REPEAT + + + +"Log·entry·592" + + + +WAIT + + + +grabStat + + + +{ + + + +stat + + + +moveStat + + + +{ + + + +REPEAT + + + +MOVE + + + +stat + + + +{ + + + +moveStat + + + +; + + + +stat + + + +stat + + + +; + + + +grabStat + + + +; + + + +3 + + + +stat + + + +stat + + + +GRAB + + + +; + + + +logStat + + + +"Finished·962" + + + +stat + + + +grabStat + + + +; + + + +stat + + + +GRAB + + + +WAIT + + + +3 + + + +GRAB + + + +} + + + +; + + + +LOG + + + +RELEASE + + + +logStat + + + +repeatStat + + + +7 + + + +waitStat + + + +; + + + +} + + + +repeatStat + + + +//·STUDENT·ID: + + + +stat + + + +releaseStat + + + +LOG + + + +14 + + + +; + + + +stat + + + +stat + + + +prog + + + +stat + + + +stat + + + +REPEAT + + + +4 + + + +header + + + +} + + \ No newline at end of file diff --git a/Q1/Artefacts/main.py b/Q1/Artefacts/main.py index 44724ed..5fe19c7 100644 --- a/Q1/Artefacts/main.py +++ b/Q1/Artefacts/main.py @@ -18,4 +18,6 @@ def main(argv): visitor.visit(tree) if __name__ == '__main__': - main(sys.argv) \ No newline at end of file + main(sys.argv) + + diff --git a/Q1/Q1.docx b/Q1/Q1.docx index 0a1b954..c2e49ec 100644 Binary files a/Q1/Q1.docx and b/Q1/Q1.docx differ