Add JSON, XML, CSV to Baby X resource compiler

Liste des GroupesRevenir à l c 
Sujet : Add JSON, XML, CSV to Baby X resource compiler
De : malcolm.arthur.mclean (at) *nospam* gmail.com (Malcolm McLean)
Groupes : comp.lang.c
Date : 19. May 2024, 12:16:27
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v2cjht$3b3om$1@dont-email.me>
User-Agent : Mozilla Thunderbird
The Baby X resource compiler takes data - fonts, images, audio, strings - and converts them into C source so that they can be read by C programs without relying on external data files.
An obvious extension is to take in structured data. Adding SQL and querying a database would unfortuately mean extending the program so that it could only run on a large machine with a SQL server running, and isn't really a viable proposition. However JSON, XML, and CSV are commonly used to pass small to medium amounts of data about.
I've made a start on supporting CSV with the "<dataframe>" tag. CSV data is tabular and two dimensional, and lends itself to an arrray of simple structures. JSON And XML can of course represent more complex data, with hierarchy. The dataframe tag is still very experimental. I've never used it for anything practical.
So what would be the best approach to putting in JSON and XML support?
The project is here is you are not familiar with it. It's on github.
   https://github.com/MalcolmMcLean/babyxrc
--
Check out Basic Algorithms and my other books:
https://www.lulu.com/spotlight/bgy1mm

Date Sujet#  Auteur
19 May 24 * Add JSON, XML, CSV to Baby X resource compiler10Malcolm McLean
20 May 24 `* Re: Add JSON, XML, CSV to Baby X resource compiler9bart
20 May 24  +- Re: Add JSON, XML, CSV to Baby X resource compiler1Michael S
20 May 24  +* Re: Add JSON, XML, CSV to Baby X resource compiler3Mikko
20 May 24  i`* Re: Add JSON, XML, CSV to Baby X resource compiler2Malcolm McLean
21 May 24  i `- Re: Add JSON, XML, CSV to Baby X resource compiler1Mikko
20 May 24  `* Re: Add JSON, XML, CSV to Baby X resource compiler4bart
21 May 24   +* Re: Add JSON, XML, CSV to Baby X resource compiler2Malcolm McLean
22 May 24   i`- Re: Add JSON, XML, CSV to Baby X resource compiler1Ben Bacarisse
25 May 24   `- Re: Add JSON, XML, CSV to Baby X resource compiler1Malcolm McLean

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal