From d7e8cf03f3f6cb6d0fb5ef52fd293f1f43fd001e Mon Sep 17 00:00:00 2001 From: yhirose Date: Thu, 30 Jul 2015 17:28:13 -0400 Subject: [PATCH] Updated PL/0 grammar file. --- grammar/pl0.peg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grammar/pl0.peg b/grammar/pl0.peg index 206ef7c..7bbfeae 100644 --- a/grammar/pl0.peg +++ b/grammar/pl0.peg @@ -12,8 +12,8 @@ call <- 'CALL' _ ident statements <- 'BEGIN' _ statement (';' _ statement )* 'END' _ if <- 'IF' _ condition 'THEN' _ statement while <- 'WHILE' _ condition 'DO' _ statement -out <- '!' _ expression -in <- '?' _ ident +out <- ('out' / 'write' / '!') _ expression +in <- ('in' / 'read' / '?') _ ident condition <- odd / compare odd <- 'ODD' _ expression