On Jun 11, 2009, at 14.57 h, Andrej Bauer wrote:

My parsing powers are not sufficient to easily come up with
lexer/parser for a simple language that uses python-style indentation
and newline rules. Does anyone have such a thing lying around, written
in ocamllex/yacc or menhir? I would appreciate a peek to see how
you've dealt with it.

Hi Andrej,

I have some _very_ old code (a source-to-source translator that provides Haskell-style syntax for Ocaml itself) that does that:

  http://www.mpi-sws.org/~rossberg/hocaml-0.12.tgz

Hope that helps.

Cheers,
- Andreas

_______________________________________________
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

Reply via email to