diff options
author | Adrian Thurston <thurston@colm.net> | 2020-04-12 13:08:39 +0000 |
---|---|---|
committer | Adrian Thurston <thurston@colm.net> | 2020-04-12 14:11:31 +0000 |
commit | a39d7909d7b542889481e2b3b7c08df16cc42b61 (patch) | |
tree | aeb2d570aed0ba1f5a07a55c4b9ffab6aa57737a /src/compiler.cc | |
parent | 8b1810c9fd897d8d2840a0713ced1dfcfb71d109 (diff) | |
download | colm-a39d7909d7b542889481e2b3b7c08df16cc42b61.tar.gz |
renamed DefList and LelDefList to the more accurate ProdList, LelProdList
Diffstat (limited to 'src/compiler.cc')
-rw-r--r-- | src/compiler.cc | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/compiler.cc b/src/compiler.cc index 72f87dac..c2ce141f 100644 --- a/src/compiler.cc +++ b/src/compiler.cc @@ -791,9 +791,9 @@ LangEl *Compiler::makeRepeatProd( const InputLoc &loc, Namespace *nspace, Production *newDef1 = Production::cons( InputLoc(), prodName, prodElList1, String(), false, 0, - prodList.length(), prodName->defList.length() ); + prodList.length(), prodName->prodList.length() ); - prodName->defList.append( newDef1 ); + prodName->prodList.append( newDef1 ); prodList.append( newDef1 ); /* Build the second production of the repeat. */ @@ -801,9 +801,9 @@ LangEl *Compiler::makeRepeatProd( const InputLoc &loc, Namespace *nspace, Production *newDef2 = Production::cons( InputLoc(), prodName, prodElList2, String(), false, 0, - prodList.length(), prodName->defList.length() ); + prodList.length(), prodName->prodList.length() ); - prodName->defList.append( newDef2 ); + prodName->prodList.append( newDef2 ); prodList.append( newDef2 ); return prodName; @@ -836,9 +836,9 @@ LangEl *Compiler::makeListProd( const InputLoc &loc, Namespace *nspace, Production *newDef1 = Production::cons( loc, prodName, prodElList1, String(), false, 0, - prodList.length(), prodName->defList.length() ); + prodList.length(), prodName->prodList.length() ); - prodName->defList.append( newDef1 ); + prodName->prodList.append( newDef1 ); prodList.append( newDef1 ); /* Build the second production of the list. */ @@ -850,9 +850,9 @@ LangEl *Compiler::makeListProd( const InputLoc &loc, Namespace *nspace, Production *newDef2 = Production::cons( loc, prodName, prodElList2, String(), false, 0, - prodList.length(), prodName->defList.length() ); + prodList.length(), prodName->prodList.length() ); - prodName->defList.append( newDef2 ); + prodName->prodList.append( newDef2 ); prodList.append( newDef2 ); return prodName; @@ -873,9 +873,9 @@ LangEl *Compiler::makeOptProd( const InputLoc &loc, Namespace *nspace, Production *newDef1 = Production::cons( loc, prodName, prodElList1, String(), false, 0, - prodList.length(), prodName->defList.length() ); + prodList.length(), prodName->prodList.length() ); - prodName->defList.append( newDef1 ); + prodName->prodList.append( newDef1 ); prodList.append( newDef1 ); /* Build the second production of the repeat. */ @@ -883,9 +883,9 @@ LangEl *Compiler::makeOptProd( const InputLoc &loc, Namespace *nspace, Production *newDef2 = Production::cons( loc, prodName, prodElList2, String(), false, 0, - prodList.length(), prodName->defList.length() ); + prodList.length(), prodName->prodList.length() ); - prodName->defList.append( newDef2 ); + prodName->prodList.append( newDef2 ); prodList.append( newDef2 ); return prodName; |