diff options
author | Nadrieril | 2019-03-03 00:08:57 +0100 |
---|---|---|
committer | Nadrieril | 2019-03-03 00:26:23 +0100 |
commit | b7ce3e60770be41d8ccf773541c586c75d2a4e38 (patch) | |
tree | 19fe6bcc070358f2d46a75f5df72adeaba4b08f8 /dhall/src/grammar.lalrpop | |
parent | 54d3f23e68bf6e769d8a96e40a2b0c4426e38507 (diff) |
Merge builtins in a single enum
Diffstat (limited to '')
-rw-r--r-- | dhall/src/grammar.lalrpop | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/dhall/src/grammar.lalrpop b/dhall/src/grammar.lalrpop index 150961f..250a45e 100644 --- a/dhall/src/grammar.lalrpop +++ b/dhall/src/grammar.lalrpop @@ -5,7 +5,8 @@ use std::iter::FromIterator; use crate::core; use crate::core::bx; use crate::core::Expr::*; -use crate::core::BuiltinType::*; +use crate::core::Builtin; +use crate::core::Builtin::*; use crate::grammar_util::*; use crate::lexer::*; @@ -120,9 +121,9 @@ ExprF: BoxExpr<'input> = { Text => bx(TextLit(<>)), Label => bx(Var(core::V(<>, 0))), // FIXME support var@n syntax Const => bx(Const(<>)), - List => bx(BuiltinType(List)), - Optional => bx(BuiltinType(Optional)), - Builtin => bx(builtin_expr(<>)), + List => bx(Builtin(List)), + Optional => bx(Builtin(Optional)), + Builtin => bx(Builtin(<>)), Bool => bx(BoolLit(<>)), Record, RecordLit, |