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

reflow: already line-broken lists #14

Open
bobheadxi opened this issue May 28, 2021 · 0 comments
Open

reflow: already line-broken lists #14

bobheadxi opened this issue May 28, 2021 · 0 comments
Labels
bug Something isn't working plugins readable plugins

Comments

@bobheadxi
Copy link
Owner

input:

1. use the Golang [abstract syntax tree parser](https://golang.org/pkg/go/ast/)
  to identify "selectors", such as `my.value` (this approach did not have the
  `SELECT` syntax described early - an example of the initial proposal's syntax
  was simply `container.count - 1`. In this case, `container.count` is a valid Go selector
  that would be recognised by the AST parser)
2. evalaute the selectors using the `gojsonq` library
3. 3. perform expression arithmetic using the `govaluate` library with the selected
  values as [parameters to the expression](https://github.com/Knetic/govaluate#how-do-i-use-it)

got:

1. use the Golang [abstract syntax tree parser](https://golang.org/pkg/go/ast/)

to identify "selectors", such as `my.value` (this approach did not have the `SELECT` syntax described early - an example of the initial proposal's syntax was simply `container.count - 1`.
In this case, `container.count` is a valid Go selector that would be recognised by the AST parser) 2.
evalaute the selectors using the `gojsonq` library 3.
perform expression arithmetic using the `govaluate` library with the selected values as [parameters to the expression](https://github.com/Knetic/govaluate#how-do-i-use-it)

definitely wrong :( related: #7

@bobheadxi bobheadxi added bug Something isn't working plugins readable plugins labels Sep 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working plugins readable plugins
Projects
None yet
Development

No branches or pull requests

1 participant