Skip to content

ElianCordoba/elian-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Suported syntax

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

Trivia

  • First token gets the initial trivia
  • A token owns all the trivia on the same line upto the next token

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published