Git Product home page Git Product logo

hotshot's Introduction

This documentation is available on GitHub or my website

hotshot

hotshot is a LISP interpreter, borrowing features from Lua.

This is hotshot. A LISP based language written in Golang.

It's a dynamically typed language with hint of languages like Lua. It's built in Go.

It looks like this

(fn fizzbuzz (n)
  (cond ((and (= (mod n 3) 0) (= (mod n 5) 0)) "FizzBuzz")
        ((= (mod n 3) 0) "Fizz")
        ((= (mod n 5) 0) "Buzz")
        (true n)))

Status

This language is practically newborn and has a lot of it's features unplanned. But it's big enough to be considered releasing to the public.

It does have around 40 builtin functions implemented. But no you can't use this language in production.

Its designed for reading and experimenting, and maybe small scripts.

Getting Started

The only way to use the langauge is to manually compile and run it on the CLI.

It has a builtin REPL, along with ability to run scripts.

Compilation

  1. Clone the project
git clone https://github.com/pspiagicw/hotshot
  1. Compile using Go
cd hotshot
go build .

Running

Run the binary without any arguments to open the REPL.

./hotshot

To run a script pass it as a argument.

./hotshot <script-to-run>

Testing

You can run

  1. To run all the tests.
go test ./...
  1. To run specific tests (lexer in this case).
go test ./lexer
  1. use the -v flag to provide information about all the subtests being run.
go test -v ./...

Contribution

This project is under heavy development and contributions are highly appreciated. A lot of decisions are already taken regarding the language, but a lot of them are still remaining. Hope you can join us in making them.

hotshot's People

Contributors

pspiagicw avatar

Watchers

 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.