forth-mode icon indicating copy to clipboard operation
forth-mode copied to clipboard

Add support for xref

Open lokedhs opened this issue 9 years ago • 3 comments

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.

lokedhs avatar Sep 23 '16 04:09 lokedhs

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

larsbrinkhoff avatar Sep 23 '16 05:09 larsbrinkhoff

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?

phikal avatar Oct 16 '23 09:10 phikal

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.

larsbrinkhoff avatar Oct 20 '23 11:10 larsbrinkhoff