caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Jacques-Pascal Deplaix <jp.deplaix@gmail.com>
To: "Emilio Jesús Gallego Arias" <e@x80.org>,
	"Jon Harrop" <jdh302@jdh302.plus.com>,
	caml-list@inria.fr, jon@ffconsultancy.com
Subject: Re: [Caml-list] 100-line compiler written in OCaml using LLVM reloaded
Date: Wed, 26 Apr 2017 11:58:40 +0000	[thread overview]
Message-ID: <CAAzWK4wC0jVnMncNexEMpP4Hh-_dOD4+n28+dN+_T5W7P3P-6g@mail.gmail.com> (raw)
In-Reply-To: <87vaqjiobg.fsf@rochefort>

[-- Attachment #1: Type: text/plain, Size: 1580 bytes --]

Hi,

If you still want to have something that works using ocamlbuild, a recent
OCaml version and a recent LLVM version, I managed to get something out of
it. Nothing that was too complicated but still..

I put the result here: https://github.com/jpdeplaix/harrop-minml

Cheers,

Le mer. 5 avr. 2017 à 04:26, Emilio Jesús Gallego Arias <e@x80.org> a
écrit :

> Dear Jon,
>
> "Jon Harrop" <jdh302@jdh302.plus.com> writes:
>
> > The first problem I hit is how I am supposed to build such things these
> > days. I tried to look it up on the developer tools page:
>
> > Then I get an error about my parser. I'm guessing this is because I used
> an
> > inline parser courtesy of camlp4 (or camlp5, I forget which) which has
> been
> > replaced with PPX which, I'm guessing, cannot do this. If so, what is the
> > easiest way to get this code running and how should I be building it?
>
> using opam this:
>
> $ ocamlfind ocamlc -g -dtypes -syntax camlp4o -package camlp4.extend
> -package llvm miniml.ml -o miniml
>
> works for me, well, almost, as I get:
>
> File "miniml.ml", line 54, characters 30-39:
> Error: This expression has type Llvm.llbasicblock
>        but an expression was expected of type Llvm.llcontext
>
> but I guess this is due to the llvm version on my system.
>
> Best,
> Emilio
>
> --
> Caml-list mailing list.  Subscription management and archives:
> https://sympa.inria.fr/sympa/arc/caml-list
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>

[-- Attachment #2: Type: text/html, Size: 2488 bytes --]

      reply	other threads:[~2017-04-26 11:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-04 23:42 Jon Harrop
2017-04-05  2:24 ` Emilio Jesús Gallego Arias
2017-04-26 11:58   ` Jacques-Pascal Deplaix [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAAzWK4wC0jVnMncNexEMpP4Hh-_dOD4+n28+dN+_T5W7P3P-6g@mail.gmail.com \
    --to=jp.deplaix@gmail.com \
    --cc=caml-list@inria.fr \
    --cc=e@x80.org \
    --cc=jdh302@jdh302.plus.com \
    --cc=jon@ffconsultancy.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).