Commit Graph

511 Commits

Author SHA1 Message Date
Sebastian Schmidt
e70e9d366a Use explicit operator type for reading and writing variables.
Before, variables written to were represented with the same operator as constants in the AST. This was hacky and confusing to some users.

Closes #106
2022-07-04 17:10:28 +03:00
Sebastian Schmidt
54c4286672 Use double dot syntax in operator/mod.rs. 2022-07-04 17:03:32 +03:00
Sebastian Schmidt
65fadfd164 Add tests for left-hand side of assignment being an identifier.
Relates to #106
2022-07-04 16:50:50 +03:00
Sebastian Schmidt
563d82a525 Fix unnecessary unused lints. 2022-07-04 14:51:27 +03:00
Sebastian Schmidt
5f1aa344ab Fix unnecessary format lints. 2022-07-04 14:44:34 +03:00
Sebastian Schmidt
d9c5d5dbbb Test new TryFrom<Value> impls.
Closes #105
2022-07-04 14:39:27 +03:00
Sebastian Schmidt
a75685b624 Fix lints in bench. 2022-07-04 14:37:48 +03:00
Sebastian Schmidt
4927de7ac6 Implement TryFrom<Value> for all types a value can store. 2022-07-04 14:37:48 +03:00
ISibboI
e35a7e556a
Update CHANGELOG.md 2022-07-04 14:08:33 +03:00
ISibboI
c55a9517ba
Merge pull request #102 from lovasoa/random
new function: random()
2022-07-04 14:07:43 +03:00
lovasoa
3358ba3c4a
Refuse versions of rand before 0.8.5
https://github.com/ISibboI/evalexpr/pull/102#discussion_r845129883
2022-04-20 20:55:17 +02:00
lovasoa
7227d02a9c
Add a comment for the random() != random() test 2022-04-20 20:53:08 +02:00
ISibboI
687f762115
Merge branch 'main' into random 2022-04-07 16:20:41 +03:00
ISibboI
2275bb5442
Update CHANGELOG.md 2022-04-07 15:20:26 +02:00
ISibboI
c4b39deee4
Merge pull request #101 from lovasoa/main
Add support for is_nan and other floating-point functions
2022-04-07 16:19:16 +03:00
Ophir LOJKINE
7c90768afb add newline at the end of the file to make cargo fmt happy 2022-03-30 14:46:23 +02:00
Ophir LOJKINE
27bd1a32d7 add comment
Fixes https://github.com/ISibboI/evalexpr/pull/101#discussion_r838444554
2022-03-30 14:44:19 +02:00
Ophir LOJKINE
bce31e24ae new function: random()
random() returns a random number between 0 and 1
2022-03-30 14:39:26 +02:00
Ophir LOJKINE
9d5ef651ae cargo fmt 2022-03-23 18:09:23 +01:00
Ophir LOJKINE
8eedf720e7 Implement changes requested in PR
https://github.com/ISibboI/evalexpr/pull/101#issuecomment-1076466426
2022-03-23 16:33:53 +01:00
Ophir LOJKINE
678c881377 fix test 2022-03-23 13:56:22 +01:00
Ophir LOJKINE
553f3323d2
Merge branch 'main' into main 2022-03-23 13:15:30 +01:00
Ophir LOJKINE
10528d198c sync README.md 2022-03-23 13:13:22 +01:00
Ophir LOJKINE
3c4a429e8d Remove is_sumbnormal 2022-03-23 13:11:41 +01:00
Ophir LOJKINE
2e0ef6ea4c add new functions to the readme 2022-03-23 13:08:21 +01:00
Ophir LOJKINE
ea42cf6355 Add support for is_nan, is_finite, and other floating-point testing functions 2022-03-23 13:04:09 +01:00
Sebastian Schmidt
d2ee6cd3ad Release 7.2.0
evalexpr@7.2.0

Generated by cargo-workspaces
2022-03-23 12:24:22 +01:00
Sebastian Schmidt
117405e226 Try fixing sync-readme in CI. 2022-03-23 12:24:22 +01:00
Sebastian Schmidt
e3b7e3c63c Add sync-readme check to CI. 2022-03-23 12:24:22 +01:00
Sebastian Schmidt
c86dbcd74c Prepare changelog for 7.2.0 release. 2022-03-23 12:24:22 +01:00
Sebastian Schmidt
13004867ce Sync README. 2022-03-23 12:24:22 +01:00
Sebastian Schmidt
c514410323 Release 7.2.0
evalexpr@7.2.0

Generated by cargo-workspaces
2022-03-16 16:30:12 +02:00
Sebastian Schmidt
ddd088a1ee Try fixing sync-readme in CI. 2022-03-16 16:26:11 +02:00
Sebastian Schmidt
e9ebb211e0 Add sync-readme check to CI. 2022-03-16 16:22:14 +02:00
Sebastian Schmidt
d321fa9363 Prepare changelog for 7.2.0 release. 2022-03-16 16:18:32 +02:00
Sebastian Schmidt
32a88b1e07 Sync README. 2022-03-16 16:13:37 +02:00
ISibboI
642289588d
Merge pull request #100 from lovasoa/main
Add an "if" function
2022-03-16 16:10:53 +02:00
Ophir LOJKINE
d96ab3abf4 fix typo 2022-03-14 16:09:41 +01:00
Ophir LOJKINE
65bf8adc9c remove duplicated code 2022-03-14 16:08:08 +01:00
Ophir LOJKINE
af77f1703e remove unnecessary clone 2022-03-14 15:58:42 +01:00
Ophir LOJKINE
7522df14b7 remove dead code 2022-03-14 15:50:08 +01:00
Ophir LOJKINE
004c2c9f03 more tests 2022-03-14 15:30:52 +01:00
Ophir LOJKINE
9eedc8e93b cargo fmt 2022-03-14 15:07:38 +01:00
Ophir LOJKINE
a219f0b66f Add an "if" function
If the first argument is true, returns the second argument, otherwise, return the third
2022-03-14 14:59:48 +01:00
Sebastian Schmidt
a1bfe7c0b6 Release 7.1.1
evalexpr@7.1.1

Generated by cargo-workspaces
2022-03-14 13:25:57 +02:00
Sebastian Schmidt
6ded87ff10 Prepare changelog for 7.1.1 release. 2022-03-14 13:25:37 +02:00
Sebastian Schmidt
19b4ac2e83 Update regex crate to 1.5.5 to fix security vulnerability.
See https://groups.google.com/g/rustlang-security-announcements/c/NcNNL1Jq7Yw?pli=1
2022-03-14 13:19:35 +02:00
Sebastian Schmidt
9d58d16a9b Release 7.1.0
evalexpr@7.1.0

Generated by cargo-workspaces
2022-03-13 12:38:29 +02:00
Sebastian Schmidt
2b5ed30428 Update changelog for 7.1.0 release. 2022-03-13 12:30:08 +02:00
ISibboI
6de3a0a925
Merge pull request #98 from FractalDiane/main
Implement bitwise shift functions
2022-03-13 12:23:31 +02:00