diff options
Diffstat (limited to 'src/boot/ast.boot')
-rw-r--r-- | src/boot/ast.boot | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/boot/ast.boot b/src/boot/ast.boot index 54d9b7ed..3d21b6f7 100644 --- a/src/boot/ast.boot +++ b/src/boot/ast.boot @@ -74,6 +74,7 @@ structure %Ast == %EqualPattern(%Ast) -- =x -- patterns %Colon(%Symbol) -- :x %QualifiedName(%Symbol,%Symbol) -- m::x + %Restrict(%Ast,%Ast) -- x@t %DefaultValue(%Symbol,%Ast) -- opt. value for function param. %Key(%Symbol,%Ast) -- k <- x %Bracket(%Ast) -- [x, y] @@ -1146,6 +1147,9 @@ bfTagged(a,b)== a ["THE",b,a] +bfRestrict(x,t) == + ["THE",t,x] + bfAssign(l,r)== bfTupleP l => bfSetelt(second l,CDDR l ,r) l is ["%Place",:l'] => ["SETF",l',r] |