Files
helmetc/libxtools/clcomp.h
Олег Бородин 5dca71f775 work in progess
2025-10-15 23:59:19 +02:00

29 lines
589 B
C

/*
*
* Copyright 2023 Oleg Borodin <borodin@unix7.org>
*
*/
#ifndef GCLEXER_H_QWERTY
#define GCLEXER_H_QWERTY
#include <cllexer.h>
#include <vmapper.h>
typedef struct {
char** argv;
int argc;
int argn;
int pos;
cllexer_t lexer;
vmapper_t* vmapper;
char* errstr;
} clcomp_t;
void clcomp_init(clcomp_t* clcomp, vmapper_t* vmapper, char** argv, int argc);
int clcomp_gettok(clcomp_t* clcomp, char* token);
int clcomp_parse(clcomp_t* clcomp);
char* clcomp_geterr(clcomp_t* clcomp);
void clcomp_destroy(clcomp_t* clcomp);
#endif