From 5e65b4c6b84d343dc0e5aba94817ffea239f6c00 Mon Sep 17 00:00:00 2001 From: Lu Wilson Date: Wed, 27 Sep 2023 17:23:23 +0100 Subject: [PATCH] Update README.md --- README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/README.md b/README.md index e9df1db3f..e881bbe5c 100644 --- a/README.md +++ b/README.md @@ -767,6 +767,32 @@ print(name)! // "Luke" **Please note:** The above code will only highlight correctly if you have the extension installed. +## Parentheses + +Wait, I almost forgot! + +Parentheses in DreamBerd do nothing. They get replaced with whitespace.
+The following lines of code all do the same thing. + +```java +add(3, 2)! +add 3, 2! +(add (3, 2))! +add)3, 2(! +``` + +Lisp lovers will love this feature. Use as many parentheses as you want! + +```java +(add (3, (add (5, 6))))! +``` + +Lisp haters will also love it. + +```java +(add (3, (add (5, 6)! +``` + ## Examples For examples of DreamBerd 2 in action, check out the [examples page](https://github.com/TodePond/DreamBerd/blob/main/test/Examples.md)!