[antlr-interest] FSM codegen

Chris Rebert cvrebert+antlr at gmail.com
Mon Jun 30 16:45:30 PDT 2008


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.

- Chris

On Mon, Jun 30, 2008 at 12:23 PM, Arnulf Heller <aheller at gmx.at> wrote:
> hi group,
>
> 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 ...
>
> thx,
> ah
>
>


More information about the antlr-interest mailing list