Code Monkey home page Code Monkey logo

thrax-language's Introduction

The Thrax Programming Language

What is it?

Thrax is a little toy programming language I threw together in my free time near the end of 2022. My primary motivation was to learn more of the fine-point details of how dynamically-typed interpreted languages worked (JavaScript, Python and Ruby). In the future, I intend of doing a full write-up of the process and what it taught me on the way.

I was also working on a project at work that involved low-level parsing and interpretation of JavaScript code. While we were using SWC for the actual parsing, writing my own parser gave me a much better understanding of how everything fit together.

You don't have to download or install anything to start using Thrax. Play around with the language and experiment with a few demo scripts at the interactive sandbox.

Should You Use It?

While it should be trivial to add Thrax to your Rust project, I do not recommend doing so for anything important. At the moment, I do not have the time to maintain or otherwise continue working on Thrax.

Local Development

Want to explore Thrax on your own machine?

As long as you have Node.js, Rust, and Yarn, you can run and build everything using:

./build.sh --release # or --debug

Or, to run all unit tests:

./test.sh

What's in a Name?

In Ancient Greece, "Thrax" usually meant "from Thrace." In this case, however, the name is a reference to one of the earliest grammarians, Dionysis Thrax. Just like how Dionysis Thrax had no formal education on grammar, and thus had to discover everything himself, I found myself discovering different aspects of recursive descent parsers and dynamic interpreters on my own. Thus the name, "Thrax".

thrax-language's People

Contributors

elijah-potter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

demonoid81

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.