Pyther99
beb1ea7506
improve comparisons
2021-07-13 19:55:29 +02:00
Pyther99
3ee5e00b11
remove return statements
2021-07-13 19:55:04 +02:00
Matthew Gamble
59b20389ba
Further improvements to operator parsing in lexer
...
- Add support for phrases 'multiplied by' and 'divided by'
- Add support for the division operator symbol ÷
- Fixed lexing of revolutions per minute units
2021-07-07 23:23:16 +10:00
Kasper
99943ecacd
Fix Ω lexing
2021-07-07 05:36:57 +02:00
Kasper
3137979d55
Merge pull request #18 from probablykasper/lexer-multiword
...
Improve multiword lexing
2021-07-07 01:57:11 +02:00
Kasper
f25c88cf0e
Remove debug logs
2021-07-06 22:35:03 +02:00
Kasper
c4d1cb1371
Match alphabetic characters directly, make stuff private
2021-07-06 20:25:29 +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
Matthew Gamble
7895d70268
Add initial set of tests for the lexer
2021-07-03 12:11:26 +10:00
Kasper
e4fc479091
Fix numbers unnecessarily displayed in E notation
2021-06-10 21:36:14 +02:00
Kasper
1abe436f52
Remove TokenVector type
2021-04-21 21:57:02 +02:00
Kasper
ca273773ef
Rename --debug to --verbose and -v
2021-04-21 21:10:06 +02:00
Kasper
1db9598cd2
Switch back to official decimal
...
Switch back to official `decimal` because https://github.com/alkis/decimal/issues/59 is fixed
2021-03-15 00:45:08 +01:00
joseLuís
1065d024dd
fix spelling: Celcius → Celsius
2021-01-14 17:12:11 +01:00
Kasper
dcc948b5d5
Remove unused LexerKeyword PoundWord
2020-11-26 18:26:55 +01:00
Kasper
25d151465e
Fix cargo doc links
2020-11-26 02:04:35 +01:00
Kasper
ef97410fe5
Updated decimal dependency to decimal_fixes_mirror
...
Fixed panics in Rust 1.48.0
2020-11-26 01:24:51 +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
9cbf5cbb83
Fixed error in main example usage
2020-08-20 22:10:07 +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