[root]/src/slogo/instruction
arithmetic
(9 files, 244 lines)
conditional
(5 files, 160 lines)
drawing
(21 files, 599 lines)
Author | Changes | Lines of Code | Lines per Change |
---|---|---|---|
Totals | 51 (100.0%) | 708 (100.0%) | 13.8 |
tshishikub | 48 (94.1%) | 704 (99.4%) | 14.6 |
test209 | 1 (2.0%) | 4 (0.6%) | 4.0 |
ivyj | 2 (3.9%) | 0 (0.0%) | 0.0 |
Removed unnecessary imports
0 lines of code changed in 2 files:
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
17 lines of code changed in 4 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)
3 lines of code changed in 2 files:
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)
43 lines of code changed in 4 files:
Added documentation to classes in slogo.instruction packages.
13 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)
53 lines of code changed in 1 file:
subroutines work. whew!
2 lines of code changed in 2 files:
to confusion
10 lines of code changed in 1 file:
To Subroutine classes. should be working now
15 lines of code changed in 2 files:
Committing slogo.instruction.Subroutine
4 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.
27 lines of code changed in 1 file:
got rid of some more import warnings
0 lines of code changed in 2 files:
organizing/changes to subroutine
11 lines of code changed in 1 file:
Renamed To class to Subroutine class
18 lines of code changed in 3 files:
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
5 lines of code changed in 25 files:
Right and Left (rotation) instruction classes
6 lines of code changed in 2 files:
Pen Up/Down/isDown classes set up.
3 lines of code changed in 3 files:
Lots of changes adding instruction classes and fixing methods in slogo.parser classes. add names to instructionprop.
264 lines of code changed in 15 files:
5 lines of code changed in 1 file:
lots of changes including
1. filling in the parser methods
2. adding new instruction classes
3. updating instruction.prop
105 lines of code changed in 6 files:
(5 more)