From 186293ae869640cb387e24dd6b5b6e25ac366762 Mon Sep 17 00:00:00 2001 From: Terence Parr Date: Mon, 2 Apr 2012 10:13:13 -0700 Subject: [PATCH] tweak --- tool/playground/T.g | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tool/playground/T.g b/tool/playground/T.g index 9949f8074..95685d01c 100644 --- a/tool/playground/T.g +++ b/tool/playground/T.g @@ -1,8 +1,8 @@ grammar T; -s : e ';' ; -e : e '*' e - | ID - | INT +s : e ; +e : a=e op=('*'|'/') b=e {} + | INT {} + | '(' x=e ')' {} ; -INT : '0'..'9'+; +INT : '0'..'9'+ ; WS : (' '|'\n') {skip();} ;