26 lines
511 B
C
26 lines
511 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;
|
|
cllexer_t lexer;
|
|
vmapper_t* mapper;
|
|
} clcomp_t;
|
|
|
|
void clcomp_init(clcomp_t* clcomp, vmapper_t* mapper, 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
|