Commit Graph

274 Commits (e9d392b80b114f835bb8a1f38e19d140a21b2a27)

Author SHA1 Message Date
Mark 0cb171cde1
Added volume units 2023-04-14 09:28:39 -07:00
Mark b2a809ea8b
Added more units 2023-04-13 20:11:20 -07:00
Mark 76ac7be050
Added units 2023-04-13 14:10:45 -07:00
Mark 5de314e11c
Fixed unit conversion 2023-04-13 13:36:10 -07:00
Mark 3948f10bd7
Added prefix-generating macros 2023-04-13 11:33:51 -07:00
Mark 78b0262f61
Rearranged files 2023-04-13 09:21:53 -07:00
Mark e2d49c5fb6
Cleaned up variable names 2023-04-13 09:11:20 -07:00
Mark 84d2d68aa1
Added conversion between prefixed units 2023-04-13 09:01:18 -07:00
Mark 14ab0bd1d8
Renamed `sec` to `secant` 2023-04-13 08:06:35 -07:00
Mark 475d0e7c07
Minor cleanup 2023-04-13 08:06:04 -07:00
Mark 1f0f7e0ac9
Added prefix foundation 2023-04-13 08:05:52 -07:00
Mark 600c5f76cc
Added unit conversion prototype 2023-04-11 11:48:15 -07:00
Mark 7ecdfae6fc
Minor bug 2023-04-11 11:32:42 -07:00
Mark 0497cd810d
Fixed unit powers 2023-04-11 09:05:37 -07:00
Mark 0ca7705122
Cleanup 2023-04-11 08:56:39 -07:00
Mark 84f2d6e30c
Unit cleanup 2023-04-11 08:21:30 -07:00
Mark 175261b5c0
Compound unit foundation 2023-04-10 21:03:16 -07:00
Mark ad3ae83c66
Improved evaluator errors 2023-04-10 18:53:35 -07:00
Mark 6ce4451db7
Added unit errors 2023-04-10 18:47:00 -07:00
Mark fbc0a6557e
Cleanup 2023-04-10 18:46:46 -07:00
Mark b21104713f
Disabled a few tests 2023-04-10 14:12:16 -07:00
Mark e2fd61a2ef
Improved unit printing 2023-04-10 14:02:11 -07:00
Mark 775d85b170
Fixed tests 2023-04-10 14:02:01 -07:00
Mark 3007d7f875
Merge branch 'master' of ssh://git.betalupi.com:33/Mark/daisy 2023-04-10 12:49:09 -07:00
Mark 0f04a42dcb
Added tests 2023-04-10 12:48:36 -07:00
Mark ae05ebb5ff
Cleanup, added to_string_outer 2023-04-10 11:10:27 -07:00
Mark a38293c247
Added unit fromstring 2023-04-09 08:39:36 -07:00
Mark e9645208d9
Improved unit printing 2023-04-09 08:39:22 -07:00
Mark d4b7f5b078
Improved unit printing 2023-04-08 20:48:49 -07:00
Mark e9d4ec0b12
Cleanup 2023-04-08 20:40:35 -07:00
Mark fb9cc03bb9
Reorganized quantity 2023-04-08 20:26:07 -07:00
Mark 5b8dd2f703
Added basic units (incomplete) 2023-04-08 16:47:47 -07:00
Mark 10f706582e
Fixed configuration 2023-04-08 10:51:22 -07:00
Mark 1e04b15b46
Added comments 2023-04-07 20:55:23 -07:00
Mark 8982b3b118
rug types are only used if we're on unix 2023-04-07 20:52:18 -07:00
Mark e0f36ce112
Added conditional compilation for os type 2023-04-07 20:36:55 -07:00
Mark 0e155c2b52
Moved tests 2023-04-07 18:16:22 -07:00
Mark e4667eb998
Reorganized quantities 2023-04-07 18:11:20 -07:00
Mark 0bc1817e5b
Cleanup 2023-04-07 11:38:54 -07:00
Mark 24a07c1af0
Fixed treeify 2023-04-07 11:38:16 -07:00
Mark 77157925fe
Improved tests 2023-04-07 09:42:50 -07:00
Mark dd9633d822
Strict printing for powers 2023-04-07 09:42:43 -07:00
Mark 82b577568c
Fixed unary + at start 2023-04-07 09:37:39 -07:00
Mark 9b099bb408
Fixed decimal parsing 2023-04-07 09:33:55 -07:00
Mark 88078fea5a
Fixed unary "+" bug 2023-04-07 09:27:15 -07:00
Mark aeacd8746d
Fixed negation 2023-04-07 08:46:44 -07:00
Mark b6acbcee6b
Cleanup 2023-04-06 10:31:02 -07:00
Mark a3ada7c70c
Fixed operator printing 2023-04-06 10:30:50 -07:00
Mark f112326620
Added support for unary + 2023-04-06 09:51:14 -07:00
Mark 0e693ffcd6
Split tokens.rs 2023-04-06 09:41:03 -07:00
Mark c3686172cd
Improved operator ordering 2023-04-06 09:35:52 -07:00
Mark aa90d798c9
Fixed prompt cursor adjustment 2023-04-04 10:22:32 -07:00
Mark 038bbc5fde
Fixed minus printing 2023-04-02 08:27:21 -07:00
Mark d3d13a64ff
Minor changes 2023-04-01 19:05:40 -07:00
Mark 85a669e126
Added support for scientific notation 2023-04-01 18:29:01 -07:00
Mark 52a508cd98
Groupify refactor 2023-04-01 18:28:31 -07:00
Mark f07ba9ed38
Minor fixes 2023-04-01 18:27:47 -07:00
Mark cb227d9539
Fixed quantity printing 2023-04-01 18:26:30 -07:00
Mark bb200548f1
Reworked lookback 2023-04-01 16:43:58 -07:00
Mark e0210a8f09
Cleanup 2023-04-01 16:43:33 -07:00
Mark 047c900193
Fixed missing sign print 2023-04-01 16:43:26 -07:00
Mark 5792bbcea9
typo 2023-04-01 15:43:12 -07:00
Mark bb48a09cc7
Added decimal -> rational parsing 2023-04-01 14:20:11 -07:00
Mark f97805b24e
Disabled a few broken tests 2023-04-01 14:19:21 -07:00
Mark a38f68cd84
Added Quantity type 2023-04-01 13:50:52 -07:00
Mark 2834c20c57
Added functions 2023-03-29 19:03:58 -07:00
Mark de8c461a7b
Improved printing 2023-03-29 19:03:53 -07:00
Mark 3126b4c616
Added sin function and expression printing 2023-03-29 10:40:33 -07:00
Mark 3d5dcf0694
Minor cleanup 2023-03-29 10:39:15 -07:00
Mark 0049b32670
Fixed cursor overflow 2023-03-29 10:01:05 -07:00
Mark a90c00c18d
Added basic math error checking 2023-03-28 14:36:53 -07:00
Mark eb101439d9
fixed substitutions 2023-03-28 13:31:40 -07:00
Mark 7a9876ddd2
Cleaned up tests 2023-03-28 10:46:46 -07:00
Mark 71d9aaa039
Added square root, fixed many parser bugs 2023-03-28 10:46:29 -07:00
Mark 6db5137b56
Cleaned up code 2023-03-28 09:35:49 -07:00
Mark bcb90b503d
Added cursor to promptbuffer 2023-03-27 22:13:14 -07:00
Mark 56521cbbcd
Added ** exponentiation 2023-03-27 21:25:16 -07:00
Mark 1996693008
Rewrote parser 2023-03-27 21:22:29 -07:00
Mark b3e0cd6699
Added version string 2023-03-27 10:59:11 -07:00
Mark 701c8435fb
Added a few more tests 2023-03-27 10:56:48 -07:00
Mark 4eb476c2b7
Fixed unary operators 2023-03-27 10:55:14 -07:00
Mark d2f03976f8
Fixed negative syntax bug 2023-03-27 10:55:06 -07:00
Mark 1774c105f4
Fixed oop bug 2023-03-27 10:54:57 -07:00
Mark fd0ddb72ab
Added tests 2023-03-27 10:54:36 -07:00
Mark 1794042514
Restructured code 2023-03-27 09:47:02 -07:00
Mark ca35c8d9e9
Fixed power associativity 2023-03-26 12:15:36 -07:00
Mark 47e8a021f9
Cleanup 2023-03-26 12:13:37 -07:00
Mark a40ebb7500
Treeify now handles both left- and right-associative operators 2023-03-26 12:13:08 -07:00
Mark c92670c918
Constant changes 2023-03-26 10:18:39 -07:00
Mark 8a58d2182a
Fixed another tokenize bug 2023-03-26 10:15:15 -07:00
Mark b71cbcafcd
Fixed negative bug 2023-03-26 09:54:25 -07:00
Mark b8e736af45
Branding 2023-03-25 21:38:59 -07:00
Mark 39c52782ca
Improved error formatting 2023-03-25 20:47:33 -07:00
Mark c167196809
Fixed syntax error location 2023-03-25 20:10:31 -07:00
Mark 75d01adf02
Added greeting 2023-03-25 12:14:05 -07:00
Mark 8edfb70fb8
Fixed a minor bug 2023-03-25 10:35:43 -07:00
Mark 3fe51ffaed
Cleanup 2023-03-25 10:32:56 -07:00
Mark f3b86c3c7a
Added prompt replacement 2023-03-25 10:32:51 -07:00
Mark 3e1fa97ce8
Cleanup 2023-03-25 09:54:07 -07:00
Mark d0d051d616
Added more token methods 2023-03-25 09:40:08 -07:00
Mark cea5a1db22
Removed Root Token 2023-03-25 09:27:15 -07:00
Mark 8430b0d15a
Split tokenizer 2023-03-24 23:06:44 -07:00
Mark cafe1c9c64
Added Constants
Fixed treeify bug
2023-03-24 20:21:48 -07:00
Mark 5fc7a7922e
Added simple history 2023-03-24 19:42:23 -07:00
Mark 0927cf25e4
Prettier output 2023-03-24 13:28:14 -07:00
Mark 1f98645dd4
Cleanup 2023-03-24 13:18:56 -07:00
Mark 1f9bcccab4
Added basic evaluation 2023-03-24 13:16:58 -07:00
Mark 0eec282cc2
Reworked prompt 2023-03-23 22:10:53 -07:00
Mark a23cea274f
Fixed group parsing 2023-03-23 15:10:18 -07:00
Mark a734bdc4fe
Added paren checks 2023-03-23 15:08:48 -07:00
Mark 0633ae5335
Removed old code 2023-03-23 14:53:33 -07:00
Mark 4c8a916085
Added recursive parsing
Improved error handling
2023-03-23 14:53:27 -07:00
Mark c743d28f6c
Reworked parser, added support for unary operators 2023-03-22 22:51:48 -07:00
Mark 9f53847ed3
Added lookback parsing 2023-03-22 15:06:58 -07:00
Mark af85e8a6d5
Rewrote parser 2023-03-22 10:53:38 -07:00
Mark 2d9eeffb39
Reorganized code, added basic error handling 2023-03-21 19:37:02 -07:00
Mark b942e9dcf9
Fixed parser bugs
Added PreGroup unwrapper
Added token location tracking
2023-03-21 19:02:18 -07:00
Mark 83961409a7
Added basic number parser 2023-03-20 20:54:43 -07:00
Mark 145084b88f
Added word replacement
Added more operators

Cleaned up code
2023-03-20 11:36:43 -07:00
Mark 579f7f2ece
Cleanup, added more operators 2023-03-19 20:32:49 -07:00
Mark a4506e775a
Treefold edits 2023-03-19 19:56:58 -07:00
Mark 79be72903f
Updated parser 2023-03-19 17:46:30 -07:00
Mark 1760982820
Added group parsing 2023-03-18 22:16:26 -07:00
Mark 0c32a94f98
Added tokenizer 2023-03-18 19:36:22 -07:00