Liste des Groupes | Revenir à cl c |
On 18/06/2024 15:48, bart wrote:
You're arguing in favour of a high level scripting language for task rather than a lower level one which you claim involves a lot of 'faffing' around.I haven't tried it directly in C (I don't have a C 'readfile's to hand); I tried it in my language on a 100MB test input of 15M random numbers ranging up to one million.No one is interested in that - that was not part of the task.
I'm not talking about experimentation.>Yes, people do. (Look up the PLY project, for example.) Nobody seriously writes lexers in C these days. They use Python or another high level language during development, prototyping and experimentation, and if the language takes off as a realistic general-purpose language, they either write the lexer and the rest of the tools in the new language itself, or they use C++.
With a more arbitrary input format, this would be the kind of job that a compiler's lexer does. But nobody seriously writes lexers in Python.
Les messages affichés proviennent d'usenet.