Fix iff arrow parsing

pull/9/head
trivernis 4 years ago
parent 980cb61503
commit 1a1ce2c3f6

@ -2,7 +2,7 @@
name = "asciimath-rs"
description = "AsciiMath parser"
repository = "https://github.com/trivernis/asciimath-rs"
version = "0.4.6"
version = "0.4.7"
authors = ["trivernis <trivernis@protonmail.com>"]
edition = "2018"
readme = "README.md"

@ -364,7 +364,7 @@ mod tests {
//#[test]
fn it_writes_mathml() {
let str_expression =
"alpha sqrt 1 in NN implies 2^4 + sum_(k = 1)^3 - ((1),(2))[[2, 3 + 3],[4, 5]] + alpha";
"alpha sqrt 1 in NN implies 2^4 + <=> sum_(k = 1)^3 - ((1),(2))[[2, 3 + 3],[4, 5]] + alpha";
let expression = parse(str_expression.to_string());
fs::write(
"test-files/test.html",

@ -36,14 +36,14 @@ impl Tokenizer {
tokens.push(Token::Grouping(grouping))
} else if let Some(arrow) = self.parse_arrows() {
tokens.push(Token::Arrow(arrow))
} else if let Some(logical) = self.parse_logical() {
tokens.push(Token::Logical(logical))
} else if let Some(relation) = self.parse_relation() {
tokens.push(Token::Relation(relation))
} else if let Some(operation) = self.parse_operation() {
tokens.push(Token::Operation(operation))
} else if let Some(misc) = self.parse_misc() {
tokens.push(Token::Misc(misc))
} else if let Some(logical) = self.parse_logical() {
tokens.push(Token::Logical(logical))
} else if let Some(accent) = self.parse_accent() {
tokens.push(Token::Accent(accent))
} else if let Some(greek) = self.parse_greek() {

Loading…
Cancel
Save