14 Commits

Author SHA1 Message Date
Kasper
388825f9ac Lexing of keywords now uses is_ascii_alphabetic instead of is_alphabetic 2020-01-13 15:50:54 +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
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
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
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
a0014f9afc Added area, volume, mass units 2020-01-08 19:33:51 +01:00
Kasper
8fcd76a098 Evaluation of plus and minus 2019-12-22 21:35:58 +01:00