[root]/src/slogo/parser/token
booleantokens
(0 files, 0 lines)
drawingtokens
(0 files, 0 lines)
mathtokens
(0 files, 0 lines)
Author | Changes | Lines of Code | Lines per Change |
---|---|---|---|
Totals | 46 (100.0%) | 348 (100.0%) | 7.5 |
tshishikub | 44 (95.7%) | 348 (100.0%) | 7.9 |
ivyj | 2 (4.3%) | 0 (0.0%) | 0.0 |
Implemented the SETPENCOLOR instruction and its associated token and parser.
Added the appropriate entries into instructions.prop and alias.prop.
9 lines of code changed in 1 file:
Did some refactoring of Parsing code so that have less duplicated code.
- mainly created methods to parse instruction parameters (in SLogoParser). This code showed up in a lot of places, so it was good to make into methods.
Added a lot of tests to SLogoParserTest
Added a few methods to Turtle class so that the Parsing code does less/knows less about Turtle's innerworkings. (Required adding "notifyListeners" to some of Turtle's methods)
Cleaned up code: removed debugging statements
0 lines of code changed in 2 files:
Removed some other debugging print statements from TokenFactory.
0 lines of code changed in 1 file:
Deleted a bunch of the debugging/print statements from TokenFactory.java
3 lines of code changed in 1 file:
little changes. renaming some classes (like equal) so that the tokens are recognized.
12 lines of code changed in 5 files:
fixed MINUS command. involve making slogo.expression.UnaryExpression an instruction (and moving it into the slogo.instruction package)
14 lines of code changed in 2 files:
refactoring:
renamed token/classes/methods/fields named penIsDown to isPenDown
the old name looked too much like something else (especially when
typed as a command in all lower case)
10 lines of code changed in 1 file:
to confusion
0 lines of code changed in 1 file:
got rid of some more import warnings
0 lines of code changed in 2 files:
Adding mappings from lower case commands to uppercase commands.
31 lines of code changed in 1 file:
Added a properties file that contains the mappings of commands (shorthand) to the actual command.
-- mapped this way so that can have multiple aliases for the same commands.
41 lines of code changed in 1 file:
Major: Changed from using "Expression" superclass to using "GrammarElement" super class.
- allows handling instructions in instructions
Added a JUnit test case for SLogoParser (more tests should be added)
Reorganized the Instructions into packages so easier to find.
- Not possible for Tokens because of use of reflection
Added Quotient to InstructionProps file
Updated the Documentation
Other minor changes to code
3 lines of code changed in 14 files:
Lots of changes adding instruction classes and fixing methods in slogo.parser classes. add names to instructionprop.
14 lines of code changed in 5 files:
I've moved the token classes all to one package because i realized it was necessary with the current code in InstructionParser
289 lines of code changed in 29 files:
I added tokens for all the commands. I put them in separate packages based on function since there are so many tokens.
9 lines of code changed in 1 file:
Added the IF instruction/token/parser
Deleted the PRINT instruction/token/parser (not part of SLogo language)
9 lines of code changed in 2 files:
Reorganized code some more to have better names
11 lines of code changed in 11 files:
Reorganized the code so that the packages are slogo.*
Added a Turtle image that is rotated so that the turtle moves in the correct direction.
Moved the GUI into the slogo package: easier to find.
67 lines of code changed in 43 files: