summaryrefslogtreecommitdiff
path: root/src/PicoRec.java
AgeCommit message (Collapse)AuthorFilesLines
2016-05-08PicoRec: add basic parser plumbing for our languagePeter Wu1-5/+96
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.
2016-05-08Add skeleton for PicoRecPeter Wu1-0/+72
NAT and ID regexes were taken from RegexTest.java. Tests are added before the implementation (test-driven development).