From 464110afe0599efa5b876eb398769cdbf2a0c1df Mon Sep 17 00:00:00 2001 From: Peter Mikkelsen Date: Mon, 24 Jan 2022 00:00:05 +0000 Subject: Rework the lexer to lex from either a string or bio. This allows multiline dfn's. --- apl9.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'apl9.h') diff --git a/apl9.h b/apl9.h index 7f194d0..b6c1138 100644 --- a/apl9.h +++ b/apl9.h @@ -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); -- cgit v1.2.3