blob: 8dcaf2249431843fc9d60eb7511759b608bd36d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
Select syntax
=============
Goals:
- It should be obvious what happens, even if you don't know SLUL,
and preferably also if you don't know specific other languages
such as C, C++, Java, Javascript, Python, Perl, etc.
Syntax 1
--------
color = select is_open (true -> .green, false -> .red)
is_operator = select token (
.plus -> true,
.minus -> true,
.number -> false)
|