Skip to content
Snippets Groups Projects
Commit d87aba9a authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

fixed lepton namespace

parent ff5fa749
No related branches found
No related tags found
No related merge requests found
......@@ -74,12 +74,16 @@ namespace PLMD {
using namespace lepton;
using namespace std;
namespace lepton {
static const string Digits = "0123456789";
static const string Operators = "+-*/^";
static const bool LeftAssociative[] = {true, true, true, true, false};
static const int Precedence[] = {0, 0, 1, 1, 3};
static const Operation::Id OperationId[] = {Operation::ADD, Operation::SUBTRACT, Operation::MULTIPLY, Operation::DIVIDE, Operation::POWER};
}
class lepton::ParseToken {
public:
enum Type {Number, Operator, Variable, Function, LeftParen, RightParen, Comma, Whitespace};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment