/
thomas-king
/
SyntacticAnalyzer
Обзор
Документация
Войти
/
thomas-king
/
SyntacticAnalyzer
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
main
lib/Models/AST/Literal.cpp
30 строк
566 B
Ace Rodstin
Update models.
05 апр 2023, 15:04
05 апр 2023, 15:04
d490c58
Код
Авторство
О чём код?
// // Literal.cpp // SyntacticAnalyzer // // Created by Ace Rodstin on 4/5/23. // Copyright © 2023 Ace Rodstin. All rights reserved. // #include "Models/AST/Literal.h" using namespace ace; using namespace ast; Literal::Literal(Kind kind, string literal, optional<NumberBase> numberBase) { this->kind = kind; this->literal = literal; this->numberBase = numberBase; } Literal::Kind Literal::getKind() const { return kind; } string Literal::getLiteral() const { return literal; } NumberBase Literal::getNumberBase() const { return numberBase.value(); }