Giter VIP home page Giter VIP logo

ligo's Introduction

ligo - scheme like language interpreter in golang

Join the chat at https://gitter.im/hackingligo/Lobby Go Report Card GoDoc Build Status

Introduction

ligo is implemented as a subset of lisp language with some changes in syntax. The syntax and usage is described in the documentation included in the doc folder.

Building

  • First of all fetch all the packages without installing.
    go get -d github.com/aki237/ligo
  • cd into the project directory
    cd $GOPATH/src/github.com/aki237/ligo
  • Build the interpreter
    go install ./cmd/ligo
  • Build the ligo plugin packages
    cd $GOPATH/src/github.com/aki237/ligo/packages/
    ./build.sh
    
    This installs the ligo plugins in $HOME/ligo

The ligo interpreter is installed in your $GOPATH/bin.

Usage

A commandline call without any arguments starts a interactive interpreter session. In that process it also initializes a interpreter by running a start script from the file $HOME/.ligorc (like .bashrc, in case of bash). Any argument passed is treated as a file and executes the contents in the file.

Simple Example

Simple example to get an input from the shell and

;; include all the required libraries
(require "base")

(printf "Hello %s!!" (input "Enter your name :"))

The bare interpreter has no functionalities (not even basic functionalities). The "base" package includes all the bare minimum functionality.

Extending the interpreter

Writing packages for the interpreter in Go is very simple and is discussed in this file.

Contributing

Please refer CONTRIBUTING.md for guidelines.

ligo's People

Contributors

aki237 avatar mauricioklein avatar christophejunke avatar sadliak avatar anatolyyyyyy avatar shivam07a avatar gitter-badger avatar keydrevolta avatar

Watchers

James Cloos avatar  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.