summaryrefslogtreecommitdiff
path: root/keyword.hh
blob: 42267ef57a5cb29167ffc12eed102022590763bf (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* for the keyword table */
struct Keyword_ent
{
    const char   *name;
    int     tokcode;
};

struct Keyword_table
{
    Keyword_ent *table;
    int     maxkey;
    Keyword_table(Keyword_ent *);
    int     lookup(const char *s) const;
};

struct Identifier
{
    void *data;
    int type;

    Identifier();
    ~Identifier();
};