[ragel-users] ragel didn't rename data variable for C# code.
thurston at complang.org
Wed Apr 6 22:19:09 UTC 2011
Sorry for the delay ... been working like a crazy person on another
project: a protocol for social networking called DSNP. There are a
number of people trying to do this right now, so it's getting most of my
attention. If I don't finish off my project, someone else will beat me
So anyways, confirmed as a bug. Thank you for reporting it. It will be
On 03/24/2011 02:21 AM, Denis Naumov wrote:
> Hi Adrian,
> A week ago i start ragel and found that it is a very usefull tool.
> I use it for generate C and C# code (from Microsoft Visual Studio).
> it seems that ragel didn't rename data variable for C# code.
> %% variable data _ctx.data;
> %% variable p _ctx.current;
> %% variable pe _ctx.end;
> code will:
> ... if ( data[( _ctx.current)]< _test_trans_keys[_mid] ) ...
> Also i have some feature request:
> Sometime it would be very convenient to set options in rl file rathe
> than command line.
> something like:
> %% option lang = C# (in addition to -C, -A ...)
> %% option line = on/off/1/0/yes/no (-L)
> %% option minimization = off/end/most/every (-n/-m/-l/-e)
> %% option mode = table/table1/flat/flat1/goto/goto1 ... (-T0/-T1...)
> %% option output = "<filename>" (-o<filename>)
> %% option error = gnu/msvc ...
> to change this from IDE more convenient than change project settings.
> This can be alternative way to set options and options from command
> line (if set) will have max priority.
> Mode for option -o<filename>.
> -o - (-o "-") - for output generated code into stdout.
> This usefull for VS custom tool (custom code generator extention for
> Now i create temp file for output - read it to std-stream and delete
> temp file to work around this.
> Best regards,
> Denis Naumov.
> PS: sorry for my english :)
> ragel-users mailing list
> ragel-users at complang.org
Adrian D. Thurston
ragel-users mailing list
ragel-users at complang.org
More information about the ragel-users