Last save:
:= means you assign a value to a variable. The statement assigned to variable "return" is the output of the grammar.
return := This is the output of the grammar. variable1:= This is a sentence which isn't used in the output.
$variable means you substitute the value of a variable into your text.
return := This is the output of the grammar. $variable1 variable1:= This is a sentence which is used in the output.
{choice1;choice2;choice3} substitutes a random value from the list of choices.
return := This will spit out one, two, or three with equal probability: {1;2;3}.
/* comments */ will be ignored.
return := I am /*todo: rephrase this sentence*/ having a great day! // note: I am not having a great day.
[property] won't produce any interesting output in the editor, but it can be used in whatever application you want to substitute some variable into your text. For example, if you've defined [haircolor], [location], or anything like that in your program, you include tags like this. In the following example, you could define [He] to be "She", and [his] to be "her" to change the pronouns used in this sentence.
return := [He] walked over to [his] closet.
return:={Dear $name, {We wish you a;Have a happy} birthday{!;.} And congratulations on turning $age years {old;young}! {Sincerely;Best wishes;Best;Happy holidays;Yours}, $name} name:={Bob;Jane;Joey;Nobody} age:={1;2;3;10;11;20;25;110}