summaryrefslogtreecommitdiffstats
path: root/src/CodeParser/CParser/Token.ts
blob: 379fd46009e6fbb5650c5d74d3fcf6785d0b6c64 (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
export enum TokenType {
    Symbol,
    Pointer,
    Reference,
    ArraySubscript,
    OpenParenthesis,
    CloseParenthesis,
    CurlyBlock,
    Assignment,
    Comma,
    Arrow,
    Ellipsis,
    Attribute,
}

export class Token {
    public Type: TokenType;
    public Value: string;

    constructor(type: TokenType, value: string) {
        this.Type = type;
        this.Value = value;
    }
}