|
Luma 0.1.0
A low-level compiled alternative to C, C++, and more!
|
#include <stdio.h>#include <stdlib.h>#include <string.h>#include <errno.h>#include <unistd.h>#include "../../c_libs/error/error.h"#include "../../helper/help.h"#include "formatter.h"
Functions | |
| void | write_indent (FormatterContext *ctx) |
| void | write_string (FormatterContext *ctx, const char *str) |
| void | write_newline (FormatterContext *ctx) |
| void | write_space (FormatterContext *ctx) |
| void | increase_indent (FormatterContext *ctx) |
| void | decrease_indent (FormatterContext *ctx) |
| void | format_node (FormatterContext *ctx, AstNode *node) |
| void | format_program (FormatterContext *ctx, Stmt *program) |
| void | format_type (FormatterContext *ctx, Type *type) |
| void | format_stmt (FormatterContext *ctx, Stmt *stmt) |
| void | format_expr (FormatterContext *ctx, Expr *expr) |
| bool | format_luma_code (const char *input_path, const char *output_path, FormatterConfig config, ArenaAllocator *allocator) |
| bool | check_formatting (const char *filepath, FormatterConfig config, ArenaAllocator *allocator) |
| void | print_usage (const char *program_name) |
Variables | |
| FormatterConfig | default_config |
| bool check_formatting | ( | const char * | filepath, |
| FormatterConfig | config, | ||
| ArenaAllocator * | allocator | ||
| ) |
| void decrease_indent | ( | FormatterContext * | ctx | ) |
| void format_expr | ( | FormatterContext * | ctx, |
| Expr * | expr | ||
| ) |
| bool format_luma_code | ( | const char * | input_path, |
| const char * | output_path, | ||
| FormatterConfig | config, | ||
| ArenaAllocator * | allocator | ||
| ) |
| void format_node | ( | FormatterContext * | ctx, |
| AstNode * | node | ||
| ) |
| void format_program | ( | FormatterContext * | ctx, |
| Stmt * | program | ||
| ) |
| void format_stmt | ( | FormatterContext * | ctx, |
| Stmt * | stmt | ||
| ) |
| void format_type | ( | FormatterContext * | ctx, |
| Type * | type | ||
| ) |
| void increase_indent | ( | FormatterContext * | ctx | ) |
| void print_usage | ( | const char * | program_name | ) |
| void write_indent | ( | FormatterContext * | ctx | ) |
| void write_newline | ( | FormatterContext * | ctx | ) |
| void write_space | ( | FormatterContext * | ctx | ) |
| void write_string | ( | FormatterContext * | ctx, |
| const char * | str | ||
| ) |
| FormatterConfig default_config |