Expected "end" error while loading a module

I am having the following problem loading a module:

LoadError: syntax: "module" at C:\Users\shiha\LyapunovExponentsWithForwardDiff.jl:1 expected "end", got "LyapunovExponentsResult"
in expression starting at C:\Users\shiha\LyapunovExponentsWithForwardDiff.jl:9

Stacktrace:
 [1] top-level scope
   @ C:\Users\shiha\LyapunovExponentsWithForwardDiff.jl:9
 [2] include(fname::String)
   @ Base.MainInclude .\client.jl:476
 [3] top-level scope
   @ In[61]:1
 [4] eval
   @ .\boot.jl:368 [inlined]
 [5] include_string(mapexpr::typeof(REPL.softscope), mod::Module, code::String, filename::String)
   @ Base .\loading.jl:1428

The module I am trying to load is here. I can’t understand where the missing “end” is.

I am trying to load the module using:

include(“LyapunovExponentsWithForwardDiff.jl”)

Thanks in advance!!

Apparently the notebook dates back to Julia 0.5, which is positively prehistoric. Not a surprise you get errors here and there. In particular, I see that it uses the type syntax to define new objects, which is now done with struct. Expect plenty more of these inconsistencies

1 Like

Ah okay… I should’ve noticed. Thanks a lot.