Skip to content

allow text expression for value - #1

Closed
karussell wants to merge 1 commit into
mainfrom
text_value_rhs
Closed

karussell wants to merge 1 commit into
mainfrom
text_value_rhs

Conversation

@karussell

@karussell karussell commented Apr 25, 2022 •

Copy link
Copy Markdown
Member

This change is necessary to merge the text_value_rhs branch in graphhopper/graphhopper.

I adapted the parse method (renamed to parseCondition) and introduced a new parseValue, and added some tests for this. So basic expressions like "numeric_ev + numeric_ev2" are now supported.

Remaining things to do:

  • the completion part is where I'm unsure on how to properly do that as the handling there is a bit special.
  • Also allow operation -.

@easbar

easbar commented Jun 29, 2022

Copy link
Copy Markdown
Member

Thanks! I took your expression parsing code and added auto-complete directly in master. One thing that is still missing is support for negative numbers like: max_speed * -10, which requires adjusting the tokenizer a bit such that in this case we get -10 as a token instead of - and 10 separately. I'll do this in a follow-up.

@easbar easbar closed this Jun 29, 2022
@karussell
karussell deleted the text_value_rhs branch June 29, 2022 12:46
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

Successfully merging this pull request may close these issues.

2 participants