Ivan Tham
820bf8c4e1
Remove old extern crate
2022-07-01 19:54:48 +08:00
Ivan Tham
2f943ac30b
Allow function to accept multiple arguments ( #56 )
...
* Allow function to accept multiple arguments
* Add lexer for multiple arguments
* Swap test assert_eq! order
Usually in rust result is on the right, at least what I see.
* Fix issue with postfix
* Update docs to include new functions
* Update test on log_n_base
* Refactor reverse order of is_finite
2022-06-29 00:45:55 +08:00
Ivan Tham
7cc7775d25
Allow larger factorial with u128
...
Partially fix #22
2022-06-25 11:51:40 +08:00
Ivan Tham
10a48b594a
Refactor lexer
2022-06-25 01:11:53 +08:00
Ivan Tham
84c5c51f3f
Refactor radian conversion
2022-06-25 00:22:31 +08:00
Ivan Tham
7ca67c6d60
Use &'static str for token_from_fn
2022-06-25 00:14:37 +08:00
Ivan Tham
7109e54d68
Refactor clap
2022-06-25 00:10:22 +08:00
Ivan Tham
78e61f7061
Refactor test
2022-06-24 22:51:32 +08:00
Ivan Tham
864e192382
Fix clippy issues
2022-06-24 22:40:02 +08:00
Ivan Tham
8cdcf1fc7b
Switch to once_cell
2022-06-24 22:27:39 +08:00
Ivan Tham
5ddc95f2df
Bump dependencies
2022-06-24 22:02:42 +08:00
Ivan Tham
69213f2cac
Add audit
2022-06-24 21:42:42 +08:00
Ivan Tham
a55ee6986c
Add rust toolchain
2022-06-24 20:50:31 +08:00
Ivan Tham
7f737fc516
Add CI
2022-06-24 19:19:16 +08:00
dependabot[bot]
e1583c7710
Bump thread_local from 1.0.1 to 1.1.4
...
Bumps [thread_local](https://github.com/Amanieu/thread_local-rs ) from 1.0.1 to 1.1.4.
- [Release notes](https://github.com/Amanieu/thread_local-rs/releases )
- [Commits](https://github.com/Amanieu/thread_local-rs/compare/v1.0.1...1.1.4 )
---
updated-dependencies:
- dependency-name: thread_local
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-06-17 10:32:48 +08:00
Akshay
e0f8da7d12
remove leftovers from niv
2022-04-05 19:19:25 +05:30
Akshay
2886114cf6
bump to v0.3.0
2022-04-05 19:18:19 +05:30
Ivan Tham
9fa2823b39
Merge pull request #51 from Ma27/exp-and-round
...
Add functions `exp()`, `exp2()` & `round()`; fix minor readline issues
2022-01-05 12:01:48 +08:00
Maximilian Bosch
3f0f8d9f0f
readline: explain constant highlighting regex
2022-01-04 17:47:02 +01:00
Maximilian Bosch
7e673fc429
rustyline: disable default features
2022-01-04 17:38:09 +01:00
Maximilian Bosch
794a795f52
Implement a few more testcases
2021-12-30 18:16:46 +01:00
Maximilian Bosch
a18e994ae5
Add round()
function
2021-12-30 18:06:50 +01:00
Maximilian Bosch
18a1ce8f03
Allow expressions such as e2
as multiplication of e * 2
2021-12-30 18:06:50 +01:00
Maximilian Bosch
7d1db014eb
Deduplicate references to functions & constants
2021-12-30 18:06:49 +01:00
Maximilian Bosch
acf947b608
Fix highlighting of e
vs exp
2021-12-30 18:06:49 +01:00
Maximilian Bosch
4fd3ec330a
Update rustyline to v9
...
Also refresh line always. This isn't a big deal for the small
expressions we have here and also fixes a few annoying issues
I had with the highlighter.
2021-12-30 18:06:49 +01:00
Maximilian Bosch
cb3e69df8b
Add functions to highlighting list
2021-12-30 18:06:49 +01:00
Maximilian Bosch
66790c32e9
Add exp2
function and ensure it's correctly lexed
2021-12-30 18:06:49 +01:00
Maximilian Bosch
27c5539c0a
Add exp(x)
function which evaluates to e^x
...
Quite useful when doing analysis at University, also preferable over
`e^x` because it's way nicer to write `exp(arbitrary expr)` rather than
`e^(arbitrary expr)`.
2021-12-30 18:06:49 +01:00
sigmaSd
3f52f6f2ce
Document _
2021-01-26 20:54:04 +05:30
Akshay
060819ae81
Merge branch 'patch-1' of https://github.com/0xflotus/eva into readme-fixes
2020-11-06 20:48:35 +05:30
Akshay
358a2279b9
Merge branch 'color' of https://github.com/pickfire/eva into colored-help
2020-11-06 20:46:57 +05:30
Akshay
cf7005dc15
Merge branch 'master' into pickfire-help
2020-11-06 20:42:58 +05:30
0xflotus
e5b72a49b8
fix: small errors
2020-11-06 00:24:25 +01:00
Ivan Tham
6093a7ef23
Add colored help
2020-11-05 10:29:27 +08:00
Ivan Tham
8ff40835cc
Fix help on smaller terminal
...
COLUMNS not working, using term_size crate for a more portable
solution.
2020-11-03 01:45:45 +08:00
Akshay
72789dff9c
fixes for nix
2020-11-02 20:00:42 +05:30
Ivan Tham
ea95516537
Add help command
...
Close #41
2020-11-02 01:28:05 +08:00
Akshay
d31097959f
add double star (exponent) operator to list
2020-10-12 10:08:41 +05:30
David Tolnay
7118506a2a
Accept **
operator as exponentiation ( #39 )
...
* Accept `**` operator as exponentiation
* Add test of exponentiation
2020-10-12 10:07:15 +05:30
Maximilian Bosch
ff3ac137ed
Don't parse arguments during cargo test
( #37 )
...
Otherwise, running the tests with special arguments (e.g. `cargo test --
--test-threads 1`) will break.
2020-08-29 20:45:21 +05:30
Dario Vladović
ee833337df
Add Homebrew install instructions ( #36 )
2020-05-25 16:48:17 +05:30
Akshay
51553105ff
Merge pull request #35 from pickfire/lock
...
Add Cargo.lock
2020-04-10 04:18:02 +00:00
Ivan Tham
72de9e3663
Add Cargo.lock
...
https://doc.rust-lang.org/cargo/faq.html#why-do-binaries-have-cargolock-in-version-control-but-not-libraries
2020-04-10 10:41:45 +08:00
Akshay
2d0e969909
update links
2020-02-03 19:05:41 +05:30
Maximilian Bosch
cacf51dbb9
Fix tests
...
`eval_math_expression` expects `std::option::Option<f64>` rather than
`f64`.
2019-12-05 14:38:54 +01:00
Akshay
6ce0fc0212
bump version
2019-11-07 22:13:32 +05:30
Akshay
016e9e7036
Merge branch 'master' of https://github.com/nerdypepper/eva
2019-11-07 21:45:26 +05:30
Akshay
10e5923267
fix broken links
2019-11-07 21:45:10 +05:30
Akshay
7deddbe1eb
Merge pull request #29 from jcgruenhage/patch-1
...
Rename LICENCE to LICENSE
2019-10-28 14:03:39 +00:00