<div>oh, I didn't include all the sources needed to compile the result c#, just what's enough to see the problem. The included sources are part of our fork of gherkin at <a href="http://github.com/techtalk/gherkin/tree/dotnet-port">http://github.com/techtalk/gherkin/tree/dotnet-port</a>. I haven't tried to compile it with mono yet, so I can't guarantee that you can get it running. </div>
<div><br></div><div>Anyway, thanks for trying,</div><div>sztupi<br><br><div class="gmail_quote">On Thu, Jan 28, 2010 at 4:00 AM, Adrian Thurston <span dir="ltr"><<a href="mailto:thurston@complang.org">thurston@complang.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I'm trying to reproduce by compiling with mono-gmcs, but I don't seem to<br>
have ILexer and the compilation stops there. Is that a system library or<br>
something from Gherkin?<br>
<div><div></div><div class="h5"><br>
Attila Sztupák wrote:<br>
> Hi,<br>
><br>
> We've run into a possible bug in the c# code generation - for a set of<br>
> input files (<a href="http://gist.github.com/287694" target="_blank">http://gist.github.com/287694</a>), the generated<br>
> _lexer_actions table have a length of 130, while the generated type of<br>
> the indexers (_acts and __acts) is sbyte ([-128..127]), causing an<br>
> overflow (and an index out of range exception afterwards) when executing<br>
> the actions. Using Java as output, or changing the types of these<br>
> variables to short in C# result in the generated machine working as<br>
> expected. Based on the sources, for all output languages except C#,<br>
> these indexers have a hardcoded type of UINT.<br>
><br>
> Can someone please confirm whether it's really a bug, and/or if there's<br>
> any workaround?<br>
><br>
> thx,<br>
> sztupi<br>
><br>
><br>
</div></div>> ------------------------------------------------------------------------<br>
<div><div></div><div class="h5">><br>
> _______________________________________________<br>
> ragel-users mailing list<br>
> <a href="mailto:ragel-users@complang.org">ragel-users@complang.org</a><br>
> <a href="http://www.complang.org/mailman/listinfo/ragel-users" target="_blank">http://www.complang.org/mailman/listinfo/ragel-users</a><br>
<br>
_______________________________________________<br>
ragel-users mailing list<br>
<a href="mailto:ragel-users@complang.org">ragel-users@complang.org</a><br>
<a href="http://www.complang.org/mailman/listinfo/ragel-users" target="_blank">http://www.complang.org/mailman/listinfo/ragel-users</a><br>
</div></div></blockquote></div><br></div>