From 9b217037c87f7303de091d5c049cafccd9a9ccb0 Mon Sep 17 00:00:00 2001 From: apio Date: Wed, 8 Jun 2022 19:49:09 +0200 Subject: [PATCH] Updates to Token.h's documentation. --- src/Token.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Token.h b/src/Token.h index 7e35870..5a7abdf 100644 --- a/src/Token.h +++ b/src/Token.h @@ -50,6 +50,7 @@ enum TokenType extern const std::string token_strings[]; +/* Struct to represent tokens generated by the Lexer. */ struct Token { TokenType tk_type; @@ -101,4 +102,5 @@ private: std::string line_text; }; +/* typedef to make it easier to see a what a std::vector of tokens is being used for. */ typedef std::vector TokenStream;