Coder Social home page Coder Social logo

gelo's Introduction

Gelo -- Go Extension Language

Installation instruction: go get code.google.com/p/gelo go install code.google.com/p/gelo/geli go install code.google.com/p/gelo/gelrun cp $GOPATH/src/code.google.com/p/gelo/examples/prelude.gel $GOPATH/bin

An extensible extension programmable programming language written in Go, for Go.

The syntax is simple and minimal, as is the execution model.

Gelo can be thought of as a very low level language for a very high level machine with an extensible instruction set (via WritingAlienCommands). Gelo provides a few simple rules for rewriting and executing an expression.

The language's initial state has zero commands and can run no programs. Adding built in commands is simple and writing new commands to integrate Gelo into your application is easy. Since there are no commands built into the language, and commands must be bound to a namespace, to be used, and the names are stored in UTF-8, the language can be fully localized with the rest of your application.

This control allows Gelo to be used as a simple configuration language, an executable specification for your web apps routing table, an easy-to-use macro language for that text editor you're writing, a DSL to describe your app's workflow, a full-fledged language for writing plugins and extensions, or even a complete programming language in its own right.

Gelo has no dependencies beyond the Go standard library; and even those are kept to a minimum.

The syntax of Gelo is very similiar to that of Tcl but execution is more like a Lisp/Scheme language. The RewritingMetaphor for execution lets you build a domain-specific language by layering small commands of increasing abstraction, similiar to a Forth system, and obviates many of the situations where a macro facility would be used.

There are some examples of actual Gelo code (which use GeloCommands and the prelude) in src/examples. src/gelrun has the code for the file intepreter and src/geli has the code for REPL. Note: you must copy src/examples/prelude.gel into $GOPATH/bin for geli and gelrun to function without the -no-prelude switch.

The wiki page on UsingTheVM is a handy reference when reading the code.

For writing Gelo commands in Go, the entire standard library in src/commands is a reference.

gelo's People

Contributors

chrislusf avatar esgorhannoth avatar jimmyfrasche 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.