[poincare] Include Ion Charset in Tokenizer

This commit is contained in:
Ruben Dashyan
2018-10-02 15:39:38 +02:00
committed by Émilie Feral
parent 281dd16838
commit dea52a2df1
2 changed files with 5 additions and 4 deletions

View File

@@ -1,4 +1,6 @@
#include "tokenizer.h"
#include <poincare/number.h>
#include <ion/charset.h>
namespace Poincare {
@@ -111,13 +113,13 @@ Token Tokenizer::popToken() {
if (canPopChar('}')) {
return Token(Token::Type::RightBrace);
}
if (canPopChar('\x89')) { // Ion::Charset::SmallPi
if (canPopChar(Ion::Charset::SmallPi)) {
return Token(Token::Type::Number);
}
if (canPopChar('\x90')) { // Ion::Charset::Store
if (canPopChar(Ion::Charset::Sto)) {
return Token(Token::Type::Store);
}
if (canPopChar('\x91')) { // Ion::Charset::Root
if (canPopChar(Ion::Charset::Root)) { //
return Token(Token::Type::SquareRoot);
}
if (canPopChar(0)) {

View File

@@ -2,7 +2,6 @@
#define POINCARE_PARSING_TOKENIZER_H
#include "token.h"
#include <poincare/number.h>
namespace Poincare {