Commit Graph

  • 539568c5b5 Added unit of power Kasper 2020-01-11 04:46:43 +01:00
  • 0758611dfb Added lexing of energy and speed units Kasper 2020-01-11 04:31:30 +01:00
  • 0d90173d7a Added some dev instructions to README Kasper 2020-01-10 22:54:08 +01:00
  • 5385c3ac56 Slightly changed values for calories, kilocalories and BTU Kasper 2020-01-10 21:38:55 +01:00
  • 35043932d5 Fixes/additions for lexing units Kasper 2020-01-10 17:45:06 +01:00
  • 83fd5c233a Added support for all units in lexer Kasper 2020-01-10 17:31:38 +01:00
  • e4a9996880 Added units of energy, speed, information (bytes etc) Kasper 2020-01-10 17:26:50 +01:00
  • fbbb895c64 Greatly improved parsing of multi-word units Kasper 2020-01-09 23:01:31 +01:00
  • 80aacc6493 Made the "Answer" struct a generic struct "Number" Kasper 2020-01-09 20:58:45 +01:00
  • d428546ecf Added temperature units Kasper 2020-01-09 15:10:04 +01:00
  • f1095ca8de Much DRYer units.rs, testing change Kasper 2020-01-09 15:09:02 +01:00
  • 93e80e6f76 Removed unnecessary adding of () around input Kasper 2020-01-08 19:51:52 +01:00
  • a0014f9afc Added area, volume, mass units Kasper 2020-01-08 19:33:51 +01:00
  • 6ac025850d Added implicative multiplication, like 2pi Kasper 2020-01-06 18:50:33 +01:00
  • 73823cbbce Lowered precedence of unary minus operator (-10% now works) Kasper 2020-01-05 18:14:28 +01:00
  • 1e00714cf0 Sped up sin/cos/tan by calculating factorials using match statement Kasper 2019-12-28 06:34:53 +01:00
  • 26992c9e32 Evaluation of sin, cos, tan Kasper 2019-12-28 06:31:50 +01:00
  • 1e541b8313 Fixed evaluation of exponents Kasper 2019-12-28 01:59:29 +01:00
  • a0b7a7cdf5 Performance improved for sqrt, cbrt, factorial Kasper 2019-12-28 00:37:40 +01:00
  • de99482c98 Evaluation of sqrt, cbrt Kasper 2019-12-26 04:25:03 +01:00
  • ce74ce83a0 Evaluation of round, ceil, floor, abs Kasper 2019-12-25 23:58:50 +01:00
  • ec5b3371fc Evaluation of negative numbers Kasper 2019-12-25 23:56:43 +01:00
  • f38e63c5a7 Evaluation of log, ln, exp Kasper 2019-12-25 23:29:53 +01:00
  • 77e359e182 Evaluation of pi, e Kasper 2019-12-25 23:20:31 +01:00
  • c0277f610b Evaluation of "to" and "of" Kasper 2019-12-23 05:11:10 +01:00
  • 5286bec0dd Evaluation of multiply, divide, modulo, caret, percent, factorial Kasper 2019-12-23 01:24:15 +01:00
  • 8fcd76a098 Evaluation of plus and minus Kasper 2019-12-22 21:35:58 +01:00
  • c247b6c899 Added length units and support for multi-word units Kasper 2019-12-21 21:36:39 +01:00
  • d463082db5 Fix long units causing error (max_word_length) Kasper 2019-12-21 17:59:21 +01:00
  • a4db9df058 Added units Kasper 2019-12-21 16:49:37 +01:00
  • 3587cb94a9 Added parser with most things supported Kasper 2019-12-15 20:21:14 +01:00
  • 670aa7e732 Fixed whitespace/commas causing lexing error Kasper 2019-12-14 22:59:04 +01:00
  • 8c156fcf15 Lexer determines if % is percent or modulo & wraps input in parens Kasper 2019-12-14 22:12:02 +01:00
  • f7a5481268 to/of operators, auto insert parens Kasper 2019-12-12 22:25:08 +01:00
  • e8d363acfc Fixed byte_index not incrementing in digit/string loops Kasper 2019-12-09 04:34:08 +01:00
  • 62262fbb1f Lexer support for a bunch of math functions Kasper 2019-12-09 04:28:38 +01:00
  • 424e6988e9 Lexer supports multi-byte utf8 characters and "pi", "π" and "e" Kasper 2019-12-09 03:36:02 +01:00
  • 1fe9214a62 Put lexer into it's own file Kasper 2019-12-09 00:31:34 +01:00
  • 47768ee208 Better error handling Kasper 2019-12-08 23:02:26 +01:00
  • 8e2a3ff4d7 Number parsing Kasper 2019-12-08 21:04:35 +01:00
  • f83c0ce59d Started work on custom lexer Kasper 2019-12-08 15:17:15 +01:00
  • 4281aa97a9 cargo init Kasper 2019-12-06 16:16:29 +01:00
  • 6c15cf9cca Initial commit Kasper 2019-12-05 23:44:52 +01:00