diff options
Diffstat (limited to 'src/Lang/C/CToken.ts')
| -rw-r--r-- | src/Lang/C/CToken.ts | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/Lang/C/CToken.ts b/src/Lang/C/CToken.ts new file mode 100644 index 0000000..75214aa --- /dev/null +++ b/src/Lang/C/CToken.ts @@ -0,0 +1,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; + } +} |