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

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

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