Website Summary Files Commits Branches @commit @diff @stats
path: root / homework / 81013 / go2html / Lexer.h
diff options
context:
space:
mode:
Commitaeb0d4f887a0c18c36b59acc7b5df08e62020c50 (patch)
Author
 Dimitar Trendafilov <dimitar@coherent-labs.com>
2020-10-11 21:32:48 +0300
Committer
 Dimitar Trendafilov <dimitar@coherent-labs.com>
2020-10-11 21:33:38 +0300
Filesb6abdc6e1810326b587f2a160f39570f1f568f27 /homework/81013/go2html/Lexer.h
IPL-aeb0d4f887a0c18c36b59acc7b5df08e62020c50.tar
IPL-aeb0d4f887a0c18c36b59acc7b5df08e62020c50.tar.gz
IPL-aeb0d4f887a0c18c36b59acc7b5df08e62020c50.zip
Parent154b7cd30f21af1554ca26986ff1643e28857727 (diff)
Removed old homeworks
1 files changed, 0 insertions, 125 deletions
-rw-r--r--homework/81013/go2html/Lexer.h125
diff --git a/homework/81013/go2html/Lexer.h b/homework/81013/go2html/Lexer.h
deleted file mode 100644
index d1b5ae6..0000000
--- a/homework/81013/go2html/Lexer.h
+++ /dev/null
@@ -1,125 +0,0 @@
-#pragma once
-
-#include "CommonTypes.h"
-
-enum class TokenType
-{
- // Keywords
- Break,
- Default,
- Func,
- Interface,
- Select,
- Case,
- Defer,
- Go,
- Map,
- Struct,
- Chan,
- Else,
- Goto,
- Package,
- Switch,
- Const,
- Fallthrough,
- If,
- Range,
- Type,
- Continue,
- For,
- Import,
- Return,
- Var,
-
- // Operators & Punctuation
- Plus,
- Minus,
- Star,
- Division,
- Modulo,
-
- NOT,
- BitwiseAND,
- BitwiseOR,
- BitwiseXOR,
- BitClear,
- ShiftLeft,
- ShiftRight,
-
- PlusEqual,
- MinusEqual,
- MultEqual,
- DivEqual,
- ModuloEqual,
-
- // -> skipped bitwise + equal stuff
-
- ConditionalAND,
- ConditionalOR,
- ReceiveOperator,
- PlusPlus,
- MinusMinus,
-
- Equal,
- Less,
- Greater,
-
- NOTEqual,
- LessEqual,
- GreaterEqual,
-
- Assignment,
- ShortAssignment,
-
- Variadic,
-
- LeftParen,
- RightParen,
- LeftSquareBracket,
- RightSquareBracket,
- LeftBrace,
- RightBrace,
-
- Comma,
- Dot,
-
- Semicolon,
- Colon,
-
- // Identifier
- Identifier,
-
- // Types
- DecimalInteger, // not really supported ATM
- Float,
- ImaginaryNum, // not really supported ATM
- String,
- Rune,
-
- True,
- False,
- Nil,
-
- Whitespace,
- Comment,
-
- Eof,
- Invalid
-};
-
-struct Token
-{
- TokenType Type;
- unsigned Line;
- IPLString Lexeme;
- double Number;
-};
-
-struct LexerSettings
-{
- bool CreateWhitespaceTokens;
- bool CreateCommentTokens;
-};
-
-IPLResult Tokenize(const char* code, IPLVector<Token>& tokens, const LexerSettings& settings);
-IPLResult Tokenize(const char* code, IPLVector<Token>& tokens); \ No newline at end of file