Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2021-04-10 | add type substitutions to serde_dhall | stuebinm | 1 | -0/+13 | |
this adds subsititutions, which work similar to the `Dhall.substitutions` mechanism of the Haskell dhall package, and which can be used e.g. like this: ```rust serde_dhall.from_str(...) .substitute_names(hashmap!["Newtype" => static_type]) .parse::<SimpleType>()? ``` The idea behind this is to make it easy to add programmer-defined types which may be used in configs for programs, without forcing the program's users to re-import the same type definitions each time (or the programmers to keep the dhall-based definitions in sync with their rust types, since these are now generated automatically). Caveats so far: - makes some of the code ugly (dhall internals are now used in serde_dhall/src/lib.rs, for example) - haven't tested error messages so far - some unecessary copying of strings and static type values | |||||
2020-11-01 | Untangle caching code | Nadrieril | 1 | -3/+2 | |
2020-10-28 | Prefer u64/i64 to usize/isize | Nadrieril | 1 | -3/+2 | |
2020-10-27 | Make `SimpleValue` deserializable within other types | Nadrieril | 1 | -0/+1 | |
Fixes https://github.com/Nadrieril/dhall-rust/issues/184 | |||||
2020-04-07 | Move duplicate field checking to parser | Nadrieril | 1 | -3/+2 | |
2020-04-06 | Move BinOp and Builtin definitions in the relevant module | Nadrieril | 1 | -68/+1 | |
2020-04-06 | Extract operation-related code to a new module | Nadrieril | 1 | -63/+2 | |
2020-04-06 | Factor out operations in typecheck | Nadrieril | 1 | -2/+2 | |
2020-04-06 | Split off operations from main expr enum | Nadrieril | 1 | -36/+85 | |
2020-04-05 | Check code hashes in import | Nadrieril | 1 | -0/+8 | |
2020-03-31 | Brutally make all of dhall pub | Nadrieril | 1 | -5/+5 | |
2020-03-31 | Rename LitKind to NumKind | Nadrieril | 1 | -3/+3 | |
2020-03-20 | Remove more unnecessary parens in printer | Nadrieril | 1 | -2/+2 | |
2020-03-17 | Remove never_type feature | Nadrieril | 1 | -2/+4 | |
2020-03-05 | Implement some normalization simplifications | Nadrieril | 1 | -1/+1 | |
2020-03-02 | Normalization for ProjectionByExpr | Basile Henry | 1 | -1/+1 | |
2020-02-20 | Add support for duplicate record fields | Nadrieril | 1 | -1/+3 | |
2020-02-19 | Expose fewer pub things | Nadrieril | 1 | -16/+3 | |
2020-02-16 | Start requiring Universe to build a Type | Nadrieril | 1 | -0/+7 | |
2020-02-11 | Introduce LitKind to factor out common enum nodes | Nadrieril | 1 | -8/+14 | |
2020-02-11 | Simplify ExprKind visitor | Nadrieril | 1 | -2/+2 | |
2020-02-11 | Remove the Embed variant from ExprKind | Nadrieril | 1 | -39/+19 | |
2020-02-09 | Resolve by ref instead of by mut | Nadrieril | 1 | -49/+4 | |
2020-02-02 | Fix spans for unions and records | Nadrieril | 1 | -0/+6 | |
2020-01-29 | Cleanup variable handling | Nadrieril | 1 | -11/+5 | |
2020-01-29 | Finally get rid of all of the shift/subst_shift ! | Nadrieril | 1 | -22/+0 | |
2020-01-29 | Remove dead code | Nadrieril | 1 | -4/+0 | |
2020-01-18 | Add Expr visitor and improve tyexpr_to_expr | Nadrieril | 1 | -14/+33 | |
2020-01-18 | Introduce intermediate representation that stores typed expr | Nadrieril | 1 | -1/+1 | |
2020-01-17 | Replace all bulk shifting by a single shift | Nadrieril | 1 | -26/+0 | |
2020-01-17 | Implement bulk shifting | Nadrieril | 1 | -4/+29 | |
2020-01-17 | Simplify Shift and Subst instances | Nadrieril | 1 | -3/+0 | |
2020-01-17 | Remove binder ids | Nadrieril | 1 | -0/+9 | |
The underlying purpose of them turned out to be unsound | |||||
2020-01-17 | Implement traverse_ref for ValueKind | Nadrieril | 1 | -1/+1 | |
2019-12-23 | Add two new Integer builtins | Nadrieril | 1 | -0/+2 | |
2019-12-22 | Implement parsing for record completion | Nadrieril | 1 | -0/+2 | |
2019-12-20 | Remove Expr::as_mut | Nadrieril | 1 | -9/+6 | |
2019-12-20 | s/RawExpr/UnspannedExpr/ | Nadrieril | 1 | -5/+5 | |
2019-12-20 | Use a named struct instead of a tuple in Expr | Nadrieril | 1 | -10/+19 | |
2019-12-20 | Remove an unused impl | Nadrieril | 1 | -7/+1 | |
2019-12-20 | Reorganize ast::expr | Nadrieril | 1 | -75/+76 | |
2019-12-20 | s/ExprF/ExprKind/ | Nadrieril | 1 | -12/+12 | |
2019-12-19 | Rename syntax::core to syntax::ast | Nadrieril | 1 | -0/+0 | |
2019-12-17 | Typo | Nadrieril | 1 | -1/+1 | |
2019-12-15 | Move contents of dhall_syntax to dhall | Nadrieril | 1 | -3/+3 | |
2019-11-11 | Parse projection by expression | Nadrieril | 1 | -0/+2 | |
2019-11-11 | Capture absence of span in Span itself | Nadrieril | 1 | -14/+4 | |
2019-11-11 | Move Span definition to its own file | Nadrieril | 1 | -35/+0 | |
And prepare for more variants | |||||
2019-11-11 | Remove unused function | Nadrieril | 1 | -4/+0 | |
2019-09-09 | Make ParseInput independent from dhall-specific types | Nadrieril | 1 | -6/+2 | |