Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* Error messages with dypgen
@ 2007-05-18  7:20 Joel Reymont
  2007-05-18  8:42 ` [Caml-list] " skaller
  0 siblings, 1 reply; 4+ messages in thread
From: Joel Reymont @ 2007-05-18  7:20 UTC (permalink / raw)
  To: OCaml List

I understand that dypgen throws an exception when a syntax error is  
found.

How do I get it to produce line/column numbers when that happens?

It would be rather groovy if the the exception carried  
symbol_start_pos, symbol_end_pos, rhs_start_pos, rhs_end_pos from the  
dyp record since this information is available at the time that the  
exception is raised. A placeholder for a textual message would also  
be very helpful.

A simple error function built into dypgen could then take a message  
and raise the syntax error exception with all the required info.


	Thanks, Joel

--
http://wagerlabs.com/






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

end of thread, other threads:[~2007-05-18 13:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-18  7:20 Error messages with dypgen Joel Reymont
2007-05-18  8:42 ` [Caml-list] " skaller
2007-05-18 11:36   ` Joel Reymont
2007-05-18 13:48     ` skaller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox