diff options
author | Adrian Thurston <thurston@complang.org> | 2012-09-15 17:10:12 -0400 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2012-09-15 17:10:12 -0400 |
commit | 3504a282319700989198e3b7ff8638eea3f8ee60 (patch) | |
tree | a4c5838b581b06eda3c0905398b0d7f1abb4da4a /colm/pdabuild.cc | |
parent | 61defd869997799a8b3ecf0ced02e0e44b9c00be (diff) | |
download | colm-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.cc | 8 |
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; } |