Skip to content

Commit 781914f

Browse files
feat(parser): add ASTIntDeclaration struct for integer declaration AST nodes
1 parent 2bb2186 commit 781914f

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#if !defined(INT_DECLARATION_HXX)
2+
#define INT_DECLARATION_HXX
3+
4+
#include <wheel_lexer/token.hxx>
5+
#include "wheel_parser/config.hxx"
6+
#include "symbol.hxx"
7+
8+
using namespace wheel_lexer;
9+
10+
WHEEL_PARSER_AST_NAMESPACE
11+
struct ASTIntDeclaration {
12+
SymbolID type_symbol;
13+
SymbolID variable_symbol;
14+
int64_t intializer_value;
15+
SourceLocation source_location;
16+
};
17+
18+
WHEEL_PARSER_END_NAMESPACE
19+
20+
21+
#endif // INT_DECLARATION_HXX

0 commit comments

Comments
 (0)