Skip to content
/ tapl Public

Tim's Awesome Programming Language - Including the Compilers

License

Notifications You must be signed in to change notification settings

HetorusNL/tapl

Repository files navigation

TAPL

Repository with the compiler/examples/documentation of TAPL (Tim's Awesome Programming Language).

Information

Two compilers are created:

  • compyler: the bootstrapping compiler, written in python
  • tapl/taplc/compiler: the compiler/REPL written in TAPL, compiled using compyler

Usage

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 the example .tim files in the test directory, and see the output of the tokenizing and AST generation step:

poetry run ptw

Run the following command to compile and run the example with the currently implemented functionality:

poetry run python -m src.compilers.compyler examples/current_functionality.tim

Run the following command to compile and execute any tim file:

poery run python -m src.compilers.compyler /path/to/file.tim

TODO

Ideas

  • add public/private to classes, functions
  • make everything private by default (classes, functions, members)
  • implicit "python modules' class imports", example:
    • modules/some_module.tim: class SomeModule: // blabla
    • file.tim: from module import SomeModule

FAQ

License

MIT License, Copyright (c) 2025 Tim Klein Nijenhuis [email protected]

About

Tim's Awesome Programming Language - Including the Compilers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages