[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to catch parsing errors?



=>>>>> On Mon, 24 May 93 09:50:46 +0200, Guido Bosch <Guido.Bosch@loria.fr> said:

  > I need to know how I can catch the famous

  > 	`SYNTAX ERROR detected at line 2'

  > I.e., how can I encapsulate it in LeLisp in order to detect in my
  > programm whether the parsing routines ({tree}:parse, {parser}:parse)
					   ^^^^^^^^^^^^^
                                        read {parser}:tree
  > succeed or fail?

A kind LeLisp hacker soul (Jean-Michel Hufflen) told me the
solution of my question, so don't bother any longer about it.
	

(lock (lambda (tag val)
	(if (null tag) val))
      ({parser}:tree <file> <formalism> <directory>))

	
  Guido