Vijay Angelo
Vijay Angelo

Reputation: 762

Finite State Machine compiler

What is the best Opensource FSM compiler which can generate c++ code ?

Upvotes: 5

Views: 4428

Answers (2)

Bas Bossink
Bas Bossink

Reputation: 9698

Please refer to the answer I gave to this question, SMC can also generate C++ code. I can't comment on the quality of the generated C++ but for C# it's satisfactory.

Upvotes: 5

Nat
Nat

Reputation: 9951

I don't know about the best, but you could look at Ragel:

Ragel compiles executable finite state machines from regular languages. Ragel targets C, C++, Objective-C, D, Java and Ruby. Ragel state machines can not only recognize byte sequences as regular expression machines do, but can also execute code at arbitrary points in the recognition of a regular language.

Upvotes: 12

Related Questions