2024-04-12 15:28:20 +00:00
|
|
|
#include <stdlib.h>
|
2024-04-12 15:24:12 +00:00
|
|
|
#include <sys/log.h>
|
2024-02-04 15:23:32 +00:00
|
|
|
#include <yacc/parser.tab.h>
|
|
|
|
|
2024-04-12 15:24:12 +00:00
|
|
|
#define LOG_LEVEL LOG_LEVEL_DEBUG
|
|
|
|
|
2024-04-12 15:28:20 +00:00
|
|
|
void notify_exit(void)
|
|
|
|
{
|
|
|
|
DEBUG("Exiting gemstone...");
|
|
|
|
}
|
|
|
|
|
2024-04-12 15:24:12 +00:00
|
|
|
void setup(void)
|
|
|
|
{
|
|
|
|
log_init();
|
|
|
|
DEBUG("starting gemstone...");
|
|
|
|
|
2024-04-12 15:28:20 +00:00
|
|
|
#if LOG_LEVEL <= LOG_LEVEL_DEBUG
|
|
|
|
atexit(¬ify_exit);
|
|
|
|
#endif
|
|
|
|
|
2024-04-12 15:24:12 +00:00
|
|
|
DEBUG("finished starting up gemstone...");
|
|
|
|
}
|
|
|
|
|
2024-02-04 15:23:32 +00:00
|
|
|
int main() {
|
2024-04-12 15:24:12 +00:00
|
|
|
setup();
|
|
|
|
|
2024-02-04 15:23:32 +00:00
|
|
|
yyparse();
|
|
|
|
return 0;
|
|
|
|
}
|