Fun 0.41.5
The programming language that makes You have fun
Loading...
Searching...
No Matches
parser.h
Go to the documentation of this file.
1/*
2 * This file is part of the Fun programming language.
3 * https://fun-lang.xyz/
4 *
5 * Copyright 2025 Johannes Findeisen <you@hanez.org>
6 * Licensed under the terms of the Apache-2.0 license.
7 * https://opensource.org/license/apache-2-0
8 */
9
14
15#ifndef FUN_PARSER_H
16#define FUN_PARSER_H
17
18#include "bytecode.h"
19
32
39Bytecode *parse_string_to_bytecode(const char *source);
40
51int parser_last_error(char *msgBuf, unsigned long msgCap, int *outLine, int *outCol);
52
53#endif
Definitions for the Fun VM bytecode: opcodes, instruction format, and bytecode container API.
Bytecode * parse_string_to_bytecode(const char *source)
Parse source from a provided string buffer (REPL/tests helper).
Definition parser.c:7714
int parser_last_error(char *msgBuf, unsigned long msgCap, int *outLine, int *outCol)
Retrieve information about the last parser error, if any.
Definition parser.c:7770
Bytecode * parse_file_to_bytecode(const char *path)
Parse a .fun source file and compile it into a bytecode chunk.
Definition parser.c:7529
Value path
Definition write_file.c:33