Directory src/slogo/instruction/

Total Files:
7
Deleted Files:
26
Lines of Code:
365

[root]/src/slogo/instruction
                directory in repo arithmetic (9 files, 244 lines)
                directory in repo conditional (5 files, 160 lines)
                directory in repo drawing (21 files, 599 lines)

Lines of Code

src/slogo/instruction/ Lines of Code

Developers

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

Most Recent Commits

sprenkle 2008-12-17 16:57

Removed unnecessary imports

0 lines of code changed in 2 files:

  • src/slogo/instruction: If.java (-1), Repeat.java (-1)
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

17 lines of code changed in 4 files:

  • src/slogo/instruction: If.java (+12 -6), Instruction.java (+3 -2), Repeat.java (+1 -1), To.java (+1 -5)
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)

3 lines of code changed in 2 files:

  • src/slogo/instruction: Instruction.java (+2 -2), Repeat.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)

43 lines of code changed in 4 files:

  • src/slogo/instruction: If.java (+20 -4), Instruction.java (+15), Repeat.java (+7 -5), To.java (+1 -1)
tshishikub 2008-12-11 17:38 Rev.: 122

Added documentation to classes in slogo.instruction packages.

13 lines of code changed in 3 files:

  • src/slogo/instruction: Subroutine.java (+6 -1), To.java (+7), UnaryExpression.java (del)
tshishikub 2008-12-11 02:06 Rev.: 115

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:

  • src/slogo/instruction: UnaryExpression.java (new 53)
tshishikub 2008-12-10 19:05 Rev.: 98

subroutines work. whew!

2 lines of code changed in 2 files:

  • src/slogo/instruction: Subroutine.java (+1 -1), To.java (+1 -1)
tshishikub 2008-12-10 18:31 Rev.: 97

to confusion

10 lines of code changed in 1 file:

  • src/slogo/instruction: To.java (+10 -2)
tshishikub 2008-12-10 17:57 Rev.: 95

To Subroutine classes. should be working now

15 lines of code changed in 2 files:

  • src/slogo/instruction: Subroutine.java (+7 -12), To.java (+8 -5)
test209 2008-12-10 17:31 Rev.: 94

Committing slogo.instruction.Subroutine

4 lines of code changed in 1 file:

  • src/slogo/instruction: Subroutine.java (+4)
tshishikub 2008-12-09 18:17 Rev.: 91

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:

  • src/slogo/instruction: To.java (new 27)
ivyj 2008-12-08 14:29 Rev.: 88

got rid of some more import warnings

0 lines of code changed in 2 files:

  • src/slogo/instruction: Assignment.java (-2), Instruction.java (-1)
tshishikub 2008-12-05 14:53 Rev.: 77

organizing/changes to subroutine

11 lines of code changed in 1 file:

  • src/slogo/instruction: Subroutine.java (+11 -7)
sprenkle 2008-12-04 19:19 Rev.: 70

Renamed To class to Subroutine class

18 lines of code changed in 3 files:

  • src/slogo/instruction: Repeat.java (+1 -2), Subroutine.java (new 17), To.java (del)
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

5 lines of code changed in 25 files:

  • src/slogo/instruction: Assignment.java (+5 -4), Back.java (del), Clean.java (del), ClearScreen.java (del), Equal.java (del), Forward.java (del), Greater.java (del), Heading.java (del), HideTurtle.java (del), Home.java (del), Left.java (del), Less.java (del), NotEqual.java (del), PenDown.java (del), PenIsDown.java (del), PenUp.java (del), Remainder.java (del), Right.java (del), SetX.java (del), SetXY.java (del), SetY.java (del), ShowTurtle.java (del), Towards.java (del), XCor.java (del), YCor.java (del)
tshishikub 2008-12-04 16:22 Rev.: 63

Right and Left (rotation) instruction classes

6 lines of code changed in 2 files:

  • src/slogo/instruction: Left.java (+3 -3), Right.java (+3 -3)
tshishikub 2008-12-04 16:17 Rev.: 62

Pen Up/Down/isDown classes set up.

3 lines of code changed in 3 files:

  • src/slogo/instruction: PenDown.java (+1 -1), PenIsDown.java (+1 -2), PenUp.java (+1 -1)
tshishikub 2008-12-04 10:11 Rev.: 59

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:

  • src/slogo/instruction: Equal.java (new 23), Greater.java (new 24), Left.java (new 20), Less.java (new 22), NotEqual.java (new 22), PenDown.java (new 16), PenIsDown.java (new 17), PenUp.java (new 17), Remainder.java (new 20), Right.java (new 21), SetX.java (+5 -4), SetXY.java (+7 -6), SetY.java (+5 -4), ShowTurtle.java (new 19), Towards.java (+26 -11)
tshishikub 2008-12-04 05:47 Rev.: 58

5 lines of code changed in 1 file:

  • src/slogo/instruction: Home.java (+5 -1)
tshishikub 2008-12-03 19:39 Rev.: 56

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:

  • src/slogo/instruction: Back.java (+6 -5), Clean.java (new 16), ClearScreen.java (new 17), HideTurtle.java (new 17), To.java (new 17), Towards.java (new 32)

(5 more)

Generated by StatSVN 0.4.1