wip:
Add type system and refator for having only epression
This commit is contained in:
Executable
+36
@@ -0,0 +1,36 @@
|
||||
#+title: README
|
||||
|
||||
* Syntax example:
|
||||
#+begin_src
|
||||
funzione :: fn(parametro1: Number, parametro2: String): String do
|
||||
|
||||
end
|
||||
#+end_src
|
||||
|
||||
* Planning:
|
||||
allora quello che devo fare è:
|
||||
** TODO Controllare se ho finito la questione del retourn:labe
|
||||
** TODO implement struct:
|
||||
#+begin_src rlox
|
||||
Cosa :: struct{
|
||||
field1: Number
|
||||
}
|
||||
#+end_src
|
||||
*** TODO update lexert
|
||||
*** TODO update ast
|
||||
*** TODO update parser
|
||||
** TODO implement partial function ...
|
||||
#+begin_src rlox
|
||||
cosa := make(Cosa, feld1: 42)
|
||||
function :: fn(self:Cosa, b: Number) -> Number
|
||||
res := function(cosa,44)
|
||||
#+end_src
|
||||
*** TODO ... to undericlty create method
|
||||
#+begin_src rlox
|
||||
res := cosa.function(44)
|
||||
#+end_src
|
||||
*** TODO ... to make pipeline
|
||||
#+begin_src rlox
|
||||
res := cosa |> function(44)
|
||||
#+end_src
|
||||
** TODO Understand what is a type system
|
||||
Reference in New Issue
Block a user