summaryrefslogtreecommitdiffstats
path: root/parser.y
diff options
context:
space:
mode:
authorStephen Dolan <mu@netsoc.tcd.ie>2012-10-25 00:13:39 +0100
committerStephen Dolan <mu@netsoc.tcd.ie>2012-10-25 00:13:39 +0100
commit72691b490943bcaa921a53375585cac83327c432 (patch)
treeb363f1df43949c7d42e943bba55b6a24884318e7 /parser.y
parent033d9b2fd55b1fef0f17ce91d864c55e07f3ee5d (diff)
Fix a bug in string parsing. Closes #35
Diffstat (limited to 'parser.y')
-rw-r--r--parser.y7
1 files changed, 3 insertions, 4 deletions
diff --git a/parser.y b/parser.y
index e2e591df..d64a2ec5 100644
--- a/parser.y
+++ b/parser.y
@@ -308,10 +308,6 @@ Exp ">=" Exp {
$$ = gen_binop($1, $3, GREATEREQ);
} |
-String {
- $$ = $1;
-} |
-
Term {
$$ = $1;
}
@@ -385,6 +381,9 @@ Term '[' ']' {
LITERAL {
$$ = gen_op_const(LOADK, $1);
} |
+String {
+ $$ = $1;
+} |
'(' Exp ')' {
$$ = $2;
} |