summaryrefslogtreecommitdiff
path: root/src/pdacodegen.cc
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@colm.net>2020-04-14 10:16:51 +0000
committerAdrian Thurston <thurston@colm.net>2020-04-14 10:16:51 +0000
commitd0a2a2ac6cf0b3ff0c070a83e72a301704493796 (patch)
tree13f4a3986f06001210a1f29d2efbbe9beca44751 /src/pdacodegen.cc
parenta39d7909d7b542889481e2b3b7c08df16cc42b61 (diff)
downloadcolm-d0a2a2ac6cf0b3ff0c070a83e72a301704493796.tar.gz
correct prodNum as we combine productions to implement [...]
refs #112
Diffstat (limited to 'src/pdacodegen.cc')
-rw-r--r--src/pdacodegen.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pdacodegen.cc b/src/pdacodegen.cc
index c96c9afc..44389b6f 100644
--- a/src/pdacodegen.cc
+++ b/src/pdacodegen.cc
@@ -23,6 +23,7 @@
#include <string.h>
#include <iostream>
+#include <iomanip>
#include "compiler.h"
#include "pdacodegen.h"
@@ -165,7 +166,7 @@ void PdaCodeGen::writeRuntimeData( colm_sections *runtimeData, struct pda_tables
out << "static struct lang_el_info " << lelInfo() << "[] = {\n";
for ( int i = 0; i < runtimeData->num_lang_els; i++ ) {
struct lang_el_info *el = &runtimeData->lel_info[i];
- out << "\t{";
+ out << "/* " << std::setw(4) << i << " */ {";
/* Name. */
out << " \"";