mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
[poincare] Include Ion Charset in Tokenizer
This commit is contained in:
committed by
Émilie Feral
parent
281dd16838
commit
dea52a2df1
@@ -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)) {
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
#define POINCARE_PARSING_TOKENIZER_H
|
||||
|
||||
#include "token.h"
|
||||
#include <poincare/number.h>
|
||||
|
||||
namespace Poincare {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user