Skip to content

Latest commit

 

History

History
51 lines (35 loc) · 1.87 KB

README.md

File metadata and controls

51 lines (35 loc) · 1.87 KB

Chlore

Chlore logo

This is Chlore - a stack-oriented programming language that's made with a focus on simplicity.

Philosophy behind the development of Chlore:

  • If it takes 10 rereads to interpret it right, it should NOT make it into the language
  • Do not add features just for the sake of it
  • Do not specify unnecessary details in the name of "portability"
  • Guarantees are fine, so long as an addition is not expected to summon elephants

A simple Hello World program written in a standard compliant implementation of Chlore1:

import "stdlib.chloreh"
import "io.chloreh"
import "exit.chloreh"

:main
  pushp "Hello, World!\n"
  pushp putstr call
  pushp phclean call
  hlt

If you're curious about how the language looks like, you can check the grammar.txt file, which contains a summary of the syntax of Chlore.

A language specification is extremely important for the development of a language, and Chlore has a (WIP) standard too. A link to the standard will be put here soon.

Implementations of Chlore:

  1. Toc

Cool stuff implemented in Chlore:

  1. The YET text editor 2
  2. Solutions to some Project Euler problems 2
  3. POSIX shell utilities 2
  4. The Carsee IRC client

Do whatever you want with the files in ./examples/. chlore-logo.png and grammar.txt are licensed under the Creative Commons Attribution-NoDerivatives 4.0 International License. Copyright (c) 2023 Somdipto Chakraborty.


Check out the discord server

Footnotes

  1. Check out more examples in the examples directory.

  2. This might not work with the latest revision of the language 2 3