You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to build a compiler and I would like to check if a variable is already defined. So to make an error message it would be nice if Parsley would provide me with the location of the variable, even when the file has the correct syntax.
Thanks in advance!!!
The text was updated successfully, but these errors were encountered:
I just noticed that self.input.position will give the current character count of the input file. With this I can figure out the line and column. Please let me know if you have a better idea.
Dear developers,
Is there a way to pass the current line and column of the file being parsed to the action of a rule?
For example:
the grammar:
the python file:
the input text:
the output:
I'm trying to build a compiler and I would like to check if a variable is already defined. So to make an error message it would be nice if Parsley would provide me with the location of the variable, even when the file has the correct syntax.
Thanks in advance!!!
The text was updated successfully, but these errors were encountered: