Browse thread
[Caml-list] RealWorld-Examples for OcamlLex/OcamlYacc?
-
oliver@f...
- Remi Vanicat
- Benjamin Geer
- skaller
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Remi Vanicat <vanicat@l...> |
| Subject: | Re: [Caml-list] RealWorld-Examples for OcamlLex/OcamlYacc? |
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