summaryrefslogtreecommitdiff
path: root/src/dotgen.h
blob: 96a48e882799992fa7da46317d077a1d79cafd9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
 *  Copyright 2001-2012 Adrian Thurston <thurston@complang.org>
 */

#ifndef _GVDOTGEN_H
#define _GVDOTGEN_H

#include <iostream>

#if 0

class GraphvizDotGen : public CodeGenData
{
public:
	GraphvizDotGen( ostream &out ) : CodeGenData(out) { }

	/* Print an fsm to out stream. */
	void writeTransList( RedState *state );
	void writeDotFile( );

	virtual void finishRagelDef();

private:
	/* Writing labels and actions. */
	std::ostream &ONCHAR( Key lowKey, Key highKey );
	std::ostream &TRANS_ACTION( RedState *fromState, RedTrans *trans );
	std::ostream &ACTION( RedAction *action );
	std::ostream &KEY( Key key );
};

#endif


#endif /* _GVDOTGEN_H */