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 : +===== + +[->+>>+<<<] +<[->+>>+<<<] +>>> +[>[->+>+<<]>>[-<<+>>]+<[>-<[-]]>[->+>+<<]>>[-<<+>>]<[<<<<[-]+>+>>>-]<<<-<-]+>[<->[-]]< +[ + -<[-<->>+<]>[-<+>] + <<<+> + [->>+>+<<<]>>>[-<<<+>>>]<< + [->>+>+<<<]>>>[-<<<+>>>]< + <[>[->+>+<<]>>[-<<+>>]+<[>-<[-]]>[->+>+<<]>>[-<<+>>]<[<<<<[-]+>+>>>-]<<<-<-]>>>[<<<+>>>-]<<< +] +<[-]<[-]<