23 Commits

Author SHA1 Message Date
ConnorSkees
62f9f7da4f integrate error handling with codemap 2020-04-12 19:37:12 -04:00
ConnorSkees
50778bd743 random with limit is 1<=n<=limit 2020-04-05 18:30:17 -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
81c85a6f86 handle builtin functions in get-function 2020-04-03 23:49:44 -04:00
ConnorSkees
8e3e23c6cd builtin functions take args by value 2020-04-02 13:45:14 -04:00
ConnorSkees
dcb712e3d4 Refactor unit conversions into separate file 2020-03-19 16:24:31 -04:00
ConnorSkees
51585235c3 Remove decl! macro
This lets rustfmt work and gives better autocomplete and error messages
inside builtin functions.
2020-03-16 10:35:38 -04:00
ConnorSkees
276134eb93 prefer hashmap over btreemap where ordering is unimportant 2020-03-03 19:51:02 -05:00
ConnorSkees
53861ccb0d clippy 2020-02-22 17:57:13 -05:00
ConnorSkees
23b90aa97e Use remove() rather than .get() to avoid a clone 2020-02-16 22:04:54 -05:00
ConnorSkees
908104ec1c Properly implement percentage() error messages 2020-02-16 18:26:57 -05:00
ConnorSkees
26b0f2c998 Add max_args! to most functions 2020-02-16 18:18:57 -05:00
ConnorSkees
9626cbc55f Improved error messages for math functions 2020-02-16 18:10:56 -05:00
ConnorSkees
d300cd046a Use SassError over Option inside builtins 2020-02-16 10:14:17 -05:00
ConnorSkees
35ed667f16 Implement builtin function comparable() 2020-02-15 08:16:17 -05:00
ConnorSkees
f7351e1458 Implement builtin function abs() 2020-02-14 12:30:48 -05:00
ConnorSkees
0ec2c46744 rustfmt 2020-02-09 18:28:24 -05:00
ConnorSkees
40e1e554c7 Implement builtin functions ceil() and floor() 2020-02-09 16:14:24 -05:00
ConnorSkees
116bb43bd5 Implement builtin function round() 2020-02-09 16:10:32 -05:00
ConnorSkees
405a1c2d42 Implement mul and div for Value and builtin function percentage() 2020-02-09 16:05:07 -05:00
ConnorSkees
c7f34f573f newlines in builtin files 2020-02-02 21:09:29 -05:00
ConnorSkees
1c4ad8a7fa Builtin function boilerplate 2020-02-02 18:05:36 -05:00