mirror of
https://github.com/vishapoberon/compiler.git
synced 2026-04-06 19:12:25 +00:00
reported by pdewacht: if eol is 0DX only, then voc wasn't able to handle
this correctly http://paste.lisp.org/display/158971#1 this is base62 encoded test module http://paste.lisp.org/display/158971 fixed.; -- noch
This commit is contained in:
parent
fff1337578
commit
ebd0d78ce2
1 changed files with 10 additions and 3 deletions
|
|
@ -439,13 +439,20 @@ MODULE OPM; (* RC 6.3.89 / 28.6.89, J.Templ 10.7.89 / 22.7.96 *)
|
||||||
IF (ORD(ch) > 31) OR (ORD(ch) = 9) THEN
|
IF (ORD(ch) > 31) OR (ORD(ch) = 9) THEN
|
||||||
IF ORD(ch)=9 THEN ch := " " END;
|
IF ORD(ch)=9 THEN ch := " " END;
|
||||||
line[i] := ch; INC(i); line[i+1] := 0X;
|
line[i] := ch; INC(i); line[i+1] := 0X;
|
||||||
|
Files.Read(r, ch);
|
||||||
ELSE
|
ELSE
|
||||||
IF ch = 0AX THEN INC(j); i := 0 END
|
IF (ch = 0AX) OR (ch = 0DX) THEN
|
||||||
|
Files.Read(r, ch);
|
||||||
|
IF (ch = 0AX) OR (ch = 0DX) THEN
|
||||||
|
Files.Read(r, ch);
|
||||||
|
ELSE
|
||||||
|
INC(j); i := 0
|
||||||
|
END
|
||||||
|
END
|
||||||
END;
|
END;
|
||||||
(*
|
(*
|
||||||
Console.Ln; Console.String("-- line["); Console.Int(i-1, 0); Console.String("] = "); Console.Char(ch); Console.Ln;
|
Console.Ln; Console.String("-- line["); Console.Int(i-1, 0); Console.String("] = "); Console.Char(ch); Console.Ln;
|
||||||
*)
|
*)
|
||||||
Files.Read(r, ch);
|
|
||||||
(*
|
(*
|
||||||
Console.String("-- i "); Console.Int(i, 0); Console.Ln;
|
Console.String("-- i "); Console.Int(i, 0); Console.Ln;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue