Removed unused imports and commented-out code.
6 lines of code changed in 15 files:
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
43 lines of code changed in 3 files:
Minor cleanup: got rid of some print statements.
3 lines of code changed in 3 files:
Added event handler so the user can select an image from their library and use it as the turtle. Added IF and TO tokens.
298 lines of code changed in 7 files:
trying to get assignment to work. eutomo
17 lines of code changed in 3 files:
Changed openfile to JMenuBar instead of button
11 lines of code changed in 1 file:
Added showturtle method to JTurtle to use in ShowTurtle and HideTurtle instructions
32 lines of code changed in 7 files:
Updated the towards instruction so that it just returns the int heading needed to face coordinates, instead of turning turtle. Had it turning the turtle before just for testing purposes, and everything is working as it should.
6 lines of code changed in 1 file:
Updated towards instruction so that it works correctly I think
19 lines of code changed in 1 file:
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.
46 lines of code changed in 5 files:
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.
156 lines of code changed in 8 files:
Added a clearLines() method to JTurtle to clear the turtle's trail in the CLEAN and CLEARSCREEN instructions
13 lines of code changed in 3 files:
Added ability to change pen stroke to either solid (default), dotted, or dashed via the GUI. Also refactored some code into methods, and made some changes to variable access modifiers related to the pen
79 lines of code changed in 3 files:
Moved TurtlePen class out of JTurtle and into TurtlePen
11 lines of code changed in 2 files:
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
529 lines of code changed in 18 files:
ClearScren, Showturtle, hideturtle, and clean
199 lines of code changed in 11 files:
the boolean parsers weren't showing up so i'm recomitting my code. eutomo
8 lines of code changed in 4 files:
2 lines of code changed in 1 file:
A couple of GUI updates, as well as uncommenting a line in IdentifierParser. Also removed some unimplemented things from the instructions.prop file
3 lines of code changed in 3 files:
Added the additional functionality for the pen. It now fully matches what is needed for the extension. Not the best code, so hopefully there will be time to refactor at some point.
101 lines of code changed in 2 files:
now aliases (including those with ? in their names). for commands that /require/ ?, we should consider whether we want to accept with /without/ ?. eutomo
12 lines of code changed in 4 files:
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.
37 lines of code changed in 4 files:
69 lines of code changed in 12 files:
eutomo. Four Boolean commands work. Changed EQUAL the = to EQUALSIGN everywhere it was needed so that EQUAL can be a Boolean command.
205 lines of code changed in 25 files:
Updated instructions.prop to match instructions that I just added in previous commit
6 lines of code changed in 1 file:
Some GUI improvements and added parser/instruction/token for heading, home, setxy, xcor, ycor.
436 lines of code changed in 17 files:
Added turtle line with pen up/pen down functionality. Still need to work on figuring out how to modify the other things that need to be modified to finish the extension (line width, color, etc.)
170 lines of code changed in 2 files:
Added MINUS and REMAINDER operations!
106 lines of code changed in 6 files:
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.
153 lines of code changed in 13 files:
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.
44 lines of code changed in 4 files:
Token, Parsers, and instructions for TOWARDS, CLEAN, and CLEARSCREEN
321 lines of code changed in 10 files:
earlier I put code in the wrong place to chop off the ?. but now it works.
8 lines of code changed in 2 files:
2 lines of code changed in 1 file:
0 lines of code changed in 2 files:
251 lines of code changed in 12 files:
for handling instructions that have question marks in the name eutomo
9 lines of code changed in 1 file:
for handling question marks in instructions eutomo
12 lines of code changed in 1 file:
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.
87 lines of code changed in 14 files:
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.
263 lines of code changed in 15 files:
Updated the forward, back, left, and right instructions to move relative to the current orientation of the turtle. This is how they are supposed to work, but previously I had them implemented as always moving north, south, east, west.
3 lines of code changed in 4 files:
Added back, left, and right instructions, parsers, and tokens. Also made turtle image smaller because it minimizes the shift when switching directions.
295 lines of code changed in 14 files:
6 lines of code changed in 2 files:
updated gui size and turtle starting location. Tried to figure out drawing line, but was unable (I think I deleted all of this code)
3 lines of code changed in 2 files:
4 lines of code changed in 1 file:
both FD and FORWARD working due to code added to tokenFactory
2 lines of code changed in 1 file:
3 lines of code changed in 1 file:
1 lines of code changed in 1 file:
Updated version that forward method evaluates number entered, not just uses 50
1 lines of code changed in 1 file:
took out all print statements
0 lines of code changed in 2 files:
2 lines of code changed in 3 files:
12 lines of code changed in 2 files:
working version for FORWARD 50
calls default constructor, not specifying new turtle image
need to add FD token
42 lines of code changed in 4 files:
4 lines of code changed in 2 files:
58 lines of code changed in 7 files: