Re: [CEDET-devel] Semantic support for PicoLisp
Brought to you by:
zappo
From: Eric M. L. <eri...@gm...> - 2011-06-22 22:12:40
|
Hi, On 06/20/2011 02:54 AM, Henrik Sarvell wrote: > Hi again, forget the earlier question, it just works which is great. This now surprises me, since your last email about functions being created with 'de' instead of 'defun'. > Just one snag, PicoLisp uses # for commenting, not ;. > > In fact PicoLisp uses ; as a getter function to get values of object > attributes. > > The problem is that as soon as a function contains ; it will disappear > from the ECB list. > > I.e the following works and shows upp: > > (de Test1 (Obj) > (print Obj)) > > But not this: > > (de Test2 (Obj) > (print (; Obj name))) > > Commented lines are handled properly by picolisp-mode but in this case > the semantic parser won't pick that up. > > Any ideas how I can remedy this? This is because the elisp parser uses Emacs' 'read' function, which has ; built-in as a comment character. I'd assume that it is not possible to fix that state. That, combined with me not yet understanding why the elisp parser works makes me think your best bet is to start with the Scheme parser. That parser is quite simple (scheme.by) and could be updated for picolisp definition symbols. semantic-scm.el has customizations which will then fix the comment syntax by obeying the syntax table for picolisp. Eric |