about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2005-07-16T23·19+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2005-07-16T23·19+0000
commit2135e7c0417b366b4161d01ebf794d25e96b61ba (patch)
tree1ddfd402fb38291429cf5b8e46999bae7a7b3c35
parent6f82a78de7ac02ec5665f17248c4fe98bd4f5847 (diff)
* Wat cleanups.
-rw-r--r--src/libexpr/nix.sdf15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/libexpr/nix.sdf b/src/libexpr/nix.sdf
index 19e9bd1e92db..e60311e73cc6 100644
--- a/src/libexpr/nix.sdf
+++ b/src/libexpr/nix.sdf
@@ -14,15 +14,11 @@ imports Nix-Exprs Nix-Layout
 module Nix-Exprs
 imports Nix-Lexicals
 exports
-  sorts Expr Formal Bind Binds ExprList
+  sorts Expr Formal Bind ExprList
   context-free start-symbols Expr
   context-free syntax
 
-    Id -> Expr {cons("Var")}
-    Int -> Expr {cons("Int")}
-    Str -> Expr {cons("Str")}
-    Uri -> Expr {cons("Uri")}
-    Path -> Expr {cons("Path")}
+    Id | Int | Str | Uri | Path -> Expr {cons("Var")}
 
     "(" Expr ")" -> Expr {bracket}
 
@@ -37,11 +33,10 @@ exports
 
     "with" Expr ";" Expr -> Expr {cons("With")}
 
-    "rec" "{" Binds "}" -> Expr {cons("Rec")}
-    "let" "{" Binds "}" -> Expr {cons("LetRec")}
-    "{" Binds "}" -> Expr {cons("Attrs")}
+    "rec" "{" Bind* "}" -> Expr {cons("Rec")}
+    "let" "{" Bind* "}" -> Expr {cons("LetRec")}
+    "{" Bind* "}" -> Expr {cons("Attrs")}
 
-    Bind* -> Binds
     Id "=" Expr ";" -> Bind {cons("Bind")}
     "inherit" ("(" Expr ")")? Id* ";" -> Bind {cons("Inherit")}