Directory src/slogo/parser/

Total Files:
46
Deleted Files:
8
Lines of Code:
1333

[root]/src/slogo/parser
                directory in repo token (52 files, 843 lines)
                    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/ Lines of Code

Developers

Author Changes Lines of Code Lines per Change
Totals 91 (100.0%) 892 (100.0%) 9.8
tshishikub 83 (91.2%) 876 (98.2%) 10.5
ivyj 8 (8.8%) 16 (1.8%) 2.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.

32 lines of code changed in 3 files:

  • src/slogo/parser: SetPenColorParser.java (new 28), alias.prop (+2 -1), instructions.prop (+2 -1)
sprenkle 2008-12-17 16:57 Rev.: 133

Removed unnecessary imports

0 lines of code changed in 1 file:

  • src/slogo/parser: TowardsParser.java (-2)
sprenkle 2008-12-17 16:43 Rev.: 132

Added a few more tests to SLogoParserTest

1 lines of code changed in 1 file:

  • src/slogo/parser: SLogoParser.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

99 lines of code changed in 29 files:

  • src/slogo/parser: BackParser.java (+1 -4), CleanParser.java (-1), DifferenceParser.java (+4 -6), EqualParser.java (+4 -6), ForwardParser.java (+1 -6), GreaterParser.java (+6 -7), HideTurtleParser.java (-1), HomeParser.java (-1), IdentifierParser.java (+2 -2), IfParser.java (+2 -21), IsPenDownParser.java (-2), LeftParser.java (+1 -4), LessParser.java (+4 -6), MinusParser.java (+1 -4), NotEqualParser.java (+4 -6), NumericExpressionParser.java (-1), PenDownParser.java (-2), ProductParser.java (+4 -6), QuotientParser.java (+4 -6), RemainderParser.java (+4 -6), RepeatParser.java (+4 -7), RightParser.java (+1 -4), SLogoParser.java (+33 -2), SetXParser.java (+1 -4), SetXYParser.java (+4 -7), SetYParser.java (+1 -5), SumParser.java (+5 -6), ToParser.java (+3 -6), TowardsParser.java (+5 -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)

5 lines of code changed in 1 file:

  • src/slogo/parser: SetXYParser.java (+5 -4)
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)

126 lines of code changed in 25 files:

  • src/slogo/parser: AssignmentParser.java (+2 -3), BackParser.java (+1 -1), DifferenceParser.java (+1 -1), EqualParser.java (+1 -1), ExpressionParser.java (del), ForwardParser.java (+4 -2), GreaterParser.java (+1 -1), IdentifierParser.java (+2 -2), IfParser.java (+23 -3), LeftParser.java (+1 -1), LessParser.java (+1 -1), MinusParser.java (+1 -1), NotEqualParser.java (+1 -1), NumericExpressionParser.java (new 68), ProductParser.java (+1 -1), QuotientParser.java (+1 -1), RemainderParser.java (+1 -1), RepeatParser.java (+2 -2), RightParser.java (+1 -1), SLogoParser.java (+2 -3), SetXParser.java (+4 -4), SetXYParser.java (+1 -1), SetYParser.java (+4 -3), SumParser.java (+1 -1), TowardsParser.java (+1 -1)
tshishikub 2008-12-11 17:38 Rev.: 122

Added documentation to classes in slogo.instruction packages.

6 lines of code changed in 2 files:

  • src/slogo/parser: XCorParser.java (+3 -2), YCorParser.java (+3 -2)
tshishikub 2008-12-11 02:14 Rev.: 116

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

1 lines of code changed in 3 files:

  • src/slogo/parser: ClearScreenParser.java (-6), ExpressionParser.java (+1 -1), PenIsDownParser.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)

1 lines of code changed in 1 file:

  • src/slogo/parser: MinusParser.java (+1 -1)
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)

22 lines of code changed in 2 files:

  • src/slogo/parser: IsPenDownParser.java (new 20), instructions.prop (+2 -3)
tshishikub 2008-12-10 19:05 Rev.: 98

subroutines work. whew!

4 lines of code changed in 1 file:

  • src/slogo/parser: IdentifierParser.java (+4 -2)
tshishikub 2008-12-10 18:31 Rev.: 97

to confusion

4 lines of code changed in 6 files:

  • src/slogo/parser: NegateParser.java (del), PenIsDown.java (del), PenUpOrDownParser.java (del), SLogoParser.java (+1), SetYparser.java (del), ToParser.java (+3)
tshishikub 2008-12-10 17:57 Rev.: 95

To Subroutine classes. should be working now

10 lines of code changed in 2 files:

  • src/slogo/parser: IdentifierParser.java (+8), SLogoParser.java (+2 -2)
sprenkle 2008-12-10 15:23 Rev.: 92

Modified SLogoParser so that the parse method (now called "interpret") returns the value from executing the last statement.
- updated related methods as appropriate

Added tests to SLogoParserTest for subroutines

Modified some arithmetic-related SLogoParserTests to leverage that interpret returns a result, so now uses the assert statements to verify the results

Modified Main
- to use SLogoParser's new interpret method
- does not throw runtime nullpointer exceptions if the result of executing the command is null.

24 lines of code changed in 1 file:

  • src/slogo/parser: SLogoParser.java (+24 -20)
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.

2 lines of code changed in 1 file:

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

got rid of some more import warnings

0 lines of code changed in 6 files:

  • src/slogo/parser: ExpressionParser.java (-2), InstructionParser.java (-1), LeftParser.java (-1), RemainderParser.java (-1), RepeatParser.java (-1), RightParser.java (-2)
ivyj 2008-12-08 13:41 Rev.: 85

added a result variable to use for displaying result in GUI text field

7 lines of code changed in 1 file:

  • src/slogo/parser: SLogoParser.java (+7)
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.

10 lines of code changed in 1 file:

  • src/slogo/parser: alias.prop (new 10)
tshishikub 2008-12-05 16:21 Rev.: 78

to parser

10 lines of code changed in 1 file:

  • src/slogo/parser: ToParser.java (+10 -2)
sprenkle 2008-12-04 18:51 Rev.: 69

Updated documentation

Cleaning up mess from my moving instructions around

0 lines of code changed in 5 files:

  • src/slogo/parser: AssignmentParser.java (-1), InstructionParser.java (-1), StrictInstructionListParser.java (-1), SumParser.java (-1), TowardsParser.java (-1)

(14 more)

Generated by StatSVN 0.4.1