Update Documentation - Syntax Flexibility Chapter.
@@ -559,3 +559,57 @@ Example:
def one put "one" + nl
def two put "two" + nl
+
+.. index::
+ pair: Syntax Flexibility; Using braces { } in Packages/Classes/Functions
+
+Using braces { } in Packages/Classes/Functions
+==============================================
+
+Example:
+
+.. code-block:: ring
+
+ load "stdlib.ring"
+
+ import mypackage
+
+ new myclass {
+ myfunc()
+ }
+
+ package mypackage
+ {
+ class myclass
+ {
+ func myfunc
+ {
+ print("Hello, World!\n")
+ }
+ }
+ }
+
+.. index::
+ pair: Syntax Flexibility; Using 'end' keyword after Packages/Classes/Functions
+
+Using 'end' keyword after Packages/Classes/Functions
+====================================================
+
+Example:
+
+.. code-block:: ring
+
+ import mypackage
+
+ new myclass {
+ myfunc()
+ }
+
+ package mypackage
+ class myclass
+ def myfunc
+ put "Hello, World!"
+ end
+ end
+ end
+
