blob: dad2a747dfca2ce1202a1a62ede4f741aee5ab07 (
plain)
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
|
ident(ä) operator(=) integer(42)
ident(print) ident(ä)
reserved(def) method(straße)operator(()ident(frühstück)operator(\))
ident(höhle)operator(()ident(frühstück)operator(\))
reserved(end)
reserved(alias) method(λ) method(lambda)
ident(×) operator(=) ident(λ)operator({) operator(|)ident(x)operator(,)ident(y)operator(|) ident(x)operator(*)ident(y)operator(})
ident(×)operator([)integer(2)operator(,)integer(3)operator(]) comment(# => 6)
comment(# Summe der ersten 10 Quadratzahlen)
reserved(def) method(∑) ident(enum)
ident(enum)operator(.)ident(inject)operator(()integer(0)operator(\)) operator({) operator(|)ident(sum)operator(,) ident(x)operator(|) ident(sum) operator(+) reserved(yield)operator(()ident(x)operator(\)) operator(})
reserved(end)
ident(∑)operator(()integer(1)operator(..)integer(10)operator(\)) operator({) operator(|)ident(x)operator(|) ident(x)operator(**)integer(2) operator(}) comment(# => 385)
comment(# mehr Mathematische Zeichen)
reserved(def) method(∞)operator(;) float(1.0) operator(/) float(0.0)operator(;) reserved(end)
reserved(def) method(π)operator(;) constant(Math)operator(::)constant(PI)operator(;) reserved(end)
operator(-)ident(∞) operator(..) integer(2)operator(*)ident(π) comment(# => -Infinity..6.28318530717959)
comment(# Azumanga Daioh Insider)
reserved(class) operator(<<) class(Osaka) operator(=) constant(Object)operator(.)ident(new)
reserved(def) method(ぁ!)
ident(sleep) ident(∞)
reserved(end)
reserved(end)
|