19 lines
383 B
C++
19 lines
383 B
C++
#pragma once
|
|
|
|
#include "ast/ast.hpp"
|
|
#include "token/token.hpp"
|
|
|
|
namespace ast {
|
|
struct expression_stmt : statement {
|
|
expression_stmt(token::token token);
|
|
|
|
token::token token;
|
|
ast::expression* expression;
|
|
|
|
std::string token_literal() const override;
|
|
std::string str() const override;
|
|
|
|
~expression_stmt();
|
|
};
|
|
} // namespace ast
|