Skip to content

Commit

Permalink
feat: add uiua language (#124)
Browse files Browse the repository at this point in the history
* feat: add uiua language

* fix: remove spaces before comments

* Fix encoding

---------

Co-authored-by: Erik Schierboom <erik_schierboom@hotmail.com>
  • Loading branch information
vaeng and ErikSchierboom authored Nov 15, 2024
1 parent 173c7a8 commit 36cdf34
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/languages/uiua.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
!e
#\p
6 changes: 6 additions & 0 deletions tests/uiua/uiua/code.ua
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Example code that produces the Uiua logo:
U ← /=⊞<0.2_0.7 /+×⟜ⁿ1_2
I ← >⌵/ℂ: # Circle
u ← +0.1↧¤ ⊃(I0.95|⊂:0.5⇌°√)
A ← ×⊃U(I1) # Alpha
⍜°⍉(⊂⊃u A) -1÷÷2⟜(⇡↯2) 200
5 changes: 5 additions & 0 deletions tests/uiua/uiua/expected_snippet.ua
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
U ← /=⊞<0.2_0.7 /+×⟜ⁿ1_2
I ← >⌵/ℂ:
u ← +0.1↧¤ ⊃(I0.95|⊂:0.5⇌°√)
A ← ×⊃U(I1)
⍜°⍉(⊂⊃u A) -1÷÷2⟜(⇡↯2) 200

0 comments on commit 36cdf34

Please sign in to comment.