-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
91 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
See https://github.com/tcort/tcb/graphs/contributors |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
See https://github.com/tcort/tcb/commits/master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,19 @@ | ||
* Unit Tests | ||
* i18n/l10n | ||
Implement additional commands: | ||
|
||
* QUIT | ||
* SAVE filename | ||
* LOAD filename | ||
|
||
Implement additional statements: | ||
|
||
* FOR/NEXT | ||
|
||
Implement language fundamentals: | ||
|
||
* Strings | ||
* Floating point | ||
|
||
Other changes: | ||
|
||
* Better error handling / reporting. | ||
* Move away from flex and bison. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,24 @@ | ||
10 LET A = 2 | ||
20 LET B = 2 | ||
30 LET C = A + B | ||
40 PRINT A, "+", B, "=", C | ||
50 END | ||
10 PRINT "How many fibonacci numbers should I calculate?" | ||
20 INPUT X | ||
30 IF X <= 2 THEN GOTO 10 | ||
40 PRINT "Calculating the first ",X," fibonacci numbers: " | ||
50 PRINT "fib[0] = 0" | ||
60 PRINT "fib[1] = 1" | ||
70 LET J = 1 | ||
|
||
100 LET J = J + 1 | ||
110 LET A = 0 | ||
120 LET B = 1 | ||
130 LET I = 1 | ||
140 GOSUB 1000 | ||
150 PRINT "fib[",J,"] = ",C | ||
160 IF J < X-1 THEN GOTO 100 | ||
170 END | ||
|
||
1000 LET C = B + A | ||
1010 LET T = B | ||
1020 LET B = C | ||
1030 LET A = T | ||
1040 LET I = I + 1 | ||
1050 IF I = J THEN RETURN | ||
1060 GOTO 1000 |