summaryrefslogtreecommitdiff
path: root/colm/pdabuild.cc
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2012-09-15 17:10:12 -0400
committerAdrian Thurston <thurston@complang.org>2012-09-15 17:10:12 -0400
commit3504a282319700989198e3b7ff8638eea3f8ee60 (patch)
treea4c5838b581b06eda3c0905398b0d7f1abb4da4a /colm/pdabuild.cc
parent61defd869997799a8b3ecf0ced02e0e44b9c00be (diff)
downloadcolm-3504a282319700989198e3b7ff8638eea3f8ee60.tar.gz
input locations should either be taken from files, or set to 'internal'
Diffstat (limited to 'colm/pdabuild.cc')
-rw-r--r--colm/pdabuild.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/colm/pdabuild.cc b/colm/pdabuild.cc
index c256589b..560b8761 100644
--- a/colm/pdabuild.cc
+++ b/colm/pdabuild.cc
@@ -37,7 +37,9 @@
/* Dumping the fsm. */
#include "mergesort.h"
-using namespace std;
+using std::endl;
+using std::cerr;
+using std::cout;
char startDefName[] = "start";
@@ -150,8 +152,8 @@ ProdElList *Compiler::makeProdElList( LangEl *langEl )
{
ProdElList *prodElList = new ProdElList();
UniqueType *uniqueType = findUniqueType( TYPE_TREE, langEl );
- TypeRef *typeRef = TypeRef::cons( InputLoc(), uniqueType );
- prodElList->append( new ProdEl( InputLoc(), typeRef ) );
+ TypeRef *typeRef = TypeRef::cons( internal, uniqueType );
+ prodElList->append( new ProdEl( internal, typeRef ) );
prodElList->tail->langEl = langEl;
return prodElList;
}