RobertBendun / PL0

Imperative self-hosted programming language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Programming Language 0

WARNING: This language is work in progress and will be for a long time.

The first goal of this project is to create language that is self-hosted, with not to much noise around this task. For this reason language will be as simple as is reasonable for me.

// Returns 42 from the program
fun exit {
	#syscall(60, 42)
}

fun main {
	exit()
}

Goals and plans

Content

  • pl0.cc: C++ implementation of the language, used for creating language before self-hosted compiler
  • test.cc: Simple test runner

Trivia

  • Current name refers to fact, that this will be my first self hosted programming language
  • Test expected format is inspired by Porth

About

Imperative self-hosted programming language

License:GNU General Public License v3.0


Languages

Language:C++ 97.2%Language:Vim Script 1.9%Language:Makefile 0.9%