Directory src/slogo/instruction/arithmetic/

Directory Created:
2008-12-04 18:18
Total Files:
9
Deleted Files:
1
Lines of Code:
244

[root]/src/slogo/instruction/arithmetic

Lines of Code

src/slogo/instruction/arithmetic/ Lines of Code

Developers

Author Changes Lines of Code Lines per Change
Totals 6 (100.0%) 40 (100.0%) 6.6
tshishikub 5 (83.3%) 40 (100.0%) 8.0
ivyj 1 (16.7%) 0 (0.0%) 0.0

Most Recent Commits

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

23 lines of code changed in 6 files:

  • src/slogo/instruction/arithmetic: ArithmeticInstruction.java (+5 -1), Division.java (+3 -3), Multiplication.java (+3 -3), Negation.java (+2 -2), Remainder.java (+5 -4), Subtraction.java (+5 -3)
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)

104 lines of code changed in 8 files:

  • src/slogo/instruction/arithmetic: Addition.java (+2 -2), ArithmeticExpression.java (del), ArithmeticInstruction.java (new 80), Division.java (+2 -2), Multiplication.java (+2 -2), NumericInstruction.java (new 14), Remainder.java (+2 -2), Subtraction.java (+2 -2)
tshishikub 2008-12-11 17:38 Rev.: 122

Added documentation to classes in slogo.instruction packages.

38 lines of code changed in 4 files:

  • src/slogo/instruction/arithmetic: Negation.java (+1 -1), Remainder.java (+5 -1), Subtraction.java (+3 -1), UnaryExpression.java (new 29)
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)

2 lines of code changed in 1 file:

  • src/slogo/instruction/arithmetic: Negation.java (+2 -2)
ivyj 2008-12-08 14:29 Rev.: 88

got rid of some more import warnings

0 lines of code changed in 1 file:

  • src/slogo/instruction/arithmetic: Addition.java (-1)
sprenkle 2008-12-04 18:51 Rev.: 69

Updated documentation

Cleaning up mess from my moving instructions around

1 lines of code changed in 2 files:

  • src/slogo/instruction/arithmetic: ArithmeticExpression.java (+1 -2), Subtraction.java (-1)
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

192 lines of code changed in 7 files:

  • src/slogo/instruction/arithmetic: Addition.java (new 19), ArithmeticExpression.java (new 82), Division.java (new 18), Multiplication.java (new 18), Negation.java (new 22), Remainder.java (new 17), Subtraction.java (new 16)
Generated by StatSVN 0.4.1