瀏覽代碼

synchronized with original

Alexander Shiryaev 7 年之前
父節點
當前提交
dd2c52a3ab
共有 3 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      BlackBox/Po/Files/ORP.Mod.txt
  2. 二進制
      BlackBox/Po/Mod/ORP.odc
  3. 二進制
      BlackBox/Po/Mod/ORP3.odc

+ 2 - 2
BlackBox/Po/Files/ORP.Mod.txt

@@ -1,4 +1,4 @@
-MODULE ORP; (*N. Wirth 1.7.97 / 4.4.2017  Oberon compiler for RISC in Oberon-07*)
+MODULE ORP; (*N. Wirth 1.7.97 / 23.9.2017  Oberon compiler for RISC in Oberon-07*)
   IMPORT Texts, Oberon, ORS, ORB, ORG;
   (*Author: Niklaus Wirth, 2014.
     Parser of Oberon-RISC compiler. Uses Scanner ORS to obtain symbols (tokens),
@@ -768,7 +768,7 @@ MODULE ORP; (*N. Wirth 1.7.97 / 4.4.2017  Oberon compiler for RISC in Oberon-07*
         END ;
         ORS.Get(sym)
       ELSE Type(type.base);
-        IF type.base.form # ORB.Record THEN ORS.Mark("must point to record") END ;
+        IF (type.base.form # ORB.Record) OR (type.base.typobj = NIL) THEN ORS.Mark("must point to named record") END ;
         CheckRecLevel(level)
       END
     ELSIF sym = ORS.procedure THEN

二進制
BlackBox/Po/Mod/ORP.odc


二進制
BlackBox/Po/Mod/ORP3.odc