summaryrefslogtreecommitdiffstats
path: root/parser.y
diff options
context:
space:
mode:
authorStephen Dolan <mu@netsoc.tcd.ie>2013-05-06 14:21:00 +0100
committerStephen Dolan <mu@netsoc.tcd.ie>2013-05-06 14:21:00 +0100
commit5be97463ecd4f93fdfbaec457d9100beeb9dc603 (patch)
treec60380d11fa33623ceb683189b12bf411bd24244 /parser.y
parent48be23233ad63bf1bd218c259efedff3e52106c5 (diff)
Add a --arg option to allow variables to be passed from the cmdline.
Closes #107
Diffstat (limited to 'parser.y')
-rw-r--r--parser.y4
1 files changed, 1 insertions, 3 deletions
diff --git a/parser.y b/parser.y
index 92cd9db8..8c663b9b 100644
--- a/parser.y
+++ b/parser.y
@@ -201,9 +201,7 @@ FuncDef Exp %prec ';' {
} |
Term "as" '$' IDENT '|' Exp {
- $$ = BLOCK(gen_op_simple(DUP), $1,
- block_bind(gen_op_var_unbound(STOREV, jv_string_value($4)),
- $6, OP_HAS_VARIABLE));
+ $$ = gen_var_binding($1, jv_string_value($4), $6);
jv_free($4);
} |