caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Q: Correct locations for macro camlp4 extensions
@ 2004-08-23  9:33 Jan Kybic
  2004-08-23 10:59 ` skaller
  2004-08-23 17:21 ` Michael Alexander Hamburg
  0 siblings, 2 replies; 12+ messages in thread
From: Jan Kybic @ 2004-08-23  9:33 UTC (permalink / raw)
  To: caml-list

Hello,
        I quite like some of the OCaml syntax extensions implemented
with campl4 that I gathered so far, for example:

    pa_macroe.ml (enhanced macros, IFDEF, etc.)

    "where" keyword (enabling you to write 'let x = f 3 where f = ...')

    operator composition (like "$" in Haskell)

    "repeat"/"until" loop

    "for" loop (like in C), as in "for c 0 (c<10) (c+2) do"

They come from Caml Hump, camlp4 tutorial, Usenet articles and WWW
searches. The problem with them is that the line numbers are lost, 
which is a problem for error and assert messages, I get thinks like
Assert_failure("patch.ml", 1, 4798) instead of correct 
Assert_failure("patch.ml", 155, 4)

I am not a camlp4 expert, so I would like to ask if there versions of
the above mentioned extensions that make caml (3.07) generate correct
line numbers. Has the problem been discussed, is there any workaround?

Thank you very much for all pointers,

Jan

-- 
-------------------------------------------------------------------------
Jan Kybic <kybic@ieee.org>                  tel. +420 2 2435 7264
       or <kybic@fel.cvut.cz>,     http://cmp.felk.cvut.cz/~kybic

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


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

end of thread, other threads:[~2004-09-04  2:12 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-23  9:33 [Caml-list] Q: Correct locations for macro camlp4 extensions Jan Kybic
2004-08-23 10:59 ` skaller
2004-09-03 14:37   ` Yamagata Yoriyuki
2004-09-04  2:12     ` skaller
2004-08-23 17:21 ` Michael Alexander Hamburg
2004-08-23 18:29   ` Richard Jones
2004-08-23 20:33     ` David Brown
2004-08-23 21:53       ` skaller
2004-08-23 23:16     ` Michael Alexander Hamburg
2004-08-24  7:43       ` Marcin 'Qrczak' Kowalczyk
2004-08-24  7:02   ` [Caml-list] " Jan Kybic
2004-08-24 16:31     ` Michael Alexander Hamburg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).