[root]/src/slogo/parser
token
(53 files, 1136 lines)
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 |
Removed unused imports and commented-out code.
1 lines of code changed in 9 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
5 lines of code changed in 1 file:
Minor cleanup: got rid of some print statements.
2 lines of code changed in 2 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.
72 lines of code changed in 2 files:
trying to get assignment to work. eutomo
10 lines of code changed in 1 file:
Added showturtle method to JTurtle to use in ShowTurtle and HideTurtle instructions
3 lines of code changed in 2 files:
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:
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:
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:
ClearScren, Showturtle, hideturtle, and clean
68 lines of code changed in 4 files:
the boolean parsers weren't showing up so i'm recomitting my code. eutomo
6 lines of code changed in 3 files:
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:
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:
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:
50 lines of code changed in 8 files:
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:
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.
162 lines of code changed in 5 files:
Added MINUS and REMAINDER operations!
62 lines of code changed in 4 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.
149 lines of code changed in 11 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.
35 lines of code changed in 2 files:
Token, Parsers, and instructions for TOWARDS, CLEAN, and CLEARSCREEN
121 lines of code changed in 4 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 1 file:
138 lines of code changed in 6 files:
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.
16 lines of code changed in 1 file:
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:
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:
took out all print statements
0 lines of code changed in 1 file:
6 lines of code changed in 3 files:
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:
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:
First Import
745 lines of code changed in 14 files: