From 3fa8400b7246061669967c1fbb2591575f13d175 Mon Sep 17 00:00:00 2001 From: StefanZ3 Date: Sun, 30 Jun 2024 22:48:35 +0200 Subject: [PATCH] bugfix print --- src/main/java/Decaf.g4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/Decaf.g4 b/src/main/java/Decaf.g4 index 4232fd9..bf92507 100644 --- a/src/main/java/Decaf.g4 +++ b/src/main/java/Decaf.g4 @@ -63,7 +63,7 @@ AccessModifierPublic : 'public' ; MainMethodDecl : 'public static void main(String[] args)'; //Print Statement print(VariableA); -print: 'print('Identifier');'; +print: 'print' OpenRoundBracket Identifier ClosedRoundBracket Semicolon; //Types Void : 'void';