Luma 0.1.0
A low-level compiled alternative to C, C++, and more!
Loading...
Searching...
No Matches
Functions
ast_utils.c File Reference
#include <stdio.h>
#include <string.h>
#include "../c_libs/color/color.h"
#include "ast.h"
#include "ast_utils.h"
Include dependency graph for ast_utils.c:

Functions

const char * node_type_to_string (NodeType type)
 
const char * binop_to_string (BinaryOp op)
 
const char * unop_to_string (UnaryOp op)
 
const char * literal_type_to_string (LiteralType type)
 
void print_prefix (const char *prefix, bool is_last)
 
void print_ast (const AstNode *node, const char *prefix, bool is_last, bool is_root)
 

Function Documentation

◆ binop_to_string()

const char * binop_to_string ( BinaryOp  op)

◆ literal_type_to_string()

const char * literal_type_to_string ( LiteralType  type)

◆ node_type_to_string()

const char * node_type_to_string ( NodeType  type)

◆ print_ast()

void print_ast ( const AstNode node,
const char *  prefix,
bool  is_last,
bool  is_root 
)

◆ print_prefix()

void print_prefix ( const char *  prefix,
bool  is_last 
)

◆ unop_to_string()

const char * unop_to_string ( UnaryOp  op)