/*
....[@@@..[@@@..............[@.................. MUD++ is a written from
....[@..[@..[@..[@..[@..[@@@@@....[@......[@.... scratch multi-user swords and
....[@..[@..[@..[@..[@..[@..[@..[@@@@@..[@@@@@.. sorcery game written in C++.
....[@......[@..[@..[@..[@..[@....[@......[@.... This server is an ongoing
....[@......[@..[@@@@@..[@@@@@.................. development project. All
................................................ contributions are welcome.
....Copyright(C).1995.Melvin.Smith.............. Enjoy.
------------------------------------------------------------------------------
Melvin Smith (aka Fusion) msmith@hom.net
MUD++ development mailing list mudpp@van.ml.org
------------------------------------------------------------------------------
sym.h
*/
/* Symbol structure */
#ifndef _SYM_H
#define _SYM_H
#define TYPE_NONE 0x0000
#define TYPE_VOID 0x0001
#define TYPE_INT 0x0002
#define TYPE_FLOAT 0x0004
#define TYPE_STRING 0x0008
#define TYPE_STRING_LITERAL 0x0010
#define TYPE_USER_DEFINED 0x0100
#define TYPE_FUNCTION 0x1000
typedef struct __sym
{
char * name;
int type;
long lval;
char * sval;
struct __sym * next;
} sym;
/* Will change to hash table */
sym * sym_tab[];
char * str_dup( const char * );
void dump_sym_tab();
#define mk_type( x, y ) y->type = x
#endif