mirror of
https://github.com/GLEGram/GLEGram-iOS.git
synced 2026-08-28 00:10:26 +02:00
Based on Swiftgram 12.5 (Telegram iOS 12.5). All GLEGram features ported and organized in GLEGram/ folder. Features: Ghost Mode, Saved Deleted Messages, Content Protection Bypass, Font Replacement, Fake Profile, Chat Export, Plugin System, and more. See CHANGELOG_12.5.md for full details.
30 lines
544 B
C
30 lines
544 B
C
#ifndef re2c_parse_h
|
|
#define re2c_parse_h
|
|
|
|
#include <stdio.h>
|
|
#include "tools/re2c/scanner.h"
|
|
#include "tools/re2c/re.h"
|
|
|
|
typedef struct Symbol {
|
|
struct Symbol *next;
|
|
Str name;
|
|
RegExp *re;
|
|
} Symbol;
|
|
|
|
void Symbol_init(Symbol *, const SubStr*);
|
|
static Symbol *Symbol_new(const SubStr*);
|
|
Symbol *Symbol_find(const SubStr*);
|
|
|
|
void line_source(FILE *, unsigned int);
|
|
void parse(FILE *, FILE *);
|
|
|
|
static Symbol *
|
|
Symbol_new(const SubStr *str)
|
|
{
|
|
Symbol *r = malloc(sizeof(Symbol));
|
|
Symbol_init(r, str);
|
|
return r;
|
|
}
|
|
|
|
#endif
|