Compare commits

..

No commits in common. "times-init" and "master" have entirely different histories.

3 changed files with 3 additions and 8 deletions

View File

@ -69,10 +69,6 @@ public record Token(Report.Location location, Symbol symbol, String lexeme) impl
* Kljucna beseda {@code in}. * Kljucna beseda {@code in}.
*/ */
IN, IN,
/**
* Kljucna beseda {@code times}.
*/
TIMES,
/** /**
* Kljucna beseda {@code end}. * Kljucna beseda {@code end}.
*/ */

View File

@ -319,7 +319,6 @@ public class LexAn implements AutoCloseable {
case "let" -> Token.Symbol.LET; case "let" -> Token.Symbol.LET;
case "in" -> Token.Symbol.IN; case "in" -> Token.Symbol.IN;
case "end" -> Token.Symbol.END; case "end" -> Token.Symbol.END;
case "times" -> Token.Symbol.TIMES;
default -> null; default -> null;
}; };
} }

View File

@ -360,9 +360,9 @@ public class SynAn implements AutoCloseable {
private AST.AtomExpr parseIntegerConstantMultiplier() { private AST.AtomExpr parseIntegerConstantMultiplier() {
Token token = lexAn.peekToken(); Token token = lexAn.peekToken();
if (token.symbol() == Token.Symbol.TIMES) { if (token.symbol() == Token.Symbol.MUL) {
// intconstmult -> TIMES const // intconstmult -> MUL const
check(Token.Symbol.TIMES); check(Token.Symbol.MUL);
return parseConstant(); return parseConstant();
} }
// intconstmult -> ε // intconstmult -> ε