Skip to content

shareui/scl-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SCL

Structured Configuration Language: a typed, explicit configuration format with a stable C ABI library.

What it looks like

@scl 1

host: string = "localhost"
port: int @range(1, 65535) = 8080
debug: bool = false
tags: [string] = ["production", "v2"]

db: struct {
    url: string
    pool: int
} = {
    url = "postgres://localhost/app"
    pool = 10
}

Design

  • Every field has an explicit type
  • Invalid input is always a parse error, never a silent guess
  • One syntax, one parse result
  • Zero runtime dependencies in the core library

APIs

Docs

Building

Requires a C11+ compiler, a C++17+ compiler, and CMake 3.16+.

cmake -B build
cmake --build build

Public header: lib/include/scl.h.

License

See LICENSE.

About

Dynamic library of the configuration language SCL.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors