Languages Features Creators Calendar CSV Resources Blog About Pricing Add Language
GitHub icon

LES

LES - Grammar language

< >

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

#2214on PLDB 11Years Old 0Books
0Papers

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; };
indental.html · les.html · nhx.html

View source

- Build the next great programming language · Search · v2023 · Day 205 · Docs · Acknowledgements · Traffic · Traffic Today · Mirrors · GitHub · feedback@pldb.com