[root]/src/slogo/slogo/parser/tokens
Author | Changes | Lines of Code | Lines per Change |
---|---|---|---|
Totals | 158 (100.0%) | 624 (100.0%) | 3.9 |
bajracharyas | 37 (23.4%) | 589 (94.4%) | 15.9 |
twitchard | 3 (1.9%) | 34 (5.4%) | 11.3 |
Garrett | 60 (38.0%) | 1 (0.2%) | 0.0 |
marmorsteinr | 58 (36.7%) | 0 (0.0%) | 0.0 |
Renamed "slogo.slogo" package and subpackages to just "slogo".
0 lines of code changed in 59 files:
Made parser be case-insensitive so that lowercase commands are executed as well as uppercase commands.
1 lines of code changed in 1 file:
LESS, GREATER, EQUAL and NOTEQUAL works in the command line. Also, since I needed an EqualToken, I changed the old EqualToken (the one representing the "=" sign) to EqualSignToken.
90 lines of code changed in 6 files:
SHOWTURTLE and HIDETURTLE works in the command line!
44 lines of code changed in 2 files:
Overhauled the interpreter so instructions returned values, in order to facilitate subroutines inside of variables. It's pretty ugly--and not quite working yet.
7 lines of code changed in 1 file:
PENDOWNP works to see if Pen is down or not. Returns 1 if pen is down. Or else, returns 0.
60 lines of code changed in 3 files:
PENUP and PENDOWN commands implemented in Turtle Window.
44 lines of code changed in 2 files:
TOWARDS added. Let me know if anyone finds any bugs.
22 lines of code changed in 1 file:
Added IF statement. Woot!
7 lines of code changed in 1 file:
HEADING works.
22 lines of code changed in 1 file:
HOME was giving an infinite loop. It is fixed now.
XCOR and YCOR commands are added to return the current XCordinate and YCordinate respectively in the Console.
44 lines of code changed in 2 files:
SETX, SETY, SETXY and HOME are working
92 lines of code changed in 8 files:
DIFFERENCE, PRODUCT, QUOTIENT, MINUS and REMAINDER works as they're supposed to. But I'm kind of worried about the "QUOTIENT 0 0" giving the result "0". "REMAINDER 0 0" works fine, evaluating it to "NaN".
Also, since we needed a "MinusToken" as a command, I changed the other MinusToken (the one that represents the Character Constant "-") to "MinusSignToken".
125 lines of code changed in 8 files:
LT and RT now corresponds to LEFT and RIGHT
46 lines of code changed in 4 files:
Large changes to the interpreter in this commit. Essentially what I've done is begin to unify the "Instruction" and "Expression" types, right...so in the ELan you could type things like "3 + 7"--but in SLogo that's not valid, you have to type "SUM 3 7." I've gotten rid of the old expressions and gotten "sum" working. And you can even do cool things like "SUM 7 SUM 3 9" = 19.
20 lines of code changed in 1 file:
Adding slogo.slogo
0 lines of code changed in 58 files: