Reference:
http://www.complang.org/ragel/ offcial site
http://en.wikipedia.org/wiki/Ragel
What is Ragel?
Ragel is a finite-state machine compiler with output support for C, C++, C#, Objective-C, D, Java, Go and Ruby source code.其實Ragel 就是一個編譯器,它和Gcc的區別就是:它最終不產生二進制文件,產生的是源碼文件,比如C,C++。。。
打從大一接觸C語言那天,我就在想什麼時候能編個程序,我連代碼都不用敲了。。。,現在他實現了。。。
入門
接下來 就看這裏 吧 Ragel 入門,另外你需要點正則表達式基礎,就這樣了。
如果還想看看別的 龍書第三章 亦或 flex & bison 。