[PD] implementing tooltips WAS: Pd-extended 0.43 updates: lots of new editing features
Mathieu Bouchard
matju at artengine.ca
Sun Jul 17 20:42:08 CEST 2011
On Sat, 16 Jul 2011, Jonathan Wilkes wrote:
> Is it possible in c to parse a help file for "OUTLET_0 float symbol"?
> That's what I'm currently doing (which is trivial on the tcl side).
Pd is written in C.
Use the binbuf_text() function to parse Pd files.
Pd file parsing is not necessarily trivial on the tcl side. It depends on
whether you want to accept the files that Pd can produce, or the files
that Pd can accept. The only non-C-based parser that accepts the same
thing that Miller's parser accepts, is DesireData's Tcl-based parser.
But for files saved using Pd, it might not make much of a difference, as
Pd can't save spaces in symbols correctly, anyway (Pd's parser is better
than Pd's unparser).
> What do I have to do to register a new "assistfn"? I don't really
> understand that part of the source code.
I mean add a new field in t_class, just like savefn is one, and add
functions to edit it, just like savefn has.
_______________________________________________________________________
| Mathieu Bouchard ---- tél: +1.514.383.3801 ---- Villeray, Montréal, QC
More information about the Pd-list
mailing list