An open API service indexing awesome lists of open source software.

https://github.com/zeankundev/loytik

Simple programming language made in c++. Compiler only code and docs
https://github.com/zeankundev/loytik

cpp interpreter language object-oriented programming-language simplelanguage

Last synced: 2 months ago
JSON representation

Simple programming language made in c++. Compiler only code and docs

Awesome Lists containing this project

README

          

# loytik
a small programming language made to entertain myself and being egotistical for me lol

## tutorial how2 compile it urself
u need these following in ur pc

- cmake
- either ninja or make
- gcc or msvc (gcc is recommended)
- a good and familiar knowledge of the terminal or cmd

### steps
1. git clone this repo
2. cd to the cloned repo
```
cd loytik
```
3. create a folder called build and cd to it
```
mkdir build && cd build
```
4. compile with cmake from the build directory
```
cmake ..
```
for those of u who are lazy ppls and want to compile with ninja, pass over the `-GNinja` flag

5. either with ninja or make, just type the command to start compilation
```
ninja
```

6. check the demo program on `source/app.lytk` for a demo. to execute it, simply run
```
./loyitik ../source/app.lytk
```
7. enjoy

**note:** to add loyitik to path on linux, simply cp the release or self-compiled to `/usr/bin` or `/usr/local/bin`

## build instructions for windows

to get install on windows, prepare the following:
- either cmd or powershell
- visual studio 2019 community
- > at the installation, check only **Desktop development with C++ (includes nmake)**
- cmake. [download it here.](https://github.com/Kitware/CMake/releases/download/v3.24.0-rc2/cmake-3.24.0-rc2-windows-x86_64.msi)
- git (bash or cmd)

### steps
1. git clone this repo and cd to it.
```
git clone https://github.com/zeankundev/loytik && cd loytik\
```
2. make a new folder called **build** and cd to it
```
mkdir build && cd loytik
```
3. run cmake either from cmd or powershell
```
cmake ..
```
4. run nmake (make is for unix systems, nmake is for windows systems)
```
nmake
```
5. then, have fun! to start launching a demo program, open loytik interpreter from cmd or powershell
```
loytik.exe ../source/app.lytk
```

# more features coming soon :)