JuliaInterop / JuliaInterop/MATLAB.jl
Custom REPL
Open
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 286
- Forks
- 64
- PR merge metrics
- No merged PRs in 30d
Description
It would be cool to have a custom REPL mode. For example:
julia> using MATLAB, ReplMaker
julia> matlab_parse(str) = Meta.parse("mat\"$str\"")
matlab_parse (generic function with 1 method)
julia> initrepl(matlab_parse;
prompt_text = ">> ",
start_key = ">>",
mode_name = "MATLAB-Mode",
)
REPL mode MATLAB-Mode initialized. Press >> to enter and backspace to exit.
"Prompt(\">> \",...)"
>> $a = rand(5)
julia> b = log.(a)
5×5 Array{Float64,2}:
-1.21512 -1.33757 -0.716193 -0.603662 -0.386935
-1.14326 -0.221876 -0.547273 -0.651745 -0.927566
-0.857629 -3.53289 -1.4385 -1.46277 -1.0012
-0.677553 -0.0738036 -0.779034 -0.715602 -0.0120908
-2.45905 -0.314258 -0.0376099 -0.471509 -3.27706
>> figure; plot($b)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the issue's Julia REPL example, including ReplMaker's initrepl entry point and the matlab_parse function. No repository file, test, implementation scope, or acceptance criteria is named; done would require an agreed design for adding custom REPL support to MATLAB.jl and corresponding validation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia, matlab
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100