Luma 0.1.0
A low-level compiled alternative to C, C++, and more!
Loading...
Searching...
No Matches
Functions
array.c File Reference
#include "type.h"
Include dependency graph for array.c:

Functions

bool validate_array_type (AstNode *array_type, Scope *scope, ArenaAllocator *arena)
 
bool check_array_bounds (AstNode *array_type, AstNode *index_expr, ArenaAllocator *arena)
 
AstNodetypecheck_multidim_array_access (AstNode *base_type, AstNode **indices, size_t index_count, ArenaAllocator *arena)
 
TypeMatchResult check_array_compatibility (AstNode *type1, AstNode *type2)
 
bool validate_array_initializer (AstNode *declared_type, AstNode *initializer, Scope *scope, ArenaAllocator *arena)
 

Function Documentation

◆ check_array_bounds()

bool check_array_bounds ( AstNode array_type,
AstNode index_expr,
ArenaAllocator arena 
)

◆ check_array_compatibility()

TypeMatchResult check_array_compatibility ( AstNode type1,
AstNode type2 
)

◆ typecheck_multidim_array_access()

AstNode * typecheck_multidim_array_access ( AstNode base_type,
AstNode **  indices,
size_t  index_count,
ArenaAllocator arena 
)

◆ validate_array_initializer()

bool validate_array_initializer ( AstNode declared_type,
AstNode initializer,
Scope scope,
ArenaAllocator arena 
)

◆ validate_array_type()

bool validate_array_type ( AstNode array_type,
Scope scope,
ArenaAllocator arena 
)