CMA Coach 7 tools
  • Kotlin 99.2%
  • TypeScript 0.8%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2025-02-21 15:29:10 +01:00
app Fix decimal formatting adding separators 2025-02-21 15:29:10 +01:00
buildSrc Upgrade nasty-jvm-util to K2 2024-09-25 00:19:42 +02:00
examples add exercises, fix token flattening, improve formatting 2024-09-25 00:14:43 +02:00
gradle Remove nasty-jvm-util dependency 2024-11-09 15:52:09 +01:00
intellij add exercises, fix token flattening, improve formatting 2024-09-25 00:14:43 +02:00
lsp Support rudimentary conversion of CMA and CMR files to cli projects 2025-02-21 12:28:43 +01:00
parser Fix decimal formatting adding separators 2025-02-21 15:29:10 +01:00
project Fix bug where different casing resulted in compiler crash 2025-02-21 12:54:15 +01:00
.gitattributes Initial commit 2023-10-07 16:30:40 +02:00
.gitignore Projects, better parser and lexer, etc. 2024-05-10 16:58:54 +02:00
.sdkmanrc Funny haha translation 2025-02-12 13:13:05 +01:00
build.gradle.kts Initial commit 2023-10-07 16:30:40 +02:00
gradle.properties Projects, better parser and lexer, etc. 2024-05-10 16:58:54 +02:00
gradlew Funny haha translation 2025-02-12 13:13:05 +01:00
gradlew.bat Initial commit 2023-10-07 16:30:40 +02:00
LICENSE.md Setup LICENSE and README 2023-10-07 16:47:26 +02:00
README.md Update readme 2024-05-13 13:07:18 +02:00
settings.gradle.kts Remove nasty-jvm-util dependency 2024-11-09 15:52:09 +01:00

coachtaal-tooling

Small monorepo that contains a lexer, parser, interpreter and compiler (to JVM bytecode / .class files) for the CMA Coach 7 language. It currently supports most standard library functions, supports English and Dutch, and supports a few procedures and statements. This project is intended to simplify and provide QOL features for Coach 7 modeling (which is a mandatory part of the Dutch Physics exam curriculum) by providing proper error logs and a programmable interface.

Speed

This implementation is, even though there are little to none optimizations used, significantly faster than the official Coach software. The interpreter is about 50-200x faster (depending on the model and the amount of iterations), and the compiler (excluding compile times) is 500-1500x faster (these figures are rough estimates based on measurements on my local computer, and should be taken with a grain of salt, but the order of magnitude should match).

Features

An item with a ticked checkbox is already implemented, otherwise, the item is still yet to be implemented.

  • Lexing the programs
  • Building a tree structure (for evaluation and analysis)
  • Validating the code
  • Multiple languages (Dutch and English)
  • Logging data (and converting to TSV/CSV)
  • Visually view the data (visualizer)
  • Compile to JVM bytecode (and dynamically loading and executing)
  • Do..while, repeat
  • Function and procedure definition and usage
  • LSP / IntelliJ plugin (partially)

Project Setup

  1. Clone this repository
  2. Run git submodule update --init --recursive
  3. Run ./gradlew build to build an artifact for every submodule

License

The Unlicense.