aboutsummaryrefslogtreecommitdiff
path: root/src/compile/assignments.h
blob: 94de05e3636647198808390ea42c4fa169a5e45b (plain)
1
2
3
4
5
6
7
8
9
10
11
// This file defines how to compile assignments
#pragma once

#include "../ast.h"
#include "../environment.h"
#include "../stdlib/datatypes.h"

Text_t compile_update_assignment(env_t *env, ast_t *ast);
Text_t compile_assignment(env_t *env, ast_t *target, Text_t value);
Text_t compile_assignment_statement(env_t *env, ast_t *ast);
Text_t compile_lvalue(env_t *env, ast_t *ast);