Skip to content

Project Zeta: full ZenScript syntax defined in antlr4.

License

Notifications You must be signed in to change notification settings

3TUSK/ZenScript.antlr

Repository files navigation

ZenScript.antlr

… is a formal (?), unofficial syntax definition of ZenScript written in Antlr4.

Currently, ZenScript.antlr is targeting CraftTweaker/ZenScript@b88317d.

Motivation

There has been some in-depth documentation about the actual syntax of ZenScript, such as the list of all tokens and the list of all operators. However, it is not sufficient to describe the correct syntax of ZenScript.
Oftentimes, syntax error such as missing a semi-colon or dangling bracket can even trick the ZenScript compiler to produce malformed byte-code due to some reasons. A formalized syntax of ZenScript will enable us to statically analyze any given ZenScript files so that these rather obvious error may be eliminated as soon as possible.
Sadly, there has not been any full documentation about the entire ZenScript syntax, which drives me to dig into the initial ZenScript implementation to extract it out.

About

Project Zeta: full ZenScript syntax defined in antlr4.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages