Commit graph

449 commits

Author SHA1 Message Date
Tiffany Bennett
b2fc7f0c69 Parse integer hex and oct literals 2016-09-22 17:07:57 -04:00
Tiffany Bennett
d9ac005e86 Use numbers instead of string components in AST 2016-09-22 16:52:27 -04:00
Tiffany Bennett
d93a924eb3 Release 0.3.2 2016-09-20 13:29:16 -04:00
Tiffany Bennett
22c4e62aa6 Show YWDHMS instead of SI prefixes of time 2016-09-19 17:54:13 -04:00
Tiffany Bennett
72c03e3d28 Prevent one-unit conversions from parsing as lists 2016-09-19 17:00:00 -04:00
Tiffany Bennett
c538fd9435 Fix failed load after download of cached file 2016-09-19 16:09:25 -04:00
Tiffany Bennett
61f0bf2f7d Add cryptocurrency conversions from btc-e.com 2016-09-19 15:53:24 -04:00
Tiffany Bennett
44c9c9eb03 Add some debug prints to rink-irc 2016-09-18 22:42:21 -04:00
Tiffany Bennett
f2e288821a Remove 'k' common incorrect shorthand for kelvin 2016-09-17 15:21:33 -04:00
Tiffany Bennett
14f4e81cd3 Ununoctium typo 2016-09-16 14:56:44 -04:00
Tiffany Bennett
a5d4e30a0d Add atomic masses for Rutherfordium ... Ununoctium 2016-09-16 14:51:02 -04:00
Tiffany Bennett
96cc76279d Measure atomic mass units in g/mol (molar mass) 2016-09-16 14:32:07 -04:00
Tiffany Bennett
e8bbba082d Add unicode operator for conversions (→) 2016-09-16 14:19:11 -04:00
Tiffany Bennett
7bbfbd8ab5 Fix the currency conversions being backwards 2016-09-16 14:15:39 -04:00
Tiffany Bennett
06c6ae9c44 Currency units 2016-09-16 14:10:32 -04:00
Tiffany Bennett
471d70c3a8 Download and keep updated currency conversions 2016-09-16 12:40:13 -04:00
Tiffany Bennett
19214ae156 Allow much larger durations 2016-09-16 11:25:57 -04:00
Tiffany Bennett
428dde12c7 Fix several bugs and add features in date parser
Now supports 12-hour time, unpadded days, time on more patterns, AD/BC,
and ISO 8601 negative years.
2016-09-16 00:05:00 -04:00
Tiffany Bennett
721c95c218 Time offset conversions 2016-09-12 15:56:34 -04:00
Tiffany Bennett
57cba6e931 Add test for associativity of / 2016-09-11 11:37:56 -04:00
Tiffany Bennett
4b297c15ce Fix the viscosity quantity 2016-09-11 11:37:46 -04:00
Tiffany Bennett
a18a22f15e Release 0.3.1 2016-09-08 11:32:46 -04:00
Tiffany Bennett
bc3cd494cc Fix parsing of US$ 2016-09-07 17:17:16 -04:00
Tiffany Bennett
14873d1e57 Warn on unit conflicts, fix conflicts 2016-09-07 17:16:57 -04:00
Tiffany Bennett
eedb31245b Add comprehensive russian traditional measurements 2016-09-06 23:43:05 -04:00
Tiffany Bennett
3c5106d7e9 Fix typo in conformance errors 2016-09-06 22:42:59 -04:00
Tiffany Bennett
3e13779f81 Fix bug with prefixes of square/cubic units 2016-09-06 22:38:48 -04:00
Tiffany Bennett
ee3c22f3a9 Update readme 2016-09-06 22:18:34 -04:00
Tiffany Bennett
15865a85c0 Use more structured output from eval_outer 2016-09-06 18:14:02 -04:00
Tiffany Bennett
efaa414145 Add missing license headers 2016-09-06 15:38:49 -04:00
Tiffany Bennett
cdf67045b5 Put Value in its own file 2016-09-06 15:37:48 -04:00
Tiffany Bennett
0d612e3ae2 Add missing official derived units to decomposer 2016-09-05 20:45:30 -04:00
Tiffany Bennett
7e935b2aa5 Handle negative conversions correctly 2016-09-05 20:32:34 -04:00
Tiffany Bennett
2f795f6309 Error better on negations 2016-09-05 20:29:15 -04:00
Tiffany Bennett
233c9a4637 Apply prefixes to negative numbers as well 2016-09-05 20:17:10 -04:00
Tiffany Bennett
209110e465 Refactor number printing 2016-09-05 20:05:47 -04:00
Tiffany Bennett
4a9620b563 Show SI prefixes sometimes 2016-09-05 18:37:57 -04:00
Tiffany Bennett
b537e0a8c5 Suggest typo corrections 2016-09-05 16:30:13 -04:00
Tiffany Bennett
ce39db8e7d Allow some multi-word units, remove US-/UK- prefix
Accepts units like "survey foot" and "british mile" now, instead of the
previous solution, which was prefixes to adjust between international
and old units such as US- and UK-. These prefixes were confusing because
they could be used on anything, not just customary units of
length. USgallon makes no sense, for example, because it is multiplying
the volume of a gallon by the difference between a survey foot and an
international foot.
2016-09-04 13:49:48 -04:00
Tiffany Bennett
9e9665816c Allow constants in the right side of conversions 2016-09-02 20:26:32 -04:00
Tiffany Bennett
9e9fd65b9e Rename aliases to quantities to be more correct 2016-09-02 20:00:37 -04:00
Tiffany Bennett
513fe3dd4b Add numerous new quantities 2016-09-02 19:24:00 -04:00
Tiffany Bennett
e40f03b221 Fix failing tests 2016-09-02 11:33:35 -04:00
Tiffany Bennett
cb635da526 Unit def syntax for non-standalone prefixes 2016-09-02 11:31:42 -04:00
Tiffany Bennett
6200148277 Remove remaining hash maps
They were causing too much nondeterminism, just aren't worth the cost
2016-09-02 11:15:42 -04:00
Tiffany Bennett
072ef1f78e Add failing test for bad canonicalizations 2016-09-02 11:13:35 -04:00
Tiffany Bennett
aca16819e5 Add jerk, snap, crackle, and pop quantities 2016-09-01 22:31:07 -04:00
Tiffany Bennett
5c042ecd81 Upgrade linefeed to fix bug 2016-08-30 13:50:43 -04:00
Tiffany Bennett
788da27f09 Switch to linefeed 2016-08-30 11:13:09 -04:00
Tiffany Bennett
5ad0d7ff1c Add tab completion in repl 2016-08-30 10:25:59 -04:00