Skip to content

Latest commit

 

History

History
63 lines (55 loc) · 1.69 KB

README.md

File metadata and controls

63 lines (55 loc) · 1.69 KB

🍎 CadregaLisp 🍎


There are only two kind of people. Those who wants to write LISP in Brianzolo Dialect and those who lie.

Getting Started

Clone the repository on your machine and then run the make script

$ git clone [email protected]:micheleriva/cadregascript.git
$ cd cadregascript
$ make

Now you should be able to access the REPL

$ ./brambilla
🍎 ▶ (ciapa x 5)
🍎 ▶ (+ x 10)
15
🍎 ▶ (ciapa-che! x 10)
🍎 ▶ (= x 5)
#è minga vera
🍎 ▶ fèrmes

Grammar

Haskell Lisp Cadrega
True #t #è vera
False #f #è minga vera
let define ciapa
N/A? set! ciapa-che!
(+) + e
(-) - men
(*) * per
div / divis
mod % modul
quot quot quosient
rem rem rest
== = stess
< < minur
> > magiur
/= /= minga-istess
>= >= magiur-e-istess
<= <= minur-e-istess
&& && quindi
|| || senò
(==) string? lacc=?
(<) string<? lacc<?
(>) string>? lacc>?
(<?) string<=? lacc<=?
(>?) string>=? lacc>=?

License

MIT