2018-02-25 06:35:58 +00:00
|
|
|
#ifndef __KF_DICT_H__
|
|
|
|
#define __KF_DICT_H__
|
|
|
|
|
|
|
|
#include "defs.h"
|
|
|
|
#include "parser.h"
|
|
|
|
#include "system.h"
|
|
|
|
#include "word.h"
|
|
|
|
|
|
|
|
typedef enum _LOOKUP_ : uint8_t {
|
|
|
|
LOOKUP_OK = 0, // Lookup executed properly.
|
|
|
|
LOOKUP_NOTFOUND = 1, // The token isn't in the dictionary.
|
|
|
|
LOOKUP_FAILED = 2 // The word failed to execute.
|
|
|
|
} LOOKUP;
|
|
|
|
|
2018-02-27 16:04:17 +00:00
|
|
|
void init_dict(System *);
|
2018-02-25 06:35:58 +00:00
|
|
|
LOOKUP lookup(struct Token *, System *);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif // __KF_DICT_H__
|