mirror of
https://github.com/AntKrotov/oberon-07-compiler.git
synced 2026-10-05 09:45:47 +00:00
исправление ошибки
This commit is contained in:
1 parent
6eae262eca
commit
db88401e7b
5 files changed
+8
-11
No files matched your search
Binary file not shown.
+4
-9
@@ -70,17 +70,12 @@ END pop;
|
||||
|
||||
PROCEDURE InStk (R: REGS; reg: INTEGER): INTEGER;
|
||||
VAR
|
||||
i, n: INTEGER;
|
||||
i: INTEGER;
|
||||
|
||||
BEGIN
|
||||
i := 0;
|
||||
n := R.top;
|
||||
WHILE (i <= n) & (R.stk[i] # reg) DO
|
||||
INC(i)
|
||||
END;
|
||||
|
||||
IF i > n THEN
|
||||
i := -1
|
||||
i := R.top;
|
||||
WHILE (i >= 0) & (R.stk[i] # reg) DO
|
||||
DEC(i)
|
||||
END
|
||||
|
||||
RETURN i
|
||||
|
||||
@@ -1546,7 +1546,9 @@ BEGIN
|
||||
|
||||
PARS.checklex(parser, SCAN.lxRSQUARE);
|
||||
PARS.Next(parser);
|
||||
e.ident := NIL
|
||||
IF ~(isArr(e) & (e._type.length = 0) & (parser.sym = SCAN.lxLSQUARE)) THEN
|
||||
e.ident := NIL
|
||||
END
|
||||
|
||||
ELSIF parser.sym = SCAN.lxCARET DO
|
||||
getpos(parser, pos);
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@ CONST
|
||||
|
||||
vMajor* = 1;
|
||||
vMinor* = 52;
|
||||
Date* = "2021-02-17";
|
||||
Date* = "2021-apr-06";
|
||||
|
||||
FILE_EXT* = ".ob07";
|
||||
RTL_NAME* = "RTL";
|
||||
|
||||
Reference in new issue
Block a user