Directory src/slogo/parser/

Directory Created:
2013-11-18 09:47
Total Files:
46
Deleted Files:
3
Lines of Code:
1729

[root]/src/slogo/parser
                directory in repo token (53 files, 1136 lines)

Lines of Code

src/slogo/parser/ Lines of Code

Developers

Author Changes Lines of Code Lines per Change
Totals 113 (100.0%) 1413 (100.0%) 12.5
sgould 26 (23.0%) 469 (33.2%) 18.0
archerh 42 (37.2%) 422 (29.9%) 10.0
eutomo 36 (31.9%) 296 (20.9%) 8.2
dillardj 8 (7.1%) 189 (13.4%) 23.6
username 1 (0.9%) 37 (2.6%) 37.0

Most Recent Commits

archerh 2013-12-13 16:25 Rev.: 512

Removed unused imports and commented-out code.

1 lines of code changed in 9 files:

  • src/slogo/parser: BackParser.java (-1), BatchInterpreter.java (-2), ClearScreenParser.java (+1 -6), ForwardParser.java (-4), HomeParser.java (-1), InstructionParser.java (-10), PenUpParser.java (-1), ToParser.java (-1), TowardsParser.java (-1)
sgould 2013-12-13 14:03 Rev.: 484

Mostly just fixing up code and adding comments to methods. Changed a little bit of error handling behavior so user gets presented a message in a dialog box instead of just in the terminal, but it still closes the application for some incorrect inputs

5 lines of code changed in 1 file:

  • src/slogo/parser: SLogoParser.java (+5 -1)
archerh 2013-12-13 03:26 Rev.: 452

Minor cleanup: got rid of some print statements.

2 lines of code changed in 2 files:

  • src/slogo/parser: BatchInterpreter.java (+1 -1), ToParser.java (+1 -1)
archerh 2013-12-13 03:02 Rev.: 451

Added event handler so the user can select an image from their library and use it as the turtle. Added IF and TO tokens.

72 lines of code changed in 2 files:

  • src/slogo/parser: IfParser.java (new 38), ToParser.java (new 34)
eutomo 2013-12-12 21:39 Rev.: 428

trying to get assignment to work. eutomo

10 lines of code changed in 1 file:

  • src/slogo/parser: AssignmentParser.java (+10 -5)
sgould 2013-12-12 13:52 Rev.: 386

Added showturtle method to JTurtle to use in ShowTurtle and HideTurtle instructions

3 lines of code changed in 2 files:

  • src/slogo/parser: IdentifierParser.java (-1), instructions.prop (+3 -1)
archerh 2013-12-11 17:43 Rev.: 350

BatchInterpreter (reading commands in from an external file) doesn't work when the file includes an EOF_Token. TOWARDS still isn't working, see email for details on what I think should work but I can't think of the geometric equivalent of it at the moment. Need to be able to use variables as expressions (ex: x=50;FORWARD x), currently can't. Dialog box closes automatically except when the commands in the selected file don't parse.

38 lines of code changed in 4 files:

  • src/slogo/parser: BatchInterpreter.java (+27 -10), InstructionParser.java (+1 -1), RepeatParser.java (+1), StrictInstructionListParser.java (+9 -2)
archerh 2013-12-11 15:07 Rev.: 344

Got rid of ExpressionParser. Added option to choose a SLogo file to parse and execute. Need to fix button location and size, sorry it's so ugly at the moment. Working on Towards instruction (before it was moving forward, trying to perfect the geometry of having it return just the angle needed to have the turtle pointing TOWARD that point. Doesn't move the turtle, doesn't work properly, but it's a work in progress.

43 lines of code changed in 6 files:

  • src/slogo/parser: AssignmentParser.java (+1 -2), BatchInterpreter.java (new 36), ExpressionParser.java (del), HomeParser.java (-1), IdentifierParser.java (+2 -3), TowardsParser.java (+4 -4)
sgould 2013-12-10 21:59 Rev.: 310

Added instruction/token/parser for pendown, penup, and pendownp. Also made TurtlePen into its own subclass (inside of JTurtle), to clean up the code. And I added some error handling to BACK, FORWARD, RIGHT, and LEFT

94 lines of code changed in 4 files:

  • src/slogo/parser: PenDownPParser.java (new 30), PenDownParser.java (new 29), PenUpParser.java (new 31), instructions.prop (+4 -1)
dillardj 2013-12-10 08:58 Rev.: 291

ClearScren, Showturtle, hideturtle, and clean

68 lines of code changed in 4 files:

  • src/slogo/parser: CleanParser.java (+1 -8), ClearScreenParser.java (+3 -1), HideTurtleParser.java (new 32), ShowTurtleParser.java (new 32)
