summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucas Standen <p10748@qmc.ac.uk>2024-05-23 09:16:58 +0100
committerLucas Standen <p10748@qmc.ac.uk>2024-05-23 09:16:58 +0100
commit17e468fd17e7a09b37c76891293389dc4b2c6a64 (patch)
tree317a5717b004b1de3534132d8ca703955e2904a4
parent9438453a5d391a42371b8b8d7931923678956995 (diff)
added an example flow through
-rw-r--r--comp/lucas-standen-NEA/writeup/coverpage.ms20
1 files changed, 20 insertions, 0 deletions
diff --git a/comp/lucas-standen-NEA/writeup/coverpage.ms b/comp/lucas-standen-NEA/writeup/coverpage.ms
index 230dc82..73ceabf 100644
--- a/comp/lucas-standen-NEA/writeup/coverpage.ms
+++ b/comp/lucas-standen-NEA/writeup/coverpage.ms
@@ -1048,6 +1048,26 @@ bits can be written in bash. It should be a good test to how Zippy can be writte
If time allows it is at this point that I will write a Raylib library and a unix/C sockets library.
+.NH 2
+Flow through the system
+.LP
+The alogrithum to run code is quite complex however it can be boiled down to a few simple steps:
+
+.B "read the text file (strip line breaks and tabs)"
+.B "create an empty linked list"
+.B "get the first expression from the text file (with be encapsulated with "()""
+.B "get the function call and its args into a token"
+.B "if the arguments of the function are there own function call, then convert them into a token"
+.B "set that token as the argument in the first token"
+.B "append the root token to the linked list"
+.B "repeat until the text file string is empty"
+.B "allocate memory for the program and prepare the exection step"
+.B "at the start of the linked list traverse to the bottem of the tree (made of tokens)"
+.B "execute the lowest token"
+.B "repeat until all tokens including the root have been executed"
+.B "move to the next node of the linked list"
+.B "repeat until the linked list is empty"
+
.NH 1
Technical Solution
.NH 1