Skip to content

TwinIsland/Canfig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

25826c9 · Oct 7, 2024

History

48 Commits
May 13, 2024
May 2, 2024
Jun 12, 2024
May 2, 2024
May 26, 2024
May 3, 2024
May 1, 2024
May 3, 2024
May 3, 2024
May 26, 2024
May 2, 2024
May 10, 2024
May 10, 2024
May 26, 2024
Oct 7, 2024
May 26, 2024
May 3, 2024
May 13, 2024

Repository files navigation

Canfig: Strongly Validated Configuration Language

WARNING: This version supports UNIX-based systems only. Windows users should use WSL.

Canfig is a robust configuration language designed for developers who need precise control and validation of their application settings. The language supports a structured approach to defining, compiling, and deploying configuration settings, making it ideal for both development and production environments.

Test

Step 1: Create Canfig Definition File (.cand)

Start by defining your configuration schema in a .cand file. For the syntax and rules, refer to the Grammar Documentation. Additionally, enhance your development experience with our simple syntax highlighter plugin for VSCode, available here: canfig-0.0.1.vsix

Step 2: Compile the Definition

Pre-request: Unix-like System, OCaml, Make, Python3

Compile your .cand file into a .candy executable configuration using our Python-based compiler:

python3 compiler.py sample/sample.cand

Step 3: Evaluate the Candy

there is a comprehensive test case inside the evaluator, so, to evaluate/test, just run:

python3 canfig.py sample/sample.candy

About

validation-oriented configuration language

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published