* out and var are reserved words

This commit is contained in:
Michaël Van Canneyt 2021-12-30 18:40:08 +01:00
parent e091d263c8
commit f590e65c7b
2 changed files with 8 additions and 4 deletions

View File

@ -203,7 +203,7 @@ program h2pas;
}
function FixId(const s:string):string;
const
maxtokens = 14;
maxtokens = 16;
reservedid: array[1..maxtokens] of string[14] =
(
'CLASS',
@ -212,6 +212,7 @@ program h2pas;
'FALSE',
'LABEL',
'NEW',
'OUT',
'PROPERTY',
'PROCEDURE',
'RECORD',
@ -219,7 +220,8 @@ program h2pas;
'STRING',
'TYPE',
'TRUE',
'UNTIL'
'UNTIL',
'VAR'
);
var
b : boolean;

View File

@ -199,7 +199,7 @@ program h2pas;
}
function FixId(const s:string):string;
const
maxtokens = 14;
maxtokens = 16;
reservedid: array[1..maxtokens] of string[14] =
(
'CLASS',
@ -208,6 +208,7 @@ program h2pas;
'FALSE',
'LABEL',
'NEW',
'OUT',
'PROPERTY',
'PROCEDURE',
'RECORD',
@ -215,7 +216,8 @@ program h2pas;
'STRING',
'TYPE',
'TRUE',
'UNTIL'
'UNTIL',
'VAR'
);
var
b : boolean;