Giter VIP home page Giter VIP logo

nala's Introduction

Last Commit File Count

Nala is an expression-oriented general purpose interpreted programming language designed with ease of use for functional programmers in mind.

Features

  • Structural dynamic type system
  • Type inference
  • Sum types (via enums)
  • Generic types and functions
  • Pattern matching
  • Syntax highlighting (via VS Code extension)

Roadmap

  • Migrate to static type system
  • Network I/O (Started)
  • Filesystem I/O
  • Error recovery
  • Automatic function currying
  • Function pipeline support?
  • Async / await support
  • Garbage collection
  • Module and package systems
  • String interpolation
  • Full language support via LSP server.

Usage

Parse and interpret in the console any .nl file with the following command:

cargo run path/to/script.nl

Examples

Example scripts are provided in the examples/ directory.

Within that directory, sandbox.nl will be ignored by git.

Documentation

Documentation can be found on the Nala Wiki.

Editor Support

Syntax highlighting is available in the form of a VS Code extension here. Full environment agnostic language support in the form of an LSP language server is underway.

Known Issues

Comments are stripped before parsing in a preprocessing stage. This stage uses regex patterns to match both single-line (//) and multi-line (/* */) comments, which are imperfect. Embedding comment sequences inside strings (for example) will result in a portion of the string being stripped during preprocessing which in turn will cause a parse error.

Questions / Contact

You can find my contact information on my github profile, please feel free to get in touch regarding Nala.

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.