Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* How to use camllex and camlyacc from camlwin
@ 1997-12-24 22:19 Marucita
  1997-12-29 14:49 ` Xavier Leroy
  0 siblings, 1 reply; 2+ messages in thread
From: Marucita @ 1997-12-24 22:19 UTC (permalink / raw)
  To: caml-list

      I need to know how to compile and use camllex and camlyacc files from
the PC version of camllight.
      I've been trying to do it, and the only thing that worked was manually
from DOS prompt...
                                        Ma. Eugenia Ahues





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

* Re: How to use camllex and camlyacc from camlwin
  1997-12-24 22:19 How to use camllex and camlyacc from camlwin Marucita
@ 1997-12-29 14:49 ` Xavier Leroy
  0 siblings, 0 replies; 2+ messages in thread
From: Xavier Leroy @ 1997-12-29 14:49 UTC (permalink / raw)
  To: Marucita; +Cc: caml-list

>       I need to know how to compile and use camllex and camlyacc files from
> the PC version of camllight.
>       I've been trying to do it, and the only thing that worked was manually
> from DOS prompt...

camlyacc and camllex are command-line tools, so the most natural way
to use them is indeed from a DOS shell, or (better) a Makefile.

Still, you can invoke them from the Caml graphical user interface
using the sys__system_command function.  E.g.:

        cd "\\the\\right\\directory";;
        sys__system_command "camllex mylexer.mll";;
        compile "mylexer.ml";;
        load_object "mylexer.zo";;

Yet another alternative is to use streams instead of camllex and
camlyacc.

Regards,

- Xavier Leroy







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

end of thread, other threads:[~1997-12-29 17:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-12-24 22:19 How to use camllex and camlyacc from camlwin Marucita
1997-12-29 14:49 ` Xavier Leroy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox