File tree 2 files changed +27
-2
lines changed
2 files changed +27
-2
lines changed Original file line number Diff line number Diff line change 1
1
name = " Reduce"
2
2
uuid = " 93e0c654-6965-5f22-aba9-9c1ae6b3c259"
3
3
authors = [" Michael Reed" ]
4
- version = " 1.2.7 "
4
+ version = " 1.2.8 "
5
5
6
6
[deps ]
7
7
REPL = " 3fa0cd96-eef1-5676-8a61-b3b8758bbffb"
Original file line number Diff line number Diff line change @@ -367,7 +367,32 @@ function Load()
367
367
return nothing
368
368
end
369
369
370
- Preload () = (global rs= PSL (); global s; eval (s); atexit (()-> kill (rs)))
370
+ function Preload ()
371
+ global rs= PSL ()
372
+ offs = " "
373
+ for o in offlist
374
+ global offs
375
+ o != :nat && (offs = offs* " off $o ; " )
376
+ end
377
+ write (rs. input," off nat; $EOTstr ;\n " )
378
+ banner = readuntil (rs. output,EOT) |> String
379
+ readavailable (rs. output)
380
+ rcsl = occursin (" CSL " ,banner)
381
+ if Sys. iswindows ()
382
+ banner = replace (banner,r" \r " => " " )
383
+ println (split (String (banner),' \n ' )[rcsl ? 1 : end - 3 ])
384
+ else
385
+ ReduceCheck (banner)
386
+ println (split (String (banner),' \n ' )[rcsl ? 1 : end - 3 ])
387
+ end
388
+ load_package (:rlfi )
389
+ offs |> RExpr |> rcall
390
+ rcall (R " on savestructr" )
391
+ show (devnull ," text/latex" ,R " int(sinh(e**i*z),z)" )
392
+ R " x" == R " x"
393
+ ListPrint (0 )
394
+ atexit (()-> kill (rs))
395
+ end
371
396
372
397
global preload = false
373
398
try
You can’t perform that action at this time.
0 commit comments