This repository has been archived on 2026-03-01. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
v2/build.c

43 lines
667 B
C
Executable File

#if 0
set -eou
if [[ ! -v OUTPUT ]]; then
OUTPUT=solstice
fi
gcc "$0" -o "$OUTPUT"
if not [ $# -lt 1 ]; then
exec "./$OUTPUT" "$@"
fi
exit
#endif
// Solstice unity build C file
// To build: ./build.c
// Options:
// ./build.c (args)
// Builds Solstice, and runs the outputted executable
// with the provided args.
//
// Use the following environment variables to change
// the behaviour of the program:
// OUTPUT: name of the outputted program (defaults
// to "solstice")
// -- LEXER --
#include "src/lexer/SolsType.c"
#include "src/lexer/lexer.c"
// -- PARSER --
// -- CODEGEN --
// -- MAIN --
#include "src/main.c"