vim-jp / go-vimlparser

:zap: Vim Script Parser written in Go
https://medium.com/@haya14busa/vim-script-parser-written-in-go-4d0296782a14#.tf52lht5h
Other
144 stars 10 forks source link

Question: Can vimparser ingest the json or lisp file and output vimscript? (compile?) #54

Open dseeni opened 2 years ago

dseeni commented 2 years ago

hey @haya14busa

Firstly really awesome project. Go seems like a fun language to learn! (Currently learning Rust).

I was wondering if its possible to compile the json or lisp-ish output to vimscript? No right?

It was very useful to identify certain string declarations and exe calls in a large vim project, I was wondering if I could make changes to the Json tree output and then compile back to vimL?

It looks like I might need to write that part myself, just wanted to make sure it wasn't provided in the repo somehow.

But how would I do this? On a high level? It seems like I would have to go through your Go code, look at your node <--> token bindings, and basically invert them right? While processing the JSON output? ---> This would result in VimL?