I would like for the user to be able to pass in a string such as:
FLOOR(AVG(SomeToken))
and validate that this string is Valid (e.g., nesting is correct, parenthesis are closed, FLOOR and AVG are valid functions, SomeToken is a valid is token).
I'm not sure where to begin to do something like this. I've tried looking at lexers/parsers but still a bit lost.