summaryrefslogtreecommitdiffstats
path: root/src/Lang/C/CToken.ts
blob: 75214aa7216f9a066518fe7fec3a0ad1d31ce86c (plain)
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
export enum CTokenType {
    Symbol,
    Pointer,
    Reference,
    ArraySubscript,
    OpenParenthesis,
    CloseParenthesis,
    CurlyBlock,
    Assignment,
    Comma,
    Arrow,
    CommentBlock,
    CommentLine,
    Ellipsis,
    Attribute,
}

export class CToken {
    public type: CTokenType;
    public value: string;

    constructor(type: CTokenType, value: string) {
        this.type = type;
        this.value = value;
    }
}