/* SPDX-License-Identifier: copyleft-next-0.3.1 */ /* Copyright 2024 Kim Kuparinen < kimi.h.kuparinen@gmail.com > */ #ifndef FWD_COMPILER_H #define FWD_COMPILER_H /** * @file compiler.h * * Top level compiler. */ #include /** * Compile a root file. * A root file is a file given on the command line, and is assumed to * create a file tree that eventually results in a binary. * * @param file Root file to compile. * @return \c 0 if compilation was succesful, otherwise some non-zero value. */ int compile(const char *input); struct scope *compile_file(const char *file); #endif /* FWD_COMPILER_H */