summaryrefslogtreecommitdiff
path: root/Homework/cs5300/project-two/data/register.table
diff options
context:
space:
mode:
Diffstat (limited to 'Homework/cs5300/project-two/data/register.table')
-rw-r--r--Homework/cs5300/project-two/data/register.table33
1 files changed, 33 insertions, 0 deletions
diff --git a/Homework/cs5300/project-two/data/register.table b/Homework/cs5300/project-two/data/register.table
new file mode 100644
index 0000000..f22b15e
--- /dev/null
+++ b/Homework/cs5300/project-two/data/register.table
@@ -0,0 +1,33 @@
+// Special tokens are \space, \t and \n.
+ClassifierTable
+r register
+0 digit
+1 digit
+2 digit
+3 digit
+4 digit
+5 digit
+6 digit
+7 digit
+8 digit
+9 digit
+\space whitespace
+\t whitespace
+\n whitespace
+
+// In the transition table, the first state
+// is considered the input state.
+TransitionTable
+s0 register s1
+s1 digit s2
+s2 digit s2
+s0 whitespace s3
+s3 whitespace s3
+
+// If a state has an entry in this table then
+// it is considered an accept state.
+// "ignore" is a reserved type which indicates
+// that the token should be ignored.
+TokenTypeTable
+s2 register
+s3 ignore \ No newline at end of file