SJFL

SJFL is a simple language for configuration files. SJFL is a (syntactically and semantically) superset of JSON and a (syntactically) subset of Python. That means you can parse JSON files using a SJFL parser, and use Python syntax highlighters for SJFL files.

It's not a general-purpose script language. It's intended for config files. That means it's not turing complete (it could be, but I don't think so).

Syntax

Statements

For now, statements are not implemented... at all!

Unlike Python, all the SJFL statements must be followed by a semi-colon.

Import system

All the SJFL files are pure functions. That means the files are always evaluated to the same value unless you modify the file (or a file it imports).

Examples

TODO

BSJFL

Everytime the engine parses a .sjfl file, it generates a binary version in the same directory, with .bsjfl extension. It reads .bsjfl next time if the raw text file has not been modified. It also re-parse the raw-text version if one of its dependency is modified.

Everything is done under the hood, and you don't have to care about it. You just modify .sjfl files, and do not touch .bsjfl files.

(TODO) All the binary conversions are done automatically. All you have to do is call execute_file function.