mirror of
https://github.com/jorenchik/mdemory.git
synced 2026-03-22 00:26:21 +00:00
transpiler comments and refactoring
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user