les is an actively used grammar language. 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.

?Years Old ?Users ?Jobs
  • the les website
  • Have a question about les not answered here? Email me and let me know how I can help.

Example code from the web:

@[#static]
fn factorial(x::int)::int {
  var result = 1;
  for (; x > 1; x--) {
    result *= x;
  };
  return result;
};

Last updated February 18th, 2020

Edit les on GitHub