diff options
| author | Tolmachev Igor <me@igorek.dev> | 2026-05-09 00:34:22 +0300 |
|---|---|---|
| committer | Tolmachev Igor <me@igorek.dev> | 2026-05-09 01:25:25 +0300 |
| commit | f6983686a66c3b8941af471d78642b307eb26f8e (patch) | |
| tree | 80fd754fcc820e9b47b9d9cdafbdf86065ebf3ed /compiler/src/ast/error.rs | |
| parent | 17475ea76a2a6e81bc25a995eca0f19c727a683a (diff) | |
| download | crisp-f6983686a66c3b8941af471d78642b307eb26f8e.tar.gz crisp-f6983686a66c3b8941af471d78642b307eb26f8e.zip | |
Add AST parser skeleton
Diffstat (limited to 'compiler/src/ast/error.rs')
| -rw-r--r-- | compiler/src/ast/error.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/compiler/src/ast/error.rs b/compiler/src/ast/error.rs new file mode 100644 index 0000000..11f552d --- /dev/null +++ b/compiler/src/ast/error.rs | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | use std::{error, fmt}; | ||
| 2 | |||
| 3 | #[derive(Debug)] | ||
| 4 | pub enum Error {} | ||
| 5 | |||
| 6 | impl fmt::Display for Error { | ||
| 7 | fn fmt(&self, _f: &mut fmt::Formatter) -> fmt::Result { | ||
| 8 | todo!() | ||
| 9 | } | ||
| 10 | } | ||
| 11 | |||
| 12 | impl error::Error for Error {} | ||
