diff options
author | Peter Mikkelsen <petermikkelsen10@gmail.com> | 2022-01-21 16:05:41 +0000 |
---|---|---|
committer | Peter Mikkelsen <petermikkelsen10@gmail.com> | 2022-01-21 16:05:41 +0000 |
commit | 80ebae7887e21f58ef09a18515e5521c5162053c (patch) | |
tree | 6b62ff6497d44fc9fe5c05b9a92a65cf2efee386 /apl9.h | |
parent | e12450d52dce2d6271d12720bf18175d082a0003 (diff) |
Get ready for hybrids
Diffstat (limited to 'apl9.h')
-rw-r--r-- | apl9.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 */ |