Update Documentation - natural.txt
@@ -556,18 +556,19 @@ Example:
The next example accept hello world instead of "hello world"
+But this example uses braceend() to check the end of the instruction
+
+This means that this class process only one natural statement that end with literal.
+
.. code-block:: ring
ChangeRingKeyword and _and
- ChangeRingOperator = is
New App
{
I want window and the window title is hello world
}
- ChangeRingOperator is =
-
Class App
# Attributes for the instruction I want window
@@ -575,7 +576,7 @@ The next example accept hello world instead of "hello world"
nIwantwindow = 0
# Attributes for the instruction Window title
# Here we don't define the window attribute again
- title
+ title is
nWindowTitle = 0
# Keywords to ignore, just give them any value
the=0 and=0
@@ -603,13 +604,18 @@ The next example accept hello world instead of "hello world"
nWindowTitle++
ok
- func settitle cValue
+ func gettitle
if nWindowTitle = 1
nWindowTitle=2
ok
- func braceend
+ func getis
if nWindowTitle = 2
+ nWindowTitle=3
+ ok
+
+ func braceend
+ if nWindowTitle = 3
see "Instruction : Window Title = " + literal + nl
nWindowTitle = 0
ok
@@ -621,5 +627,3 @@ The next example accept hello world instead of "hello world"
cCatchError=substr(cCatchError,c+1)
end
literal += substr(cCatchError,1)
-
-
