Package foundry.veil.lib.anarres.cpp
Interface PreprocessorListener
public interface PreprocessorListener
A handler for preprocessor events, primarily errors and warnings.
If no PreprocessorListener is installed in a Preprocessor, all error and warning events will throw an exception. Installing a listener allows more intelligent handling of these events.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handleError
(@NotNull Source source, int line, int column, @NotNull String msg) Handles an error.void
handleSourceChange
(@NotNull Source source, @NotNull PreprocessorListener.SourceChangeEvent event) void
handleWarning
(@NotNull Source source, int line, int column, @NotNull String msg) Handles a warning.
-
Method Details
-
handleWarning
void handleWarning(@NotNull @NotNull Source source, int line, int column, @NotNull @NotNull String msg) throws LexerException Handles a warning.The behaviour of this method is defined by the implementation. It may simply record the error message, or it may throw an exception.
- Throws:
LexerException
-
handleError
void handleError(@NotNull @NotNull Source source, int line, int column, @NotNull @NotNull String msg) throws LexerException Handles an error.The behaviour of this method is defined by the implementation. It may simply record the error message, or it may throw an exception.
- Throws:
LexerException
-
handleSourceChange
void handleSourceChange(@NotNull @NotNull Source source, @NotNull @NotNull PreprocessorListener.SourceChangeEvent event)
-