printing fixes

This commit is contained in:
ProgramSnail 2023-07-25 21:33:57 +03:00
parent 0bb72e0b10
commit 469cb3581f
23 changed files with 318 additions and 151 deletions

View file

@ -62,6 +62,8 @@ enum class Type {
DEFINITION_INFO,
ANNOTATION_INFO,
EMPTY_LINES,
// --- tokens
PLACEHOLDER,
@ -146,6 +148,8 @@ const static std::string TYPE = "type";
const static std::string DEFINITION_INFO = "definition_info";
const static std::string ANNOTATION_INFO = "annotation_info";
const static std::string EMPTY_LINES = "empty_lines";
// --- tokens
const static std::string PLACEHOLDER = "placeholder";
@ -228,6 +232,8 @@ inline Type string_to_type(const std::string &str) {
return Type::DEFINITION_INFO;
} else if (str == ANNOTATION_INFO) {
return Type::ANNOTATION_INFO;
} else if (str == EMPTY_LINES) {
return Type::EMPTY_LINES;
} else if (str == PLACEHOLDER) {
return Type::PLACEHOLDER;
} else if (str == SIMPLE_NAME_IDENTIFIER) {