- Notifications
You must be signed in to change notification settings - Fork0
Project Zeta: full ZenScript syntax defined in antlr4.
License
3TUSK/ZenScript.antlr
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
… is a formal (?), unofficial syntax definition ofZenScript written inAntlr4.
Currently, ZenScript.antlr is targetingCraftTweaker/ZenScript@b88317d.
There has been some in-depth documentation about the actual syntax of ZenScript, such asthelist of all tokens andthe list of all operators. However, it is not sufficientto describe the correct syntax of ZenScript.
Oftentimes, syntax error such as missing a semi-colon or dangling bracket can even trick theZenScript compiler to produce malformed byte-code due to some reasons. A formalized syntax ofZenScript will enable us to statically analyze any given ZenScript files so that these ratherobvious error may be eliminated as soon as possible.
Sadly, there has not been any full documentation about the entire ZenScript syntax, which drivesme to dig into the initial ZenScript implementation to extract it out.