cellsplit

Crates.iocellsplit
lib.rscellsplit
version0.2.1
sourcesrc
created_at2017-01-28 09:04:45.613939
updated_at2017-01-28 09:04:45.613939
descriptionUtility for dissecting MATLAB Cell Mode scripts
homepagehttps://github.com/durka/cellsplit
repositoryhttps://github.com/durka/cellsplit
max_upload_size
id8258
size16,146
Alex Burka (durka)

documentation

README

What?

This program can split apart, and recombine, MATLAB scripts written using the Cell Mode feature.

Why?

Cell Mode is highly convenient for interactive development. A large task can be split into separate chunks which are repeatedly run independently, inspecting local variables and making iterative changes. I often use Cell Mode to document the steps of a machine learning pipeline. But Cell Mode can't be used when operating MATLAB from the comand line (such as on a remote server). You can only run the whole script as a unit. But after processing with cellsplit, each cell is a whole script so the flexibility is regained.

How?

cellsplit contains a very rudimentary parser of MATLAB syntax, and it breaks out every cell into a new script. It also breaks out bodies of conditionals and loops, since cells can be placed inside those.

Status

Unsupported features of MATLAB:

- `switch`
- (please file a bug if there is one I've overlooked)
Commit count: 25

cargo fmt