28 lines
471 B
C
28 lines
471 B
C
/*
|
|
*
|
|
* Copyright 2023 Oleg Borodin <borodin@unix7.org>
|
|
*
|
|
*/
|
|
|
|
#ifndef GCLEXER_H_QWERTY
|
|
#define GCLEXER_H_QWERTY
|
|
|
|
//#include <string.h>
|
|
//#include <stdbool.h>
|
|
//#include <stdio.h>
|
|
|
|
#include <cllexer.h>
|
|
|
|
typedef struct {
|
|
char** argv;
|
|
int argc;
|
|
int argn;
|
|
cllexer_t alex;
|
|
} clcomp_t;
|
|
|
|
void clcomp_init(clcomp_t* lexer, char** argv, int argc);
|
|
int clcomp_gettok(clcomp_t* lexer, char* token);
|
|
void clcomp_destroy(clcomp_t* clcomp);
|
|
|
|
#endif
|