Skip to content

yurrriq/fregure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fregure

Experiments in Frege and Clojure integration

Frege + Clojure = 😍

Installation

git clone https://github.com/yurrriq/fregure.git

Usage

Run the Frege compiler and then run the Clojure application:
lein do fregec, run
Hello from Clojure!
Hello from Frege!

You can also package up all the Clojure and Frege code and their runtimes:

lein uberjar
calling: javac -cp ...
Compiling fregure.core
Created /path/to/project/target/uberjar+uberjar/fregure-0.1.0-SNAPSHOT.jar
Created /path/to/project/target/uberjar/fregure-0.1.0-SNAPSHOT-standalone.jar

That produces a JAR file which you can run:

java -jar target/fregure-0.1.0-SNAPSHOT-standalone.jar
Hello from Clojure!
Hello from Frege!

Links

How to Install the REPL

# First install frege-interpreter...
git clone https://github.com/Frege/frege-interpreter.git
pushd frege-interpreter
mvn install
popd

# ... and frege-repl.
git clone https://github.com/Frege/frege-repl.git; and cd frege-repl
mvn install

# Then make symlinks.

# Frege REPL
ln -s (pwd)/frege-repl-core/target/frepl/bin/frepl /usr/local/bin/frepl

# Graphic REPL (standalone REPL with basic GUI)
ln -s (pwd)/frege-repl-core/target/frepl/bin/frepl /usr/local/bin/frepl

# JLine-enabled REPL (think rlwrap)
ln -s (pwd)/frege-repl-core/target/frepl/bin/frepl /usr/local/bin/frepl

License

This is free and unencumbered software released into the public domain.

About

Experiments in Frege and Clojure integration

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published