mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-05 14:31:24 +12:00
Continued working on scanner.
We're now using exceptions for errors, and scanning/pushing tokens is exception-safe (using a set of "limbo tokens").
This commit is contained in:
parent
8ae7b48188
commit
a3961d047f
6 changed files with 461 additions and 16 deletions
14
exceptions.h
Normal file
14
exceptions.h
Normal file
|
@ -0,0 +1,14 @@
|
|||
#pragma once
|
||||
|
||||
#include <exception>
|
||||
|
||||
namespace YAML
|
||||
{
|
||||
class Exception: public std::exception {};
|
||||
|
||||
class UnknownToken: public Exception {};
|
||||
class IllegalBlockEntry: public Exception {};
|
||||
class IllegalMapKey: public Exception {};
|
||||
class IllegalMapValue: public Exception {};
|
||||
class IllegalScalar: public Exception {};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue