diff options
author | Adrian Thurston <thurston@complang.org> | 2015-11-05 17:40:35 -0500 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2015-11-05 17:40:35 -0500 |
commit | 883797b32e3a4915bf81f801946cda6798e019c9 (patch) | |
tree | 4f4ed88b5ab78ef307f3219b7c54a5660490ae69 /src/consinit.cc | |
parent | 80b9fc661abe6f37853bc12889f0443a1d6c65a9 (diff) | |
download | colm-883797b32e3a4915bf81f801946cda6798e019c9.tar.gz |
split reducers into their own class
Previously selected with a runtime int. Using reduction name as the class name.
Diffstat (limited to 'src/consinit.cc')
-rw-r--r-- | src/consinit.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/consinit.cc b/src/consinit.cc index c0a1196a..c2e4b10b 100644 --- a/src/consinit.cc +++ b/src/consinit.cc @@ -42,7 +42,7 @@ extern "C" void commit_reduce_forward( program_t *prg, tree_t **root, commit_clear_parse_tree( prg, root, pda_run, pt->child ); } -extern "C" long commit_union_sz() { return 0; } +extern "C" long commit_union_sz( int reducer ) { return 0; } using std::cout; using std::cerr; @@ -819,7 +819,7 @@ void ConsInit::parseInput( StmtList *stmtList ) /* Parse the above list. */ LangExpr *parseExpr = parseCmd( internal, false, false, objField, - typeRef, 0, list, true, false ); + typeRef, 0, list, true, false, "" ); LangStmt *parseStmt = LangStmt::cons( internal, LangStmt::ExprType, parseExpr ); stmtList->append( parseStmt ); } |