Skip to content

trap-representation/Chlore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.


  1. Check out the Chlore programming language's official website here
  2. Check out our discord server
  3. Check out our reddit community

Footnotes

  1. Check out more examples in the examples directory.

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

About

Chlore is a stack-oriented programming language made with a focus on simplicity

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages