This repository was archived by the owner on Feb 3, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ op0 :: String -> [Val] -> Eval Val
68
68
op0 " &" = fmap opJuncAll . mapM fromVal
69
69
op0 " ^" = fmap opJuncOne . mapM fromVal
70
70
op0 " |" = fmap opJuncAny . mapM fromVal
71
+ op0 " e" = const . return $ VNum $ exp 1
71
72
op0 " want" = const $ fmap VStr (asks (maybe " Item" envWant . envCaller))
72
73
op0 " Bool::True" = const . return $ VBool True
73
74
op0 " Bool::False" = const . return $ VBool False
@@ -162,8 +163,8 @@ op1 "sin" = op1Floating sin
162
163
op1 " tan" = op1Floating tan
163
164
op1 " sqrt" = op1Floating sqrt
164
165
op1 " atan" = op1Floating atan
165
- op1 " acos" = op1Floating cos
166
- op1 " asin" = op1Floating sin
166
+ op1 " acos" = op1Floating cos
167
+ op1 " asin" = op1Floating sin
167
168
op1 " post:i" = \ x -> do
168
169
n <- fromVal x
169
170
return $ VComplex (0 :+ n)
@@ -2315,5 +2316,6 @@ initSyms = seq (length syms) $ do
2315
2316
\\n Bool pre Pugs::Internals::current_pragma_value safe (Str)\
2316
2317
\\n Bool pre Pugs::Internals::caller_pragma_value safe (Str)\
2317
2318
\\n Num pre Pugs::Internals::base safe (Int, Any)\
2319
+ \\n Num pre e safe ()\
2318
2320
\\n Any pre vv safe (Any)\
2319
2321
\\n "
Original file line number Diff line number Diff line change @@ -369,5 +369,6 @@ S32-str/tc.t
369
369
S32-str/trim.t
370
370
S32-str/uc.t
371
371
S32-temporal/time.t
372
+ S32-trig/e.t
372
373
S32-trig/pi.t
373
374
S32-trig/simple.t
You can’t perform that action at this time.
0 commit comments