GithubHelp home page GithubHelp logo

Contribution request about excel-formula-ast HOT 4 CLOSED

jkim-js avatar jkim-js commented on July 18, 2024
Contribution request

from excel-formula-ast.

Comments (4)

psalaets avatar psalaets commented on July 18, 2024

if you're open to contributions to the excel-formula-ast and excel-formula-tokenizer?

What kind of things did you have in mind?

is github's issues the best way to reach you?

Yes github is the best place to reach me for discussing this project.

from excel-formula-ast.

jkim-js avatar jkim-js commented on July 18, 2024

Thanks for responding so quickly.

I'm looking to add two sets of changes

  • Support for dynamic arrays (implicit intersection and spill range)
  • Allow hooks to be injected into the tokenizer and treebuilder, to customize/change what's returned for each token and node

On the tokenizer:

  • Support for two dynamic array tokens (implicit intersection and spill range).
  • Hooks within the tokenizer, to customize the return behavior of individual tokens (e.g., retaining the value instead of wiping it out).

For the ast/treebuilder:

  • Hooks to inject different node builders and treebuilders; in order to process the decorated tokens.

from excel-formula-ast.

psalaets avatar psalaets commented on July 18, 2024

Sure I'm open to those changes. My only request is that you include reasonable test coverage for new features/capabilities.

To provide a little background, I originally put these modules together to prototype something for a project that ended up being scrapped. Since I never used them for anything, I'm not heavily invested or opinionated.

I found the tokenizer code somewhere on the internet and cleaned it up a bit. I feel like it's still pretty hard to understand and maybe some kind of state machine solution would work better. I also think these modules would benefit from a TypeScript rewrite.

Anyhow, those are just two things on my "maybe someday" todo list. I am not implying that you should consider doing them.

from excel-formula-ast.

jkim-js avatar jkim-js commented on July 18, 2024

Much appreciated!

Just a fair warning that it'll be a couple of months before I revisit this, as this is all in the research phase.

-John

from excel-formula-ast.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.