Directory src/slogo/parser/token/

Total Files:
52
Deleted Files:
5
Lines of Code:
843

[root]/src/slogo/parser/token
                    Folder removed from repo booleantokens (0 files, 0 lines)
                    Folder removed from repo drawingtokens (0 files, 0 lines)
                    Folder removed from repo mathtokens (0 files, 0 lines)

Lines of Code

src/slogo/parser/token/ Lines of Code

Developers

Author Changes Lines of Code Lines per Change
Totals 46 (100.0%) 348 (100.0%) 7.5
tshishikub 44 (95.7%) 348 (100.0%) 7.9
ivyj 2 (4.3%) 0 (0.0%) 0.0

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.

9 lines of code changed in 1 file:

  • src/slogo/parser/token: SetPenColorToken.java (new 9)
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

0 lines of code changed in 2 files:

  • src/slogo/parser/token: EOLToken.java (del), TokenFactory.java (-2)
sprenkle 2008-12-12 14:02 Rev.: 125

Removed some other debugging print statements from TokenFactory.

0 lines of code changed in 1 file:

  • src/slogo/parser/token: TokenFactory.java (-3)
sprenkle 2008-12-12 13:44 Rev.: 124

Deleted a bunch of the debugging/print statements from TokenFactory.java

3 lines of code changed in 1 file:

  • src/slogo/parser/token: TokenFactory.java (+3 -4)
tshishikub 2008-12-11 02:14 Rev.: 116

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

12 lines of code changed in 5 files:

  • src/slogo/parser/token: CharTokenFactory.java (+2 -2), EqualToken.java (+6 -4), EqualsToken.java (+4 -6), NegateToken.java (del), PenIsDownToken.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)

14 lines of code changed in 2 files:

  • src/slogo/parser/token: MinusSignToken.java (new 9), MinusToken.java (+5 -4)
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)

10 lines of code changed in 1 file:

  • src/slogo/parser/token: IsPenDownToken.java (new 10)
tshishikub 2008-12-10 18:31 Rev.: 97

to confusion

0 lines of code changed in 1 file:

  • src/slogo/parser/token: PenUpOrDownToken.java (del)
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/parser/token: CharTokenFactory.java (-1), TokenFactory.java (-1)
sprenkle 2008-12-05 18:12 Rev.: 80

Adding mappings from lower case commands to uppercase commands.

31 lines of code changed in 1 file:

  • src/slogo/parser/token: TokenFactory.java (+31 -6)
sprenkle 2008-12-05 18:00 Rev.: 79

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.

41 lines of code changed in 1 file:

  • src/slogo/parser/token: TokenFactory.java (+41 -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

3 lines of code changed in 14 files:

  • src/slogo/parser/token: CharToken.java (+1), CharTokenFactory.java (changed), EqualToken.java (changed), EqualsToken.java (+1), IdentifierToken.java (+1 -1), LeftBracketToken.java (changed), LeftParenToken.java (changed), MinusToken.java (changed), PlusToken.java (changed), RightBracketToken.java (changed), RightParenToken.java (changed), SlashToken.java (changed), StarToken.java (changed), VariableToken.java (changed)
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.

14 lines of code changed in 5 files:

  • src/slogo/parser/token: EqualsToken.java (+1 -1), GreaterToken.java (+1 -1), LessToken.java (+1 -1), NotEqualToken.java (+1 -1), PenIsDownToken.java (new 10)
tshishikub 2008-12-01 21:20 Rev.: 34

I've moved the token classes all to one package because i realized it was necessary with the current code in InstructionParser

289 lines of code changed in 29 files:

  • src/slogo/parser/token: BackToken.java (new 10), CleanToken.java (new 10), ClearScreenToken.java (new 10), DifferenceToken.java (new 9), EqualsToken.java (new 10), ForwardToken.java (new 10), GreaterToken.java (new 10), HeadingToken.java (new 10), HideTurtleToken.java (new 10), HomeToken.java (new 10), LeftToken.java (new 10), LessToken.java (new 10), NegateToken.java (new 10), NotEqualToken.java (new 10), PenDownToken.java (new 10), PenUpOrDownToken.java (new 10), PenUpToken.java (new 10), ProductToken.java (new 10), QuotientToken.java (new 10), RemainderToken.java (new 10), RightToken.java (new 10), SetXToken.java (new 10), SetXYToken.java (new 10), SetYToken.java (new 11), ShowTurtleToken.java (new 10), SumToken.java (new 9), TowardsToken.java (new 10), XCorToken.java (new 10), YCorToken.java (new 10)
tshishikub 2008-12-01 16:58 Rev.: 32

I added tokens for all the commands. I put them in separate packages based on function since there are so many tokens.

9 lines of code changed in 1 file:

  • src/slogo/parser/token: ToToken.java (new 9)
sprenkle 2008-12-01 11:09 Rev.: 27

Added the IF instruction/token/parser

Deleted the PRINT instruction/token/parser (not part of SLogo language)

9 lines of code changed in 2 files:

  • src/slogo/parser/token: IfToken.java (new 9), PrintToken.java (del)
sprenkle 2008-12-01 08:54 Rev.: 15

Reorganized code some more to have better names

11 lines of code changed in 11 files:

  • src/slogo/parser/token: AssignmentToken.java (+1 -1), CharTokenFactory.java (+1), EqualToken.java (+1 -1), LeftBracketToken.java (+1 -1), LeftParenToken.java (+1 -1), MinusToken.java (+1 -1), PlusToken.java (+1 -1), RightBracketToken.java (+1 -1), RightParenToken.java (+1 -1), SlashToken.java (+1 -1), StarToken.java (+1 -1)
sprenkle 2008-11-30 16:24 Rev.: 14

Reorganized the code so that the packages are slogo.*

Added a Turtle image that is rotated so that the turtle moves in the correct direction.

Moved the GUI into the slogo package: easier to find.

67 lines of code changed in 43 files:

  • src/slogo/parser/token: AssignmentToken.java (new), CharToken.java (new), CharTokenFactory.java (new 34), EOFToken.java (new), EOLToken.java (+1 -1), EqualToken.java (+2 -2), IdentifierToken.java (new), LeftBracketToken.java (+2 -2), LeftParenToken.java (+2 -2), MinusToken.java (+2 -2), NumberToken.java (new), PlusToken.java (new), PrintToken.java (+1 -1), RepeatToken.java (+1 -1), ReservedToken.java (new), RightBracketToken.java (+2 -2), RightParenToken.java (new), SlashToken.java (+2 -2), StarToken.java (new), Token.java (new), TokenFactory.java (new), VariableToken.java (+1 -1)
Generated by StatSVN 0.4.1