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 /apl9.h | |
parent | 9a938d3ce26b2d3728d791c0f858acdbd50223b5 (diff) |
Rework the lexer to lex from either a string or bio. This allows multiline dfn's.
Diffstat (limited to 'apl9.h')
-rw-r--r-- | apl9.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -188,7 +188,7 @@ struct DfnFrame /* Function prototypes for the different source files */ /* main.c */ -Datum *evalline(Rune *, int); +Datum *evalline(Rune *, Biobuf *, int); Rune *prompt(Rune *); /* print.c */ @@ -199,7 +199,8 @@ Rune *ppoperator(Operator); Rune *ppfunction(Function); /* lexer.c */ -Statement *lexline(Rune *, int); +Statement *lexlinebio(Biobuf *, int); +Statement *lexlinestr(Rune *, int); /* array.c */ Array *mkscalarint(vlong); |