Skip to content

Commit

Permalink
Add examples from ASQ
Browse files Browse the repository at this point in the history
  • Loading branch information
kamil-adam committed Dec 13, 2021
1 parent 3c2a6a1 commit cca1b31
Show file tree
Hide file tree
Showing 44 changed files with 9,356 additions and 54 deletions.
Empty file.
Empty file.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-1
1 change: 1 addition & 0 deletions .output/actual/examples/sq/output/logged/mazonka/hi.out
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello, World!
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
12!=479001600
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello, World!
1 change: 1 addition & 0 deletions .output/actual/examples/sq/output/output/mazonka/hi.out
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hi
Empty file.
Empty file.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-1
1 change: 1 addition & 0 deletions .output/golden/examples/sq/output/logged/mazonka/hi.out
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello, World!
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
12!=479001600
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello, World!
1 change: 1 addition & 0 deletions .output/golden/examples/sq/output/output/mazonka/hi.out
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hi
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: all bench build check clean configure fast haddock hlint main repl report run stan stylish test update
.PHONY: all bench build check clean configure golden fast haddock hlint main repl report run stan stylish test update

all: update fast bench

Expand All @@ -18,11 +18,15 @@ clean:
cabal new-clean
if test -d .cabal-sandbox; then cabal sandbox delete; fi
if test -d .hpc; then rm -r .hpc; fi
if test -d .hie; then rm -r .hie; fi

configure:
rm cabal.project.local*
rm -f cabal.project.local*
cabal configure --enable-benchmarks --enable-coverage --enable-tests -f ghcoptions

golden:
if test -d .output/golden; then rm -r .output/golden; fi

haddock:
cabal new-haddock

Expand All @@ -39,6 +43,7 @@ report:
make haddock stan hlint

run:
rm -f helma.tix
cabal new-run --jobs helma

stan:
Expand Down
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# 📅 Revision history for HelMA

## 0.6.11.0 -- 2021-12-13

* Add examples for SubLeq

## 0.6.10.0 -- 2021-09-07

* Use `Vector`
Expand Down
5 changes: 2 additions & 3 deletions docs/INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@ cd helma

## Compile

To compile you need `cabal`:
To compile you need `cabal` and `make`:
```bash
cabal update
cabal new-clean && cabal new-build && cabal new-test
make
```

## Run
Expand Down
8 changes: 4 additions & 4 deletions docs/NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

Currently, **🔧 🎨 HelMA** interpret:
* 🌈 BrainFuck
* ❤️ ETA
* 💙 SubLeq
* 🤍 WhiteSpace
* ❤️ [ETA](http://www.miketaylor.org.uk/tech/eta/doc/)
* 💙 [SubLeq](http://mazonka.com/subleq/)
* 🤍 [WhiteSpace](https://helvm.github.io/wspace/tutorial.html)

[comment]: <> (* 💛 Funge)
[comment]: <> (* 💛 Malbolge)
[comment]: <> (* 💚 Piet)

For more see [CHANGELOG](CHANGELOG.md).
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 🔧 🎨 HelMA - Heavenly Esoteric Little Minimal Automaton for Esoteric Languages implemented in Haskell

**🔧 🎨 HelMA** is first part of [HelVM](http://helvm.online/) project and implementation of:
**🔧 🎨 HelMA** is first part of [HelVM](http://helvm.github.io/) project and implementation of:
* **🧑‍🔧 🧑‍🎨 HAMALAM** - Holistic Actual Minimalist Languages of Automatic Machine.
* **🧑‍🔧 🧑‍🎨 HAMAMAL** - Holistic Actual Minimalist Automatic Mechanical Languages is a kind of [Low-level] [First-generation] [Code] for Esoteric Languages.

Expand Down
11 changes: 0 additions & 11 deletions docs/ROADMAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,4 @@ See [Issues](https://github.com/helvm/helma/issues).

For short version see [TODO](TODO.md).

* 💛 Funge:
* [Funge-98 Specification Documents](https://github.com/helvm/Funge-98)
* [BeFunge93 - A Befunge Interpreter by jberryman](https://github.com/helvm/BeFunge93)
* [Fungoid - Befunge-93 interpreter written in Haskell!](https://github.com/helvm/Fungoid)
* [Befunge - A Befunge-93 and doublefunge interpreter written in haskell by Joe Jevnik](https://github.com/helvm/befunge)
* [Fungi](https://github.com/helvm/fungi)
* 💚 Piet:
* [Original Piet Interpreter](https://github.com/helvm/npiet)
* [An interpreter for the programming language Piet](https://github.com/helvm/piet-willem-o)
* [piet-interpreters](https://github.com/helvm/piet-interpreters)

## 🌈 ❤️ 💛 💚 💙 🤍 🖤 🦄
11 changes: 6 additions & 5 deletions docs/TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@

Features to do:
* [x] 🌈 BrainFuck Interpreter
* [x] ❤️ ETA Interpreter
* [ ] 💛 Funge Interpreter
* [ ] 💚 Piet Interpreter
* [x] 💙 SubLeq Interpreter
* [x] 🤍 WhiteSpace Interpreter
* [x] ❤️ [ETA](http://www.miketaylor.org.uk/tech/eta/doc/) Interpreter
* [ ] 💛 [Malbolge](https://lutter.cc/malbolge/) Interpreter
* [ ] 💚 [Piet](https://www.dangermouse.net/esoteric/piet.html) Interpreter
* [x] 💙 [SubLeq](http://mazonka.com/subleq/) Interpreter
* [x] 🤍 [WhiteSpace](https://helvm.github.io/wspace/tutorial.html) Interpreter
* [ ] 🦄 [Zot](https://github.com/helvm/zot_haskell) Interpreter

You can propose feature by [GitHub](https://github.com/helvm/helma/issues).

Expand Down
2 changes: 1 addition & 1 deletion docs/reports/stan.html

Large diffs are not rendered by default.

54 changes: 54 additions & 0 deletions examples/sq/esolangs/helloWorld.sq
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
12
12
3
36
37
6
37
12
9
37
37
12
0
-1
15
38
36
18
12
12
21
53
37
24
37
12
27
37
37
30
36
12
-1
37
37
0
39
0
-1
72
101
108
108
111
44
32
87
111
114
108
100
33
10
53
10 changes: 10 additions & 0 deletions examples/sq/mazonka/echo.sq
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
-1
9
-1
9
-1
6
9
9
0
0
Loading

0 comments on commit cca1b31

Please sign in to comment.