airportyh / x-lang

A demo programming language. Code streamed live!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

X Program Language

X is a programming language for demonstration purposes. It is coded live on stream.

Archive Videos

You can find the video archives on this YouTube playlist.

  • Episode 1: discussed design and purpose of the programming language, implemented the parser for variable assignment and function call syntax. (commit)
  • Episode 2: implemented built-in runtime functions and user-defined functions. (commit)
  • Episode 3: wrote a run script to conviniently execute programs in the X language. Implemented code blocks which are similar to anonymous function expressions in JS, and use that and a runtime $if function to implement conditionals instead of an if statement. (commit)
  • Episode 4: implemented array literals, each, map, filter and reduce functions and added parameters to code blocks. (commit)
  • Episode 5: implemented implicit returns and tags for collection types. (commit)
  • Episode 6: implemented dictionaries. (commit)
  • Episode 7: implemented proper if statements and talked about the dangling else problem. (commit)
  • Episode 8: code clean up, string runtime functions, fixed if statement bug, did a code challenge.(commit)

Project Dependencies

The project depends on this libraries:

Video Course

Also see my course How to Make a Programming Language for more detailed coverage of the topics encountered in this series.

Todos

  • index notation syntax

  • operators

  • classes

  • Unicode support (use different languages and emojis for var names)

  • Add enough feature to be able to solve some code challenges and do the word summary program

  • Clojure style protocols

  • FS support

  • DOM support

  • native if statement (done)

About

A demo programming language. Code streamed live!


Languages

Language:JavaScript 77.0%Language:Nearley 15.3%Language:Logos 6.1%Language:RPC 1.4%Language:Shell 0.3%