Commit Graph

67 Commits

Author SHA1 Message Date
Sebastian Schmidt
9283d5412f Rename Context to ContextMut and Configuration to Context
Get rid of two different words for the same concept.

Relates to #22
2019-03-27 18:09:33 +01:00
Sebastian Schmidt
b65127c2cb Add Context trait
* Rename `HashMapConfiguration` to `HashMapContext`
 * Rename `EmptyConfiguration` to `EmptyContext`
 * Implement `Context` for both predefined contexts
 * Add the `ContextNotManipulable` error variant
 * Add function `EvalexprError::expected_type` to emit a specific type error when a type is expected dynamically within a context
 * Update tests and doctests
 * Add ValueType enum to aid dynamic typing

Relates to #22
2019-03-27 17:53:01 +01:00
Sebastian Schmidt
d64aacea17 Update changelog 2019-03-27 16:19:56 +01:00
Sebastian Schmidt
a33c91813b Prepare changelog for next development iteration 2019-03-23 16:17:09 +02:00
Sebastian Schmidt
6e5d8e6d75 Prepare change log for release 2019-03-23 16:15:48 +02:00
Sebastian Schmidt
1a733ccf63 Log addition of custom error type in change log 2019-03-23 15:30:54 +02:00
Sebastian Schmidt
a7ca4c717d Implement, test and document serde Deserialize for expressions
Relates to #18
2019-03-23 15:20:43 +02:00
Sebastian Schmidt
5e491f6771 Add serde feature
Relates to #18
2019-03-23 12:46:52 +02:00
Sebastian Schmidt
348578ca9f Add missing unreleased section header to changelog 2019-03-21 12:45:58 +02:00
Sebastian Schmidt
3a816fa7e7 Add highlighting to readme 2019-03-21 09:40:50 +02:00
Sebastian Schmidt
ef24c068fd Prepare changelog for release 2019-03-20 17:43:06 +02:00
Sebastian Schmidt
e4f12da24e Organize change log and complete it for #15 2019-03-20 17:09:16 +02:00
Sebastian Schmidt
e337520805 Introduce TupleType type alias for representing tuples 2019-03-20 16:40:57 +02:00
Sebastian Schmidt
2dac0576a7 Add shortcut functions for evaluating directly into a value type
+ Added shortcut functions `eval_[type]` and `eval_[type]_with_configuration` for each value type
 + Added integration tests for the above

 Partially implements #15
2019-03-20 16:29:50 +02:00
Sebastian Schmidt
5549f1bba5 Make internal value type aliases for float and int public 2019-03-20 16:18:52 +02:00
Sebastian Schmidt
36a65c470b Refactor lib.rs
* Move tests into integration test folder
 * Move crate methods into interface module
2019-03-20 15:48:05 +02:00
Sebastian Schmidt
3bcb9b2770 Add initial change log 2019-03-20 15:37:07 +02:00