diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-08-14 20:43:03 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-08-14 20:43:03 +0200 |
| commit | c8f6b5bd5c55845562571c196a0b2c1a7ca20f71 (patch) | |
| tree | 0e5066064f1bf81f847cb1cfe23578e2f42fe1e8 /src/syntax/value.rs | |
| parent | 650c712eabc6f665a0a0cc2a47fb5b90cf715d87 (diff) | |
Desugar body into last argument 🍩
Diffstat (limited to 'src/syntax/value.rs')
| -rw-r--r-- | src/syntax/value.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/syntax/value.rs b/src/syntax/value.rs index c523ff93..aa5049e0 100644 --- a/src/syntax/value.rs +++ b/src/syntax/value.rs @@ -8,6 +8,7 @@ use crate::paper::Paper; use crate::Feedback; use super::expr::*; use super::span::Spanned; +use super::tree::SyntaxTree; /// Value types are used to extract values from functions, tuples and /// objects. They represent the value part of an argument. @@ -58,6 +59,7 @@ match_value!(String, "string", Expr::Str(s) => s); match_value!(bool, "bool", Expr::Bool(b) => b); match_value!(f64, "number", Expr::Number(n) => n); match_value!(Length, "length", Expr::Length(l) => l); +match_value!(SyntaxTree, "tree", Expr::Tree(t) => t); match_value!(Tuple, "tuple", Expr::Tuple(t) => t); match_value!(Object, "object", Expr::Object(o) => o); match_value!(ScaleLength, "number or length", |
