Day of the week: Difference between revisions

demo of variable-length space-padded opcodes in English dialect
(demo of variable-length space-padded opcodes in English dialect)
Line 1,000:
=={{header|Protium}}==
<lang html><@ SAI>
<@ ITEFORLI3>2121|2008|
<@ LETVARCAP>Christmas Day|25-Dec-<@ SAYVALFOR>...</@></@>
<@ TSTDOWVARLIT>Christmas Day|1</@>
<@ IFF>
<@ IFF> <@ SAYCAP>Christmas Day <@ SAYVALFOR>...</@> is a Sunday</@><@ SAYKEY>__Newline</@></@>
</@>
</@>
</@>
</@></lang>
 
English dialect variable-length space-padded opcodes
<lang html><# suppressimplicitoutput>
<# iterate foriteration literalstring3>2121|2008|
<# let variable capture>Christmas Day|25-Dec-<# say value foriteration>...</#></#>
<# test dayofweek variable literal>Christmas Day|1</#>
<# if>
<# say capture>Christmas Day <# say value foriteration>...</#> is a Sunday</#><# say keyword>__Newline</#>
</#>
</#>
</#></lang>
 
''Output''
Anonymous user