summaryrefslogtreecommitdiff
path: root/src/parser.mly
diff options
context:
space:
mode:
authorKathy Gray2013-10-09 17:19:02 +0100
committerKathy Gray2013-10-09 17:19:18 +0100
commit5954ac7e83869beb3a80f2ba7fdec7089f4dddce (patch)
treef45e9ca806b9668fcd67a589abb020c23c5ba46c /src/parser.mly
parent142af1025a401ded6148aeac43a1c5d734649bf2 (diff)
Memory reading (small change to signature for memory writes).
Also fixed parser to accept id ( )
Diffstat (limited to 'src/parser.mly')
-rw-r--r--src/parser.mly2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/parser.mly b/src/parser.mly
index e4bcfb05..a2257879 100644
--- a/src/parser.mly
+++ b/src/parser.mly
@@ -497,6 +497,8 @@ vaccess_exp:
app_exp:
| vaccess_exp
{ $1 }
+ | id Lparen Rparen
+ { eloc (E_app((E_aux((E_id $1), locn 1 1)), [eloc (E_lit (lloc L_unit))])) }
| id Lparen exp Rparen
{ eloc (E_app((E_aux((E_id $1),locn 1 1)),[$3])) }
| id Lparen comma_exps Rparen