caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: e@x80.org (Emilio Jesús Gallego Arias)
To: "Jon Harrop" <jdh302@jdh302.plus.com>
Cc: <caml-list@inria.fr>, <jon@ffconsultancy.com>
Subject: Re: [Caml-list] 100-line compiler written in OCaml using LLVM reloaded
Date: Wed, 05 Apr 2017 04:24:35 +0200	[thread overview]
Message-ID: <87vaqjiobg.fsf@rochefort> (raw)
In-Reply-To: <023a01d2ad9d$295a4c20$7c0ee460$@jdh302.plus.com> (Jon Harrop's message of "Wed, 5 Apr 2017 00:42:45 +0100")

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

  reply	other threads:[~2017-04-05  2:25 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 [this message]
2017-04-26 11:58   ` Jacques-Pascal Deplaix

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=87vaqjiobg.fsf@rochefort \
    --to=e@x80.org \
    --cc=caml-list@inria.fr \
    --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).