Commit graph

118 commits

Author SHA1 Message Date
Tiffany Bennett
0a5704b039 Improve showing definitions
Recursively resolves "alias" units, actually shows value in terms of
base units.
2016-08-24 12:36:17 -04:00
Tiffany Bennett
cd05875490 Add ℃ and ℉ keywords 2016-08-24 12:25:46 -04:00
Tiffany Bennett
cfeca70dc2 Rename some commonly confused units 2016-08-24 12:23:15 -04:00
Tiffany Bennett
b2a87e8dc6 Add some basic unit tests 2016-08-22 19:20:49 -04:00
Tiffany Bennett
b4f3d02539 Fix associativity of addition and subtraction 2016-08-22 17:11:02 -04:00
Tiffany Bennett
7158fe81e1 Remove vestigial frink definition parser 2016-08-22 15:03:26 -04:00
Tiffany Bennett
2d84daf064 Add dedicated date patterns file, improve dates
There is now a dedicated lexer for date literals, which handles ISO 8601
dates (with the T) properly now.

Parsing of date patterns is handled in date.rs now, instead of in unit_defs.rs.
2016-08-22 14:53:33 -04:00
Tiffany Bennett
b75e67f86c Compile in definitions.units by default
This makes the default compilation of rink invoke the secondary
licensing clause, which results in the binaries being under the GPL.

You can still use your own definitions.units - it will only use the
built in one if it can't find another.
2016-08-22 12:03:00 -04:00
Tiffany Bennett
3181e24e29 Switch to MPL 2016-08-22 10:46:22 -04:00
Tiffany Bennett
1e26f13bee Fix unevenly spaced = in definition output 2016-08-21 22:35:21 -04:00
Tiffany Bennett
0576611968 Merge branch 'gnu_units' 2016-08-21 22:32:40 -04:00
Tiffany Bennett
7169be2ef9 Fix regression with printing dimensionless values 2016-08-21 22:31:24 -04:00
Tiffany Bennett
ea3284f2b2 Update documentation to refer to definitions.units 2016-08-21 22:26:04 -04:00
Tiffany Bennett
4cbffea0ed Show definitions for single-unit queries 2016-08-21 22:16:28 -04:00
Tiffany Bennett
a5ddd614bc Add output of computed derived units
E.g. a calculation with a result of W^2 will show as 1 watt^2 = kg^2 m^4 / s^6
2016-08-21 21:25:49 -04:00
Tiffany Bennett
6432f0b864 Fix quantity conflicts 2016-08-21 15:28:42 -04:00
Tiffany Bennett
5413bd1a22 Add radiometric units 2016-08-21 11:20:58 -04:00
Tiffany Bennett
c9ad5d9ff0 Enable dimensionless primitive units 2016-08-21 10:55:44 -04:00
Tiffany Bennett
920fffe9ca Introduce quantity syntax to gnu units definitions 2016-08-21 10:50:26 -04:00
Tiffany Bennett
ef2362f6bc Fix precedence of / in GNU units 2016-08-21 09:53:14 -04:00
Tiffany Bennett
6aac7bab8c Run successfully off of definitions.units 2016-08-20 21:35:56 -04:00
Tiffany Bennett
5a679beba0 WIP out of order definition resolver 2016-08-20 20:03:02 -04:00
Tiffany Bennett
20e8e1adbd Impl Debug for Number 2016-08-20 20:02:38 -04:00
Tiffany Bennett
24f510f1f4 Implement gnu units parser 2016-08-20 17:00:26 -04:00
Tiffany Bennett
8db988c589 Implement tokenizer for GNU definitions.units 2016-08-20 15:11:27 -04:00
Tiffany Bennett
8d847e5930 Define subtraction of datetimes 2016-08-20 13:42:33 -04:00
Tiffany Bennett
6582ff4783 Add now for current datetime 2016-08-20 13:28:52 -04:00
Tiffany Bennett
af9d4d57ee Make prefixes optional in private message 2016-08-20 13:00:34 -04:00
Tiffany Bennett
8d635633b4 Fix display bug with square units in conversions 2016-08-19 20:24:30 -04:00
Tiffany Bennett
e1b7e3ab5e Improve output of factorization 2016-08-15 21:56:55 -04:00
Tiffany Bennett
e54edca635 Rename derivatives -> factorize; deduplicate 2016-08-15 21:24:57 -04:00
Tiffany Bennett
60b3fef18e Fix derivatives giving bad results 2016-08-15 21:04:55 -04:00
Tiffany Bennett
2e2c877bdb Add computation of unit derivatives 2016-08-15 19:39:03 -04:00
Tiffany Bennett
a85532d914 Add debug and more error checks to sandbox code 2016-08-15 14:05:54 -04:00
Tiffany Bennett
7fbf640b4b Add function call syntax 2016-08-14 23:39:40 -04:00
Tiffany Bennett
99d4f486fc Add common syntax aliases 2016-08-14 21:08:49 -04:00
Tiffany Bennett
717d8ccc2c Add Réaumur, Rømer, Delisle, and Newton scales 2016-08-14 19:12:11 -04:00
Tiffany Bennett
392431631b Fix incorrect division by zero check 2016-08-14 19:04:29 -04:00
Tiffany Bennett
aec9dad521 Implement suffixes for celsius and fahrenheit 2016-08-14 16:44:26 -04:00
Tiffany Bennett
a7e847781b Allow inline dimension definitions 2016-08-14 13:58:17 -04:00
Tiffany Bennett
56b990e968 Allow cross-origin requests to the web API 2016-08-14 12:19:37 -04:00
Tiffany Bennett
fb56fb9ecd Increase memory limit to 100MB, it was too low 2016-08-13 23:51:40 -04:00
Tiffany Bennett
f97b0f6311 Add sandboxing 2016-08-13 23:38:12 -04:00
Tiffany Bennett
f29ccdae8b Add really basic webserver 2016-08-13 21:57:46 -04:00
Tiffany Bennett
dddf6f6177 Fix hang in tokenizing for <<IMAGINARY_UNIT>> 2016-08-13 20:09:51 -04:00
Tiffany Bennett
74e4510e43 Fix hang in date literal parser 2016-08-13 19:24:28 -04:00
Tiffany Bennett
13eabf96c0 Fix hang in comment lexer 2016-08-13 18:51:26 -04:00
Tiffany Bennett
71f0950111 Add an = operator for custom units in conversions 2016-08-13 16:47:53 -04:00
Tiffany Bennett
bb1ca42174 Add optional dep on chrono-humanize 2016-08-12 20:55:22 -04:00
Tiffany Bennett
99ee3a3a46 Define DateTime +- seconds 2016-08-12 20:48:53 -04:00