summaryrefslogtreecommitdiffstats
path: root/src/CodeParser/CParser/Token.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/CodeParser/CParser/Token.ts')
-rw-r--r--src/CodeParser/CParser/Token.ts24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/CodeParser/CParser/Token.ts b/src/CodeParser/CParser/Token.ts
new file mode 100644
index 0000000..379fd46
--- /dev/null
+++ b/src/CodeParser/CParser/Token.ts
@@ -0,0 +1,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;
+ }
+}