Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Commit

Permalink
Add basic "so" && run spectest
Browse files Browse the repository at this point in the history
  • Loading branch information
coke committed Apr 9, 2012
1 parent 83ce35c commit 2512b2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Pugs/src/Pugs/Prim.hs
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ op1 "list" = op1Cast VList
op1 "pair" = op1Cast $ VList . (map $ \(k, v) -> castV ((VStr k, v) :: VPair))
op1 "~" = op1Cast VStr
op1 "?" = op1Cast VBool
op1 "so" = op1Cast VBool
op1 "Bool" = op1Cast VBool
op1 "int" = op1Cast VInt
op1 "Int" = op1Cast VInt
Expand Down Expand Up @@ -1889,6 +1890,7 @@ initSyms = seq (length syms) $ do
\\n Num spre - safe (Num)\
\\n Str spre ~ safe (Str)\
\\n Bool spre ? safe (Bool)\
\\n Bool pre so safe (Any)\
\\n Str spre = unsafe (?IO)\
\\n List spre = unsafe (?IO)\
\\n Str pre readline unsafe (?IO)\
Expand Down
1 change: 1 addition & 0 deletions t/spectest.data
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ S03-operators/repeat.t
S03-operators/scalar-assign.t
# S03-operators/set.t # NYI
S03-operators/short-circuit.t
S03-operators/so.t
S03-operators/spaceship-and-containers.t
S03-operators/subscript-vs-lt.t
S03-operators/ternary.t
Expand Down

0 comments on commit 2512b2d

Please sign in to comment.