From 80ebae7887e21f58ef09a18515e5521c5162053c Mon Sep 17 00:00:00 2001 From: Peter Mikkelsen Date: Fri, 21 Jan 2022 16:05:41 +0000 Subject: Get ready for hybrids --- apl9.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'apl9.h') diff --git a/apl9.h b/apl9.h index d51bde1..11643d5 100644 --- a/apl9.h +++ b/apl9.h @@ -29,6 +29,7 @@ typedef enum { OperatortypeDop, OperatortypePrim, + OperatortypeHybrid, } operatorType; typedef enum @@ -37,6 +38,7 @@ typedef enum FunctypePrim, FunctypeOp, FunctypeQuad, + FunctypeHybrid, } functionType; typedef enum @@ -122,6 +124,7 @@ struct Datum Statement stmt; Function func; Operator operator; + int hybrid; Symbol *symbol; }; }; @@ -274,11 +277,13 @@ extern int datasizes[]; /* array.c */ extern Rune primfuncnames[]; /* functions.c */ extern Rune primmonopnames[]; /* operators.c */ extern Rune primdyadopnames[]; /* operators.c */ -extern Rune primhybridnames[]; /* lexer.c */ +extern Rune primhybridnames[]; /* hybrids.c */ extern fnmonad monadfunctiondefs[]; /* functions.c */ extern fndyad dyadfunctiondefs[]; /* functions.c */ extern opmonad monadoperatordefs[]; /* operators.c */ extern opdyad dyadoperatordefs[]; /* operators.c */ +extern fndyad hybridfunctiondefs[]; /* hybrids.c */ +extern opmonad hybridoperatordefs[]; /* hybrids.c */ extern Symtab *globalsymtab; /* symbol.c */ extern Symtab *currentsymtab; /* symbol.c */ extern int alloccounts; /* memory.c */ -- cgit v1.2.3