Skip to content

Commit 36cdf34

Browse files
feat: add uiua language (#124)
* feat: add uiua language * fix: remove spaces before comments * Fix encoding --------- Co-authored-by: Erik Schierboom <[email protected]>
1 parent 173c7a8 commit 36cdf34

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

Diff for: lib/languages/uiua.txt

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
!e
2+
#\p

Diff for: tests/uiua/uiua/code.ua

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Example code that produces the Uiua logo:
2+
U ← /=⊞<0.2_0.7 /+×⟜ⁿ1_2
3+
I ← >⌵/ℂ: # Circle
4+
u ← +0.1↧¤ ⊃(I0.95|⊂:0.5⇌°√)
5+
A ← ×⊃U(I1) # Alpha
6+
⍜°⍉(⊂⊃u A) -1÷÷2⟜(⇡↯2) 200

Diff for: tests/uiua/uiua/expected_snippet.ua

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
U ← /=⊞<0.2_0.7 /+×⟜ⁿ1_2
2+
I ← >⌵/ℂ:
3+
u ← +0.1↧¤ ⊃(I0.95|⊂:0.5⇌°√)
4+
A ← ×⊃U(I1)
5+
⍜°⍉(⊂⊃u A) -1÷÷2⟜(⇡↯2) 200

0 commit comments

Comments
 (0)