chakravala / Reduce.jl
Showing 2 of 3 files from the diff.
Other files ignored by Codecov
src/repl.jl has changed.

@@ -318,57 +318,13 @@
Loading
318 318
```
319 319
"""
320 320
Reset() = (kill(rs); Load())
321 -
__init__() = (Load(); atexit(() -> kill(rs)))
321 +
__init__() = (Load(); repl_init(); atexit(() -> kill(rs)))
322 322
323 323
# Server setup
324 324
325 -
const s = quote; #global rs = PSL()
326 -
    offs = ""
327 -
    for o in offlist
328 -
        global offs
329 -
        o != :nat && (offs = offs*"off $o; ")
330 -
    end
331 -
    write(rs.input,"off nat; $EOTstr;\n")
332 -
    banner = readuntil(rs.output,EOT) |> String
333 -
    readavailable(rs.output)
334 -
    rcsl = occursin(" CSL ",banner)
335 -
    if Sys.iswindows()
336 -
        banner = replace(banner,r"\r" => "")
337 -
        println(split(String(banner),'\n')[rcsl ? 1 : end-3])
338 -
    else
339 -
        ReduceCheck(banner)
340 -
        println(split(String(banner),'\n')[rcsl ? 1 : end-3])
341 -
    end
342 -
    load_package(:rlfi)
343 -
    offs |> RExpr |> rcall
344 -
    rcall(R"on savestructr")
345 -
    show(devnull,"text/latex",R"int(sinh(e**i*z),z)")
346 -
    R"x" == R"x"
347 -
    ListPrint(0)
348 -
end
349 -
350 325
function Load()
351 326
    global rs = PSL()
352 -
    global s
353 -
    if isdefined(Base,:active_repl) && isinteractive()
354 -
        eval(s)
355 -
        repl_init(Base.active_repl)
356 -
    elseif isdefined(Main,:IJulia)
357 -
        eval(s)
358 -
    else
359 -
        atreplinit() do repl
360 -
            eval(s)
361 -
            !isdefined(Main,:OhMyREPL) &&
362 -
                (repl.interface = Base.REPL.setup_interface(repl))
363 -
            repl_init(Base.active_repl)
364 -
            print('\n')
365 -
        end
366 -
    end
367 -
    return nothing
368 -
end
369 327
370 -
function Preload()
371 -
    global rs=PSL()
372 328
    offs = ""
373 329
    for o in offlist
374 330
        o != :nat && (offs = offs*"off $o; ")
@@ -379,18 +335,14 @@
Loading
379 335
    rcsl = occursin(" CSL ",banner)
380 336
    if Sys.iswindows()
381 337
        banner = replace(banner,r"\r" => "")
382 -
        println(split(String(banner),'\n')[rcsl ? 1 : end-3])
383 338
    else
384 339
        ReduceCheck(banner)
385 -
        println(split(String(banner),'\n')[rcsl ? 1 : end-3])
386 340
    end
341 +
    global banner = split(String(banner),'\n')[rcsl ? 1 : end-3]
387 342
    load_package(:rlfi)
388 343
    offs |> RExpr |> rcall
389 344
    rcall(R"on savestructr")
390 -
    show(devnull,"text/latex",R"int(sinh(e**i*z),z)")
391 -
    R"x" == R"x"
392 -
    ListPrint(0)
393 -
    atexit(()->kill(rs))
345 +
    return nothing
394 346
end
395 347
396 348
global preload = false

@@ -1,6 +1,6 @@
Loading
1 1
global rs = nothing
2 2
@info "Precompiling extra Reduce methods (set `ENV[\"REDPRE\"]=\"0\"` to disable)"
3 -
Reduce.Preload(); atexit(() -> kill(rs))
3 +
Reduce.Load(); atexit(() -> kill(rs))
4 4
5 5
rcall(:((1+pi)^2)) == convert(Expr,RExpr(rcall("(1+pi)**2")))
6 6
try; "1/0" |> rcall; false; catch; true; end
Files Coverage
src 80.88%
Project Totals (7 files) 80.88%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading