Sujet : Re: Which newsgroup for json parsing?
De : josef (at) *nospam* invalid.invalid (Josef Möllers)
Groupes : comp.lang.cDate : 27. May 2024, 12:51:53
Autres entêtes
Message-ID : <lbjaepFm1vbU1@mid.individual.net>
References : 1 2 3 4
User-Agent : Mozilla Thunderbird
On 18.05.24 15:21, Mikko wrote:
On 2024-05-16 18:01:15 +0000, Josef Möllers said:
[...]
What one could do would be to use LEX to recognize the tokens and the write a recursive descent parser in plain C.
As YACC is too heavy I would use only LEX and do with C what LEX alone
cannot do.
That is exactly what I wrote.
[...]
But, as I wrote in another posting, I have switched to libjson-c5 and the code works fine.
That the code works fine is the most important aspect.
In my 40+ years of experience in IT/programming (I graduated 1981 from a Dutch polytechnic "HIO" in Computer Science and have retired in 2022) I have learnt that "works fine" is only part of the work. Maintainability should be added as well. Even if it is code written for one's personal use only, it may need some work later and then it's crucial to have it maintainable.
But maybe you think so too,
Josef