Files
helmetc/libxtools/clcomp.h
Олег Бородин f35050a4ef work in progess
2025-10-15 17:49:07 +02:00

27 lines
530 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;
} 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);
void clcomp_destroy(clcomp_t* clcomp);
#endif