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