Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
22
Task/Inverted-syntax/00-TASK.txt
Normal file
22
Task/Inverted-syntax/00-TASK.txt
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
'''Inverted syntax with conditional expressions'''
|
||||
|
||||
In traditional syntax conditional expressions are usually shown before the action within a statement or code block:
|
||||
|
||||
<syntaxhighlight lang="pseudocode"> IF raining=true THEN needumbrella=true </syntaxhighlight>
|
||||
|
||||
In inverted syntax, the action is listed before the conditional expression in the statement or code block:
|
||||
|
||||
<syntaxhighlight lang="pseudocode"> needumbrella=true IF raining=true </syntaxhighlight>
|
||||
|
||||
'''Inverted syntax with assignment'''
|
||||
|
||||
In traditional syntax, assignments are usually expressed with the variable appearing before the expression:
|
||||
|
||||
<syntaxhighlight lang="pseudocode"> a = 6</syntaxhighlight>
|
||||
|
||||
In inverted syntax, the expression appears before the variable:
|
||||
<syntaxhighlight lang="pseudocode"> 6 = a</syntaxhighlight>
|
||||
|
||||
'''Task'''
|
||||
|
||||
The task is to demonstrate support for inverted syntax forms within the language by showing both the traditional and inverted forms.
|
||||
Loading…
Add table
Add a link
Reference in a new issue