qwertie / ecsharp

Home of LoycCore, the LES language of Loyc trees, the Enhanced C# parser, the LeMP macro preprocessor, and the LLLPG parser generator.
http://ecsharp.net
Other
172 stars 25 forks source link

Error when transforming the `typeof(X<>)` construct #125

Closed dadhi closed 3 years ago

dadhi commented 3 years ago

Given the following file:

using System (.Collections.Generic, );

static class X
{
    public static void Main()
    {
        Console.WriteLine(typeof(List<>) == typeof(Dictionary<,>))
    }
}

Produces the error:

LeMP macro compiler (2.8.3.0)
Test2.ecs(7,62): Error: 'LT': expected EOF
qwertie commented 3 years ago

Confirmed, the parser is unable to handle Dictionary<,>. I'm working on it now.

qwertie commented 3 years ago

Fixed in the prerelease.