summaryrefslogtreecommitdiff
path: root/src/PicoRec.java
AgeCommit message (Collapse)AuthorFilesLines
2016-05-08PicoRec: add test for garbage, remove unused codeHEADmasterPeter Wu1-6/+7
2016-05-08PicoRec: add a bunch more tests, fix bugsPeter Wu1-3/+41
2016-05-08PicoRec: fully implementedPeter Wu1-14/+67
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.
2016-05-08PicoRec: begin implementing parsingPeter Wu1-10/+37
Remove keywordRegex, it is not used now. To do: make sure that ID not match keywords, implement parseExp.
2016-05-08PicoRec: propagate errorsPeter Wu1-14/+13
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).