[prev in list] [next in list] [prev in thread] [next in thread]
List: antlr-dev
Subject: [antlr-dev] EOF in lexers
From: pink () odahoda ! de (Benjamin Niemann)
Date: 2007-02-17 21:31:36
Message-ID: 200702172231.39023.pink () odahoda ! de
[Download RAW message or body]
Hello,
something I just stumpled upon...
---t027eof.g
lexer grammar t027eof;
END: EOF;
---end
This compiles fine and the generated code does look alright, but the current
implementation of Lexer.nextToken() will always return a Token.EOF_TOKEN and
does not use the _type defined in mEND().
It seems to be intended to use EOF in lexers (lexerMatchEOF in ANTLRCore.sti),
but how is it supposed to work?
--
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://pink.odahoda.de/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic