From aeb0d4f887a0c18c36b59acc7b5df08e62020c50 Mon Sep 17 00:00:00 2001 From: Dimitar Trendafilov Date: Sun, 11 Oct 2020 21:32:48 +0300 Subject: Removed old homeworks --- homework/81709/JSCompiler.Core/Token.cs | 48 --------------------------------- 1 file changed, 48 deletions(-) delete mode 100644 homework/81709/JSCompiler.Core/Token.cs (limited to 'homework/81709/JSCompiler.Core/Token.cs') diff --git a/homework/81709/JSCompiler.Core/Token.cs b/homework/81709/JSCompiler.Core/Token.cs deleted file mode 100644 index efa2dd8..0000000 --- a/homework/81709/JSCompiler.Core/Token.cs +++ /dev/null @@ -1,48 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace JSCompiler.Core -{ - public class Token : IEquatable - { - public Token(TokenType type) - { - Type = type; - } - - public TokenType Type { get; private set; } - - public override bool Equals(object obj) - { - var item = obj as Token; - - if(item == null) - { - return false; - } - - return Equals(item); - } - - public bool Equals(Token other) - { - return Type == other.Type; - } - - public override int GetHashCode() - { - return this.Type.GetHashCode(); - } - - public override string ToString() - { - return ((char)Type).ToString(); - } - } - - - -} -- cgit v1.3.1-26-gb76a