From 09064b1581202ed4ffadd8a9b278dc062716f019 Mon Sep 17 00:00:00 2001 From: apio Date: Wed, 8 Jun 2022 20:06:56 +0200 Subject: [PATCH] More documentation for the Lexer --- src/Lexer.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Lexer.h b/src/Lexer.h index 37afd1f..6613fec 100644 --- a/src/Lexer.h +++ b/src/Lexer.h @@ -10,6 +10,7 @@ typedef std::vector TokenStream; /* The number of data types currently in Sapphire. */ #define TYPE_COUNT 14 +/* The Lexer for the Sapphire compiler. A Lexer reads source code from a file, and turns it into a stream of tokens the compiler can understand. */ class Lexer { private: @@ -38,7 +39,7 @@ private: public: /* An array containing Sapphire's current data types. */ static const std::array types; - + ~Lexer(); /* Lex the given text, turning it into a stream of tokens. */