253 Commits

Author SHA1 Message Date
ConnorSkees
50778bd743 random with limit is 1<=n<=limit 2020-04-05 18:30:17 -04:00
ConnorSkees
d67fe948d6 implement builtin function unique-id 2020-04-05 18:20:58 -04:00
ConnorSkees
c8a59ea501 implement builtin function random 2020-04-05 13:42:53 -04:00
ConnorSkees
b7be1705a2 args and default values are lazily evaluated 2020-04-04 18:17:04 -04:00
ConnorSkees
24983b9d20 rustfmt 2020-04-04 14:13:17 -04:00
ConnorSkees
943299de74 better handling of $module in get-function 2020-04-04 12:45:30 -04:00
ConnorSkees
065f6515e9 disallow both css and module in get-function 2020-04-04 12:38:07 -04:00
ConnorSkees
051185e280 implement builtin function call() 2020-04-04 12:31:43 -04:00
ConnorSkees
c0eaf4c5f6 allow semicolon after closing brace 2020-04-04 03:00:38 -04:00
ConnorSkees
81c85a6f86 handle builtin functions in get-function 2020-04-03 23:49:44 -04:00
ConnorSkees
3f98d1abca initial implementation of get-function() 2020-04-03 21:38:34 -04:00
ConnorSkees
60c16de830 inspect([]) => [] 2020-04-03 16:53:45 -04:00
ConnorSkees
faa8951ee4 remove superfluous mut 2020-04-03 16:47:55 -04:00
ConnorSkees
24176bb1f0 initial implementation of zip 2020-04-03 15:54:59 -04:00
ConnorSkees
0f5ebdebf9 add todo note about index and unwrap 2020-04-03 14:38:22 -04:00
ConnorSkees
2d7f69e3da equality does unit conversions 2020-04-03 14:34:59 -04:00
ConnorSkees
f2bb6097dc index() with maps 2020-04-03 13:43:34 -04:00
ConnorSkees
f86d613374 better handling of single length lists in join 2020-04-02 18:43:48 -04:00
ConnorSkees
e7008cd7e8 handle non list separator in join() 2020-04-02 18:32:09 -04:00
ConnorSkees
31a19b5ecb handle maps in join() 2020-04-02 18:23:57 -04:00
ConnorSkees
a9230b7877 properly emit separator in join when both are under 2 length 2020-04-02 18:19:54 -04:00
ConnorSkees
dbf699a991 handle empty list separators in join 2020-04-02 18:16:59 -04:00
ConnorSkees
8718673519 bracketed parameter in join() 2020-04-02 18:04:44 -04:00
ConnorSkees
c7ff047e81 brackets in join 2020-04-02 17:44:37 -04:00
ConnorSkees
408fe6ff6b brackets in set-nth 2020-04-02 15:31:59 -04:00
ConnorSkees
c7fdf8eef3 maps in set-nth() 2020-04-02 15:28:35 -04:00
ConnorSkees
cba2b12771 handle maps in nth() 2020-04-02 15:22:18 -04:00
ConnorSkees
225894d0e9 handle brackets in append() 2020-04-02 15:12:13 -04:00
ConnorSkees
72bc9a46e3 implement builtin function index 2020-04-02 14:22:38 -04:00
ConnorSkees
ef1177ccca implement map-remove 2020-04-02 13:49:39 -04:00
ConnorSkees
8e3e23c6cd builtin functions take args by value 2020-04-02 13:45:14 -04:00
ConnorSkees
f9fc0ed8cb differentiate named and positional args 2020-04-02 12:28:28 -04:00
ConnorSkees
beff60ad31 clippy 2020-03-30 17:06:23 -04:00
ConnorSkees
9e3029dbfb better error messages for map-get and map-has-key 2020-03-30 16:41:00 -04:00
ConnorSkees
c8a21f3500 map-values returns a comma separated list 2020-03-30 16:21:00 -04:00
ConnorSkees
3621363e0e map-keys() returns a comma separated list 2020-03-30 16:14:42 -04:00
ConnorSkees
5e20f57ee0 () is treated as empty map 2020-03-30 16:10:02 -04:00
ConnorSkees
23f7301a25 implement length for maps 2020-03-30 16:01:44 -04:00
ConnorSkees
eb478b632d initial implementation of maps 2020-03-30 15:44:06 -04:00
ConnorSkees
c1ee84b6fc implement builtin function is-bracketed 2020-03-23 23:08:01 -04:00
ConnorSkees
d88342fd9b rustfmt 2020-03-23 23:06:05 -04:00
ConnorSkees
2705d79d1a str-slice by chars rather than bytes 2020-03-23 22:47:59 -04:00
ConnorSkees
f69bbb3b69 rustfmt 2020-03-23 22:13:11 -04:00
ConnorSkees
ae33efcc30 inspect for empty list returns () 2020-03-23 20:14:47 -04:00
ConnorSkees
981bf27cb8 properly parse and emit bracketed lists 2020-03-23 19:56:24 -04:00
ConnorSkees
b7492a8546 mixin-exists allows 2 args 2020-03-23 15:26:07 -04:00
ConnorSkees
81c5a34211 function-exists allows 2 args 2020-03-23 15:25:26 -04:00
ConnorSkees
4b529a1236 proper error messages in (mixin|function)-exists 2020-03-23 15:22:16 -04:00
ConnorSkees
68d2bc7e17 global variables feature-exists 2020-03-23 15:06:04 -04:00
ConnorSkees
0f310e9582 proper error message for non-string to feature-exists 2020-03-23 15:02:50 -04:00