Code Monkey home page Code Monkey logo

chlore's Introduction

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

chlore's People

Contributors

trap-representation avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.