File: parser.h

package info (click to toggle)
yasm 1.3.0-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,880 kB
  • sloc: asm: 74,423; ansic: 53,055; python: 9,927; sh: 5,276; xml: 1,617; makefile: 214; pascal: 95; sed: 16
file content (33 lines) | stat: -rw-r--r-- 473 bytes parent folder | download | duplicates (16)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef RE2C_PARSER_H
#define RE2C_PARSER_H

/* Tokens */
enum yytokentype {
    CLOSESIZE = 258,
    CLOSE = 259,
    ID = 260,
    CODE = 261,
    RANGE = 262,
    STRING = 263,
    NONE = 264
};

#define CLOSESIZE 258
#define CLOSE 259
#define ID 260
#define CODE 261
#define RANGE 262
#define STRING 263
#define NONE 264

typedef union {
    Symbol	*symbol;
    RegExp	*regexp;
    Token	*token;
    char	op;
    ExtOp	extop;
} yystype;

extern yystype yylval;

#endif