From 11f708a9fdc097db3fd2b798f603709529822398 Mon Sep 17 00:00:00 2001 From: DiamondNether90 Date: Fri, 10 Oct 2025 08:44:31 +1100 Subject: [PATCH] Fix error in syntax.md --- docs/syntax.md | 3 ++- test.bf | 1 + tests/create.basm | 6 +++--- 3 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 test.bf diff --git a/docs/syntax.md b/docs/syntax.md index bfaea7e..57ead0e 100644 --- a/docs/syntax.md +++ b/docs/syntax.md @@ -25,7 +25,8 @@ Runs code if a boolean is true. Example: ``` -create *1 bool = true +create bool *1 = false +create var *5 = "Hello" if bool { set var = "BASM!" } diff --git a/test.bf b/test.bf new file mode 100644 index 0000000..0df9cd8 --- /dev/null +++ b/test.bf @@ -0,0 +1 @@ +>>>>>>>>>>>>[[>>]>>]++++>><<[[<<]<<]<<<<<<<<>>>>>>>>>>>>[[>>]>>]+++>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>+++>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>+++>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>+++>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>+++>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++><<[[<<]<<]<<<<<<<<>>>>>>>>>>>>>[>+>+<<-]>[<+>-]>[-<<<[[<<]<<]+>>>>>>>]<<<<<<<[<<<<<<<<+>>>>>>>>-]<<<<<<<<[->>>>>>>>>>>>[>>]>>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]><<<<<<<<<<+++>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>+++>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>+++>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>+++>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>+++>+++++++++++++++++++++++++++++++++><<[[<<]<<]<<<<<<<<] \ No newline at end of file diff --git a/tests/create.basm b/tests/create.basm index 09844b0..1a08676 100644 --- a/tests/create.basm +++ b/tests/create.basm @@ -1,5 +1,5 @@ -create bool *1 = true -create string *1 = "A" +create bool *1 = false +create var *5 = "Hello" if bool { - set string = "B" + set var = "BASM!" } \ No newline at end of file