这是indexloc提供的服务,不要输入任何密码
Skip to content

enhanced wisp repl (nesh) - autocomplete + macros #134

@robjens

Description

@robjens

I took a second go at trying to create a nesh plugin for wisp (finally read the vm apidocs a bit better) and got around the exports undefined problem by declaring the global in that context. One can now use (def x 1)<RET> in nesh and then press x<RET> and it'll display 1.

I also tried out some macro's with syntax-quote/unquote and it works like a charm. In case anyone is interested, you can find it here:

https://gist.github.com/robjens/65d5639859cfe4fd331d

I might take a stab at perhaps writing it in wisp, but lacking a bit of time currently. It could make a nice replacement for the less-then-optimal working wisp REPL currently embedded.

Auto-completion etc all works nicely too.

Edit: one could also clone my fork, I mentioned the extension in the wisp topics as well but I'm not sure if it is going to be included and/or how long it will take. https://github.com/robjens/nesh

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions