Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Remi Vanicat <vanicat@labri.u-bordeaux.fr>
To: caml-list@inria.fr
Subject: Re: [Caml-list] RealWorld-Examples for OcamlLex/OcamlYacc?
Date: Mon, 06 Oct 2003 00:07:22 +0200	[thread overview]
Message-ID: <87vfr3pcdh.dlv@wanadoo.fr> (raw)
In-Reply-To: <20031005201503.GA284@first.in-berlin.de> (Oliver Bandel's message of "Sun, 5 Oct 2003 22:15:03 +0200")

oliver@first.in-berlin.de (Oliver Bandel) writes:

> Hello Hackers,
>

[...]

> The example in the Refman seems a littlebid confusing to me:
> There is a function Parser.main called, but in the Refman there only
> is a module Parsing, not a module Parser described.
>
> And in the ocmallex/Ocamlyacc-chapter I didn't find something about
> a call to Parser.main.
>

May I remind you that each ocaml source file is a module, so if you
have a parser.mly it will produce a parser.ml, and so a Parser module?  

Then in the given example, the main rules is named "main", so the
Parser.main must be the call to the main rule of the parser your are
definning... 

[...]

-- 
Rémi Vanicat
remi.vanicat@laposte.net

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


  reply	other threads:[~2003-10-05 22:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-05 20:15 Oliver Bandel
2003-10-05 22:07 ` Remi Vanicat [this message]
2003-10-05 22:33 ` Benjamin Geer
2003-10-06  3:56 ` skaller

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=87vfr3pcdh.dlv@wanadoo.fr \
    --to=vanicat@labri.u-bordeaux.fr \
    --cc=caml-list@inria.fr \
    /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