Loading ...
Sorry, an error occurred while loading the content.

Re: [antlr-interest] Re: line number of source generating an error exception

Expand Messages
  • Kannaiyan Natesan
    Hi there, Use, KLexer kl = new KLexer(System.in); kl.getColumn();
    Message 1 of 1 , Jun 1, 2001
    • 0 Attachment
      Hi there,

      Use,

      KLexer kl = new KLexer(System.in);


      kl.getColumn(); <--- Will give you the column at anytime
      kl.getLine(); <-- will give you the Line Number at anytime


      Cheers,
      Kannaiyan



      "cormier@..." wrote:

      > Hi,
      > Nothing in JAVA mode?
      > Christian
      > At 09:57 01/06/01 +0200, you wrote:
      > >Hi,
      > >
      > >On Thu, May 31, 2001 at 08:34:06PM -0000, cormier@... wrote:
      > > > How to print the line number of the parsing file source when an error
      > > > occurs. I think that an answer may be posted, but I don't find it.
      > > > Thanks for help.
      > >
      > >You probably mean the genHashLines grammar option in C++ mode?
      > >
      > >http://www.antlr.org/doc/options.html#Options
      > >
      > >It's the last one in the table with options.
      > >
      > >Ric
      > >--
      > >-----+++++*****************************************************+++++++++-------
      > > ---- Ric Klaren ----- klaren@... ----- +31 53 4893722 ----
      > >-----+++++*****************************************************+++++++++-------
      > > Why don't we just invite them to dinner and massacre them all when they're
      > > drunk? You heard the man. There's seven hundred thousand of them.
      > > Ah? ... So it'd have to be something simple with pasta, then.
      > > --- From: Interesting Times by Terry Pratchet
      > >-----+++++*****************************************************+++++++++-------
      > >
      > >
      > >
      > >Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
      >
      > cormier@...
      >
      >
      >
      > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/

      --

      Kannaiyan
      Software Development
      WPTG
      Oracle Corporation
      Dublin-3
      01-8031974
      087-9537696
      nkans@...
      YIM: nkans
    Your message has been successfully submitted and would be delivered to recipients shortly.