Skip to content
Frege REPL
Branch: master
Clone or download
Latest commit a344127 Feb 23, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
frege-repl-core more compiler flags Feb 22, 2019
frege-repl-nativedeps
gradle Use gradle 2.7 Nov 14, 2015
.gitignore Added gradle wrapper jar Mar 6, 2015
.travis.yml Upgrade to Frege 3.24.30 Apr 30, 2016
README.md Update README.md Apr 8, 2018
build.gradle Use java8 or later henceforth. Also, he who builds needs to provide f… Mar 23, 2018
deploy.sh Upgrade to Frege 3.22.524, Refactor Aug 4, 2015
gradle.properties Increased version to 1.4-SNAPSHOT Sep 29, 2015
gradlew Added execute permission on linux executables Mar 6, 2015
gradlew.bat Compile and upload to mperry account with gradle Mar 4, 2015
settings.gradle Compile and upload to mperry account with gradle Mar 4, 2015

README.md

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

You can’t perform that action at this time.