I am afraid not. The file writing commands are inside wrapper class implementations, many of them using fprintf and fscanf style commands because there is no .fd reader or writer class. All .fd related functions are in Fluid/file.h . `read_word' and `write_word` minimally escape characters with special meanings.There are read_properties() and write_property() methods for all Types that take care of widget properties. It's probably easies to do a global search on `read_word` to find most of the logic, and `read_file` and `read_children` to see how hierarchies are handled. Not sure if I can convince Backus or Naur to put this into a meta language.
I did another round trip into the Fluid code. I am afraid that it is not easy at all to catch all properties for all FLTK Type options. Please try to look at all the write_properties() functions to get an idea. In particular, the use of is_valuator() makes it quite hard to know exactly which properties are available to which widget type.
Please check out this file: .fd File Format, and let me know if this is of any use. Feel free to reformat and I will try to adapt.
Thanks. I am glad I finally wrote this down, and I found some little surprises myself. Please keep us posted if you build any public parsers and language generators. We voted to not integrate language generation into Fluid, but I have been playing with the idea to allow Fluid to automatically call external generators to make the source code live view window work for other languages too.The current version of Fluid has now live previews for the .fl file and the i18n strings as well as header and source.
Please keep us posted if you build any public parsers and language generators.
Hello Paul !
Thank you for helping improve FLTK !
I'm attaching your grammar converted to "peg" and "EBNF".
The "peg" can be viewed/edited/tested on cpp-peglib playground at https://yhirose.github.io/cpp-peglib/ .
The "EBNF" can be viewed at https://www.bottlecaps.de/rr/ui copy and paste it on the tab "Edit Grammar" then click the tab "View Diagram" to view/download a navigable railroad diagram.
I hope it'll help you in developing the grammar further !
Cheers !
--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/45293a5a-e847-4057-89ae-2c0d8decb95dn%40googlegroups.com.
The "peg" can be viewed/edited/tested on cpp-peglib playground at https://yhirose.github.io/cpp-peglib/ .
The "EBNF" can be viewed at https://www.bottlecaps.de/rr/ui copy and paste it on the tab "Edit Grammar" then click the tab "View Diagram" to view/download a navigable railroad diagram.
I hope it'll help you in developing the grammar further !
Cheers !