From 31f6517aa5d8d3ccdd0b39880337c000943d08c1 Mon Sep 17 00:00:00 2001 From: Rowan Goemans Date: Sun, 31 Dec 2017 04:07:55 +0100 Subject: -- Completed unit tests for operators. Conversion operators aren't working yet. -- Renamed all C things to Cpp since that is really what they are. -- Made empty files for the remaining unit tests. --- src/Lang/Cpp/CppToken.ts | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/Lang/Cpp/CppToken.ts (limited to 'src/Lang/Cpp/CppToken.ts') diff --git a/src/Lang/Cpp/CppToken.ts b/src/Lang/Cpp/CppToken.ts new file mode 100644 index 0000000..f229e8f --- /dev/null +++ b/src/Lang/Cpp/CppToken.ts @@ -0,0 +1,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; + } +} -- cgit v1.2.3