transpiler comments and refactoring

This commit is contained in:
jorenchik
2024-10-27 15:05:46 +02:00
parent 0585530a1e
commit 39839f95e6
4 changed files with 142 additions and 130 deletions

View File

@@ -25,8 +25,8 @@ struct Token {
int32_t row;
int32_t column;
std::string ToString() const;
static std::string ToString(const TokenType* ttype);
std::string toString() const;
static std::string toString(const TokenType* ttype);
};
Result<std::vector<Token>> tokenizeMdem(const std::string& fileRunes);
Result<std::vector<Token>> tokenizeMdem(const std::string& content);

View File

@@ -6,7 +6,6 @@
#include "lexer.h"
#include "result.h"
struct Question {
double cooldown;
std::string questionText;
@@ -16,6 +15,13 @@ struct Question {
virtual ~Question() = default;
};
struct QuestionElement {
bool isDash;
bool isGroup;
std::string content;
};
struct Choice {
std::string answer;
bool isCorrect;