LogiXpr
Loading...
Searching...
No Matches
parser.h
Go to the documentation of this file.
1
6#pragma once
7
8#include "expression.h"
9#include <vector>
10
24std::vector<std::string> tokenize(std::string expression);
25
34bool parse(std::string expression, std::shared_ptr<Expression> &root);
35
Header file for expression class.
bool parse(std::string expression, std::shared_ptr< Expression > &root)
Parse the expression and convert it to an abstract syntax tree.
Definition parser.cpp:31
std::vector< std::string > tokenize(std::string expression)
Tokenize the expression.
Definition parser.cpp:8