JsonPatcher Docs
This website documents v2 of the JsonPatcher language and standard library. Users of v1 should consider using the old wiki instead. This page is primarily targeted for people who already have some programming experience and may be difficult to follow otherwise.
The language is a pretty standard c-like language with a few unique features. You can check out some examples in the test mod for some examples of what the language looks like and how to use it. This wiki mostly contains information on how individual language features work.
Before using the mod I recommend reading the IDE support page.
It includes information on how to set up a VSCode extension for JsonPatcher,
which will help tremendously with writing patches.
To create your first patch, check out the Creating a Patch page.
After that you'll want to learn more about the language.
Some pages that are a good place to start are:
- Structure explains the general structure of programs in the language and defines terms that are used throughout the wiki.
- Types explains the different types in the language and how they work.
- Operators explains the different operators in the language. They differ somewhat from other languages, so it's good to know how they work.
- Root Object explains the root object and how it's used. This is an important concept in the JsonPatcher that's not common elsewhere.
- Variables explains how variables are used.
You might also want to read up on the symbol pages to see what functions are available, as well as Statements to see the syntax for different statements.