Languages Features Calendar CSV Lists Blog About Sponsor Add Language
GitHub icon



< >

les is a grammar language.

#2436on PLDB 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; };
converge.html · les.html · pikachu.html

View source

PLDB - Build the next great programming language · v2022 · Day 93 · Docs · Build · Acknowledgements · Traffic Today · Traffic Trends · Mirrors · GitHub ·