A superset language of C++, designed specifically for fast-paced competitive programming. Tonic makes competing much faster to save those precious seconds, without sacrificing runtime speed.
Currently in early stages of development. So far the lexer, AST systems have been implemented, with parser and code generator remaining for a POC.
- Aims to be significantly less verbose than C++, geared towards competitions.
- Directly allows usage of C++ components.
- Low abstraction or overhead to keep runtime speed intact.
- Some competitive programming specific functionality including additional data structures, algorithms, tracing and debugging capabilities (in-progress).
- Since it compiles to C++ as a superset, the code can be directly used in competitions that support C++.
- Fast frontend and transpiler due to competitions.
Quick start
Full documentation
Currently, I'm working towards a working version of Tonic with minimal error handling. For instance, certain statements that are direct C++ equivalents are directly transferred to the codegen for C++ representation in the current implementation. This will change with time and traction.
WIP
WIP
WIP
WIP