eutomo 2013-12-08 23:22 Rev.: 282

the boolean parsers weren't showing up so i'm recomitting my code. eutomo

6 lines of code changed in 3 files:

  • src/slogo/parser: PrintParser.java (+1 -4), RepeatParser.java (+1 -6), instructions.prop (+4 -1)
sgould 2013-12-08 22:56 Rev.: 280

A couple of GUI updates, as well as uncommenting a line in IdentifierParser. Also removed some unimplemented things from the instructions.prop file

2 lines of code changed in 2 files:

  • src/slogo/parser: IdentifierParser.java (+1 -1), instructions.prop (+1 -3)
eutomo 2013-12-08 14:44 Rev.: 275

now aliases (including those with ? in their names). for commands that /require/ ?, we should consider whether we want to accept with /without/ ?. eutomo

3 lines of code changed in 1 file:

  • src/slogo/parser: InstructionNames.java (+3 -2)
eutomo 2013-12-08 14:08 Rev.: 273

Aliases work! At this point though (Dec8, 2PM), we don't have all of the instructions implemented yet, so obviously not all of the aliases work. But all aliases work for the instructions we have implemented; and once we implement every instruction, there's nothing we need to change for the alias map.

19 lines of code changed in 3 files:

  • src/slogo/parser: Aliases (+14 -14), InstructionNames.java (+4 -2), InstructionParser.java (+1 -1)
eutomo 2013-12-08 12:21 Rev.: 272

50 lines of code changed in 8 files:

  • src/slogo/parser: Aliases (+5 -1), GreaterParser.java (+1 -1), InstructionNames.java (+27 -1), InstructionParser.java (+17 -1), LessParser.java (-1), SumParser.java (-1), XCorParser.java (-1), YCorParser.java (-1)
eutomo 2013-12-08 09:50 Rev.: 271

eutomo. Four Boolean commands work. Changed EQUAL the = to EQUALSIGN everywhere it was needed so that EQUAL can be a Boolean command.

48 lines of code changed in 9 files:

  • src/slogo/parser: AssignmentParser.java (+1 -1), EqualParser.java (new 27), EqualQParser.java (del), GreaterParser.java (+5 -9), Instructions.prop (del), LessParser.java (+4 -6), NotequalParser.java (+6 -9), SLogoParser.java (-1), instructions.prop (+5 -1)
sgould 2013-12-08 08:57 Rev.: 270

Updated instructions.prop to match instructions that I just added in previous commit

6 lines of code changed in 1 file:

  • src/slogo/parser: instructions.prop (+6 -1)
sgould 2013-12-08 08:54 Rev.: 269

Some GUI improvements and added parser/instruction/token for heading, home, setxy, xcor, ycor.

162 lines of code changed in 5 files:

  • src/slogo/parser: HeadingParser.java (new 30), HomeParser.java (new 34), SetXYParser.java (new 36), XCorParser.java (new 31), YCorParser.java (new 31)
archerh 2013-12-06 15:13 Rev.: 258

Added MINUS and REMAINDER operations!

62 lines of code changed in 4 files:

  • src/slogo/parser: MinusParser.java (new 29), RemainderParser.java (new 30), SLogoParser.java (-1), instructions.prop (+3 -1)
archerh 2013-12-06 15:04 Rev.: 257

Fixed SumParser, added Difference, Product, Quotient, all are parsing properly. Fixed other parsers (BACK, LEFT, RIGHT, SETX, SETY) to parse properly without ExpressionParser. Use this format from now on when writing parsers so it works properly with math operations. Y'all have a great weekend, let me know if something I did doesn't work as it should.

149 lines of code changed in 11 files:

  • src/slogo/parser: BackParser.java (+1 -7), DifferenceParser.java (new 30), LeftParser.java (+3 -3), ProductParser.java (new 30), QuotientParser.java (new 31), RightParser.java (+1 -4), SLogoParser.java (+17 -18), SetXParser.java (+1 -3), SetYParser.java (+1 -3), SumParser.java (new 30), instructions.prop (+4)
archerh 2013-12-06 12:22 Rev.: 250

Changed SLogoParser so it does not depend on expression or expressionParser, and parse method returns a GrammarElement rather than an Instruction and takes no parameters. Since parse() no longer takes a Reader, you'll have to re-initialize SLogoParser for every new string, although this should only matter to the TurtleField. Removed while loop in parse, which will matter for batch mode but not for the command-line mode. Don't update to this for now if you want prior updates to work. Mostly comitting so Eric can made progress based on the new changes.

35 lines of code changed in 2 files:

  • src/slogo/parser: ForwardParser.java (+3 -3), SLogoParser.java (+32 -20)
