From d0a2a2ac6cf0b3ff0c070a83e72a301704493796 Mon Sep 17 00:00:00 2001 From: Adrian Thurston Date: Tue, 14 Apr 2020 10:16:51 +0000 Subject: correct prodNum as we combine productions to implement [...] refs #112 --- src/pdabuild.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src/pdabuild.cc') diff --git a/src/pdabuild.cc b/src/pdabuild.cc index ae2d4e01..60a23c6b 100644 --- a/src/pdabuild.cc +++ b/src/pdabuild.cc @@ -1455,6 +1455,7 @@ void Compiler::makeRuntimeData() for ( int i = 0; i < nextLelId; i++ ) { LangEl *lel = langElIndex[i]; if ( lel != 0 ) { + assert( lel->id == i ); runtimeData->lel_info[i].name = lel->fullLit; runtimeData->lel_info[i].xml_tag = lel->xmlTag; runtimeData->lel_info[i].repeat = lel->isRepeat; -- cgit v1.2.1