From 20e389d556fbb7623bdae63d5afe455c35ff421d Mon Sep 17 00:00:00 2001 From: Vladimir Kalnitsky Date: Sun, 24 Nov 2024 03:46:48 +0400 Subject: [PATCH] Update the FFI example for the new escaping rules --- examples/foreign_functions.metaprompt | 30 +++++++++++++-------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/examples/foreign_functions.metaprompt b/examples/foreign_functions.metaprompt index f1d4a29..6ce349b 100644 --- a/examples/foreign_functions.metaprompt +++ b/examples/foreign_functions.metaprompt @@ -1,21 +1,21 @@ -\[@and false :with true ] = [@and false :with true] -\[@and true :with true ] = [@and true :with true] -\[@and true :with false] = [@and true :with false] -\[@and false :with false] = [@and false :with false] - \[@and] = [@and] +\[@and false :with true \] = [@and false :with true] +\[@and true :with true \] = [@and true :with true] +\[@and true :with false\] = [@and true :with false] +\[@and false :with false\] = [@and false :with false] + \[@and\] = [@and] -\[@or false :with true ] = [@or false :with true] -\[@or true :with true ] = [@or true :with true] -\[@or true :with false] = [@or true :with false] -\[@or false :with false] = [@or false :with false] - \[@or] = [@or] +\[@or false :with true \] = [@or false :with true] +\[@or true :with true \] = [@or true :with true] +\[@or true :with false\] = [@or true :with false] +\[@or false :with false\] = [@or false :with false] + \[@or\] = [@or] -\[@xor false :with true ] = [@xor false :with true] -\[@xor true :with true ] = [@xor true :with true] -\[@xor true :with false] = [@xor true :with false] -\[@xor false :with false] = [@xor false :with false] - \[@xor] = [@xor] +\[@xor false :with true \] = [@xor false :with true] +\[@xor true :with true \] = [@xor true :with true] +\[@xor true :with false\] = [@xor true :with false] +\[@xor false :with false\] = [@xor false :with false] + \[@xor\] = [@xor] [@cite :prefix=>>> :with [@strip