Skip to content

Commit e44ff08

Browse files
committed
Fixed error where expressions in the form f z f z wouldn't be interpreted as f(z) * f(z)
1 parent b15cbd2 commit e44ff08

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@ docs/manim/.venv/
77
docs/manim/__pycache__/
88
docs/manim/media/
99
docs/manim/build.bat
10-
build-web
10+
build-web
11+
*emsdk
12+
./emsdk

emsdk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit d6b88f4ffd8d6163aadb6ff48ca4b32ceec890dd
1+
Subproject commit a620cf1d71c62dfdfbb0c01fe0a371e2af2dda6c

src/parser/tokenizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ vector<TokenOperator> handle_implicit(vector<TokenOperator>& tokens) {
6464
if (token.arity != Arity::NULLARY && token.op != Operator::RPAREN) continue;
6565

6666
const TokenOperator& next = tokens[i + 1];
67-
if (next.arity == Arity::NULLARY || next.op == Operator::LPAREN)
67+
if (next.arity == Arity::NULLARY || next.op == Operator::LPAREN || next.arity == Arity::UNARY)
6868
pos.push({ i, times });
6969
}
7070

0 commit comments

Comments
 (0)