diff options
| author | Elizabeth Alexander Hunt <me@liz.coffee> | 2026-07-02 11:55:17 -0700 |
|---|---|---|
| committer | Elizabeth Alexander Hunt <me@liz.coffee> | 2026-07-02 11:55:17 -0700 |
| commit | 6bf4b90c90f15f4ab60833bddf5b5756d1a6b1f6 (patch) | |
| tree | ed97e39ec77c5231ffd2c394493e68d00ddac5a4 /Homework/cs5300/project-one/p1-scanner/data/hexadecimal.table | |
| download | misc-undergrad-main.tar.gz misc-undergrad-main.zip | |
Diffstat (limited to 'Homework/cs5300/project-one/p1-scanner/data/hexadecimal.table')
| -rw-r--r-- | Homework/cs5300/project-one/p1-scanner/data/hexadecimal.table | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/Homework/cs5300/project-one/p1-scanner/data/hexadecimal.table b/Homework/cs5300/project-one/p1-scanner/data/hexadecimal.table new file mode 100644 index 0000000..c4764fd --- /dev/null +++ b/Homework/cs5300/project-one/p1-scanner/data/hexadecimal.table @@ -0,0 +1,42 @@ +// Special tokens are \space, \t and \n. +ClassifierTable +x x +0 zero +1 digit +2 digit +3 digit +4 digit +5 digit +6 digit +7 digit +8 digit +9 digit +A digit +B digit +C digit +D digit +E digit +F digit +\space whitespace +\t whitespace +\n whitespace + +// In the transition table, the first state +// is considered the input state. +TransitionTable +s0 zero s1 +s1 x s2 +s2 zero s3 +s2 digit s3 +s3 zero s3 +s3 digit s3 +s0 whitespace s4 +s4 whitespace s4 + +// 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 +s3 hexnumber +s4 ignore
\ No newline at end of file |
