[ragel-users] What am I missing
Jerry
drwar2000 at yahoo.com
Thu May 29 03:43:05 UTC 2014
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.colm.net/pipermail/ragel-users/attachments/20140528/0db1cf2e/attachment-0001.html>
-------------- next part --------------
_______________________________________________
ragel-users mailing list
ragel-users at complang.org
http://www.complang.org/mailman/listinfo/ragel-users
More information about the ragel-users
mailing list