From bbb0b94b317e6189e480184070b1ecbc6ed52984 Mon Sep 17 00:00:00 2001 From: Yanorei32 Date: Fri, 29 Nov 2019 09:21:08 +0900 Subject: [PATCH] Add exception examples --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index eadba7e..bff21f6 100644 --- a/README.md +++ b/README.md @@ -91,6 +91,12 @@ After power-on, it will go to Editor Mode. ### Data memory access violation If this happens, you did read or write out of the memory boundary. +Minimum: +``` +<+ ++[>+] +``` + Output: ``` ERROR: PTR < 0 @@ -100,6 +106,11 @@ ERROR: PTR >= RAM SIZE ### Null character output If this happens, you tried to print NULL character. +Minimum: +``` +. +``` + Output: ``` ERROR: '\0' OUTPUT. @@ -108,6 +119,12 @@ ERROR: '\0' OUTPUT. ### Syntax error It's your typo. +Minimum: +``` ++] +[ +``` + Output: ``` ERROR: FAILED TO FIND '['