Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inline parser regression: character choking #166

Open
kungfooman opened this issue Mar 27, 2024 · 0 comments
Open

Inline parser regression: character choking #166

kungfooman opened this issue Mar 27, 2024 · 0 comments

Comments

@kungfooman
Copy link
Contributor

Simple example:

Algebra(2, 0, 1, () => {
  console.log(0xff / 255);
});

Generated code:

image

This bug may also be responsible for:

Algebra(3,0,1).inline("E**(r1 * 1e01)");
// vs.
Algebra(3,0,1).inline((r1) => E**(r1 * 1e01));

Output:
image

Suddenly ** is Element.Mul and * is Element.LDot in contrast to ** being Element.Pow.

(I didn't figure out yet which commit introduced these bugs, but maybe you already have a feeling what's wrong)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant