Jerry
2014-05-29 03:43:05 UTC
My command line?is Setup to Generate C# code - Note the -A option
c:\Ragel\ragel -A -G1 -L -o C:\Ragel\Machine.cs C:\Ragel\Machine_actions.rl
Here is a portion of the code it generated. This is Win7 if it matters.
#include <stdio.h>
#include <string.h>
/* #line 8 "C:\\Ragel\\Machine.cs" */
const int ASCII_Machine_1_start = 1;
const int ASCII_Machine_1_first_final = 6;
const int ASCII_Machine_1_error = 0;
const int ASCII_Machine_1_en_main = 1;
/* #line 17 "C:/Ragel/Machine_actions.rl" */
int parse(char* string)
{
? int cs;
? int res=0;
? char *p, *pe;
? p = string;
? pe = p + strlen(string);
I may be new to all this but it looks like C code Not C#
#include files are allowed in C#
strlen is not a valid?Keyword in C# .
?Am I doing something incorrect in the command Line ?
Thanks
Jerry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.complang.org/pipermail/ragel-users/attachments/20140528/0db1cf2e/attachment.html>
c:\Ragel\ragel -A -G1 -L -o C:\Ragel\Machine.cs C:\Ragel\Machine_actions.rl
Here is a portion of the code it generated. This is Win7 if it matters.
#include <stdio.h>
#include <string.h>
/* #line 8 "C:\\Ragel\\Machine.cs" */
const int ASCII_Machine_1_start = 1;
const int ASCII_Machine_1_first_final = 6;
const int ASCII_Machine_1_error = 0;
const int ASCII_Machine_1_en_main = 1;
/* #line 17 "C:/Ragel/Machine_actions.rl" */
int parse(char* string)
{
? int cs;
? int res=0;
? char *p, *pe;
? p = string;
? pe = p + strlen(string);
I may be new to all this but it looks like C code Not C#
#include files are allowed in C#
strlen is not a valid?Keyword in C# .
?Am I doing something incorrect in the command Line ?
Thanks
Jerry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.complang.org/pipermail/ragel-users/attachments/20140528/0db1cf2e/attachment.html>