package scfg
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
OCaml library and executable to work with the scfg configuration file format
Install
dune-project
Dependency
Authors
Maintainers
Sources
0.4.tar.gz
sha256=4098b9d5d1facd20325332939d7167d54f6dd612e4915df5eebfda90eb027997
sha512=70bbb4d7ff41e165cd9b61b53bd554aba362bd51728dc3d366ce0fa0ed88dc68d58345d995188793a7220d7779eea4d5433257011a77c58e3f4498839544acf4
doc/README.html
scfg
scfg is an OCaml executable and library to work with the scfg configuration file format.
Installation
scfg can be installed with opam:
opam install scfgIf you don't have opam, you can install it following the how to install opam guide.
If you can't or don't want to use opam, consult the opam file for build instructions.
Quickstart
Using the library to parse a scfg file and reprint nicely:
open Scfg
let config =
match Parse.from_file "config.scfg" with
| Ok config -> config
| Error e -> begin
Format.eprintf "error: %s@." e;
exit 1
end
let () =
Format.printf "%a@." Pp.config configThe provided binary does exactly this. If you have the following config.scfg file:
name "a" "b b b" 'c' {
child1 "" "I'm léo"
child2 'nono'
}Running the binary on it will reprint it trying to make the output pretty:
$ scfg config.scfg
name a "b b b" c {
child1 "" "I'm léo"
child2 nono
}For more, have a look at the example folder, at the documentation or at the test suite.
About
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page