Skip to content

Commit 2f57367

Browse files
authored
Merge pull request #3 from X-R-G-B/dev
Dev
2 parents 29060a1 + 58ec4d2 commit 2f57367

8 files changed

Lines changed: 62 additions & 8 deletions

File tree

README.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
# Leviator
2-
3-
The opinionated programing language
1+
<div>
2+
<img src="https://github.com/X-R-G-B/Leviator/assets/87119012/acc77ef3-b39f-4c40-b882-d7e0b0fdefb6" alt="logo" width="150" align="left">
3+
<h1>🐲 Leviator</h1>
4+
<p>The opinionated programing language</p>
5+
<br><br>
6+
</div>
47

58
## Documentation
69

@@ -12,21 +15,21 @@ The opinionated programing language
1215

1316
-- **Variables Declaration**
1417

15-
```python
18+
```hs
1619
@Int a = 1;
1720
@String b = "hello";
1821
```
1922

2023
-- **Variables Assignment**
2124

22-
```c
25+
```hs
2326
a = 1;
2427
b = "hello";
2528
```
2629

2730
- **Built-in Types**
2831

29-
```
32+
```hs
3033
@Bool a = True;
3134
@Bool b = False;
3235
@Int c = 1;
@@ -145,15 +148,15 @@ foreach (a in lst)
145148
if (a == 2)
146149
{
147150
break;
148-
}
151+
};
149152
};
150153
```
151154
152155
- **Imports**
153156
154157
```c
155158
// Circular imports are not allowed
156-
#"path/to/file.lvt"
159+
import "path/to/file.lvt"
157160
```
158161

159162
- **Entrypoint**
@@ -173,6 +176,8 @@ a + b
173176
a - b
174177
a * b
175178
a / b
179+
a == b
180+
a != b
176181
```
177182

178183
- **Structs**

lvtc/Setup.hs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,9 @@
1+
{-
2+
-- EPITECH PROJECT, 2023
3+
-- Leviator
4+
-- File description:
5+
-- Setup
6+
-}
7+
18
import Distribution.Simple
29
main = defaultMain

lvtc/app/Main.hs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
{-
2+
-- EPITECH PROJECT, 2023
3+
-- Leviator compiler
4+
-- File description:
5+
-- Main
6+
-}
7+
18
module Main (main) where
29

310
import Lib

lvtc/src/Lib.hs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
{-
2+
-- EPITECH PROJECT, 2023
3+
-- Leviator compiler
4+
-- File description:
5+
-- Lib
6+
-}
7+
18
module Lib
29
( someFunc
310
) where

lvtc/test/Spec.hs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,9 @@
1+
{-
2+
-- EPITECH PROJECT, 2023
3+
-- Leviator compiler
4+
-- File description:
5+
-- Tests
6+
-}
7+
18
main :: IO ()
29
main = putStrLn "Test suite not yet implemented"

lvtrun/app/Main.hs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
{-
2+
-- EPITECH PROJECT, 2023
3+
-- Leviator Run
4+
-- File description:
5+
-- Main
6+
-}
7+
18
module Main (main) where
29

310
import Lib

lvtrun/src/Lib.hs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
{-
2+
-- EPITECH PROJECT, 2023
3+
-- Leviator Run
4+
-- File description:
5+
-- Lib
6+
-}
7+
18
module Lib
29
( someFunc
310
) where

lvtrun/test/Spec.hs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,9 @@
1+
{-
2+
-- EPITECH PROJECT, 2023
3+
-- Leviator Run
4+
-- File description:
5+
-- Tests
6+
-}
7+
18
main :: IO ()
29
main = putStrLn "Test suite not yet implemented"

0 commit comments

Comments
 (0)