From 3a6fcba38869a348c9edf0f3fc62c4b5bb2010b6 Mon Sep 17 00:00:00 2001 From: Tenshi <87119012+TTENSHII@users.noreply.github.com> Date: Tue, 19 Dec 2023 15:37:16 +0100 Subject: [PATCH 1/5] enhance readme --- README.md | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index f3650f1..eda6100 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ -# Leviator - -The opinionated programing language +logo +

🐲 Leviator

+

The opinionated programing language

+
## Documentation @@ -12,21 +13,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; @@ -145,7 +146,7 @@ foreach (a in lst) if (a == 2) { break; - } + }; }; ``` @@ -173,6 +174,8 @@ a + b a - b a * b a / b +a == b +a != b ``` - **Structs** From 30655aa23a83911391434624b1ee1cbf28c58f68 Mon Sep 17 00:00:00 2001 From: Tenshi Date: Tue, 19 Dec 2023 15:47:29 +0100 Subject: [PATCH 2/5] add Epitech headers --- lvtc/Setup.hs | 7 +++++++ lvtc/app/Main.hs | 7 +++++++ lvtc/src/Lib.hs | 7 +++++++ lvtc/test/Spec.hs | 7 +++++++ 4 files changed, 28 insertions(+) diff --git a/lvtc/Setup.hs b/lvtc/Setup.hs index 9a994af..0eb08b0 100644 --- a/lvtc/Setup.hs +++ b/lvtc/Setup.hs @@ -1,2 +1,9 @@ +{- +-- EPITECH PROJECT, 2023 +-- Leviator +-- File description: +-- Setup +-} + import Distribution.Simple main = defaultMain diff --git a/lvtc/app/Main.hs b/lvtc/app/Main.hs index 4c6b30f..d2181d1 100644 --- a/lvtc/app/Main.hs +++ b/lvtc/app/Main.hs @@ -1,3 +1,10 @@ +{- +-- EPITECH PROJECT, 2023 +-- Leviator +-- File description: +-- Main +-} + module Main (main) where import Lib diff --git a/lvtc/src/Lib.hs b/lvtc/src/Lib.hs index d36ff27..030ba2b 100644 --- a/lvtc/src/Lib.hs +++ b/lvtc/src/Lib.hs @@ -1,3 +1,10 @@ +{- +-- EPITECH PROJECT, 2023 +-- Leviator +-- File description: +-- Lib +-} + module Lib ( someFunc ) where diff --git a/lvtc/test/Spec.hs b/lvtc/test/Spec.hs index cd4753f..b130491 100644 --- a/lvtc/test/Spec.hs +++ b/lvtc/test/Spec.hs @@ -1,2 +1,9 @@ +{- +-- EPITECH PROJECT, 2023 +-- Leviator +-- File description: +-- Tests +-} + main :: IO () main = putStrLn "Test suite not yet implemented" From b2810ef315ac37a8e026197d1fe53464ddcd6174 Mon Sep 17 00:00:00 2001 From: Tenshi Date: Tue, 19 Dec 2023 15:49:29 +0100 Subject: [PATCH 3/5] add compiler and run in headers --- lvtc/app/Main.hs | 2 +- lvtc/src/Lib.hs | 2 +- lvtc/test/Spec.hs | 2 +- lvtrun/app/Main.hs | 7 +++++++ lvtrun/src/Lib.hs | 7 +++++++ lvtrun/test/Spec.hs | 7 +++++++ 6 files changed, 24 insertions(+), 3 deletions(-) diff --git a/lvtc/app/Main.hs b/lvtc/app/Main.hs index d2181d1..52b8bd5 100644 --- a/lvtc/app/Main.hs +++ b/lvtc/app/Main.hs @@ -1,6 +1,6 @@ {- -- EPITECH PROJECT, 2023 --- Leviator +-- Leviator compiler -- File description: -- Main -} diff --git a/lvtc/src/Lib.hs b/lvtc/src/Lib.hs index 030ba2b..3af99b1 100644 --- a/lvtc/src/Lib.hs +++ b/lvtc/src/Lib.hs @@ -1,6 +1,6 @@ {- -- EPITECH PROJECT, 2023 --- Leviator +-- Leviator compiler -- File description: -- Lib -} diff --git a/lvtc/test/Spec.hs b/lvtc/test/Spec.hs index b130491..c8cabca 100644 --- a/lvtc/test/Spec.hs +++ b/lvtc/test/Spec.hs @@ -1,6 +1,6 @@ {- -- EPITECH PROJECT, 2023 --- Leviator +-- Leviator compiler -- File description: -- Tests -} diff --git a/lvtrun/app/Main.hs b/lvtrun/app/Main.hs index 4c6b30f..0726d58 100644 --- a/lvtrun/app/Main.hs +++ b/lvtrun/app/Main.hs @@ -1,3 +1,10 @@ +{- +-- EPITECH PROJECT, 2023 +-- Leviator Run +-- File description: +-- Main +-} + module Main (main) where import Lib diff --git a/lvtrun/src/Lib.hs b/lvtrun/src/Lib.hs index d36ff27..3f12ee2 100644 --- a/lvtrun/src/Lib.hs +++ b/lvtrun/src/Lib.hs @@ -1,3 +1,10 @@ +{- +-- EPITECH PROJECT, 2023 +-- Leviator Run +-- File description: +-- Lib +-} + module Lib ( someFunc ) where diff --git a/lvtrun/test/Spec.hs b/lvtrun/test/Spec.hs index cd4753f..4a02372 100644 --- a/lvtrun/test/Spec.hs +++ b/lvtrun/test/Spec.hs @@ -1,2 +1,9 @@ +{- +-- EPITECH PROJECT, 2023 +-- Leviator Run +-- File description: +-- Tests +-} + main :: IO () main = putStrLn "Test suite not yet implemented" From 80e3d46cb0c348575f382b70d27d443bb5860165 Mon Sep 17 00:00:00 2001 From: Tenshi <87119012+TTENSHII@users.noreply.github.com> Date: Tue, 19 Dec 2023 15:55:33 +0100 Subject: [PATCH 4/5] add newline after title in readme --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index eda6100..8a3444d 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,9 @@ -logo -

🐲 Leviator

-

The opinionated programing language

-
+
+ logo +

🐲 Leviator

+

The opinionated programing language

+

+
## Documentation From 8577a82e3724b019dfe56609494818dcfd0cc7e4 Mon Sep 17 00:00:00 2001 From: Tenshi <87119012+TTENSHII@users.noreply.github.com> Date: Tue, 19 Dec 2023 15:58:15 +0100 Subject: [PATCH 5/5] update include syntax --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8a3444d..58adbed 100644 --- a/README.md +++ b/README.md @@ -156,7 +156,7 @@ foreach (a in lst) ```c // Circular imports are not allowed -#"path/to/file.lvt" +import "path/to/file.lvt" ``` - **Entrypoint**