From 9e70b73843f978f73137211242c055e3772aa056 Mon Sep 17 00:00:00 2001 From: "Esteban Prince, Liam (UG - Computer Science)" <le00210@surrey.ac.uk> Date: Thu, 13 Feb 2020 15:58:51 +0000 Subject: [PATCH] Add new file --- parser.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 parser.py diff --git a/parser.py b/parser.py new file mode 100644 index 0000000..d2748de --- /dev/null +++ b/parser.py @@ -0,0 +1,12 @@ +def preprocess(): + +# Return the next token from the input +def getToken(): + int lastChar = ' ' + while isSpace(lastChar): + lastChar = getChar() + +def parse(): + preprocess(): + tokenise() + isValid() \ No newline at end of file -- GitLab