From 383b15dc0603ac872f70a54a607028b95f4dd34e Mon Sep 17 00:00:00 2001 From: hneemann Date: Sat, 6 Jul 2019 14:24:44 +0200 Subject: [PATCH] typos --- src/main/java/de/neemann/digital/hdl/hgs/Parser.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/de/neemann/digital/hdl/hgs/Parser.java b/src/main/java/de/neemann/digital/hdl/hgs/Parser.java index 1eeec3b2e..e18fbdf64 100644 --- a/src/main/java/de/neemann/digital/hdl/hgs/Parser.java +++ b/src/main/java/de/neemann/digital/hdl/hgs/Parser.java @@ -192,7 +192,7 @@ public class Parser { return lino(c -> ref.declareVar(c, initVal.value(c))); case EQUAL: if (export) - throw newParserException("export not alowed here!"); + throw newParserException("export not allowed here!"); final Expression val = parseExpression(); if (isRealStatement) expect(SEMICOLON); return lino(c -> { @@ -204,18 +204,18 @@ public class Parser { case ADD: expect(ADD); if (export) - throw newParserException("export not alowed here!"); + throw newParserException("export not allowed here!"); if (isRealStatement) expect(SEMICOLON); return lino(c -> ref.set(c, Value.toLong(ref.get(c)) + 1)); case SUB: expect(SUB); if (export) - throw newParserException("export not alowed here!"); + throw newParserException("export not allowed here!"); if (isRealStatement) expect(SEMICOLON); return lino(c -> ref.set(c, Value.toLong(ref.get(c)) - 1)); case SEMICOLON: if (export) - throw newParserException("export not alowed here!"); + throw newParserException("export not allowed here!"); return lino(ref::get); default: throw newUnexpectedToken(refToken);