shithub: semblance

ref: de92a40b756cd06c31c70e77277ca270e8dae4d1
dir: /fns.h/

View raw version
/* alloc */
void *emalloc(ulong);
void *erealloc(void*, ulong);
char *estrdup(char*);

/* sym */
Symbol *declsym(char*, int, double);
Symbol *getsym(char*);

/* builtin */
int lookupkw(char*);
int opstart(int);
int findop(char*);
void initsyms(void);
char *gettokenname(Token*);
void printtoken(Token*);

/* lexer */
int lex(Lexer*);
int peek(Lexer*);