I have a function sexp-at-point which return a string enclosed by round brackets. That function is used by helpme function, which reads the string converting it to an Elisp list. That in turn, is processed to look up the documentation. The problem is that read sometimes fails on valid LFE syntax. so far I found it fails on vectors
#(1 2 3)
Is there a better way to parse usually short strings into lists. In LFE number of arguments is important and I try to make documentation lookup reflect arity as well. Also, an LFE function can have different forms.
(model:function arg1) (: model function arg1) (function arg1)
So using something similar to
read is the best option in my humble opinion. Please correct me if I am wrong. If you agree with my approach please suggest how I could improve it. Is there a parsing library that I could use?