99 Commits

Author SHA1 Message Date
Kasper
6553c50d1d Added units of voltage 2020-11-21 02:47:31 +01:00
Kasper
f03850f006 Added more keywords for units of current and resistance 2020-11-21 02:47:03 +01:00
Kasper
50cac79d7a Fixed lexing of "µs" 2020-11-21 02:10:20 +01:00
Kasper
5da0c5e3d7 Added units of resistance (ohm) 2020-11-21 01:22:25 +01:00
Kasper
5371f8d5ac Added units of electric current 2020-11-20 20:19:31 +01:00
Kasper
efd5b63a0d v1.1.0 2020-11-14 05:26:22 +01:00
Kasper
7284422ec0 Fixed consecutive percentage signs error 2020-11-14 05:00:22 +01:00
Kasper
03b9df2362 Fixed trailing percentage sign being ignored 2020-11-14 04:10:56 +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
8378364dff Added tests for units of frequency 2020-11-13 18:18:25 +01:00
Kasper
802ad3d88f Added units of frequency 2020-11-13 18:13:56 +01:00
Kasper
bba46e3ab4 Fixed readme stating performance is over 1000x worse than it is 2020-11-13 17:10:56 +01:00
Kasper
5f85d32f65 v1.0.2 2020-10-12 20:45:48 +02:00
Kasper
bb4bdb72f1
Merge pull request #1 from ethwu/master
Correct typo in lexer
2020-10-12 20:13:33 +02:00
Ethan Wu
d24d4af969 Fix bugs caused by typos
- Fix spelling of *quarter* in lexer and assign `Unit::Quarter` correctly
- Use division instead of multiplication when dividing a number by another
  number of the same unit
2020-10-12 00:19:19 -07:00
Kasper
18625d9205
Update README.md 2020-09-21 19:19:54 +02:00
Kasper
6b91b35b34 v1.0.1 2020-08-20 22:12:31 +02:00
Kasper
71c1605047 Update CHANGELOG.md 2020-08-20 22:10:18 +02:00
Kasper
9cbf5cbb83 Fixed error in main example usage 2020-08-20 22:10:07 +02:00
Kasper
9ae7047930 Add docs.rs links to readme 2020-08-20 22:00:04 +02: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
04e61cafd7 Now using lib.rs to fix "this crate is not a library" issue
Instead of just having main.rs, we now have lib.rs and then main.rs is just the CLI part
2020-08-20 14:23:54 +02:00
Kasper
e619215fd8 Added documentation link 2020-08-20 13:32:17 +02:00
Kasper
f745cccd69 Correct readme instructions for releasing new version 2020-08-20 11:29:26 +02:00
Kasper
d384750688 Update README.md 2020-08-20 11:02:34 +02:00
Kasper
fa67e70170 v1.0.0 2020-08-20 10:50:00 +02:00
Kasper
d800a5f6c7 Create CHANGELOG.md 2020-08-20 10:49:57 +02:00
Kasper
e702eea1e3 Added instructions for releasing new version to readme 2020-08-20 10:49:52 +02:00
Kasper
25417960d9 Added cross-compiling instructions to readme 2020-08-20 10:30:31 +02:00
Kasper
ba2c1ce84e Added cli/api installation and usage to readme 2020-08-20 10:29:57 +02:00
Kasper
e69b1ab7a3 Added MIT license 2020-08-20 07:25:12 +02:00
Kasper
5830904a45 Added --debug flag, eval returns Result 2020-08-20 06:49:10 +02:00
Kasper
55e7ef0a04 Update README.md 2020-02-15 23:52:41 +01:00
Kasper
f082939d5a Multiplication and division with speed and time ( 1km/2s*5s ) 2020-01-18 21:11:11 +01:00
Kasper
025b1b9169 Pow with units 2020-01-18 20:33:57 +01:00
Kasper
1aca6fd68f Multiplication and division with units 2020-01-18 19:34:30 +01:00
Kasper
febd5366e8 Turned panics into errors 2020-01-15 17:45:53 +01:00
Kasper
fda6550d1a Fixed ambiguity by renaming UnitType::NoUnit to NoUnitType 2020-01-14 17:30:46 +01:00
Kasper
801fbcf974 Fixed adding/subtracting with temperatures of the same type 2020-01-14 17:25:05 +01:00
Kasper
81b987e14f Fixed unit support for modulo 2020-01-14 14:59:18 +01:00
Kasper
1e83f50fbd Moved * / % and ^ to units.rs, added support for 1km/1km 2020-01-14 14:41:53 +01:00
Kasper
c7141e87ad Added "degree" keyword with option to choose which unit that is 2020-01-14 13:53:06 +01:00
Kasper
22a5faa6be Ignoring operators at the end (with option to disable) 2020-01-14 02:50:10 +01:00
Kasper
0b592ac5f1 Renamed information to digital storage 2020-01-14 00:31:08 +01:00
Kasper
eb8c1a0a37 Moved addition/subtraction to units.rs 2020-01-13 23:38:31 +01:00
Kasper
adaf4eb4ac Support for writing multidimensional lenghts as km2 etc 2020-01-13 18:13:43 +01:00
Kasper
388825f9ac Lexing of keywords now uses is_ascii_alphabetic instead of is_alphabetic 2020-01-13 15:50:54 +01:00
Kasper
73861a1848 Removed unnecessary chars enumeration from lexer 2020-01-13 15:49:49 +01:00