aboutsummaryrefslogtreecommitdiff
path: root/src/compile/loops.h
blob: a21b4254954878aab92696ba187eb23ab523eef0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// This file defines how to compile loops

#pragma once

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

Text_t compile_for_loop(env_t *env, ast_t *ast);
Text_t compile_repeat(env_t *env, ast_t *ast);
Text_t compile_while(env_t *env, ast_t *ast);
Text_t compile_skip(env_t *env, ast_t *ast);
Text_t compile_stop(env_t *env, ast_t *ast);