https://github.com/farkon00/cont
Cont is a compiled statically-typed object oriented concatenative programming language written in Python
https://github.com/farkon00/cont
compiler concatinative object-oriented programming-language python stack-based
Last synced: 6 days ago
JSON representation
Cont is a compiled statically-typed object oriented concatenative programming language written in Python
- Host: GitHub
- URL: https://github.com/farkon00/cont
- Owner: farkon00
- License: mit
- Created: 2022-05-26T17:09:03.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-09-15T08:23:53.000Z (over 1 year ago)
- Last Synced: 2024-09-15T11:09:42.016Z (over 1 year ago)
- Topics: compiler, concatinative, object-oriented, programming-language, python, stack-based
- Language: Python
- Homepage:
- Size: 757 KB
- Stars: 18
- Watchers: 3
- Forks: 3
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Cont
[](https://farkon00.github.io/cont)
__Cont__ is a compiled statically-typed concatenative programming language,
that has elements of OOP, is written in Python and is inspired by [Porth](https://gitlab.com/tsoding/porth).
## Where did the name come from
From word concatinative.
How have I come up with that specific word?
I just mixed beginning of that word and tried to come up with something, that sounds good.
# Quick Start
```bash
$ python3 -V
Python >=3.10
$ git clone https://github.com/farkon00/cont.git
$ cd cont
# Install fasm with your package manager, nodejs and wabt (https://github.com/WebAssembly/wabt) for testing wasm
$ sudo apt install fasm nodejs wabt
$ python3 -m pip install pytest
$ pytest test.py
$ python3 cont.py .cn -r
```
# Examples
You can find examples on how to use the language in the `tests` or `examples` folders or
in the standard library source, which can be found in the `std` directory.
Please note that tests are contained in one file, so the only part of the test file,
which contains cont code is the first one, before the first occurence of a line
that contains a single colon symbol and nothing else.