-
-
Notifications
You must be signed in to change notification settings - Fork 85
/
xxl.scroll
42 lines (36 loc) · 1.15 KB
/
xxl.scroll
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
import ../code/conceptPage.scroll
id xxl
name xxl
appeared 2016
tags pl
writtenIn javascript c markdown bourne-shell vim-script bash
repoStats
firstCommit 2016
commits 715
committers 5
files 87
newestCommit 2020
example
// enclose (c)urly(b)races, (s)quare(b)brackets, (q)uotes:
'ecb is {"{",x,"}"}; 'esb is {"[",x,"]"}; 'eq is {"\"",x,"\""};
'jc is {join ","}; 'jac is {each y jc}; // join x with commas; apply y to each of x then join with commas
'pair is {encode,":",(y encode)}; // key:val pair for dict
'dict is {key as 'k; x val as 'v; [k],v >: pair jc ecb}; // get keys/vals, pair merge, commas, braces
// wrap non-scalar values in appropriate way:
'many is {as 'el type case ('char, {el str eq}, 'dict, {el dict}, {el jac encode esb})};
'encode is {ravel[many,str]}; // ravel calls x y[0] for arrays (len > 1), x y[1] for scalars
githubRepo https://github.com/tlack/xxl
firstCommit 2016
stars 175
forks 11
subscribers 21
created 2016
updated 2022
description a minimal vector programming language
issues 3
lineCommentToken //
hasLineComments true
// A comment
hasComments true
// A comment
hasSemanticIndentation false