cirilisp/symtable.h

20 lines
830 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#pragma once
#include "util.h"
void createTableStack(int size);
int createTable();
int removeTable();
void addSymbolInternal(char *symbol, object (*function)());
void addSymbolVariable(char *symbol, object variable);
/* функције помоћу којих се дефинишу нове променљиве: addSymbolVariable се
* позива током корисничких дефиниција у програму, док се addSymbolInternal
* користи у init.c да би се дефинисале "уграђене" процедуре */
int symbolExists(char *symbol);
/* враћа 1 уколико симбол постоји и 0 у супротном */
object referVariable(char *symbol);
/* враћа вредност на коју се односи име симбола у табели */