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
2d457de7f1
Disallow named number followed by smaller named number
...
like 1 million thousand
2021-07-07 04:21:44 +02:00
Kasper
3137979d55
Merge pull request #18 from probablykasper/lexer-multiword
...
Improve multiword lexing
2021-07-07 01:57:11 +02:00
Kasper
ee2245dcb0
Revert accidental main.rs changes
2021-07-06 22:43:28 +02:00
Kasper
a903dfd633
Merge pull request #19 from djmattyg007/initial_clippy_fixes
...
Various bits of cleanup suggested by clippy
2021-07-06 22:39:36 +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
Kasper
c3f7166d28
Fix lexing of π with unit afterwards
...
e.g `πm`
2021-07-06 19:59:20 +02:00
Kasper
10f79dc78f
Fix π lexing
2021-07-06 19:49:52 +02:00
Kasper
0c1d2b38c1
Add more tests by @djmattyg007
2021-07-06 19:06:50 +02:00
Kasper
84f604a96e
Remove unnecessary lexer recursion
2021-07-06 17:59:54 +02:00
Kasper
1973c7281f
Fixed suggested by @djmattyg007
2021-07-06 17:59:07 +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
e30810c997
Add tests by @djmattyg007
2021-07-06 07:17:43 +02:00
Kasper
c550f279c1
Add operator words plus, minus, times
2021-07-06 07:17:30 +02:00
Kasper
8a7603bc6e
Fix watt parsing
2021-07-06 07:07:37 +02:00
Kasper
b435833b98
Fixed pound not lexed at the end of the input
2021-07-06 06:16:43 +02:00
Kasper
c34a21afe1
Re-add PoundForce and NewtonMeter parsing
2021-07-05 17:49:08 +02:00
Kasper
eaaee87b2c
Fix multi-word parsing, revamp lexer to be recursive
2021-07-05 17:03:17 +02:00
Kasper
31077f669e
Fix LightSecond parsing
2021-07-05 15:29:15 +02:00
Kasper
541e38dc65
Attempt at improving multi-word handling (incomplete)
2021-07-05 09:22:21 +02:00
Kasper
9485e3896b
Update README.md
2021-07-03 17:50:35 +02:00
Kasper
0e58740749
v1.6.0
2021-07-03 17:34:34 +02:00
Kasper
4904ac3c21
Merge pull request #15 from djmattyg007/add_lexer_tests
...
Add initial set of tests for the lexer
2021-07-03 06:45:31 +02:00
Matthew Gamble
7895d70268
Add initial set of tests for the lexer
2021-07-03 12:11:26 +10:00
Kasper
87c10619b5
Add help menu
2021-07-03 02:51:03 +02:00
Kasper
cedc70af3a
Add --version flag
2021-07-03 02:09:28 +02:00
Kasper
ef4738061e
Freak out instead of ignoring unexpected arguments
2021-07-03 01:55:10 +02:00
Kasper
9bf7c69c03
Merge pull request #11 from djmattyg007/use_stderr
...
Print 'no argument supplied' message on STDERR
2021-07-03 01:31:37 +02:00
Kasper
e5b1feac3f
Merge pull request #12 from djmattyg007/non_us_spellings
...
Add non-US spellings of various "metre"-like words
2021-07-03 01:30:11 +02:00
Matthew Gamble
2805185317
Add non-US spellings of various "metre"-like words
...
Also fix a bug where decimeter units were being parsed into centimetres.
2021-07-03 09:09:43 +10:00
Matthew Gamble
c545468b90
Print 'no argument supplied' message on STDERR
2021-07-03 09:07:25 +10:00
Kasper
dc1b011058
v1.5.1
2021-06-10 21:45:18 +02:00
Kasper
e4fc479091
Fix numbers unnecessarily displayed in E notation
2021-06-10 21:36:14 +02:00
Kasper
71548793c5
Update README.md
2021-05-21 14:55:31 +02:00
Kasper
2a214294e4
v1.5.0
2021-04-21 22:06:12 +02:00
Kasper
1abe436f52
Remove TokenVector type
2021-04-21 21:57:02 +02:00
Kasper
c7ee968e6c
Allow --verbose in front of input
2021-04-21 21:11:05 +02:00
Kasper
ca273773ef
Rename --debug to --verbose and -v
2021-04-21 21:10:06 +02:00
Kasper
6585366b0d
Fix panic when input contains only whitespace and/or commas
2021-04-21 21:06:02 +02:00
Kasper
d9a08b0b85
Update README.md
2021-04-08 04:01:51 +02:00
Kasper
9e22ce9119
Update CHANGELOG.md
2021-04-08 01:56:57 +02:00
Kasper
01d00a7298
v1.4.2
2021-04-08 01:55:11 +02:00
Kasper
8d70be0967
Fix d128 errors due to d128 error status not being cleared
2021-04-08 01:54:29 +02:00
Kasper
7ceb484f98
v1.4.1
2021-04-08 00:53:11 +02:00
Kasper
5d08f59083
Fix panic when input is empty string
2021-04-08 00:45:52 +02:00
Kasper
c59918b080
Update cross-compile instructions to work for Rust 1.50
2021-03-24 17:58:34 +01:00
Kasper
794b47e448
v1.4.0
2021-03-15 18:16:48 +01:00
Kasper
0d2d13c5c6
Update README.md
2021-03-15 18:11:23 +01:00