update meta data
This commit is contained in:
parent
f3a896c724
commit
90e15ed6ce
3307 changed files with 1674 additions and 7 deletions
22
Task/Inverted-syntax/00DESCRIPTION
Normal file
22
Task/Inverted-syntax/00DESCRIPTION
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:
|
||||
|
||||
<lang pseudocode> IF raining=true THEN needumbrella=true </lang>
|
||||
|
||||
In inverted syntax, the action is listed before the conditional expression in the statement or code block:
|
||||
|
||||
<lang pseudocode> needumbrella=true IF raining=true </lang>
|
||||
|
||||
'''Inverted syntax with assignment'''
|
||||
|
||||
In traditional syntax, assignments are usually expressed with the variable appearing before the expression:
|
||||
|
||||
<lang pseudocode> a = 6</lang>
|
||||
|
||||
In inverted syntax, the expression appears before the variable:
|
||||
<lang pseudocode> 6 = a</lang>
|
||||
|
||||
'''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