Liste des Groupes | Revenir à cl c |
On 2024-05-16 18:01:15 +0000, Josef Möllers said:[...]
That is exactly what I wrote.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.
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, 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.
Les messages affichés proviennent d'usenet.