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