UnBCIC-TP2 / Oberon-Scala

An implementation of the Oberon language using Scala
55 stars 118 forks source link

Compiler giving error when dealing with REAL values #115

Closed ciriatico closed 2 years ago

ciriatico commented 2 years ago

Using the compiler of .oberon files raises error when dealing with REAL values. This doesn't happen within the testing process, only when the compiler is used separately (with the command "run -c..."). This can be seen with the DECTest.oberon file, which passes in the test but gives an error when is compiled alone. Content of DECTest.oberon:

MODULE DECTest;

VAR
  x : INTEGER;
  y : REAL;

BEGIN
    x := 9;
    y := -8.0;
    DEC(x);
    DEC(y)
END
END DECTest.

Error message:

expression not found

ciriatico commented 2 years ago

Test being reviewed, errors found during the compiling process.