5#ifndef BOTANIST_EVALUATOR_DOUBLE_H
6#define BOTANIST_EVALUATOR_DOUBLE_H
11#include <collection2/list.hpp>
12#include <collection2/stack.hpp>
22 collection2::Stack<double>& calcStack;
31 bool getValueFromNode(
const SyntaxNode& node,
double& value)
const;
34 explicit DoubleEvaluator(collection2::Stack<double>& calcStack) : calcStack(calcStack){};
43 double evaluate(collection2::List<SyntaxNode>& nodeList);
構文評価器 (倍精度浮動小数点数)
Definition: double.hpp:19
double evaluate(collection2::List< SyntaxNode > &nodeList)
引数に与えられた直列化済みの構文木を解析し、結果を返します。
構文木のノード
Definition: syntaxnode.hpp:15