Pass searched from parser to function to make it work as grouping funtion. Use enums for funtion arguments. Use TokenInfo class to hold info about matched tokens.