Closed maetl closed 1 year ago
The syntax I posted in the expected behaviour above might be wrong (I always get mixed up with C# dict literals), but the integration tests in #35 have examples of the syntax that does work. Also needs to be tested in Unity.
No that's definitely the correct syntax. Sorry for missing these, I think I confused myself by only basing my changes on the unit tests of another branch type and didn't write with my mind on the actual API
@bentorkington All good, and thank you for the code comments about common integer types and C# versions, that saved me a lot of time and avoided going down a rabbit hole.
Expected
The following declaration should construct a weighted branch production.
Actual
Code won’t compile,
Calyx.Grammar.Rule
doesn’t support aDictionary<string, int>
being passed in as the production.Should be an extremely simple fix, I’ll hopefully have time to look into all this later in the week.