21 Commits

Author SHA1 Message Date
Kasper
4ac7e74c6b
Switch indentation to tabs 2022-09-12 00:47:20 +02:00
Kasper
1bb3819350
Use rustfmt for some files 2022-09-12 00:45:29 +02:00
Joel Natividad
a64081ac73
Apply select clippy recommendations (#27)
* Bump dependencies to minor version;  2021 edition

* apply clippy recommendations

* go back to match statement

* consolidate clippy allows

* pare down lints

- remove nursery level lints
- sort lints

* pared down lint allows
2022-09-11 23:37:01 +02:00
Pyther99
634dff682b more idiomatic syntax 2021-07-13 19:55:42 +02:00
Pyther99
3ee5e00b11 remove return statements 2021-07-13 19:55:04 +02:00
Matthew Gamble
d60d534014
Various bits of cleanup suggested by clippy
It would be good to incorporate clippy into the CI pipeline once it's up
and running.
2021-07-06 23:30:49 +10:00
Kasper
1abe436f52 Remove TokenVector type 2021-04-21 21:57:02 +02:00
Kasper
25d151465e Fix cargo doc links 2020-11-26 02:04:35 +01:00
Kasper
961daae9d5 Added named numbers (hundred, quadrillion etc) 2020-11-14 04:08:27 +01:00
Kasper
34de6af711 Improved parsing of foot-inch syntax
- Added support using foot-inch syntax with addition, like `2"+6'4"`
- Unsupported foot-inch syntax like `(6)'4"` and `6'4!"` now cause errors
2020-11-13 20:42:49 +01:00
Kasper
a5aa85c1c0 Documented most things, small code improvements 2020-08-20 21:59:44 +02:00
Kasper
56ea8380b7 Code improvements, added a bunch of doc comments
There are technically no breaking changes because everything was broken in the first place
2020-08-20 17:11:19 +02:00
Kasper
febd5366e8 Turned panics into errors 2020-01-15 17:45:53 +01:00
Kasper
3c53a22cfc Support for 6'4" syntax 2020-01-13 03:35:54 +01:00
Kasper
02e74806e1 Support for using "in" as To operator (like "5in in cm") 2020-01-12 03:03:26 +01:00
Kasper
6ac025850d Added implicative multiplication, like 2pi 2020-01-06 18:50:33 +01:00
Kasper
73823cbbce Lowered precedence of unary minus operator (-10% now works)
Previously the unary minus operator would have higher precedence than ! and %, meaning -10% and -10! would not work
2020-01-05 18:14:28 +01:00
Kasper
5286bec0dd Evaluation of multiply, divide, modulo, caret, percent, factorial 2019-12-23 01:24:15 +01:00
Kasper
8fcd76a098 Evaluation of plus and minus 2019-12-22 21:35:58 +01:00
Kasper
a4db9df058 Added units 2019-12-21 16:49:37 +01:00
Kasper
3587cb94a9 Added parser with most things supported 2019-12-15 20:27:17 +01:00