Repository with the compiler/examples/documentation of TAPL (Tim's Awesome Programming Language).
Two compilers are created:
- compyler: the bootstrapping compiler, written in python
- compiler: the compiler written in TAPL, compiled using compyler
Install the poetry environment for the compyler by running:
poetry install
Currently working on the tokenizer and AST generator of the compyler TAPL compiler.
Run the following command to watch the tokenizer and AST generator using the unittests and example.tim
files in the test directory, and see the output of the tokenizing and AST generation step:
poetry run ptw
- fix open TODOs in
tokenizer.py
- add 0o / e number parsing
- make distinction between int and float/double numbers
- add additional expression stuff to the ast_generator
- add statements to the ast_generator
- start on adding typing support
- add language server
MIT License, Copyright (c) 2024 Tim Klein Nijenhuis [email protected]