Skip to content

Custom functions and variables#6

Description

@TheNeikos

Heya! Just stumbled upon your library and first I wanted to say nice job 馃憤 Looking good.

I have a project I would like to implement this in, however I would need two more features that would make it more usable for me:

  • Custom functions
    • This could be implemented with a HashMap<&'static str, fn(&stack) -> f64>
  • Variables
    • In my application the user will input a calculation and this will have to be evaluated with the values put in correctly. This could also be implemented with a HashMap, akin to 'if it has no parantheses it's a variables' and on resolution you replace the value using the user supplied HashMap.

Is this something you would like to see in your project as well? If yes, I wouldn't mind sending in some PR's in the near future.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions