|
KiCad PCB EDA Suite
|
In order to support fuzz testing, we need to be able to parse from stdin. More...
Public Member Functions | |
| virtual void | PrepareStream (std::istream &aStream)=0 |
| Take some input stream and prepare it for parsing. | |
| virtual std::unique_ptr< BOARD_ITEM > | Parse ()=0 |
| Actually perform the parsing and return a BOARD_ITEM if successful, or nullptr if not. | |
In order to support fuzz testing, we need to be able to parse from stdin.
The PCB_IO interface is designed to parse from a file, so this class is a simple wrapper that needs to be implemented to wrap a plugin's core parser function.
Definition at line 96 of file pcb_parser_tool.cpp.
|
pure virtualinherited |
Actually perform the parsing and return a BOARD_ITEM if successful, or nullptr if not.
| IO_ERROR | if there is a parse failure |
Implemented in ALLEGRO_BRD_STREAM_PARSER, FILE_PARSER, and SEXPR_STREAM_PARSER.
Referenced by PCB_PARSE_RUNNER::doParse().
|
pure virtual |
Take some input stream and prepare it for parsing.
This may involve reading the whole stream into memory, or it may involve setting up some kind of streaming reader.
| IO_ERROR | if there is a problem setting up from the stream |
Implemented in ALLEGRO_BRD_STREAM_PARSER, and SEXPR_STREAM_PARSER.