Commit Graph

527 Commits

Author SHA1 Message Date
natan
ebd08caa91 Formats code. 2022-11-21 19:50:22 +02:00
Natan Freeman
927e0e4075 Replaces f64 and i64 with FloatType and IntType. 2022-09-14 21:36:36 +03:00
Sebastian Schmidt
db191e1674 Release 8.1.0
evalexpr@8.1.0

Generated by cargo-workspaces
2022-07-22 12:20:08 +03:00
Sebastian Schmidt
70a749194f Add tests for iterating only variable names in a context.
Relates to #108
2022-07-22 12:18:56 +03:00
ISibboI
86f7f17b0d
Update CHANGELOG.md 2022-07-22 11:17:26 +02:00
ISibboI
4033273cf9
Update changelog for 8.1.0 2022-07-22 11:09:17 +02:00
ISibboI
b8a90b065b
Merge pull request #110 from tsmt09/iter_read_write_vars
iter_(read/write)_variable_identifiers
2022-07-22 11:05:48 +02:00
Tobias Schmitt
165c606ed4 typo in doctest 2022-07-21 21:16:09 +02:00
Tobias Schmitt
532e2ed770 adds iter_(read/write)_variable_identifiers
seperate iterator returns for read and write variable identifiers.
this is useful in our project and i suspect it might be of use for
others too.
2022-07-21 21:12:26 +02:00
Sebastian Schmidt
a4f49de71a Add tests for context variable iteration.
Relates to #108
2022-07-15 13:50:14 +03:00
Sebastian Schmidt
4cc86e7683 Add trait to allow iterating over all variables in a context.
Both iterating with and without values is supported.
Due to limitations in the language, currently only iterating by cloning is supported. When GATs are stabilised, this should change.

Relates to #108
2022-07-15 13:44:31 +03:00
Sebastian Schmidt
3d60c66305 Replace version specification in README with "desired version". 2022-07-15 13:16:24 +03:00
Sebastian Schmidt
33828ee94b Release 8.0.0
evalexpr@8.0.0

Generated by cargo-workspaces
2022-07-06 11:26:27 +03:00
Sebastian Schmidt
a70981f0c5 Update changelog for 8.0.0 release. 2022-07-06 11:25:51 +03:00
ISibboI
c0b46a4e8d
Merge pull request #107 from ISibboI/sebschmi/i106_identifier_is_variable_bug
Split VariableIdentifier node into read and write variants
2022-07-06 11:23:20 +03:00
Sebastian Schmidt
7e3fdef92e Update changelog. 2022-07-06 11:14:29 +03:00
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