Dear all,

I am trying to develop a new language with GUI using OCaml.
However, the language seems to be not very stable.

If a small syntax error in the program(written in this new language) happens,
it can through an error message.
If the syntax error is kind of critical, 
(e.g., a semi-colon is missed at the end of a line, 
 or a keyword is mis-spelled)
Then the whole GUI of the language crashes.

Does anyone else have ever encountered similar problem?
Or can anyone give me a hint on how to prevent this?

Thanks a lot!
Angela
------------------------------------------
Dept. of CS, Rice Unitersity
http://www.cs.rice.edu/~yz2/
------------------------------------------