[antlr-interest] ANTLRReaderStream constructor hangs when passed a StringReader (C#)

Alastair Patrick alastairpatrick at gmail.com
Mon Aug 13 13:51:16 PDT 2007


This program hangs indefinitely.

using System.IO;
using Antlr.Runtime;

namespace ANTLRRepro
{
    class Program
    {
        static void Main(string[] args)
        {
            StringReader reader = new StringReader("hello");
            ANTLRReaderStream stream = new ANTLRReaderStream(reader);
        }
    }
}

I'm using the latest C# runtime. I know I can use ANTLRStringStream in this
case but I think this is still a bug.

Thanks

Al
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20070813/4555ba41/attachment.html 


More information about the antlr-interest mailing list