A base compiler example, developed with Flex and Bison.
- Environment
- CI/CD
- Recommended Extensions
- Installation
Set the following environment variables to control and configure the behaviour of the application:
Name | Default | Description |
---|---|---|
LOG_IGNORED_LEXEMES |
true |
When true , logs all of the ignored lexemes found with Flex at DEBUGGING level. To remove those logs from the console output set it to false . |
LOGGING_LEVEL |
INFORMATION |
The minimum level to log in the console output. From lower to higher, the available levels are: ALL , DEBUGGING , INFORMATION , WARNING , ERROR and CRITICAL . |
You must install the clang
package containing the clang-tidy
and clang-format
executables and run the script/ubuntu/setup.sh
script.
This will activate a pre-commit githook that lints and checks formatting of the to-be commited files.
You might need to install the pkg-config
and libbsd-dev
packages if you don't have them already.
To trigger an automatic integration on every push or PR (Pull Request), you must activate GitHub Actions in the Settings tab. Use the following configuration:
Key | Value |
---|---|
Actions permissions | Allow all actions and reusable workflows |
Artifact and log retention | 30 days |
Fork pull request workflows from outside collaborators | Require approval for all outside collaborators |
Workflow permissions | Read repository contents and packages permissions |
Allow GitHub Actions to create and approve pull requests | false |
After integration is done, change the badges of this README.md
to point to the new repository.