larsbrinkhoff / forth-mode

Wants to be the SLIME of Forth
GNU General Public License v3.0
61 stars 17 forks source link

Add support for xref #4

Open lokedhs opened 7 years ago

lokedhs commented 7 years ago

I don't know much about how xref providers are implemented, but the starting point is the variable xref-backend-functions which should return an xref backend that is able to find symbols in the current runtime.

larsbrinkhoff commented 7 years ago

Source code is documentation:
https://github.com/emacs-mirror/emacs/blob/master/lisp/progmodes/xref.el

phikal commented 10 months ago

A basic Xref backend could be written that manually parses buffer for definitions, but are there any more generic tools (aside from Etags) that could provide the necessary information?

larsbrinkhoff commented 10 months ago

One idea I had when I started this project is that the Lisp code should be able to communicate with the inferior Forth for information. E.g. I seem to recall some Forths have built-in tools for cross referencing.