<div dir="ltr">I am developing a DrRacket plugin that adds a diagrammatic view to the IDE (roughly the same place as the Module Browser).<div>The diagram is a visualization of certain forms in the current text editor. Ultimately I would like to make the connection be bi-directional - manipulating the diagram will change values in the text editor.</div>
<div><br></div><div style>The initial use-case is a state-machine visualizer (and later, editor).</div><div style><br></div><div style>My current approach uses a macro to define the state-machine. I would like to drive the generation of the diagram from the uses of the macro (during background expansion), rather than writing my own code to detect text changes and parse the contents of the editor.</div>
<div style><br></div><div style>I am trying to find an easy way to communicate from the macro execution to the DrRacket plugin, but nothing has surfaced so far.</div><div style>If all else fails I could open up a socket connection in the macro and talk to the plugin that way (I assume).</div>
<div style>Are there any cheaper ways to poke a hole through the macro sandbox ?</div><div style><br></div><div style>--Nick</div></div>