Measures Concepts
GitHub icon

LES

LES - Grammar language

< >

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

#2439on PLDB 12Years Old

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; };

View source

- Build the next great programming language ยท Search ยท Add Language ยท Features ยท Creators ยท Resources ยท About ยท Blog ยท Acknowledgements ยท Queries ยท Stats ยท Sponsor ยท Day 605 ยท feedback@pldb.io ยท Logout