diff --git a/docs/syntax.md b/docs/syntax.md index f64dd31..2bd1257 100644 --- a/docs/syntax.md +++ b/docs/syntax.md @@ -168,11 +168,11 @@ Notes consist of: -- A token with the literal text 'StartNote' +- A token with the literal text 'BeginNote' - Arbitrary text - A token with the literal text 'EndNote' -'StartNote' is not allowed in the note's text. +'BeginNote' is not allowed in the note's text. This helps catch cases of accidental nesting. The text is otherwise ignored by NewLang. @@ -183,7 +183,7 @@ ``` NewLang 0 -StartNote Read the user's name EndNote +BeginNote Read the user's name EndNote Set Name To System Read EndSet System Print Name Done ``` @@ -208,14 +208,14 @@ Creating a text value consists of these tokens: -- A token with the literal text 'StartText' -- Arbitrary text that must not contain 'StartText' +- A token with the literal text 'BeginText' +- Arbitrary text that must not contain 'BeginText' - A token with the literal text 'EndText' -'StartText' is not allowed in text values. +'BeginText' is not allowed in text values. This helps catch cases of accidental nesting. -Whitespace after 'StartText' and before 'EndText' are automatically removed. +Whitespace after 'BeginText' and before 'EndText' are automatically removed. The arbitrary text will be used as Text data. @@ -223,7 +223,7 @@ ``` NewLang 0 -System Print StartText Hello, world! EndText Done +System Print BeginText Hello, world! EndText Done ``` This will print the text 'Hello, world!' @@ -256,8 +256,8 @@ ``` NewLang 0 If True -Then System Print StartText Hi EndText -Else System Print StartText Bye EndText +Then System Print BeginText Hi EndText +Else System Print BeginText Bye EndText EndIf ``` @@ -276,7 +276,7 @@ ``` NewLang 0 -Set Time To StartText Twelve O'Clock EndText EndSet +Set Time To BeginText Twelve O'Clock EndText EndSet System Print Time Done ``` @@ -338,9 +338,9 @@ ``` NewLang 0 Set UserName To System ReadLine EndSet -If UserName Equals StartText Jookia EndText -Then System Print StartText Hi Jookia EndText -Else System Print StartText Howdy Stranger EndText +If UserName Equals BeginText Jookia EndText +Then System Print BeginText Hi Jookia EndText +Else System Print BeginText Howdy Stranger EndText EndIf System Exit 0 Done ``` @@ -360,7 +360,7 @@ ``` NewLang 0 -System Print StartText Hit enter to continue EndText Done +System Print BeginText Hit enter to continue EndText Done System ReadLine Done ``` @@ -388,7 +388,7 @@ ``` NewLang 0 -Set Message To StartText Hi there! EndText +Set Message To BeginText Hi there! EndText System Print Message Done ``` @@ -414,8 +414,8 @@ ``` NewLang 0 If True -Then System Print StartText Success EndText -Else System Print StartText Failure EndText +Then System Print BeginText Success EndText +Else System Print BeginText Failure EndText EndIf ```