Newer
Older
xmpp-bot / src / grammar / types.h
/* additional types for expenses grammar
 */
#pragma once
#include <stdio.h>
#include <glib.h>

typedef enum BotCommand {
    BOT_CMD_IN,
    BOT_CMD_OUT,
    BOT_CMD_DELETE,
    BOT_CMD_REPORT
} BotCommand;

typedef enum BotReportTimespan {
    BOT_TS_DAILY,
    BOT_TS_WEEKLY,
    BOT_TS_MONTHLY,
    BOT_TS_YEARLY
} BotReportTimespan;

int yylex();
int yyparse();
int yylex_destroy();
typedef struct yy_buffer_state * YY_BUFFER_STATE;
YY_BUFFER_STATE yy_scan_string(const char * str);

int grammar_parse_string(const GString *buf);