2 Star 8 Fork 1

小鱼干 / RainbowLexer

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
demo.h 609 Bytes
一键复制 编辑 原始数据 按行查看 历史
小鱼干 提交于 2020-07-06 14:46 . 修改了文件关系
//DOUBLE OPTION
//SINGLE OPTION
#ifndef RAINBOWLEXER__h
#define DEMO__H
#define IGNORE_MIN (LONG_MAX-10000)
#define IGNORE_MAX (LONG_MAX)
#ifdef _WIN32
#define RainbowLexerPublic(type) extern type __cdecl
#define RainbowLexerPrivate(type) static type __cdecl
#else
#define RainbowLexerPublic(type) extern type
#define RainbowLexerPrivate(type) static type
#endif
#endif
typedef struct __token__
{
char* token;
long long id;
}RainbowToken;
RainbowLexerPublic(void) RainbowLex(const char* string);
RainbowLexerPublic(RainbowToken*) RainbowNext();
#define ID_NUM (-1)
#define ID_VAR (7)
#define ID_STRING (-1)
C
1
https://gitee.com/bupt_xyg/RainbowLexer.git
git@gitee.com:bupt_xyg/RainbowLexer.git
bupt_xyg
RainbowLexer
RainbowLexer
master

搜索帮助