Git Product home page Git Product logo

nord's Introduction

    _   __                  __
   / | / /____   _____ ____/ /
  /  |/ // __ \ / ___// __  /
 / /|  // /_/ // /   / /_/ /
/_/ |_/ \____//_/    \__,_/


Nord is a personal experiment in language design and compiler construction. I
don't know where this is going yet, but it should be fun!

Current State of the Project
===============================================================================
Last Updated: 06/21/2021

Currently, a small subset of the planned language is implemented and working.
There is support for basic expressions, including arithmetic and comparisons,
as well as function call support. Beyond the fact that syntax is minimal, the
following known limitations exist:

 - Register allocation is not that sophisticated. In fact, full support for
   spilling / unspilling variables to main memory doesn't exist (function calls
   spill variables, but only using the stack). This means that sufficiently
   large scripts with enough variables in the same scope will most likely
   result in undefined behavior.

 - Only partial error-handling exists. There are many edge cases which are
   not handled correctly, resulting in asserts and seg faults for some classes
   of syntax or semantic errors.
   
 - No garbage collection or heap as such, only constant pool support.
 
 - Only primitive types (int, float, string, bool) are supported, as we add
   garbage collection, I'll look to expand to more complex types.


Building
===============================================================================

To build the project, run:

    make

Doing so will produce a binary, "nord" which can then be run. What that binary
does will eventually be to run nord scripts, but it may do something else until
we have all subsystems up and running.

Testing
===============================================================================

To test things, run:

    make test

nord's People

Contributors

dburkart avatar gideonw avatar

Stargazers

 avatar

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.