|
|
|
#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*);
|
* ins.h, scanner.h, dfa.h, code.c, re.h, parse.h, token.h, substr.h:
Remove use of "inline". This could cause breakage on non-gcc systems (as
these files do not use config.h because of cross-build reasons).
* yasm.dep, yasm.mak, yasm.dsp, yasm.dsw: Remove support for VC6 builds.
* libyasm.dsp, libyasm.mak, libyasm.dep: Likewise.
* modules.dsp, modules.mak, modules.dep: Likewise.
* yasm.suo: Remove unneeded user options file.
* vc: Update svn:ignore property to reflect removal of VC6 builds and user
options file.
* genmacro.vcproj: Generate genmacro tool.
* genmacro/run.bat: Use genmacro to generate nasm-macros.c.
* modules.vcproj: Point to the new location for nasm-macros.c.
* re2c.vcproj: Generate re2c tool.
* re2c/run.bat: Use re2c to generate re2c-generated .c files.
* yasm.sln: Utilize genmacro and re2c.
svn path=/trunk/yasm/; revision=1144
20 years ago
|
|
|
static Symbol *Symbol_new(const SubStr*);
|
|
|
|
Symbol *Symbol_find(const SubStr*);
|
|
|
|
|
|
|
|
void line_source(FILE *, unsigned int);
|
|
|
|
void parse(FILE *, FILE *);
|
|
|
|
|
* ins.h, scanner.h, dfa.h, code.c, re.h, parse.h, token.h, substr.h:
Remove use of "inline". This could cause breakage on non-gcc systems (as
these files do not use config.h because of cross-build reasons).
* yasm.dep, yasm.mak, yasm.dsp, yasm.dsw: Remove support for VC6 builds.
* libyasm.dsp, libyasm.mak, libyasm.dep: Likewise.
* modules.dsp, modules.mak, modules.dep: Likewise.
* yasm.suo: Remove unneeded user options file.
* vc: Update svn:ignore property to reflect removal of VC6 builds and user
options file.
* genmacro.vcproj: Generate genmacro tool.
* genmacro/run.bat: Use genmacro to generate nasm-macros.c.
* modules.vcproj: Point to the new location for nasm-macros.c.
* re2c.vcproj: Generate re2c tool.
* re2c/run.bat: Use re2c to generate re2c-generated .c files.
* yasm.sln: Utilize genmacro and re2c.
svn path=/trunk/yasm/; revision=1144
20 years ago
|
|
|
static Symbol *
|
|
|
|
Symbol_new(const SubStr *str)
|
|
|
|
{
|
|
|
|
Symbol *r = malloc(sizeof(Symbol));
|
|
|
|
Symbol_init(r, str);
|
|
|
|
return r;
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|