[root]/src/slogo/parser
token
(52 files, 843 lines)
booleantokens
(0 files, 0 lines)
drawingtokens
(0 files, 0 lines)
mathtokens
(0 files, 0 lines)
Author | Changes | Lines of Code | Lines per Change |
---|---|---|---|
Totals | 91 (100.0%) | 892 (100.0%) | 9.8 |
tshishikub | 83 (91.2%) | 876 (98.2%) | 10.5 |
ivyj | 8 (8.8%) | 16 (1.8%) | 2.0 |
Implemented the SETPENCOLOR instruction and its associated token and parser.
Added the appropriate entries into instructions.prop and alias.prop.
32 lines of code changed in 3 files:
Removed unnecessary imports
0 lines of code changed in 1 file:
Added a few more tests to SLogoParserTest
1 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
99 lines of code changed in 29 files:
Updated SetXYParser to use GrammarElements instead of Expressions
Updated many instructions to inherit from the OneParameterInstruction (better code reuse)
Removed a print statement from Main.java (no longer prints when the user cancels Opening a file)
5 lines of code changed in 1 file:
Made some major and minor changes
Created instruction hierarchy:
- ConditionalInstructions
- return 1 or 0 when evaluated
- NumericInstructions
- return a number when evaluated
- OneParameterInstructions
- have a parameter (often numeric) that needs to be evaluated
Made lots of changes because of the above changes. Needed to update the parsers and the instruction classes.
Added some methods to the Turtle class so that the Instructions have less knowledge of the Turtle's innerworkings.
Moved SubroutineFactory to slogo.language package instead of slogo.expression
Updated comments in many instructions (use the Javadoc in the evaluate)
126 lines of code changed in 25 files:
Added documentation to classes in slogo.instruction packages.
6 lines of code changed in 2 files:
little changes. renaming some classes (like equal) so that the tokens are recognized.
1 lines of code changed in 3 files:
fixed MINUS command. involve making slogo.expression.UnaryExpression an instruction (and moving it into the slogo.instruction package)
1 lines of code changed in 1 file:
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)
22 lines of code changed in 2 files:
subroutines work. whew!
4 lines of code changed in 1 file:
to confusion
4 lines of code changed in 6 files:
To Subroutine classes. should be working now
10 lines of code changed in 2 files:
Modified SLogoParser so that the parse method (now called "interpret") returns the value from executing the last statement.
- updated related methods as appropriate
Added tests to SLogoParserTest for subroutines
Modified some arithmetic-related SLogoParserTests to leverage that interpret returns a result, so now uses the assert statements to verify the results
Modified Main
- to use SLogoParser's new interpret method
- does not throw runtime nullpointer exceptions if the result of executing the command is null.
24 lines of code changed in 1 file:
Classes associated with To command added. this is not complete but has been entered so that prof. sprenkle might be able to look at it.
2 lines of code changed in 1 file:
got rid of some more import warnings
0 lines of code changed in 6 files:
added a result variable to use for displaying result in GUI text field
7 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.
10 lines of code changed in 1 file:
to parser
10 lines of code changed in 1 file:
Updated documentation
Cleaning up mess from my moving instructions around
0 lines of code changed in 5 files:
(14 more)