mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-23 20:43:15 +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)
28 lines
304 B
C++
28 lines
304 B
C++
/* $Id: token.h 547 2006-05-25 13:40:35Z helly $ */
|
|
#ifndef _token_h
|
|
#define _token_h
|
|
|
|
#include "substr.h"
|
|
|
|
namespace re2c
|
|
{
|
|
|
|
class Token
|
|
{
|
|
|
|
public:
|
|
Str text;
|
|
uint line;
|
|
|
|
public:
|
|
Token(SubStr, uint);
|
|
};
|
|
|
|
inline Token::Token(SubStr t, uint l) : text(t), line(l)
|
|
{
|
|
;
|
|
}
|
|
|
|
} // end namespace re2c
|
|
|
|
#endif
|