Git Product home page Git Product logo

frege-repl's Introduction

Frege REPL Build Status

This is the command line REPL for Frege. Frege code snippets can be entered on the prompt to get them evaluated. In addition to Frege code, the following commands are supported:

Command Description
:type <expression> Display the type of an expression
:browse <moduleName> Display the names in a module if a module name is provided otherwise display the names in the default REPL module
:java View Java translation of last compiled Frege source
:load <url or file> Load Frege code snippets from an URL or file
:r Reload the last script URL or file
:set prompt promptString Set prompt to `promptString`
:set multiline-prompt promptString Set prompt for multi-line mode.
:set show-limit Set number of characters to show in the output string (Default: 80).
:set compilerOption Set compiler options such as 'hints', 'nowarn', 'inline', 'O', 'comments', 'ascii', 'greek', 'fraktur', 'latin'.
:unset compilerOption Unset compiler option.
:{ Start multiline definitions
:} End multiline definitions
:history Display the source history for definitions in the default REPL module
:reset Reset the REPL discarding all the evaluated scripts
:version Display Frege version
:help <name> Display the documentation for the given name. If the name is not provided, display this help message
:q or :quit Quit REPL

How to run?

  1. Download Frege REPL archive from releases.

  2. Extract the archive

  3. Run the following command: (JDK 8 or above required. Note that JDK is required, not just JRE as Frege is compiled to Java which is then compiled to byte code using the Java compiler available in the JDK)

       $ frege-repl-<version>/bin/frege-repl
    

    or if you want to customize JVM parameters: java -cp "frege-repl-<version>/lib/*" frege.repl.FregeRepl

As of late, the REPL is included in frege releases.

Build from sources

  1. ~/workspace$ git clone https://github.com/Frege/frege-repl.git
  2. ~/workspace/frege-repl$ ./gradlew install
  3. To run, ~/workspace/frege-repl$ ./gradlew --no-daemon --console plain :frege-repl-core:run.

Continuous Integration

Travis

Sonatype

frege-repl's People

Contributors

mmhelloworld avatar mperry avatar ingo60 avatar bryant1410 avatar

Watchers

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