From a8a9cc091a6fb301352280821188b5deff9b6dfd Mon Sep 17 00:00:00 2001 From: decorator-factory <42166884+decorator-factory@users.noreply.github.com> Date: Fri, 2 Oct 2020 21:35:48 +0300 Subject: [PATCH 1/5] Add "Hello, world!" in Form DSL FormDSL is an esoteric purely functional homoiconic programming language: - reference implementation in Python: https://repl.it/@int6h/FormDSL - docs (work in progess): https://gist.github.com/decorator-factory/7c0fa628f715e141e5ba4d9c9ae51eb8 --- FormDSL.formdsl | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 FormDSL.formdsl diff --git a/FormDSL.formdsl b/FormDSL.formdsl new file mode 100644 index 0000000..2c008ac --- /dev/null +++ b/FormDSL.formdsl @@ -0,0 +1,3 @@ +Section hello { + (title "Hello, world!") +} From 8c5b9e5207ba5beced20297088ffa731d2dbae71 Mon Sep 17 00:00:00 2001 From: decorator-factory <42166884+decorator-factory@users.noreply.github.com> Date: Fri, 2 Oct 2020 21:38:11 +0300 Subject: [PATCH 2/5] Add Hello World in Stekk Stekk is an esoteric imperative stack-based programming language. Reference implementation: https://github.com/decorator-factory/stekk This program works like this: 1. push the string "Hello, world!" onto the stack 2. load global name `println` and execute it as a function on the stack --- stekk.stekk | 1 + 1 file changed, 1 insertion(+) create mode 100644 stekk.stekk diff --git a/stekk.stekk b/stekk.stekk new file mode 100644 index 0000000..ae2566a --- /dev/null +++ b/stekk.stekk @@ -0,0 +1 @@ +("Hello, world!" .println); From 2cb3f9bb2b69d1f00eec9c52689bb61d104f4fda Mon Sep 17 00:00:00 2001 From: decorator-factory <42166884+decorator-factory@users.noreply.github.com> Date: Fri, 2 Oct 2020 21:47:31 +0300 Subject: [PATCH 3/5] Add XMU implementation XMU is an easily extensible markup language that compiles into HTML Reference implementation in Python: https://github.com/decorator-factory/xmu-python --- xmu.xmu | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 xmu.xmu diff --git a/xmu.xmu b/xmu.xmu new file mode 100644 index 0000000..f3ed9fb --- /dev/null +++ b/xmu.xmu @@ -0,0 +1,11 @@ +[ + header(1)[ + Hello, + ] + style[ + $text-color: red; + color: $text-color; + ][ + world! + ] +] From 8fa9ad3ac951707d38abd630db08fba342b3464d Mon Sep 17 00:00:00 2001 From: decorator-factory <42166884+decorator-factory@users.noreply.github.com> Date: Fri, 2 Oct 2020 22:05:33 +0300 Subject: [PATCH 4/5] py-lark-lispy implementation Implementation of Hello, World! in my lisp-like language: https://github.com/decorator-factory/py-lark-lispy Instead of printing "Hello, World!" on the screen, it serves it as an HTML page at `http://0.0.0.0:9999/` --- py-lark-lispy.clj | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 py-lark-lispy.clj diff --git a/py-lark-lispy.clj b/py-lark-lispy.clj new file mode 100644 index 0000000..ea774b5 --- /dev/null +++ b/py-lark-lispy.clj @@ -0,0 +1,13 @@ +(import "$.webserver" :all) + +(server + [ + [:get "/" ( + fun [request] + [:html + [ + [:h1 "Hello,"] + [:h2 "world!"] + ]])]] + + "0.0.0.0" 9999) From 2b1ee72eafd2a21a04b6fa058fe04616882e1f19 Mon Sep 17 00:00:00 2001 From: decorator-factory <42166884+decorator-factory@users.noreply.github.com> Date: Fri, 2 Oct 2020 22:12:55 +0300 Subject: [PATCH 5/5] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 9c07d6a..21fbe20 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ This is a repository full of implementations of the classic, "Hello, world!", in - [Cow](cow.cow) - [Dart](dart.dart) - [Elixir](elixir.ex) +- [FormDSL](FormDSL.formdsl) - [Fortran](fortran.f95) - [Go](go.go) - [Groovy](groovy.groovy) @@ -27,6 +28,7 @@ This is a repository full of implementations of the classic, "Hello, world!", in - [JavaScript](javascript.js) - [Julia](julia.jl) - [Kotlin](kotlin.kt) +- [Lisp (1)](py-lark-lispy.clj) - [Lua](lua.lua) - [Nasm (x86)](nasm.asm) - [OCaml](ocaml.ml) @@ -43,7 +45,9 @@ This is a repository full of implementations of the classic, "Hello, world!", in - [Ruby](ruby.rb) - [Rust](rust.rs) - [Scala](scala.scala) +- [Stekk](stekk.stekk) - [Swift](swift.swift) - [TypeScript](typescript.ts) - [VB.NET](vb.net.vb) +- [XMU](xmu.xmu) - [Zig](zig.zig)