From: Yoann Padioleau <padator@wanadoo.fr>
To: Andrej Bauer <andrej.bauer@andrej.com>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Parser/lexer for block indented code
Date: Tue, 2 Feb 2010 00:44:33 -0800 [thread overview]
Message-ID: <694039F8-97E0-4A70-8D16-5114B328A28F@wanadoo.fr> (raw)
In-Reply-To: <7d8707de1002012333g19ccd2b5h3a657efafa7b2e7b@mail.gmail.com>
On Feb 1, 2010, at 11:33 PM, Andrej Bauer wrote:
>
> Would anyone happen to have lying around parser/lexer for block
> indented code (a la Python and Haskell)? I am using ocamlyacc or
> menhir, whichever.
There was some discussions about this in the past:
http://caml.inria.fr/pub/ml-archives/caml-list/2009/06/628f99a8b518acc3fc9f3649b1901167.en.html
google: ocaml layout indentation parsing
>
> It seems to be the best way to do deal with this is to put a filter
> between lexer and parser that inserts appropriate hints. I would like
> to avoid reinventing the wheel, hints and advice are appreciated.
>
> With kind regards,
>
> Andrej
>
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>
next prev parent reply other threads:[~2010-02-02 8:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-02 7:33 Andrej Bauer
2010-02-02 8:37 ` [Caml-list] " blue storm
2010-02-02 8:44 ` Yoann Padioleau [this message]
2010-02-02 8:48 ` blue storm
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=694039F8-97E0-4A70-8D16-5114B328A28F@wanadoo.fr \
--to=padator@wanadoo.fr \
--cc=andrej.bauer@andrej.com \
--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