Yasm Assembler mainline development tree (ffmpeg 依赖)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
558 B

#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 inline Symbol *Symbol_new(const SubStr*);
Symbol *Symbol_find(const SubStr*);
void line_source(FILE *, unsigned int);
void parse(FILE *, FILE *);
static inline Symbol *
Symbol_new(const SubStr *str)
{
Symbol *r = malloc(sizeof(Symbol));
Symbol_init(r, str);
return r;
}
#endif