summaryrefslogtreecommitdiff
path: root/src
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).
2016-05-04Simplify NAT test, check for 0 tooPeter Wu1-2/+2
2016-04-30Add Java comments checkPeter Wu1-0/+64
2016-04-29Implement Matlab commentsPeter Wu1-0/+58
2016-04-29Add more tests matching slidesPeter Wu1-5/+9
Also remove tests with letters "s" and "Id" in it, these are not interesting to test. Add some more tests to catch capital "E" and reject a lone "e7".
2016-04-29Fix typo in commentPeter Wu1-4/+5
2016-04-29Add our names to the topPeter Wu1-1/+3
2016-04-29added checkFLOAT() and checkString()andrea1-11/+36
Signed-off-by: andrea <andrea.evangelista.1989@gmail.com>
2016-04-29Check for StringPeter Wu1-0/+19
2016-04-29Disallow prefix match for IdPeter Wu1-0/+1
2016-04-29checkNAT() addedandrea1-0/+11
2016-04-29Fix matchPeter Wu1-2/+2
Do not look for longest match, but for the exact match. Documented at http://www.brics.dk/automaton/doc/dk/brics/automaton/RunAutomaton.html#run%28java.lang.String%29
2016-04-29Make tests "generate sufficient output"Peter Wu1-4/+3
...such that the tests can be reviewed based upon the generated output. (as required for the assignment).
2016-04-29Implement lexical definition for "ID" (Q1)Peter Wu1-0/+26
ID ::= [a-z] [a-z0-9]*
2016-04-25Initial commitPeter Wu1-0/+47
Unzipped from OASE (2IMP20), excluding the bin/ folder. size: 158596 bytes sha256: 179253d2bfec243bc5294372ce0ad1c5d82a30ef32ad108f6c9fd0aee73fe4df assignment1.zip