summaryrefslogtreecommitdiff
path: root/src/grammar.lalrpop
diff options
context:
space:
mode:
authorNanoTech2016-12-08 14:59:02 -0600
committerNanoTech2017-03-10 23:48:28 -0600
commit82d50e8734e0caad0b34ae32493ab831e7ec7fae (patch)
tree46313eba36843544e9d5c8deeae39aff1d81c5d9 /src/grammar.lalrpop
parent0b2d2ccee2023198d60b48154b9b211e47b782ec (diff)
Seperate built-in types and functions from Expr
Diffstat (limited to 'src/grammar.lalrpop')
-rw-r--r--src/grammar.lalrpop5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/grammar.lalrpop b/src/grammar.lalrpop
index 63c17ad..0a103d1 100644
--- a/src/grammar.lalrpop
+++ b/src/grammar.lalrpop
@@ -1,6 +1,7 @@
use core;
use core::bx;
use core::Expr::*;
+use core::BuiltinType::*;
use grammar_util::*;
use lexer::*;
@@ -119,8 +120,8 @@ ExprF: BoxExpr<'input> = {
Text => bx(TextLit(<>)),
Label => bx(Var(core::V(<>, 0))), // FIXME support var@n syntax
Const => bx(Const(<>)),
- List => bx(List),
- Optional => bx(Optional),
+ List => bx(BuiltinType(List)),
+ Optional => bx(BuiltinType(Optional)),
Builtin => bx(builtin_expr(<>)),
Bool => bx(BoolLit(<>)),
Record,