dillardj 2013-12-05 23:57 Rev.: 242

Token, Parsers, and instructions for TOWARDS, CLEAN, and CLEARSCREEN

121 lines of code changed in 4 files:

  • src/slogo/parser: CleanParser.java (new 40), ClearScreenParser.java (new 40), TowardsParser.java (new 38), instructions.prop (+3)
eutomo 2013-12-05 22:41 Rev.: 241

earlier I put code in the wrong place to chop off the ?. but now it works.

8 lines of code changed in 2 files:

  • src/slogo/parser: InstructionNames.java (+7 -1), InstructionParser.java (+1 -10)
eutomo 2013-12-05 22:22 Rev.: 239

2 lines of code changed in 1 file:

  • src/slogo/parser: InstructionParser.java (+2 -2)
eutomo 2013-12-05 22:11 Rev.: 238

0 lines of code changed in 1 file:

  • src/slogo/parser: InstructionParser.java (-2)
eutomo 2013-12-05 22:04

138 lines of code changed in 6 files:

  • src/slogo/parser: Aliases (new 10), EqualQParser.java (new 30), GreaterParser.java (new 30), Instructions.prop (new 11), LessParser.java (new 31), NotequalParser.java (new 26)
eutomo 2013-12-05 21:58 Rev.: 224

for handling question marks in instructions eutomo

12 lines of code changed in 1 file:

  • src/slogo/parser: InstructionParser.java (+12 -1)
archerh 2013-12-05 21:21 Rev.: 222

Added DIFFERENCE, SUM, QUOTIENT, PRODUCT, MINUS tokens, able to parse sum and difference but not the others, look to Expression.parse and then in parsing for sum to see how to deal with prefix notation in 2-number operations; still need to get other mathematical expressions working. Afterward, will remove tokens for ELAN language that are not relevant to SLogo, such as plus and star tokens.

16 lines of code changed in 1 file:

  • src/slogo/parser: ExpressionParser.java (+16 -14)
sgould 2013-12-05 20:38 Rev.: 219

Added SetX and SetY implementations. Started SetXY but have some questions on how to complete this. Also changed the instructions to use a variable to refer to the turtle instead of a string (Dr. Sprenkle said we should change that). The string is defined in TurtleField (I think that's where I put it), but I'm not confident that's the best place for it.

77 lines of code changed in 3 files:

  • src/slogo/parser: SetXParser.java (new 37), SetYParser.java (new 37), instructions.prop (+3 -1)
sgould 2013-12-05 00:16 Rev.: 207

Added back, left, and right instructions, parsers, and tokens. Also made turtle image smaller because it minimizes the shift when switching directions.

114 lines of code changed in 4 files:

  • src/slogo/parser: BackParser.java (new 37), LeftParser.java (new 37), RightParser.java (new 37), instructions.prop (+3)
sgould 2013-12-01 22:06 Rev.: 102

took out all print statements

0 lines of code changed in 1 file:

  • src/slogo/parser: SLogoParser.java (-1)
sgould 2013-12-01 20:49 Rev.: 88

6 lines of code changed in 3 files:

  • src/slogo/parser: IdentifierParser.java (+2 -1), SLogoParser.java (+3 -1), instructions.prop (+1)
archerh 2013-11-26 21:51 Rev.: 54

Slightly altered Forward.java to extend Instruction so that it parallels structure of other Instructions. Changed TextField to receive text when "ENTER" key is pressed, then parsing this text as a StringReader. Currently only works on assignment and gives errors for other instructions. Changed SLogoParser to return an Instruction rather than nothing.
--Haley

4 lines of code changed in 1 file:

  • src/slogo/parser: SLogoParser.java (+4 -4)
username 2013-11-24 17:02 Rev.: 38

Nov24, 5pm. Eric: I have done my part due Tuesday night. At this point, if you guys find mistakes, PLEASE let me know and I will try to fix them.

37 lines of code changed in 1 file:

  • src/slogo/parser: ForwardParser.java (new 37)
sprenkle 2013-11-18 09:47 Rev.: 4

First Import

745 lines of code changed in 14 files:

  • src/slogo/parser: AssignmentParser.java (new 38), ExpressionParser.java (new 145), IdentifierParser.java (new 33), InstructionNames.java (new 50), InstructionParser.java (new 73), ParseException.java (new 30), Parser.java (new 13), PrintParser.java (new 29), README (new 73), RepeatParser.java (new 37), SLogoParser.java (new 138), StrictInstructionListParser.java (new 43), instructions.prop (new 4), package.html (new 39)
Generated by StatSVN 0.7.0