summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2016-05-07Initialize LL(1) grammar from current grammarPeter Wu1-0/+41
2016-05-07Oops, accidentally dropped EXP from prioritiesPeter Wu1-2/+2
2016-05-07grammar: remove EBNF constructsPeter Wu1-5/+16
I guess that this satisfies "A description of the grammar resulting from the transformation to remove EBNF constructs". It does not mention something about the left-associativity and priority rules, that is probably the next step.
2016-05-07Add original grammer for part 4Peter Wu1-0/+30
This grammar looks like SDF[0]. Explanation of some constructs: - "start-symbol" refers to the start symbol (a non-terminal). - Lines below "context-free syntax" refers to the non-terminals. - Lines below "lexical syntax" refers to the terminals. - "context-free priorities" provides disambiguation constructs. Note that the "EXP ::= " part really belongs to each individual operand, so it means something like "A > B > C" (where A, B, C are the unary minus, multiplication and plus expressions respectively). I have no idea why Mark van den Brand chose to use multiple "context-free syntax" and "lexical syntax" groups (if that is appropriate terminology), as far as I can see all such blocks can be merged into one group. Maybe he wanted to emphasize the difference between the left-hand side names? [0]: http://releases.strategoxt.org/strategoxt-manual/unstable/manual/chunk-chapter/tutorial-sdf.html
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-29Makefile: create bin folder firstPeter Wu1-3/+6
Also ensure that "classes" is the default target
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-29Add Makefile and gitignorePeter Wu2-0/+16
I don't know ant well enough to write a build.xml, so let's just use a Makefile for now.
2016-04-25Initial commitPeter Wu5-0/+83
Unzipped from OASE (2IMP20), excluding the bin/ folder. size: 158596 bytes sha256: 179253d2bfec243bc5294372ce0ad1c5d82a30ef32ad108f6c9fd0aee73fe4df assignment1.zip