summaryrefslogtreecommitdiff
path: root/ragel/gendata.cc
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2011-09-11 06:25:30 +0000
committerAdrian Thurston <thurston@complang.org>2011-09-11 06:25:30 +0000
commit491fbfaceb79c0208b15a098cd2cb1565e7e08fd (patch)
tree0106f48e4a2c19e384ffc081603c7e83e4f5d902 /ragel/gendata.cc
parent7d1e2cb03b39300c02089a0c2bab67dc1991f36e (diff)
downloadcolm-491fbfaceb79c0208b15a098cd2cb1565e7e08fd.tar.gz
Now have CodeGenData inheriting ReducedGen. Unified in interface, but not yet
in implementation. refs #321
Diffstat (limited to 'ragel/gendata.cc')
-rw-r--r--ragel/gendata.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/ragel/gendata.cc b/ragel/gendata.cc
index 938a1250..3af4e1cc 100644
--- a/ragel/gendata.cc
+++ b/ragel/gendata.cc
@@ -109,6 +109,7 @@ void genLineDirective( ostream &out )
CodeGenData::CodeGenData( const CodeGenArgs &args )
:
+ ReducedGen(args),
sourceFileName(args.sourceFileName),
fsmName(args.fsmName),
out(args.out),
@@ -141,7 +142,9 @@ CodeGenData::CodeGenData( const CodeGenArgs &args )
noFinal(false),
noError(false),
noCS(false)
-{}
+{
+ ReducedGen::cgd = this;
+}
void CodeGenData::createMachine()
{