Giter Club home page Giter Club logo

aplite's Introduction

aplite

A parser and interpreter for a subset of APL.

Authors:

Components

  • The Languange definition is in src/Language.hs. This defines most of the types necessary to parse and execute APL code.
  • The Parser is defined in src/Parser.hs. This uses MegaParsec to parse strings representing APL expressions into it's AST.
  • Most computation in APL happens in the form of functions (that convert values to other values) and operators, that convert functions to other functions. Some of the built-in functions and operators are defined and implemented in src/BuiltInFunctions.hs and src/BuiltInOperators.hs, respectively.
  • The src/Eval.hs contains the functions necessary to run APL code, once it has been parsed into an APL Expression type.
  • The src/KeyMapping.hs has the Keyboard mappings and objects for APL characters
  • The app/Main.hs has the UI components (as well as the main function which is used to run the app)

Dependencies

  • MegaParsec: for all our parsing needs.
  • parser-combinators: some helper combinators to help with parsing.
  • mtl: For Monad transformers (StateT, ExceptT)
  • math-functions: implementations of some commonly used functions
  • gamma: implementation of the gamma function (for the APL gamma function)
  • split: helper functions for reshaping arrays (ex., chunksOf)
  • prettyprinter: Library for pretty printing. Used for printing APL expressions and functions.
  • containers: for Data.Map
  • brick: for Brick TUI
  • vty: for for graphics-vty (that Brick is built upon) for handling events

Running the app

stack build --exec "aplite-exe"

aplite's People

Contributors

revathivijay avatar anirudhkonduru avatar

Stargazers

 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.