Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation instructions #13

Open
rigon opened this issue Mar 1, 2017 · 3 comments
Open

Installation instructions #13

rigon opened this issue Mar 1, 2017 · 3 comments

Comments

@rigon
Copy link
Member

rigon commented Mar 1, 2017

Can you provide installation instructions?

I'm struggling to install the parser.
What I've done so far:

  • Install OCaml
  • Install opam
  • Install OASIS: opam install oasis

Then, I ran ./configure and I got errors related with absolute paths to your home folder. I've found that in file setup.data. Removing this file seems to fix the problem.

But then I've got this error:

E: Cannot find findlib package 
E: Cannot find findlib package elements
E: Cannot find findlib package ppx_deriving.std
E: Cannot find findlib package sedlex
E: Failure("4 configuration errors")
@rizo
Copy link
Member

rizo commented Mar 1, 2017

Hey, thanks for interest in the parser! I'll update the build instructions and will let you know once it's working! ;)

@rizo
Copy link
Member

rizo commented Mar 3, 2017

Hi! So before I explain you how to install the package, here's a brief overview of current status:

I am working in parallel on the implementation of the language (fold-lang/fold and the separate parsing library called pratt, used by the language (this repo of course).

At the moment they are a bit out of sync. The parser is working and implements a basic macro system. But the main repository fold-lang/fold is still under active development. I'm essentially trying to merge two efforts and use pratt in fold as a library.

Now, about the installation instructions: You can add the fold package repository to opam and directly install the parser:

  • $ opam remote add -k git fold https://github.com/fold-lang/repository
  • $ opam install pratt
  • $ test_fold
  • $ fold

This should show you the testing interpreter for the parser. You can ask for help with \h and write expressions followed by Ctrl+D.

Let me know if this works and once again thank you!

Note: I only tested this with the latest OCaml version 4.04.

@rizo
Copy link
Member

rizo commented Mar 3, 2017

Here is an examples of what's working:

-> x = 1
-> 2 + 2
-> sum = x y -> x + y
-> sum 2 2 - 1
 = 3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants