RosettaCodeData/Task/Inverted-syntax/00DESCRIPTION

23 lines
825 B
Plaintext

'''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.