Skip to content

yonatan-reicher/expression-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Expression Script

My vision for a small scripting language that is pure and functional

Installing

Run git clone on this repository as you would normally

Running

Run with cargo run [relative-path].

  • [relative-path] is a file to execute and is optional.
  • if [relative-path] is omitted, a REPL will start.

Features

  • Super basic types
  • Functions and applications
  • Partial application

Syntax

Types

  • any - The most basic type.
  • Function types - For example any => any. Right commutative. (any => any => any is any => (any => any)).

Expressions

  • Variable - Simply refer to a name. For example, x.
  • Function - x: any -> x. An identifier, followed by an atom after a colon with a body in the end. Right commutative.
  • Type expression - any => any.
  • Application - (x: any -> x) x.

About

An minimal scripting language that is pure and functional. Currently WIP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages