Procyon is a simple object notation. It's a little more than JSON and a lot less than YAML. For a quick introduction, see lang.pn.
Language | Source |
---|---|
C | src/c |
C++ | src/cpp |
Python | src/python |
There are eight Procyon types:
In addition to short form, the four vector types have a long form:
Procyon notation has a standard style and format. The pnfmt
tool will
automatically convert files to the standard style and rewrap strings for
readability.
usage: pnfmt [-i | -o OUT] [IN]
options:
-i, --in-place format file in-place
-o, --output=FILE write output to path
-h, --help show this help screen
pn2json converts Procyon to JSON, with a few conversions for unsupported types and values:
Procyon | JSON |
---|---|
inf |
1e999 |
nan |
null |
$0123 |
"0123" |
usage: pn2json [options] [FILE.pn]
options:
--traditional format JSON traditionally (default)
--comma-first format JSON with comma first
-m, --minify minify JSON
-r, --root print root string or data instead of JSON
-h, --help show this help screen
For | Source |
---|---|
lldb | misc/lldb |
pygments | misc/pygments |
vim | misc/vim |