Code Monkey home page Code Monkey logo

funflow's Introduction

Control Flow Analysis

Control flow analysis for a lambda calculus like language with integers, booleans and explicit recursion operator. It is based on the language presented in chapter 5 of Principles of program analysis.

However, the implementation differs from the one in the book as the subeffecting of control-flow annotations is presented as a separate rule which prevents to some extent poisoning.

Installation

  1. Download and install the Haskell platform for your operating system. The Haskell platform can be found in https://www.haskell.org/platform/. The three main platforms, Window, Mac OS X and Linux are supported.

  2. Install the Stack tool from the hackage repository with the next steps. This need to be done from a terminal with the Haskell platform available in the path.

cabal update
cabal install stack
  1. Clone this repository or extract the source code.
git clone https://github.com/carlostome/FunFlow.git
  1. Change directory into the project and build the project with: .
stack build
  1. To install it just type:
stack install

this will copy it to stack binaries folder.

Usage

As a library (prefered)

The easiest way to play with this library is to use it in a live ghci session. In order to do so, just type stack repl in the project folder. The examples are contained in the src/Examples.hs file

The function runExpr defined in src/FunFlow.hs performs parsing and analysis on a string containing the program.

Also src/FunFlow.hs exports the function runFile which reads, parses and executes the analysis of a given file.

As an executable

Once installed, run funflow FILE. File examples can be found under examples/. However is more recomendable the previous methods as all interesting examples are coded as strings in the file src/Examples.hs.

funflow's People

Watchers

 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.