Forward furc ast

Signed-off-by: CHatingPython <chatingpython@gmail.com>
This commit is contained in:
CHatingPython
2026-05-31 13:00:33 +02:00
committed by CHatingPython
parent dfcbc4f23b
commit 2395ee9977
7 changed files with 53 additions and 35 deletions
+52
View File
@@ -0,0 +1,52 @@
#ifndef FURC_AST_FWD_HPP
#define FURC_AST_FWD_HPP
#include "furc/handle.hpp"
#include <string>
namespace furc {
namespace ast {
class node;
template <typename T, typename Error = std::string>
using node_handle = handle<T*, Error>;
class literal_node;
using literal_node_h = node_handle<literal_node>;
class expression_node;
using expression_node_h = node_handle<expression_node>;
class declaration_node;
using declaration_node_h = node_handle<declaration_node>;
class statement_node;
using statement_node_h = node_handle<statement_node>;
class program_node;
using program_node_h = node_handle<program_node>;
class string_literal_node;
using string_literal_node_h = node_handle<string_literal_node>;
class integer_literal_node;
using integer_literal_node_h = node_handle<integer_literal_node>;
class var_read_expression_node;
using var_read_expression_node_h = node_handle<var_read_expression_node>;
class unaryop_expression_node;
using unaryop_expression_node_h = node_handle<unaryop_expression_node>;
class binop_expression_node;
using binop_expression_node_h = node_handle<binop_expression_node>;
class var_assign_expression_node;
using var_assign_expression_node_h = node_handle<var_assign_expression_node>;
class function_declaration_node;
using function_declaration_node_h = node_handle<function_declaration_node>;
class function_definition_node;
using function_definition_node_h = node_handle<function_definition_node>;
class return_statement_node;
using return_statement_node_h = node_handle<return_statement_node>;
} // namespace ast
} // namespace furc
#endif // FURC_AST_FWD_HPP