Fil language compiler (version in VERSION)
Have used figlet -f slant "Filc"
for the version message.
Refer to the diagram for used grammar.
All the external dependencies are listed in DEPENDENCIES.md
If you want to build and test the compiler, please follow the steps below.
# Configure CMake in build directory
cmake -B ./build -DCMAKE_BUILD_TYPE=Release
# Build
cmake --build ./build --target filc
# Install
sudo cmake --install ./build
# Configure CMake in build directory
cmake -B ./build -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=ON -DCODE_COVERAGE=ON
# Build
cmake --build ./build
# Run tests
cd build && ctest
# Get coverage
cd - && ./bin/coverage.sh
If during compilation you got a warning with a dev code, please open an issue on GitHub with the warning message and your code.
Dev warning are show like this :
DEV WARNING[<code>]: <message>
--> <filename>
<line> | <code>
| ^
Dev code | Meaning | File |
---|---|---|
2 | Lexer found a character that is not regular | src/lib/ast/CharacterLiteral.cpp |
3 | A function that should not be called has been called | Several files (refer to error message) |
These codes are for events that should not happen, but if they do, it's better to fix them.
Thanks to JetBrains for helping me develop this project by offering me an open source license