Add a --arg option to allow variables to be passed from the cmdline.

Closes #107
This commit is contained in:
Stephen Dolan committed 2013-05-06 14:21:00 +01:00
1 parent 48be23233a
commit 5be97463ec
7 files changed
+46 -6

No files matched your search

+1 -3
View File
@@ -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);
} |