Skip to content

Instantly share code, notes, and snippets.

@RangerMauve
Created March 29, 2016 02:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RangerMauve/f33366a6ccb2b0bb1efc to your computer and use it in GitHub Desktop.
Save RangerMauve/f33366a6ccb2b0bb1efc to your computer and use it in GitHub Desktop.
Ideas for programming language

Ostrum

A simple, lisp-like, and functional language for experimenting with making a language.

Variable declarations

Variables are declared on the stack, declaring one can be done with the = function. Variables are marked as being constant upon being assigned, and cannot be reassigned again within the current function. The assignment function takes two arguments, name:String and value:Any. Since it's just a function, you can pass in a variable for the name to have dynamically resolved names within the current scope.

Assigning to a variable example:

(= "someNumber" 1337)

Accessing variables

Acessing variables within the scope chain can be done by using the @ function. It takes

Types

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment