diff --git a/README.md b/README.md index f3650f1..58adbed 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,9 @@ -# Leviator - -The opinionated programing language +
+ logo +

🐲 Leviator

+

The opinionated programing language

+

+
## Documentation @@ -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; @@ -145,7 +148,7 @@ foreach (a in lst) if (a == 2) { break; - } + }; }; ``` @@ -153,7 +156,7 @@ foreach (a in lst) ```c // Circular imports are not allowed -#"path/to/file.lvt" +import "path/to/file.lvt" ``` - **Entrypoint** @@ -173,6 +176,8 @@ a + b a - b a * b a / b +a == b +a != b ``` - **Structs** 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..52b8bd5 100644 --- a/lvtc/app/Main.hs +++ b/lvtc/app/Main.hs @@ -1,3 +1,10 @@ +{- +-- EPITECH PROJECT, 2023 +-- Leviator compiler +-- File description: +-- Main +-} + module Main (main) where import Lib diff --git a/lvtc/src/Lib.hs b/lvtc/src/Lib.hs index d36ff27..3af99b1 100644 --- a/lvtc/src/Lib.hs +++ b/lvtc/src/Lib.hs @@ -1,3 +1,10 @@ +{- +-- EPITECH PROJECT, 2023 +-- Leviator compiler +-- File description: +-- Lib +-} + module Lib ( someFunc ) where diff --git a/lvtc/test/Spec.hs b/lvtc/test/Spec.hs index cd4753f..c8cabca 100644 --- a/lvtc/test/Spec.hs +++ b/lvtc/test/Spec.hs @@ -1,2 +1,9 @@ +{- +-- EPITECH PROJECT, 2023 +-- Leviator compiler +-- File description: +-- Tests +-} + main :: IO () main = putStrLn "Test suite not yet implemented" 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"