-
Notifications
You must be signed in to change notification settings - Fork 27
Improve reporting of preprocessor-related parsing failures #356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
fourls
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like some great changes that will really improve the consistency of this code. I have a few thoughts but overall looks great.
delphi-frontend/src/main/java/au/com/integradev/delphi/antlr/ast/token/DelphiTokenImpl.java
Outdated
Show resolved
Hide resolved
delphi-frontend/src/main/java/au/com/integradev/delphi/preprocessor/DelphiPreprocessor.java
Outdated
Show resolved
Hide resolved
delphi-frontend/src/main/java/au/com/integradev/delphi/preprocessor/DelphiPreprocessor.java
Outdated
Show resolved
Hide resolved
delphi-frontend/src/main/java/au/com/integradev/delphi/preprocessor/PreprocessorException.java
Show resolved
Hide resolved
delphi-frontend/src/main/java/au/com/integradev/delphi/preprocessor/DelphiPreprocessor.java
Outdated
Show resolved
Hide resolved
92ebaba to
e02b121
Compare
fourls
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one more question.
fourls
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Line information was incorrect or incomplete in some cases: - within include files - within compiler directives - when include processing fails due to self-referencing include files This was discovered due to the new `ParsingError` check triggering file pointer errors when trying to raise issues on included tokens.
e02b121 to
dc619c2
Compare
fourls
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! The optimization was a good idea.
This constructor became unused with #356 when we started creating `IncludeToken` instances at lex-time.
This constructor became unused with #356 when we started creating `IncludeToken` instances at lex-time.
Line information was incorrect or incomplete in some cases:
This was discovered due to the new
ParsingErrorcheck triggering file pointer errors when trying to raise issues on included tokens.