mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-11 04:51:13 +00:00
ec17f5a5b9
error handling. - Fixed: dehsupp/scanner.re defined "}" as the token RPAREN. dehsupp/parse.y also defined action_list_def as needing a RBARCE. I'm surprised it worked at all before. I guess Lemon really was too accepting. - Changed the way that xlatcc handles include statements so that I don't need to modify the logic of lempar.c. I also discovered that the grammar was improperly defined and only accepted the first statement. It worked before because Lemon used to accept multiple times before reaching the EOF token. I have also verified that it is still generating the proper lumps. - Removed some unused wadsrc files from the repository. - Fixed my re2c upgrade. - Updated lemon.c to v1.53. SVN r711 (trunk)
53 lines
878 B
C++
53 lines
878 B
C++
/* $Id: code.h 525 2006-05-25 13:32:49Z helly $ */
|
|
#ifndef _code_h
|
|
#define _code_h
|
|
|
|
#include "re.h"
|
|
#include "dfa.h"
|
|
|
|
namespace re2c
|
|
{
|
|
|
|
class BitMap
|
|
{
|
|
public:
|
|
static BitMap *first;
|
|
|
|
const Go *go;
|
|
const State *on;
|
|
const BitMap *next;
|
|
uint i;
|
|
uint m;
|
|
|
|
public:
|
|
static const BitMap *find(const Go*, const State*);
|
|
static const BitMap *find(const State*);
|
|
static void gen(std::ostream&, uint ind, uint, uint);
|
|
static void stats();
|
|
BitMap(const Go*, const State*);
|
|
~BitMap();
|
|
|
|
#if PEDANTIC
|
|
BitMap(const BitMap& oth)
|
|
: go(oth.go)
|
|
, on(oth.on)
|
|
, next(oth.next)
|
|
, i(oth.i)
|
|
, m(oth.m)
|
|
{
|
|
}
|
|
BitMap& operator = (const BitMap& oth)
|
|
{
|
|
new(this) BitMap(oth);
|
|
return *this;
|
|
}
|
|
#endif
|
|
};
|
|
|
|
#ifdef _MSC_VER
|
|
# pragma warning(disable: 4355) /* 'this' : used in base member initializer list */
|
|
#endif
|
|
|
|
} // end namespace re2c
|
|
|
|
#endif
|