ftao / ragel-py-example

[DOES NOT WORK] Ragel Python Code Generator Example
2 stars 1 forks source link

Does ragel support python now? #1

Open kaixiang-li opened 10 years ago

kaixiang-li commented 10 years ago

It seems that ragel only supports C, C++, Objective-C, C#, D, Java, Ruby, OCaml and Go. Can this example really work? how? many thanks :)

ftao commented 10 years ago

Not really . I was trying to write a python backend for ragel last year . I was able to make it work for some really simple case, like this example . If you are interested , I could release the code .

kaixiang-li commented 10 years ago

cool! I suddenly realized that I can just compile it to C and wrap it into a python c extension. From the aspects of performance, this may be better.