diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-11-03T11·59+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-11-03T11·59+0000 |
commit | e2655aa332a33b56d9168928511a598fc9b0c1e6 (patch) | |
tree | 6801c00bc1f2f9995f1627c1a6b2df7e20ca55af /src/fix-ng/fix.sdf | |
parent | ad0976f8d5f2afbca4e2fe6cbb3d2c2e53760222 (diff) |
* Shorter list syntax ([a b c] instead of [a, b, c]).
Diffstat (limited to 'src/fix-ng/fix.sdf')
-rw-r--r-- | src/fix-ng/fix.sdf | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/fix-ng/fix.sdf b/src/fix-ng/fix.sdf index e09480314bc4..8e9f0fa72163 100644 --- a/src/fix-ng/fix.sdf +++ b/src/fix-ng/fix.sdf @@ -45,7 +45,9 @@ exports Bind ";" -> BindSemi BindSemi* -> Binds - "[" Expr* "]" -> Expr {cons("List")} + "[" ExprList "]" -> Expr {cons("List")} + "" -> ExprList {cons("ExprNil")} + Expr ExprList -> ExprList {cons("ExprCons")} Expr "." Id -> Expr {cons("Select")} @@ -58,7 +60,7 @@ exports context-free priorities Expr "." Id -> Expr - > + > Expr ExprList -> ExprList > Expr Expr -> Expr > "{" {Id ","}* "}" ":" Expr -> Expr |