summaryrefslogtreecommitdiffstats
path: root/src/Lang/Cpp/CppToken.ts
blob: f229e8fb274ca4339978ca04cd0d4fb1eb926130 (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 CppTokenType {
    Symbol,
    Pointer,
    Reference,
    ArraySubscript,
    OpenParenthesis,
    CloseParenthesis,
    CurlyBlock,
    Assignment,
    Comma,
    Arrow,
    CommentBlock,
    CommentLine,
    Ellipsis,
    Attribute,
}

export class CppToken {
    public type: CppTokenType;
    public value: string;

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