{"library":"setlxjs-transpiler","title":"SetlX.js Transpiler","description":"A transpiler that converts SetlX (a set-theoretic programming language) source code into JavaScript. Version 1.4.0 is the latest stable release; the project is in active development with irregular release cadence. It aims to bring the expressive set operations and functional programming paradigms of SetlX to the JavaScript ecosystem. Differentiated from general transpilers by its specific focus on SetlX language constructs, including sets, tuples, and comprehensions. Originally part of the setlxjs project with CLI and lib packages. Requires separate setlxjs-lib runtime library for execution.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install setlxjs-transpiler"],"cli":{"name":"setlxjs","version":null}},"imports":["import { transpile } from 'setlxjs-transpiler'","import transpiler from 'setlxjs-transpiler'","const { transpile } = require('setlxjs-transpiler')"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { transpile } from 'setlxjs-transpiler';\n\nconst setlxCode = `\n  s := {1,2,3};\n  t := {3,4,5};\n  print(s * t); // intersection\n`;\n\ntry {\n  const jsCode = transpile(setlxCode);\n  console.log(jsCode);\n  // Output JavaScript that can be evaluated with setlxjs-lib\n} catch (error) {\n  console.error('Transpilation failed:', error.message);\n}","lang":"javascript","description":"Demonstrates transpiling a basic SetlX program with set operations into JavaScript using the transpile function.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}