Tiffany Bennett
b1be70a027
Add rustyline support
2016-08-03 13:18:20 -04:00
Tiffany Bennett
953b133262
Allow the use of aliases in expressions
...
I found this useful while attempting to arrive at a given unit. I can do
something such as -> energy or -> power and then the conformance errors
will guide me to which terms I need to add to arrive at a solution.
2016-08-03 13:06:48 -04:00
Tiffany Bennett
f2d6eee72c
Fix accidental copypasta in readme
2016-08-03 11:04:40 -04:00
Tiffany Bennett
44734714e5
Add licensing information and some examples
2016-08-03 11:01:27 -04:00
Tiffany Bennett
a3a25fb099
Too many keywords
2016-08-03 10:42:00 -04:00
Tiffany Bennett
f5f784a5b5
Don't track Cargo.lock in libraries
2016-08-03 10:39:51 -04:00
Tiffany Bennett
75f0c84037
Rename from units-rs to rink
2016-08-03 10:39:08 -04:00
Tiffany Bennett
3e6fe01923
Add a conversion operator with conformance errors
2016-08-03 10:27:38 -04:00
Tiffany Bennett
2a241a36cf
Add line numbers and fix a bug with parsing parens
2016-08-03 09:36:44 -04:00
Tiffany Bennett
0c64be7da7
Fix precedence of /
2016-08-03 09:18:03 -04:00
Tiffany Bennett
4cc6fd4e59
Handle prefixes better
2016-08-03 00:01:18 -04:00
Tiffany Bennett
ba948c7ae8
Allow roots
2016-08-02 23:44:02 -04:00
Tiffany Bennett
57b8674edc
Fix parsing of functions, *, and .123
2016-08-02 23:36:39 -04:00
Tiffany Bennett
5af35c2ef8
Prettier printing of units
2016-08-02 23:08:19 -04:00
Tiffany Bennett
60380852e6
Fix bug where kg
got parsed as something = kg^-1
2016-08-02 23:07:36 -04:00
Tiffany Bennett
3631c19e04
Silence remaining units.txt errors
2016-08-02 22:57:18 -04:00
Tiffany Bennett
194cb5fdf7
Parse <<IMAGINARY_UNIT>>
2016-08-02 22:50:26 -04:00
Tiffany Bennett
51a67f7984
Handle units ending with 's'
2016-08-02 22:44:00 -04:00
Tiffany Bennett
6d7daef125
Handle prefixes and unicode literals
2016-08-02 22:41:44 -04:00
Tiffany Bennett
5d861c9d32
Parse parenthesized expressions
2016-08-02 22:12:22 -04:00
Tiffany Bennett
15228a373b
Fix slightly too eager parsing of aliases
2016-08-02 22:09:08 -04:00
Tiffany Bennett
c136c8a216
Rework .print() and one_line() slightly
2016-08-02 21:21:48 -04:00
Tiffany Bennett
fadab5c53b
Library structure
2016-08-02 21:17:55 -04:00
Tiffany Bennett
a1d3444a72
Fix precedence of juxtaposition and fractions
2016-08-02 21:08:47 -04:00
Tiffany Bennett
c8afaaa62a
Implement evaluator and do REPL unit conversions
2016-08-02 20:51:38 -04:00
Tiffany Bennett
ae8568b991
Fix remaining non-function errors
2016-08-02 16:07:33 -04:00
Tiffany Bennett
5a3576c204
Parse more stuff without errors
2016-08-02 16:01:41 -04:00
Tiffany Bennett
848bb4d4d6
Add TokenIterator, parse aliases
2016-08-02 15:52:41 -04:00
Tiffany Bennett
0b728865ec
Initial commit
2016-08-02 15:33:19 -04:00