You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update website copy, playground, highlighter, and formatter to include
Python as a compilation target alongside JavaScript, Ruby, and SQL.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
<pclass="tagline">A simple, well-designed, portable, and safe data expression language</p>
23
-
<pclass="subtitle">Elo compiles to JavaScript, Ruby, and SQL. Built for No-Code tools where non-technical users need to manipulate data easily and safely.</p>
23
+
<pclass="subtitle">Elo compiles to JavaScript, Ruby, Python, and SQL. Built for No-Code tools where non-technical users need to manipulate data easily and safely.</p>
24
24
<divclass="cta-buttons">
25
25
<ahref={url('/try')}class="cta-button">Try it now</a>
<p>A pure data language: everything is a value, no reference semantics, no <code>new</code>. One equality operator that just works. Designed to be safe for non-technical users.</p>
35
35
</div>
36
36
<divclass="feature-card">
37
-
<divclass="feature-icon">3x</div>
37
+
<divclass="feature-icon">4x</div>
38
38
<h3>Truly Portable</h3>
39
-
<p>One expression compiles to semantically equivalent JavaScript, Ruby, and SQL. Frontend, backend, and database all speak the same data language.</p>
39
+
<p>One expression compiles to semantically equivalent JavaScript, Ruby, Python, and SQL. Frontend, backend, and database all speak the same data language.</p>
40
40
</div>
41
41
<divclass="feature-card">
42
42
<divclass="feature-icon">{`{}`}</div>
@@ -85,7 +85,7 @@ in
85
85
</div>
86
86
<divclass="unique-explain">
87
87
<h4>Functional & Portable</h4>
88
-
<p>Pipeline operators, lambdas, and a comprehensive <ahref={url('/stdlib')}>standard library</a>. Write once, compile to JavaScript, Ruby, and SQL—same semantics everywhere.</p>
88
+
<p>Pipeline operators, lambdas, and a comprehensive <ahref={url('/stdlib')}>standard library</a>. Write once, compile to JavaScript, Ruby, Python, and SQL—same semantics everywhere.</p>
89
89
</div>
90
90
</div>
91
91
@@ -122,7 +122,7 @@ in
122
122
</section>
123
123
124
124
<sectionclass="targets-section">
125
-
<h2>One Expression, Three Targets</h2>
125
+
<h2>One Expression, Four Targets</h2>
126
126
<pclass="targets-intro">Elo compiles to idiomatic code in each target language</p>
Copy file name to clipboardExpand all lines: web/src/pages/reference.astro
+11-7Lines changed: 11 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ import Footer from '../components/Footer.astro';
39
39
<h1>The Elo Language</h1>
40
40
<pclass="page-intro">
41
41
Elo is a small expression language that compiles to <strong>JavaScript</strong>,
42
-
<strong>Ruby</strong>, and <strong>SQL</strong>. Write once, run anywhere.
42
+
<strong>Ruby</strong>, <strong>Python</strong>, and <strong>SQL</strong>. Write once, run anywhere.
43
43
</p>
44
44
</header>
45
45
@@ -279,7 +279,7 @@ import Footer from '../components/Footer.astro';
279
279
<preclass="language-elo">let double = fn( x ~> x * 2 ) in double(5)</pre>
280
280
<pclass="example-desc">Bind a lambda to a name, then call it. Returns 10.</p>
281
281
</div>
282
-
<pclass="note"><strong>Note:</strong> Lambdas compile to JavaScriptand Ruby only. SQL does not support function expressions.</p>
282
+
<pclass="note"><strong>Note:</strong> Lambdas compile to JavaScript, Ruby, and Python only. SQL does not support function expressions.</p>
283
283
</section>
284
284
285
285
<sectionclass="doc-section"id="variables">
@@ -421,7 +421,7 @@ import Footer from '../components/Footer.astro';
421
421
<sectionclass="doc-section"id="data-schemas">
422
422
<h2>Data Schemas</h2>
423
423
<p>Data schemas let you validate and transform complex data structures like JSON. Define schemas using uppercase <code>let</code> bindings with <ahref="#type-selectors">type selectors</a>, then apply them with the pipe operator.</p>
424
-
<pclass="note"><strong>Note:</strong> Data schemas compile to JavaScriptand Ruby only. SQL is not supported.</p>
424
+
<pclass="note"><strong>Note:</strong> Data schemas compile to JavaScript, Ruby, and Python only. SQL is not supported.</p>
425
425
426
426
<h3>Basic Types</h3>
427
427
<p>All <ahref="#type-selectors">type selectors</a> can be used as schema types: <code>Int</code>, <code>Float</code>, <code>Bool</code>, <code>String</code>, <code>Null</code>, <code>Date</code>, <code>Datetime</code>, <code>Duration</code>, <code>Data</code>. Use <code>.</code> (dot) for any value.</p>
@@ -649,7 +649,7 @@ elo -e "{name: 'test'}" -o elo</code></pre>
649
649
<preclass="language-elo">5 |> guard(x | x > 0)</pre>
650
650
<pclass="example-desc">Creates a lambda that validates its input. Returns the value if valid.</p>
651
651
</div>
652
-
<pclass="note"><strong>Note:</strong> Guards compile to JavaScriptand Ruby only. Use <code>--strip-guards</code> to remove guards in production builds.</p>
652
+
<pclass="note"><strong>Note:</strong> Guards compile to JavaScript, Ruby, and Python only. Use <code>--strip-guards</code> to remove guards in production builds.</p>
653
653
</section>
654
654
655
655
<sectionclass="doc-section"id="get-started">
@@ -665,7 +665,7 @@ elo -e "{name: 'test'}" -o elo</code></pre>
665
665
<p>This gives you two commands:</p>
666
666
<ul>
667
667
<li><code>elo</code> — Evaluate Elo expressions and see results immediately</li>
668
-
<li><code>eloc</code> — Compile Elo to JavaScript, Ruby, or SQL</li>
668
+
<li><code>eloc</code> — Compile Elo to JavaScript, Ruby, Python, or SQL</li>
0 commit comments