Hash :
3f3e159f
Author :
Thomas de Grivel
Date :
2024-02-15T11:59:48
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
quote %GL.Object{}
quote %GL.Sphere{}
dlopen("../libc3/window/.libs/libc3_window_debug.so.0.0")
dlopen("libc3/window/.libs/libc3_window_debug.dylib")
dlopen("libc3/window/sdl2/.libs/libc3_window_sdl2_debug.dylib")
quote %GL.Sphere{}
do
123
456
789
end
123/
234
123/123
123/ 123
do
1
1 + 1
2 + 2
end
hello = fn (name) { "Hello, #{name} !" }
m = macro (name) { "Hello, #{name} !" }
m(plop)
m(:plop)
m("plop")
m = macro (x) { quote 1 + unquote x }
plop = 2
m(plop)
name = "Thomas"
m = macro (x) { quote 1 + unquote x }
m(name)
name
name = "Thomas"
m = macro (x) { quote 1 + unquote x }
m(name)
name = "Thomas"
m = macro (x) { quote 1 + unquote x }
m(name)
name = "Thomas"
m = macro (x) { quote 1 + unquote x }
m(name)
name
^a = ^a
^a = ^1
^ a = ^ 1
^ a = 1
a = 1
^ a = 1
^ a
m = macro (name) { "Hello, " + name + " !" }
m("123")
m = macro (name) { quote "Hello, " + name + " !" }
m("123")
m = macro (name) { quote "Hello, " + name + " !" }
m("123")
if(true, 1, 2)
if(false, 1, 2)
if(false, 1 + 1, 2 + 2)
if(true, 1 + 1, 2 + 2)
1 + 1
1 + 100000000000000000000000000000000000000
hello = fn (name) { "Hello, #{name} !" }
hello("Guillaume")
m = macro (name) { quote "Hello, " + name + " !" }
m("123")
if(true, 1, 2)
%{name: "Guillaume", food: "sushis"}
user = %{name: "Guillaume", food: "sushis"}
greet = fn (%{name: n, food: f}) do
"Hello, #{n}, do you want a #{f} ?"
end
u
user2A
greet(user)
greet = fn (%{name: name, food: food}) do
"Hello, #{name}, do you want a #{food} ?"
end
greet(user)
g = user
g = ^ user
g
l = %{name: "Labrass", food: "fondue"}
greet(user)
greet(l)
greet(g)
[g, l]
List.map(greet, [g, l])
List.map([g, l], greet)
List.reverse(List.map([g, l], greet))
List.reverse([1, 2, 3])
123 & 123
123 | 123
123 bor 123
123 bor 0
List.reverse([1, 2, 3])
dlopen("libc3/window/.libs/libc3_window_debug.so")
dlopen("libc3/window/sdl2/.libs/libc3_window_sdl2.so")
%GL.Object{}