/
thomas-king
/
SyntacticAnalyzer
Обзор
Документация
Войти
/
thomas-king
/
SyntacticAnalyzer
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
main
lib/Models/AST/ConstantSpecification.cpp
29 строк
774 B
Ace Rodstin
Add ParseExpressionTests. Fix parenthesis parsing.
06 апр 2023, 13:52
06 апр 2023, 13:52
760e23e
Код
Авторство
О чём код?
// // ConstantSpecification.cpp // SyntacticAnalyzer // // Created by Ace Rodstin on 4/5/23. // Copyright © 2023 Ace Rodstin. All rights reserved. // #include "Models/AST/ConstantSpecification.h" using namespace ace; using namespace ast; ConstantSpecification::ConstantSpecification(unique_ptr<IdentifierList> identifierList, unique_ptr<Type> type, unique_ptr<Expression> expression): identifierList(std::move(identifierList)), type(std::move(type)), expression(std::move(expression)) {} const IdentifierList* ConstantSpecification::getIdentifierList() const { return identifierList.get(); } const Type* ConstantSpecification::getType() const { return type.get(); } const Expression* ConstantSpecification::getExpression() const { return expression.get(); }