[antlr-interest] Manually Specifying Exception Handlers (in C#)

Henri De Feraudy feraudyh at yahoo.com
Thu Aug 16 08:11:06 PDT 2007


Hello,
    I'm working in C# and I wanted to copy the idea in the definitive Antlr reference 
  by appending this to the end of a rule:
  catch [RecognitionException re] {
  reportError(re);
  consumeUntil(input, SEMI); // throw away all until ';'
  input.consume(); // eat the ';'
  This came from section 10.5
  In some discussion I saw that consume has to be replaced by Consume, but compilation still complains:
  Both reportError and consumeUntil are unknown. 
  What should I do?
  thanks
  Henri


To boldly go photographing where everyone has been before.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20070816/773ae6e4/attachment-0001.html 


More information about the antlr-interest mailing list