Skip to content

An interpreter for the Unholy language, written in TypeScript

License

Notifications You must be signed in to change notification settings

fef1312/unholy-runtime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Unholy Runtime

This must be one of the stupidest projects I have ever done: An interpreter written in an interpreted language. Even though the Unholy language is meant to compile to native machine code eventually, this runtime should prove quite useful for debugging the standard library (when it is ever written). It includes a Lexer and a Parser, the latter of which outputs an AST, as well as the actual interpreter which executed the instructions of that tree.

Current Status

This is an early alpha version; only a minimal subset of the language is supported. By the way: the language specs are only a vague phantasy in my head at the moment.

Usage

After cloning the repository any installing all required dependencies with npm i, type

npm start <program.uh>

to start the program. Since only the abstract syntax tree generator is implemented at the moment, the program will print the parsed tree to the standard output and then exit.

License

Copyright © 2020 Felix Kopp sandtler@sandtler.club

This program is licensed under the 2-Clause BSD license. See the LICENSE file for details.

The core architecture is heavily inspired by stolen from the TypeScript Compiler, which is licensed under the Apache License. Follow the link for details, including the full license text.

About

An interpreter for the Unholy language, written in TypeScript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published