Directory src/slogo/instruction/drawing/

Directory Created:
2008-12-04 18:18
Total Files:
21
Deleted Files:
1
Lines of Code:
599

[root]/src/slogo/instruction/drawing

Lines of Code

src/slogo/instruction/drawing/ Lines of Code

Developers

Author Changes Lines of Code Lines per Change
tshishikub 34 (100.0%) 184 (100.0%) 5.4

Most Recent Commits

sprenkle 2008-12-18 13:40 Rev.: 139

Implemented the SETPENCOLOR instruction and its associated token and parser.

Added the appropriate entries into instructions.prop and alias.prop.

60 lines of code changed in 1 file:

  • src/slogo/instruction/drawing: SetPenColor.java (new 60)
sprenkle 2008-12-17 16:34 Rev.: 131

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

48 lines of code changed in 12 files:

  • src/slogo/instruction/drawing: Back.java (+3 -4), Clean.java (-7), ClearScreen.java (+5 -4), Forward.java (+6 -4), Heading.java (+4 -4), HideTurtle.java (-1), Home.java (+1 -5), IsPenDown.java (+7 -3), Left.java (+9 -7), Right.java (+3 -5), SetX.java (+1 -2), Towards.java (+9 -9)
sprenkle 2008-12-17 14:10 Rev.: 130

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)

19 lines of code changed in 7 files:

  • src/slogo/instruction/drawing: Back.java (+1 -1), Forward.java (+1 -1), Left.java (+1 -1), Right.java (+1 -1), SetX.java (+1 -1), SetXY.java (+13 -9), SetY.java (+1 -1)
sprenkle 2008-12-15 17:29 Rev.: 129

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)

88 lines of code changed in 11 files:

  • src/slogo/instruction/drawing: Back.java (+4 -8), Forward.java (+8 -8), Heading.java (+8 -4), HideTurtle.java (+4 -1), Left.java (+4 -4), OneParameterInstruction.java (new 18), Right.java (+9 -7), SetX.java (+12 -10), SetY.java (+9 -8), XCor.java (+6 -4), YCor.java (+6 -4)
tshishikub 2008-12-11 17:38 Rev.: 122

Added documentation to classes in slogo.instruction packages.

130 lines of code changed in 19 files:

  • src/slogo/instruction/drawing: Back.java (+7), Clean.java (+5 -1), ClearScreen.java (+11 -4), Forward.java (+5), Heading.java (+5 -1), HideTurtle.java (+7 -1), Home.java (+9 -3), IsPenDown.java (+6 -1), Left.java (+6 -1), PenDown.java (+6 -1), PenUp.java (+5 -1), Right.java (+5 -1), SetX.java (+5 -1), SetXY.java (+6 -1), SetY.java (+9 -6), ShowTurtle.java (+5 -1), Towards.java (+13 -6), XCor.java (+7 -1), YCor.java (+8 -2)
tshishikub 2008-12-11 17:10 Rev.: 120

minor fix for hide turtle. now hides the turtle immediately

1 lines of code changed in 1 file:

  • src/slogo/instruction/drawing: HideTurtle.java (+1)
tshishikub 2008-12-11 13:04 Rev.: 117

minor changes. every command should be functional now.

1 lines of code changed in 1 file:

  • src/slogo/instruction/drawing: Heading.java (+1 -1)
tshishikub 2008-12-11 02:14 Rev.: 116

little changes. renaming some classes (like equal) so that the tokens are recognized.

16 lines of code changed in 8 files:

  • src/slogo/instruction/drawing: Clean.java (+7), ClearScreen.java (-1), Heading.java (+1 -1), HideTurtle.java (+3 -3), PenDown.java (+1 -1), PenIsDown.java (del), PenUp.java (+1 -1), ShowTurtle.java (+3 -5)
tshishikub 2008-12-11 01:12 Rev.: 114

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)

20 lines of code changed in 1 file:

  • src/slogo/instruction/drawing: IsPenDown.java (new 20)
tshishikub 2008-12-10 23:52 Rev.: 113

clean and clearscreen commands completed

11 lines of code changed in 2 files:

  • src/slogo/instruction/drawing: Clean.java (+3 -2), ClearScreen.java (+8 -1)
tshishikub 2008-12-10 19:53 Rev.: 103

fixed towards instruction class

2 lines of code changed in 1 file:

  • src/slogo/instruction/drawing: Towards.java (+2 -25)
tshishikub 2008-12-10 18:31 Rev.: 97

to confusion

3 lines of code changed in 1 file:

  • src/slogo/instruction/drawing: Left.java (+3 -3)
sprenkle 2008-12-04 18:51 Rev.: 69

Updated documentation

Cleaning up mess from my moving instructions around

12 lines of code changed in 6 files:

  • src/slogo/instruction/drawing: Left.java (+3 -3), PenDown.java (+1 -1), PenIsDown.java (+1 -2), PenUp.java (+1 -1), Right.java (+3 -3), Towards.java (+3)
sprenkle 2008-12-04 18:18 Rev.: 68

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

420 lines of code changed in 19 files:

  • src/slogo/instruction/drawing: Back.java (new 27), Clean.java (new 17), ClearScreen.java (new 18), Forward.java (new 23), Heading.java (new 17), HideTurtle.java (new 18), Home.java (new 22), Left.java (new 21), PenDown.java (new 17), PenIsDown.java (new 18), PenUp.java (new 18), Right.java (new 22), SetX.java (new 26), SetXY.java (new 26), SetY.java (new 29), ShowTurtle.java (new 20), Towards.java (new 48), XCor.java (new 17), YCor.java (new 16)
Generated by StatSVN 0.4.1