diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2021-02-05 20:54:20 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2021-02-05 20:54:20 +0100 |
| commit | 826eb43254ddf8baadcd2ec1dacce594690526db (patch) | |
| tree | 1e9f09449d8eb675f6d747fc5e123393841cdaf1 /src/error.rs | |
| parent | 636bd9f149a1df344933e1eaac39cc91ecdca706 (diff) | |
| download | sylt-826eb43254ddf8baadcd2ec1dacce594690526db.tar.gz | |
document public things and change some visibility and rename some variables and
good commit yes thank
Diffstat (limited to 'src/error.rs')
| -rw-r--r-- | src/error.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs index bbdd46b..deab89e 100644 --- a/src/error.rs +++ b/src/error.rs @@ -12,15 +12,18 @@ use crate::tokenizer::Token; #[derive(Debug, Clone)] pub enum ErrorKind { TypeError(Op, Vec<Type>), + /// (External function, parameters) ExternTypeMismatch(String, Vec<Type>), RuntimeTypeError(Op, Vec<Value>), + /// (Indexed value, length, index) IndexOutOfBounds(Value, usize, usize), AssertFailed, InvalidProgram, Unreachable, + /// (line, token) SyntaxError(usize, Token), } |
