Skip to content

Commit

Permalink
[cpp] skeleton code for an ast node
Browse files Browse the repository at this point in the history
  • Loading branch information
harrand committed May 5, 2024
1 parent bff87f1 commit 0e79402
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion cpp/src/ast.hpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
#ifndef PSYC_AST_HPP
#define PSYC_AST_HPP
#include "srcloc.hpp"
#include <variant>

struct ast
{

struct node
{
using payload_t = std::variant<int>;
payload_t payload;
srcloc meta;
};
};

#endif // PSYC_AST_HPP

0 comments on commit 0e79402

Please sign in to comment.