Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
Removed the LAYOUT matching from tokenRegex, these are not part of the
token and should be removed before. Add an auxilliary function that
tests whether a token that matches ID really is a non-keyword.
Implement remaining expressions.
|
|
Remove keywordRegex, it is not used now. To do: make sure that ID not
match keywords, implement parseExp.
|
|
|
|
Add a next() function that returns the next scanned token and match() to
consume the token from input. next() takes an automaton such that you
can match "begin" in the beginning, but any other string (including
"begin" prefixes) for ID.
|
|
NAT and ID regexes were taken from RegexTest.java. Tests are added
before the implementation (test-driven development).
|