From 0e79402d10945bd830c649e1ab341275016c4c2c Mon Sep 17 00:00:00 2001 From: harrand Date: Sun, 5 May 2024 03:07:59 +0100 Subject: [PATCH] [cpp] skeleton code for an ast node --- cpp/src/ast.hpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/cpp/src/ast.hpp b/cpp/src/ast.hpp index 6b202cc..1b388f5 100644 --- a/cpp/src/ast.hpp +++ b/cpp/src/ast.hpp @@ -1,9 +1,16 @@ #ifndef PSYC_AST_HPP #define PSYC_AST_HPP +#include "srcloc.hpp" +#include struct ast { - + struct node + { + using payload_t = std::variant; + payload_t payload; + srcloc meta; + }; }; #endif // PSYC_AST_HPP \ No newline at end of file