Skip to content

Possible to extract variables from Expression? #73

Open
@herrytco

Description

@herrytco

For my project, I need to parse expressions and get a list of used symbols in that expression. This would look something like this:

String input = "x+y*z+3";
Expression e = Parser().parse(input);

List<String> symbols = e.symbols; // ["x", "y", "z"]

Is that possible with the current state? I couldn't find the function on my own.

Metadata

Metadata

Assignees

Labels

enhancementIndicates new feature requests

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions