diff options
author | Peter Mikkelsen <petermikkelsen10@gmail.com> | 2022-01-24 00:00:05 +0000 |
---|---|---|
committer | Peter Mikkelsen <petermikkelsen10@gmail.com> | 2022-01-24 00:00:05 +0000 |
commit | 464110afe0599efa5b876eb398769cdbf2a0c1df (patch) | |
tree | c572fdeb3773c20d12a9f104292b15f20d885143 /functions.c | |
parent | 9a938d3ce26b2d3728d791c0f858acdbd50223b5 (diff) |
Rework the lexer to lex from either a string or bio. This allows multiline dfn's.
Diffstat (limited to 'functions.c')
-rw-r--r-- | functions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/functions.c b/functions.c index c8bff78..207daeb 100644 --- a/functions.c +++ b/functions.c @@ -144,7 +144,7 @@ runfunc(Function f, Array *left, Array *right) omega->undefined = 0; incref(right); - Datum *dfnres = evalline(f.dfn, 0); + Datum *dfnres = evalline(f.dfn, nil, 0); popdfnframe(); result = (*dfnres).array; /* TODO what if the evaluation failed */ }else if(f.type == FunctypePrim){ |