File tree Expand file tree Collapse file tree 4 files changed +16
-2
lines changed Expand file tree Collapse file tree 4 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ Version 6.1.6
5
5
- Implemented flush() for FATFS files (thanks to Ada)
6
6
- Improved some error messages
7
7
- In C++ output, treat unknown types in prints as generic
8
+ - Made `interface` and `implements` reserved keywords in BASIC
8
9
- Optimized a few BASIC string expressions
9
10
- Optimized calculating length of string literals
10
11
- Revised BASIC use of + operator on strings
Original file line number Diff line number Diff line change @@ -253,8 +253,10 @@ goto
253
253
_hasmethod
254
254
if
255
255
import
256
+ implements
256
257
input
257
258
integer
259
+ interface
258
260
len
259
261
let
260
262
lib
@@ -1347,8 +1349,7 @@ Used in a `try` statement to indicate the start of an error handling block.
1347
1349
1348
1350
### CHR$
1349
1351
1350
- Not actually a reserved word, but a built-in function. Converts an ascii
1351
- value to a string (so the reverse of ASC). For example:
1352
+ A special built-in function which converts an ascii value to a string (so the reverse of ASC). For example:
1352
1353
```
1353
1354
print chr$(65)
1354
1355
```
@@ -2386,6 +2387,10 @@ else
2386
2387
end if
2387
2388
```
2388
2389
2390
+ ### IMPLEMENTS
2391
+
2392
+ Keyword reserved for future use.
2393
+
2389
2394
### IMPORT
2390
2395
2391
2396
Keyword reserved for future use.
@@ -2480,6 +2485,10 @@ Warning: truncation will sometimes result in surprising results (e.g. `int(23.99
2480
2485
2481
2486
A 32 bit signed integer type. The unsigned 32 bit integer type is ` uinteger ` .
2482
2487
2488
+ ### INTERFACE
2489
+
2490
+ Keyword reserved for future use.
2491
+
2483
2492
### KILL
2484
2493
2485
2494
```
Original file line number Diff line number Diff line change @@ -457,10 +457,12 @@ AdjustParamForByVal(AST *param)
457
457
%token BAS_GOSUB " gosub"
458
458
%token BAS_HASMETHOD " _hasmethod"
459
459
%token BAS_IF " if"
460
+ %token BAS_IMPLEMENTS " implements"
460
461
%token BAS_IMPORT " import"
461
462
%token BAS_INPUT " input"
462
463
%token BAS_CAST_INT " int"
463
464
%token BAS_INTEGER_KW " integer"
465
+ %token BAS_INTERFACE " interface"
464
466
%token BAS_LEN " len"
465
467
%token BAS_LET " let"
466
468
%token BAS_LIB " lib"
Original file line number Diff line number Diff line change @@ -2314,10 +2314,12 @@ struct reservedword basic_keywords[] = {
2314
2314
{ "gosub" , BAS_GOSUB },
2315
2315
{ "_hasmethod" , BAS_HASMETHOD },
2316
2316
{ "if" , BAS_IF },
2317
+ { "implements" , BAS_IMPLEMENTS },
2317
2318
{ "import" , BAS_IMPORT },
2318
2319
{ "input" , BAS_INPUT },
2319
2320
{ "int" , BAS_CAST_INT },
2320
2321
{ "integer" , BAS_INTEGER_KW },
2322
+ { "interface" , BAS_INTERFACE },
2321
2323
{ "len" , BAS_LEN },
2322
2324
{ "let" , BAS_LET },
2323
2325
{ "lib" , BAS_LIB },
You can’t perform that action at this time.
0 commit comments