
Hi,
I want to pass 2 instances to grammar class.
One is a literal-validation instance, which checks if a literal expression is correct.
The other is a database, which is used to see a variable name is really defined and available.
(all of the defined names of variables and functions are registered on the database)
If any of the above checks fail, I want to show a quick info when mouse hover, and a squiggle line.
This is the same specification as the built-in syntax check, so I think I should write those code in the grammar class,
like in "variableName.Production.SuccessCallback" or ""variableName.Production.CompleteCallback".
Please tell me how to pass an instance to the grammar class.
Also, please give some advice if there is a better way to achieve what I want to do.
Thank you.