diff options
author | Adrian Thurston <thurston@complang.org> | 2012-05-16 20:26:09 -0400 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2012-05-16 20:26:09 -0400 |
commit | 6c0c29b1718a1d8d17f460093d73d7f95059268d (patch) | |
tree | 64f54323d637460780d79c297bab210d1a960156 /colm/pdabuild.cc | |
parent | d8e71f126d6484ab30b17e265b1da583f7e97778 (diff) | |
download | colm-6c0c29b1718a1d8d17f460093d73d7f95059268d.tar.gz |
ARTIFICIAL and NAMED flags now used only in parse trees.
Diffstat (limited to 'colm/pdabuild.cc')
-rw-r--r-- | colm/pdabuild.cc | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/colm/pdabuild.cc b/colm/pdabuild.cc index eafc514b..b44a9b27 100644 --- a/colm/pdabuild.cc +++ b/colm/pdabuild.cc @@ -1577,9 +1577,6 @@ void countNodes( Program *prg, int &count, ParseTree *parseTree, Kid *kid ) //count += prg->rtd->lelInfo[kid->tree->id].numCaptureAttr; - assert( ( parseTree->flags & AF_NAMED ) == ( kid->tree->flags & AF_NAMED ) ); - assert( ( parseTree->flags & AF_ARTIFICIAL ) == ( kid->tree->flags & AF_ARTIFICIAL ) ); - if ( !( parseTree->flags & AF_NAMED ) && !( parseTree->flags & AF_ARTIFICIAL ) && treeChild( prg, kid->tree ) != 0 ) @@ -1596,9 +1593,6 @@ void fillNodes( Program *prg, int &nextAvail, Bindings *bindings, long &bindId, if ( kid != 0 ) { PatReplNode &node = nodes[ind]; - assert( ( parseTree->flags & AF_NAMED ) == ( kid->tree->flags & AF_NAMED ) ); - assert( ( parseTree->flags & AF_ARTIFICIAL ) == ( kid->tree->flags & AF_ARTIFICIAL ) ); - Kid *child = !( parseTree->flags & AF_NAMED ) && !( parseTree->flags & AF_ARTIFICIAL ) && |