Skip to content

Developing my own programming language to explore the concepts around compilers.

Notifications You must be signed in to change notification settings

propellerheadsar/elian-script

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Suported sytax

Variables

var age 23
var name "Elian"

Compiles to

var age = 23;
var name = "Elian";

Function calls

(add 1 2)
(subtract 5 (add 2 2))

Compiles to

add(1, 2)
subtract(5, add(2, 2))

Roadmap

  • Migrate to typescript Basically done, just some type assertions that could be removed
  • [] More language features
    • [] Variables
      • Initial variable support
      • [] Expressions result as variable values. Ex: var result add(1, 2)
    • Function definition
  • [] Better abstraction for tree transformation
  • [] Use of streams for compilation
  • [] Incremental updates
  • [] Error recovery
  • [] Some form of typechecking
  • [] Different pragma output (Javascript)
  • [] Tests

About

Developing my own programming language to explore the concepts around compilers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%