Elementa v8.0.0
Minimalistic library for any C++ application (C++11 and up)
Loading...
Searching...
No Matches
elementa::parsing::Parser::Observer Class Referenceabstract

Abstract class for observing the steps of the parser. More...

Description

Abstract class for observing the steps of the parser.

This can be used for syntax-guiding parsing.

Definition at line 406 of file parsing.h.

#include "parsing.h"

Inheritance diagram for elementa::parsing::Parser::Observer:

Public Member Functions

virtual void okStep (const StepInfo &i, Parser &p)=0
 A method to receive the result of a parsing step when it is ok. More...
 
virtual void errorStep (const ErrorInfo &e, Parser &p)=0
 A method to receive any error indication related to parsing. More...
 

Member Function Documentation

◆ okStep()

virtual void elementa::parsing::Parser::Observer::okStep ( const StepInfo i,
Parser p 
)
pure virtual

A method to receive the result of a parsing step when it is ok.

This method will be called after any parsing step is ok.

Implemented in elementa::parsing::ASTObserver.

◆ errorStep()

virtual void elementa::parsing::Parser::Observer::errorStep ( const ErrorInfo e,
Parser p 
)
pure virtual

A method to receive any error indication related to parsing.

This will be called if an error of parsing is detected.

Implemented in elementa::parsing::ASTObserver.


The documentation for this class was generated from the following file: