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 |
|
Kasper
|
3c53a22cfc
|
Support for 6'4" syntax
|
2020-01-13 03:35:54 +01:00 |
|
Kasper
|
a0a33d175b
|
Fixed Inch being lexed as InchOfMercury
|
2020-01-13 01:55:48 +01:00 |
|
Kasper
|
5360318bfc
|
Added unit of pressure, improved lexer "post-fix" loop
Previously the lexer's post-fix loop was really weird, incrementing in the middle of the function. No more
|
2020-01-12 22:57:49 +01:00 |
|
Kasper
|
02e74806e1
|
Support for using "in" as To operator (like "5in in cm")
|
2020-01-12 03:03:26 +01:00 |
|
Kasper
|
efa76e93c5
|
Lexer ignores commas
|
2020-01-12 00:07:10 +01:00 |
|
Kasper
|
8a232f72f0
|
Added newton meter
|
2020-01-11 04:50:31 +01:00 |
|
Kasper
|
539568c5b5
|
Added unit of power
|
2020-01-11 04:46:43 +01:00 |
|
Kasper
|
0758611dfb
|
Added lexing of energy and speed units
|
2020-01-11 04:31:30 +01:00 |
|
Kasper
|
0d90173d7a
|
Added some dev instructions to README
|
2020-01-10 22:54:08 +01:00 |
|
Kasper
|
5385c3ac56
|
Slightly changed values for calories, kilocalories and BTU
Changed them to be of the IT type
|
2020-01-10 21:38:55 +01:00 |
|
Kasper
|
35043932d5
|
Fixes/additions for lexing units
|
2020-01-10 17:45:06 +01:00 |
|
Kasper
|
83fd5c233a
|
Added support for all units in lexer
|
2020-01-10 17:31:38 +01:00 |
|
Kasper
|
e4a9996880
|
Added units of energy, speed, information (bytes etc)
|
2020-01-10 17:26:50 +01:00 |
|
Kasper
|
fbbb895c64
|
Greatly improved parsing of multi-word units
|
2020-01-09 23:01:31 +01:00 |
|
Kasper
|
80aacc6493
|
Made the "Answer" struct a generic struct "Number"
|
2020-01-09 20:58:45 +01:00 |
|
Kasper
|
d428546ecf
|
Added temperature units
|
2020-01-09 15:10:04 +01:00 |
|
Kasper
|
f1095ca8de
|
Much DRYer units.rs, testing change
|
2020-01-09 15:09:02 +01:00 |
|
Kasper
|
93e80e6f76
|
Removed unnecessary adding of () around input
|
2020-01-08 19:51:52 +01:00 |
|
Kasper
|
a0014f9afc
|
Added area, volume, mass units
|
2020-01-08 19:33:51 +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
|
1e00714cf0
|
Sped up sin/cos/tan by calculating factorials using match statement
|
2019-12-28 06:34:53 +01:00 |
|
Kasper
|
26992c9e32
|
Evaluation of sin, cos, tan
|
2019-12-28 06:31:50 +01:00 |
|