newsL - News

 
 

L only depends on its own parser and parser generator, written in L

Item posted by Matthieu Lemerre <racin> on Fri 17 Aug 2007 06:49:06 PM UTC.

L's bootstrapping (i.e., writting the L compiler in L) has already began; after the "C outputter" (that takes L low-level code and translates it into C), the L parser and parser generator also bootstrap and L does not depend on the old parser and lexer anymore.

Together, the code for the parser generator, the L "core syntax" and the L parser generator syntax take less than 2000 lines of L code. I think that it demonstrates that L is a very compact and expressive language.

Moreover, the syntax of L code is now quite fixed. Complex code has been written with it and there are few points that I dislike (compared to C) and many that I prefer.

Next things to rewrite in L are the definition expander and code expander; they will be the subject of further news!

Back to the top

Powered by Savane 3.13-bb6a.
Corresponding source code