Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

LES

< >

LES, aka Loyc Expression Syntax, is a grammar language created in 2012 by David Piepgrass.

#2259on PLDB 12Years Old
Homepage

LES is an interchange format for syntax trees, comparable to s-expressions but designed for languages in the Algol family such as C, C++, C#, Java, EcmaScript, Rust and Python. It can be described as ā€œJSON for codeā€: just as XML/YAML/JSON are tree structures that assign no particular meaning to the data inside, likewise LES represents syntax trees without assigning any particular meaning to them.


Example from the web:
@[#static] fn factorial(x::int)::int { var result = 1; for (; x > 1; x--) { result *= x; }; return result; };
- Build the next great programming language Ā· Add Ā· About Ā· Search Ā· Keywords Ā· Livestreams Ā· Labs Ā· Resources Ā· Acknowledgements Ā· Part of the World Wide Scroll