Skip to content

Commit

Permalink
Merge pull request #3 from X-R-G-B/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
TTENSHII authored Dec 19, 2023
2 parents 29060a1 + 58ec4d2 commit 2f57367
Show file tree
Hide file tree
Showing 8 changed files with 62 additions and 8 deletions.
21 changes: 13 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Leviator

The opinionated programing language
<div>
<img src="https://github.com/X-R-G-B/Leviator/assets/87119012/acc77ef3-b39f-4c40-b882-d7e0b0fdefb6" alt="logo" width="150" align="left">
<h1>🐲 Leviator</h1>
<p>The opinionated programing language</p>
<br><br>
</div>

## Documentation

Expand All @@ -12,21 +15,21 @@ The opinionated programing language

-- **Variables Declaration**

```python
```hs
@Int a = 1;
@String b = "hello";
```

-- **Variables Assignment**

```c
```hs
a = 1;
b = "hello";
```

- **Built-in Types**

```
```hs
@Bool a = True;
@Bool b = False;
@Int c = 1;
Expand Down Expand Up @@ -145,15 +148,15 @@ foreach (a in lst)
if (a == 2)
{
break;
}
};
};
```
- **Imports**
```c
// Circular imports are not allowed
#"path/to/file.lvt"
import "path/to/file.lvt"
```

- **Entrypoint**
Expand All @@ -173,6 +176,8 @@ a + b
a - b
a * b
a / b
a == b
a != b
```

- **Structs**
Expand Down
7 changes: 7 additions & 0 deletions lvtc/Setup.hs
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
{-
-- EPITECH PROJECT, 2023
-- Leviator
-- File description:
-- Setup
-}

import Distribution.Simple
main = defaultMain
7 changes: 7 additions & 0 deletions lvtc/app/Main.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
{-
-- EPITECH PROJECT, 2023
-- Leviator compiler
-- File description:
-- Main
-}

module Main (main) where

import Lib
Expand Down
7 changes: 7 additions & 0 deletions lvtc/src/Lib.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
{-
-- EPITECH PROJECT, 2023
-- Leviator compiler
-- File description:
-- Lib
-}

module Lib
( someFunc
) where
Expand Down
7 changes: 7 additions & 0 deletions lvtc/test/Spec.hs
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
{-
-- EPITECH PROJECT, 2023
-- Leviator compiler
-- File description:
-- Tests
-}

main :: IO ()
main = putStrLn "Test suite not yet implemented"
7 changes: 7 additions & 0 deletions lvtrun/app/Main.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
{-
-- EPITECH PROJECT, 2023
-- Leviator Run
-- File description:
-- Main
-}

module Main (main) where

import Lib
Expand Down
7 changes: 7 additions & 0 deletions lvtrun/src/Lib.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
{-
-- EPITECH PROJECT, 2023
-- Leviator Run
-- File description:
-- Lib
-}

module Lib
( someFunc
) where
Expand Down
7 changes: 7 additions & 0 deletions lvtrun/test/Spec.hs
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
{-
-- EPITECH PROJECT, 2023
-- Leviator Run
-- File description:
-- Tests
-}

main :: IO ()
main = putStrLn "Test suite not yet implemented"

0 comments on commit 2f57367

Please sign in to comment.