Arvore binaria de strings, variaveis e constantes.

This commit is contained in:
Waldemar Celes
1994-07-19 18:24:17 -03:00
parent cde6ab1782
commit 1c749a3059
2 changed files with 237 additions and 0 deletions

27
tree.h Normal file
View File

@@ -0,0 +1,27 @@
/*
** tree.h
** TecCGraf - PUC-Rio
** $Id: $
*/
#ifndef tree_h
#define tree_h
#include "opcode.h"
#define UNMARKED_STRING 0xFFFF
#define MARKED_STRING 0xFFFE
#define MAX_WORD 0xFFFD
#define indexstring(s) (*(((Word *)s)-1))
char *lua_strcreate (char *str);
char *lua_constcreate (char *str);
char *lua_varcreate (char *str);
void lua_strcollector (void);
char *lua_varnext (char *n);
char *lua_varname (Word index);
#endif