Files
rlox/README.org
T
2026-07-11 18:01:40 +02:00

1.0 KiB
Executable File

README

Syntax example:

funzione :: fn(parametro1: Number, parametro2: String): String do

end

Planning:

allora quello che devo fare è:

TODO Controllare se ho finito la questione del retourn:labe

TODO Complete the use os source slice inside parser (many node hase syntetic source slice or badly wrpapped)

TODO implement struct:

Cosa :: struct{
        field1: Number
}

TODO update lexer

TODO update ast

TODO update parser

TODO implement partial function …

cosa := Cosa{feld1: 42}
function :: fn(self:Cosa, b: Number) -> Number
res := function(cosa,44)

TODO … to undirectly create method

res := cosa.function(44);

TODO … to make pipeline

res := cosa |> function(44);

TODO Understand what is a type system

TODO implement struct method:

Cosa.new :: fn(field1: Number):Self #+begin_src do
         return Self{ field1 };
end;