//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\ // PLEASE DO NOT EDIT WITHOUT THE EXPLICIT CONSENT OF THE AUTHOR! \\ //\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\ using Ilog.Language.Tools; namespace Ilog.Language.Syntax { /** * Signals that something is wrong with the grammar. * * @see Grammar * @version Last modified on Sat May 21 20:35:33 2005 by hak * @author Hassan Aït-Kaci * @copyright © 2000 ILOG, S.A. */ internal class BadGrammarException : System.ApplicationException { /** * Constructs a new BadGrammarException with no message */ public BadGrammarException () : this("") {} /** * Constructs a new BadGrammarException with a message. */ public BadGrammarException (string msg) { Options.Error.WriteLine("*** Bad grammar "+msg); Options.Error.WriteLine("*** Aborting grammar analysis!"); Misc.Beep(); } } }