aboutsummaryrefslogtreecommitdiff
path: root/src/tree.h
diff options
context:
space:
mode:
authorAdrian Kummerlaender2014-09-26 22:24:49 +0200
committerAdrian Kummerlaender2014-09-26 22:24:49 +0200
commit3aad19966f81189219d00d0ea905b6b1e83d5576 (patch)
treedc1128f5cb0315466292c13755aaaf2bdd947497 /src/tree.h
parentb1e863bf2ae274da155446a8bb4aec5f975a86c5 (diff)
downloadSimpleParser-3aad19966f81189219d00d0ea905b6b1e83d5576.tar
SimpleParser-3aad19966f81189219d00d0ea905b6b1e83d5576.tar.gz
SimpleParser-3aad19966f81189219d00d0ea905b6b1e83d5576.tar.bz2
SimpleParser-3aad19966f81189219d00d0ea905b6b1e83d5576.tar.lz
SimpleParser-3aad19966f81189219d00d0ea905b6b1e83d5576.tar.xz
SimpleParser-3aad19966f81189219d00d0ea905b6b1e83d5576.tar.zst
SimpleParser-3aad19966f81189219d00d0ea905b6b1e83d5576.zip
Simplified Tree::addNode and continued cleanup
* member method "addNode" of "Tree" was relieved of its uneccessary "place" argument * again contified where possible ** e.g. the "buildTree" local element vectors for storing the lexer result
Diffstat (limited to 'src/tree.h')
-rw-r--r--src/tree.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/tree.h b/src/tree.h
index 186f162..e2eb7a6 100644
--- a/src/tree.h
+++ b/src/tree.h
@@ -18,9 +18,10 @@ class Tree {
std::string print() const;
private:
- template <class NType, typename... Args>
- Node* addNode(Node**, Args&&... args);
- Node* buildTree(std::string);
+ template <class NodeType, typename... Args>
+ Node* addNode(Args&&... args);
+
+ Node* buildTree(const std::string&);
const std::string term_;
const ConstantMap* constants_;