Giter Club home page Giter Club logo

fifth's Introduction

logo Fifth

Build status CodeFactor License

A Forth-like interpreter written in Java, with three supported languages: pi, rho and tau.

Supports concept of a continuation, also known as a fibre.

Note that, like Forth, pi uses reverse polish notation. If you've only used in-fix notation, it will all look weird. For example, the expression:

a = b*2 + c

would be expressed as:

2 b * c + 'a =

See sample scripts. Note that MarkDown files are also executable fifth-lang files.

Executable Markdown

See an example of Literate Programming with fifth-lang using Markdown

Todo

Re-organise project structure into multiple modules:

  • fifth-common
    • Contains common functionality for all dependant modules, such as file access, logging etc.
  • fifth-pi
    • The pi RPN language
  • fifth-rho
    • the rho in-fix, python-like language that translates to pi
  • fifth-tau
    • Idl for generating networked Dto' and Rpc's

Documentation

The root of the language documentation is fully fledged out and very coherent.

Examples

See scripts folder for test scripts.

Todo

  • Better error reporting at each stage:
    • Lexer
    • Parser
    • Translator
    • Executor
  • Replace operator
  • Resume operator
  • For loops
  • While loops
  • Language description other than tests and code
  • Interaction with local file system: Danger
  • Basic REST calls: Danger

Known Bugs

  • A final line in a script with a trailing comment fails to parse.

fifth's People

Contributors

cschladetsch avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

fifth's Issues

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.