Project structure
The project is separeted in the follow sub-projects/assemblies
ParsingThis is a pretty simple and generic parser combinator library (i.e. a library supporting the creation of aand kind of text-based parsers)
Indipendent to the game or the unity engine
Parsing-TestAll the unit tests for the
Parsinglibrary
TO2The core of the TO2 language containing
Parser
Compiler
Which is done by parsing the script to an abstract syntax tree which then generates the IL-code via
System.Reflection.Emit
Bindings to the
coremoddule
Has a dependeny to the
ParsinglibraryIndipendent to the game or the unity engine
TO2-TestAll the unit tests for the
TO2library
KSP2RuntimeThe bindings to Kerbal Space Progam 2
This is the
kspmodule
Has a dependeny to the
TO2libraryAlso contains the
stdmodule and example scrips written in TO2 itselfOnly has dependencies to the game and the unity engine. Should remain indipendent to the modding framework
KSP2Runtime-TestAll the unit tests for the
KSP2Runtimelibrary
SpaceWarpModThe
SpaceWarpmod tying it all togetherHas a dependeny to the
KSP2Runtimelibrary… will most likely be replaced once there is an official mod loader