caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Camlp4 not work with ocamlc.
@ 2002-12-10 15:23 Mike Potanin
  2002-12-10 17:27 ` Daniel de Rauglaudre
  0 siblings, 1 reply; 4+ messages in thread
From: Mike Potanin @ 2002-12-10 15:23 UTC (permalink / raw)
  To: caml-list


I make simple preprocesor, and it work:

bash$ ocamlc -a -o tr.cma -I /usr/local/lib/ocaml/camlp4 tr_lexer.cmo
tr_parser.cmo tr.ml
bash$ ocaml
        Objective Caml version 3.06

# #load "camlp4o.cma";;
	Camlp4s Parsing version 3.06

# #load "tr.cma";;
# <:tr_some<a-z/A-Z>> 'a';;
- : char option = Some 'A'
#

It is correct. But this command produce errors:

bash$ camlp4 pa_o.cmo ./tr.cma pr_o.cmo test.ml
Error while loading "./tr.cma": no implementation available for Tr_parser.
bash$ ocamlc -pp "camlp4o ./tr.cma" -c -I "`camlp4 -where`" test.ml
Error while loading "./tr.cma": no implementation available for Tr_parser.
Preprocessor error

How do fix it?

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Caml-list] Camlp4 not work with ocamlc.
  2002-12-10 15:23 [Caml-list] Camlp4 not work with ocamlc Mike Potanin
@ 2002-12-10 17:27 ` Daniel de Rauglaudre
  2002-12-10 18:49   ` Mike Potanin
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel de Rauglaudre @ 2002-12-10 17:27 UTC (permalink / raw)
  To: caml-list

Hi,

On Tue, Dec 10, 2002 at 06:23:06PM +0300, Mike Potanin wrote:
> 
> bash$ camlp4 pa_o.cmo ./tr.cma pr_o.cmo test.ml
> Error while loading "./tr.cma": no implementation available for Tr_parser.

According to your example, this is strange indeed. I would like to
see your complete example. Could you send it to me if not too
complicated? Thanks.

-- 
Daniel de RAUGLAUDRE
http://cristal.inria.fr/~ddr/
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Caml-list] Camlp4 not work with ocamlc.
  2002-12-10 17:27 ` Daniel de Rauglaudre
@ 2002-12-10 18:49   ` Mike Potanin
  2002-12-10 19:21     ` Daniel de Rauglaudre
  0 siblings, 1 reply; 4+ messages in thread
From: Mike Potanin @ 2002-12-10 18:49 UTC (permalink / raw)
  To: Daniel de Rauglaudre; +Cc: caml-list

On Tue, 10 Dec 2002, Daniel de Rauglaudre wrote:

> Hi,
>
> On Tue, Dec 10, 2002 at 06:23:06PM +0300, Mike Potanin wrote:
> >
> > bash$ camlp4 pa_o.cmo ./tr.cma pr_o.cmo test.ml
> > Error while loading "./tr.cma": no implementation available for Tr_parser.
>
> According to your example, this is strange indeed. I would like to
> see your complete example. Could you send it to me if not too
> complicated? Thanks.
I place complite example at http://wtk.ru/pm/fp/caml/tr.tgz bat currently
it "raw". I wont make "syntax sugar" - tr-command like Perl.
<:tr<a-z/A-Z>> "asdf" work from top, but can not comlile:

bash$ ocamlc -pp "camlp4o ./tr.cma" test.ml
Error while loading "./tr.cma": no implementation available for Tr_parser.
Preprocessor error

>

Thanks!

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Caml-list] Camlp4 not work with ocamlc.
  2002-12-10 18:49   ` Mike Potanin
@ 2002-12-10 19:21     ` Daniel de Rauglaudre
  0 siblings, 0 replies; 4+ messages in thread
From: Daniel de Rauglaudre @ 2002-12-10 19:21 UTC (permalink / raw)
  To: caml-list

Hi,

On Tue, Dec 10, 2002 at 09:49:48PM +0300, Mike Potanin wrote:

> I place complite example at http://wtk.ru/pm/fp/caml/tr.tgz bat currently
> it "raw". I wont make "syntax sugar" - tr-command like Perl.
> <:tr<a-z/A-Z>> "asdf" work from top, but can not comlile:
> 
> bash$ ocamlc -pp "camlp4o ./tr.cma" test.ml
> Error while loading "./tr.cma": no implementation available for Tr_parser.
> Preprocessor error

Ok I see.

This is probably because of the module Dynlink of OCaml which needed
that the interfaces was internally recorded with the program
"extract_crc". The "no implementation available" seems to be rather
"no interface available".

In the current version of Dynlink, it is no more necessary, and in my
version, your example works perfectly well. It will be ok in next
release of OCaml.

-- 
Daniel de RAUGLAUDRE
http://cristal.inria.fr/~ddr/
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-12-10 19:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-10 15:23 [Caml-list] Camlp4 not work with ocamlc Mike Potanin
2002-12-10 17:27 ` Daniel de Rauglaudre
2002-12-10 18:49   ` Mike Potanin
2002-12-10 19:21     ` Daniel de Rauglaudre

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).