summaryrefslogtreecommitdiff
path: root/src/ast/provided_module.cpp
blob: ea32317234d5b6c925ceaefce0f039d86279d3f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*
 */
#include "ast.hpp"

AST::Module g_compiler_module;

void AST_InitProvidedModule()
{
    // "struct str([u8])"
    g_compiler_module.add_struct(true, "str", AST::TypeParams(), ::std::vector<AST::StructItem> {
        AST::StructItem("", TypeRef(TypeRef::TagUnsizedArray(), TypeRef(CORETYPE_U8)), false),
        });
}