|
#ifndef INTERPRETER_H
|
|
#define INTERPRETER_H
|
|
|
|
void error(char *msg);
|
|
void match(int type);
|
|
int find_local(char *name, int len);
|
|
int find_func(char *name, int len);
|
|
int find_native_func(char *name, int len);
|
|
void statement();
|
|
void skip_block();
|
|
void scan_functions();
|
|
void scan_classes();
|
|
int find_class(char *name, int len);
|
|
int find_class_field(int class_idx, char *name, int len);
|
|
int find_class_method(int class_idx, char *name, int len);
|
|
long allocate_object(int class_idx);
|
|
void free_object(long obj_ptr);
|
|
void call_destructor(long obj_ptr);
|
|
|
|
#endif
|