[antlr-interest] FSM codegen
John D. Mitchell
jdmitchell at gmail.com
Tue Jul 1 07:47:17 PDT 2008
On Tuesday 2008.07.01, "Chris Rebert" <cvrebert+antlr at gmail.com> wrote:
> On Mon, Jun 30, 2008 at 12:23 PM, Arnulf Heller <aheller at gmx.at>
wrote:
[...]
>> is anyone aware of a system translating some formal specification
>> of finite
>> state machines to C++ code? using ANTLR3 + stringtemplate?
>> I found ECharts in the grammars list but that uses ANTLR2, python
>> for code
>> emission and seems to be an overkill for my purposes ...
>
> There's the Ragel State Machine Compiler (
> http://research.cs.queensu.ca/~thurston/ragel/ ). It compiles FSM
> definitions written in a DSL into C or C++ (among other target
> languages).
> It shouldn't be too hard to write some stringtemplates to generate the
> FSM definition programmatically.
There's also SMC: http://smc.sourceforge.net/
Have fun,
John
More information about the antlr-interest
mailing list