Skip to content

Support Request: Expanding LinqyCalculator example #188

@dannybucks

Description

@dannybucks

This is an awesome library to help in this very complex topic!
I tried to expand the Sprache/samles/LinqyCalculator/ExpressionParser.cs to provide more functions than contained in System.Math. I was somehow unable to achieve that:

  1. Functions could have no parameters.
  2. Functions would accept strings, so that e.g. customFunc("Hello", "World") could be parsed (I was able to add "customFunc", but only with double values as parameters)

Can you maybe explain and show how I could achieve this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions