diff options
author | Juan J. Martinez <jjm@usebox.net> | 2022-09-09 17:04:00 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2022-09-09 17:04:00 +0100 |
commit | b2cc17cf26e4ee5e327fcbc92fd597ecb15cb75b (patch) | |
tree | 0854216e80c920fc8f26b11d15574465fc792cc7 | |
parent | d24d92034ea278750668daff810147e0aec9dc04 (diff) | |
download | micro-lang-hs-b2cc17cf26e4ee5e327fcbc92fd597ecb15cb75b.tar.gz micro-lang-hs-b2cc17cf26e4ee5e327fcbc92fd597ecb15cb75b.zip |
Officially calling it just micro
-rw-r--r-- | CHANGELOG.md | 2 | ||||
-rw-r--r-- | README.md | 10 | ||||
-rw-r--r-- | language.md | 4 | ||||
-rw-r--r-- | micro.cabal (renamed from micro2.cabal) | 10 |
4 files changed, 13 insertions, 13 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 5601c33..0479a1e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -# Revision history for micro2 +# Revision history for micro ## 0.1.0.0 -- YYYY-mm-dd @@ -1,8 +1,8 @@ -# Micro2 +# Micro This is not necessarily related to [Micro](https://git.usebox.net/micro-lang/about/), but I couldn't find a better name. -Micro2 is a small statically typed toy programming language. +Micro is a small statically typed toy programming language. Objectives: @@ -28,14 +28,14 @@ Currently the compiler uses parsec (Monadic parser combinators) following this p * Backend - Generator: emit intermediate code for the target (e.g. ASM files); (maybe) Intermediate representation -For updates, please check [micro2 website](https://git.usebox.net/micro2-lang/about/). +For updates, please check [Micro website](https://git.usebox.net/micro2-lang/about/). ## How to build it Requires Haskel and Cabal: ``` -cabal run micro2 +cabal run micro ``` To run the tests use: @@ -50,7 +50,7 @@ TODO ### How does it look like? -This is an example of a micro2 program: +This is an example of a Micro program: ``` def fib(n: u16): u16 { diff --git a/language.md b/language.md index 4044ad1..2354ae5 100644 --- a/language.md +++ b/language.md @@ -39,7 +39,7 @@ TODO: entry point; `main` to be C compatible? ## Modules -A `micro2` file must start with the module name. +A Micro file must start with the module name. ``` # our main module (this is a comment) module main @@ -354,7 +354,7 @@ TODO: a zero ended array of u8 with special initializers ## Operators -Micro2 uses the same operators and almost the same operator precedence as C, from more to less priority: +Micro uses the same operators and almost the same operator precedence as C, from more to less priority: ``` ! - ~ diff --git a/micro2.cabal b/micro.cabal index 01c83f3..b62f751 100644 --- a/micro2.cabal +++ b/micro.cabal @@ -1,8 +1,8 @@ cabal-version: 2.4 -name: micro2 +name: micro version: 0.1.0.0 -synopsis: Micro2 toy programming language +synopsis: Micro toy programming language homepage: https://git.usebox.net/micro2-lang/about/ license: GPL-3.0-or-later @@ -45,17 +45,17 @@ test-suite tests , mtl ^>= 2.2.2 , containers ^>= 0.6.5.1 , HUnit - , micro2 + , micro hs-source-dirs: test default-language: Haskell2010 -executable micro2 +executable micro main-is: Main.hs build-depends: base ^>= 4.16.1.0 , containers ^>= 0.6.5.1 , mtl ^>= 2.2.2 - , micro2 + , micro hs-source-dirs: app default-language: Haskell2010 |