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

JSON styles: Expression parser #57

Open
ibgreen opened this issue Mar 22, 2020 · 0 comments
Open

JSON styles: Expression parser #57

ibgreen opened this issue Mar 22, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@ibgreen
Copy link
Contributor

ibgreen commented Mar 22, 2020

Integrate a parser for mathematical expressions

A good start is probably: https://github.com/ArashPartow/math-parser-benchmark-project

Background

deck.gl JSON styles support specifying expressions as strings:
. "getPosition": "@=[x,y,z]"

We need a C++ parser for expressions. Ideally it can return both:

  • an evaluation function for row wise application,
  • as well as an AST (abstract syntax tree) so that we can apply the expression on columns or on GPU.

We also need to align the syntax with the JS expression parser in the @deck.gl/json module, but we could potentially make changes on the JS side as well if it makes more sense.

@ilijapuaca ilijapuaca added the enhancement New feature or request label Jun 8, 2020
@ilijapuaca ilijapuaca mentioned this issue Jun 8, 2020
41 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants