From 27fff15972be95830a67a6390a0e58156a7870be Mon Sep 17 00:00:00 2001 From: miggazElquez Date: Thu, 5 Sep 2019 20:49:12 +0200 Subject: [PATCH] add functions, and somes operators --- op.bf | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 op.bf diff --git a/op.bf b/op.bf new file mode 100644 index 0000000..40176a6 --- /dev/null +++ b/op.bf @@ -0,0 +1,57 @@ +COMPAR : +======== + +<[ + >[->+>+<<]>>[-<<+>>] on copie + +<[>-<[-]] on teste + >[->+>+<<]>>[-<<+>>] + <[<<<<[-]+>+>>>-] si le test est valide on efface + <<<-<-on finit la boucle +] +{add the last part} + + +EQUALS : ++>[<->[-]]>>[<<<->>>-]<<< + +DIFFERENT : +>[<+>[-]]>>[<<<+>>>-]<<< + +GREATER : +>>>[<<<+>>>-]<<< + +GREATER OR EQUALS : ++>[<->[-]]< + +SMALLER : +>[<+>[-]]< + +SMALLER OR EQUALS : ++>>>[<<<->>>-]<<< + + + + + +MUL : +===== + +<[->>+<<]>[->[-<<+>>>+<]>[-<+>]<<]>[-]<< + + + +DIV : +===== + +[->+>>+<<<] +<[->+>>+<<<] +>>> +[>[->+>+<<]>>[-<<+>>]+<[>-<[-]]>[->+>+<<]>>[-<<+>>]<[<<<<[-]+>+>>>-]<<<-<-]+>[<->[-]]< +[ + -<[-<->>+<]>[-<+>] + <<<+> + [->>+>+<<<]>>>[-<<<+>>>]<< + [->>+>+<<<]>>>[-<<<+>>>]< + <[>[->+>+<<]>>[-<<+>>]+<[>-<[-]]>[->+>+<<]>>[-<<+>>]<[<<<<[-]+>+>>>-]<<<-<-]>>>[<<<+>>>-]<<< +] +<[-]<[-]<