280 Commits

Author SHA1 Message Date
ConnorSkees
26aabb42ad simplify declaration of meta fns 2020-04-30 18:31:55 -04:00
ConnorSkees
8a3ba1ae07 make lowercase in place where possible 2020-04-30 16:08:35 -04:00
ConnorSkees
fda95683ce simplify declaration of math fns 2020-04-30 15:48:54 -04:00
ConnorSkees
2d094490ba simplify declaraction of map fns 2020-04-30 15:18:54 -04:00
ConnorSkees
2eef3e9f6a store &'static str rather than String for builtin fn names 2020-04-30 15:00:57 -04:00
ConnorSkees
f2322dda4d simplify declaration of list functions 2020-04-30 14:47:07 -04:00
ConnorSkees
f4f4fe2e03 wrap match in Ok rather than all branches 2020-04-26 18:51:08 -04:00
ConnorSkees
680790c49a replace max_args! macro with builtin method 2020-04-22 06:17:52 -04:00
ConnorSkees
33ccabce7b box color in value 2020-04-21 18:54:19 -04:00
ConnorSkees
25e6151aa9 remove workaround for compiler regression 2020-04-21 18:28:46 -04:00
ConnorSkees
3805eaab2b clippy 2020-04-21 18:22:26 -04:00
ConnorSkees
52c6ed0b64 remove QuoteKind::Single variant 2020-04-18 13:19:30 -04:00
ConnorSkees
de78c1147a manually resolve some formatting issues 2020-04-17 13:06:54 -04:00
ConnorSkees
409fa3a1dd eval args to zip 2020-04-13 12:28:40 -04:00
ConnorSkees
62f9f7da4f integrate error handling with codemap 2020-04-12 19:37:12 -04:00
ConnorSkees
0ddabb5afd hsl/hsla 4 args special functions 2020-04-07 00:04:19 -04:00
ConnorSkees
6b817dcb24 hsl/hsla 3 args special functions 2020-04-06 23:38:17 -04:00
ConnorSkees
b17420e00b dont emit comma on one arg two channels special 2020-04-06 22:38:55 -04:00
ConnorSkees
203200ca4c emit rgba inside rgba for two args special 2020-04-06 22:35:07 -04:00
ConnorSkees
b545c162f5 two arg special function rgb/rgba 2020-04-06 22:33:12 -04:00
ConnorSkees
c95c69be4d avoid unwrapping in special functions rgb/rgba one arg green 2020-04-06 22:26:43 -04:00
ConnorSkees
65ba25e555 handle special functions in 1 arg rgb/rgba 2020-04-06 22:09:36 -04:00
ConnorSkees
b5a0957aa7 handle special functions in 3args rgba 2020-04-06 21:58:47 -04:00
ConnorSkees
97425665f9 consolidate implementation of rgb and rgba 2020-04-06 21:22:03 -04:00
ConnorSkees
ef282c5c18 consolidate inspect implementations 2020-04-06 00:27:09 -04:00
ConnorSkees
49aa66eb78 refactor max_args error message 2020-04-05 20:19:46 -04:00
ConnorSkees
355643f538 proper error message for builtin fn expecting 0 args 2020-04-05 18:46:19 -04:00
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