Table of Contents
Tcalc is a simple computational programming language, which supports basic arithmetic operations, variables, and functions.
Tested on Linux, with following environment:
- Without
tl-expected: GCC 12+ or Clang 16+ with GNU++23 support - With
tl-expected: GCC 9+ or Clang 12+ with GNU++17 support
The project is based on meson and ninja, so you need to install them first.
If you want to build the project with tl-expected, you need to install it: tl-expected.
If you want to build tcalc_gui, you need to install Qt6.
- Clone the repository:
git clone https://github.com/Dessera/tcalc.git
cd tcalc- Use
mesonto build the project:
meson setup builddir
cd builddir
meson compileAvailable options:
-Dbuild_gui=enabled: Buildtcalc_gui-Duse_tl_expected=enabled: Build withtl-expectedrather thanstd::expected
- Install the product:
meson install --skip-subprojectsTemporarily REPL is available as a command line tool tcalc_repl.
Qt6-based GUI application tcalc_gui is also available.
For APIs, read the docs for more information.
- More built-in functions
- GUI application
-
importstatements - Logic operations
- User-defined functions (don't support recursion because no control flow statements)
- Variables (only support double numbers)
- Operator priority
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the LGPL-3.0 License. See COPYING and COPYING.LESSER for more information.
Dessera - @Dessera
Project Link: https://github.com/Dessera/tcalc