Front Page All Articles Recent Changes Random Article

Contents

Concatenative language

  • ACL
  • Ait
  • Aocla
  • Breeze
  • Callisto
  • Cat
  • Cognate
  • colorForth
  • Concata
  • CoSy
  • Deque
  • DSSP
  • dt
  • Elymas
  • Enchilada
  • ETAC
  • F
  • Factor
  • Fiveth
  • Forth
  • Fourth
  • Freelang
  • Gershwin
  • hex
  • iNet
  • Joy
  • Joy of Postfix App
  • kcats
  • Kitten
  • lang5
  • Listack
  • LSE64
  • Lviv
  • Meow5
  • min
  • Mirth
  • mjoy
  • Mlatu
  • Ode
  • OForth
  • Om
  • Onyx
  • Plorth
  • Popr
  • Porth
  • PostScript
  • Prowl
  • Quest32
  • Quackery
  • r3
  • Raven
  • Retro
  • RPL
  • SPL
  • Staapl
  • Stabel
  • Tal
  • Titan
  • Trith
  • Uiua
  • Worst
  • xs
  • XY
  • 5th
  • 8th

Concatenative topics

  • Compilers
  • Interpreters
  • Type systems
  • Object systems
  • Quotations
  • Variables
  • Garbage collection
  • Example programs

Concatenative meta

  • People
  • Communities

Other languages

  • APL
  • C++
  • Erlang
  • FP trivia
  • Haskell
  • Io
  • Java
  • JavaScript
  • Lisp
  • ML
  • Oberon
  • RPL
  • Self
  • Slate
  • Smalltalk

Meta

  • Search
  • Farkup wiki format
  • Etiquette
  • Sandbox

Concata

Concata is a stack-based concatenative functional programming language inspired by Elixir, Forth and Joy. It is interpreted and runs on a VM, aiming to offer a readable and user-friendly stack-based programming experience.

Concata is still a work-in-progress, but hopefully will be released soon at https://github.com/lordoftrident/concata.

Examples

Hello world

"Hello, world!\n" Stdout Write

Hello world (using the standard library)

uses std/io
"Hello, world!" io.PrintLn

Counting to 10

1 10 ... for n =>
	[n] "%v\n" Fmt Stdout Write

Factorial

fun Fact 0       => 1
fun Fact n[Uint] => n 1 - Fact n *

[5 Fact] "%v\n" Fmt Stdout Write

Factorial (using the standard library)

uses std/io std/range
fun Fact n[Uint] => 1 n ... 1 // range.Product

5 Fact io.PrintLn

This revision created on Sun, 28 Jul 2024 11:08:16 by lordoftrident (Update language design)

Latest Revisions Edit

All content is © 2008-2024 by its respective authors. By adding content to this wiki, you agree to release it under the BSD license.