Rosetta Code:Solve a Task: Difference between revisions

Restored to undamaged version
(Undo revision 330103 by Dario771 (talk) Not the place for task solutions)
(Restored to undamaged version)
Tag: Manual revert
 
(16 intermediate revisions by 6 users not shown)
Line 12:
It is best to read the task thoroughly, solve it, and check your solution ''before'' starting to edit the Rosetta Code page, (especially for tasks needing more than a very short solution).
 
=={{header|DBL}}Adding Code==
Language examples on each page are in alphabetical order, so you need to find where your example would fit. Once you've found that, click the "edit" link closest above the area where you want to insert your code on the task page, and add something like this to the bottom of the edit field:
<lang Ayrch>;
; Hello world
; by Dario B.
PROC
;---------------------------------------------------------------------
XCALL FLAGS (0007000000,1) ;Suppress STOP message
 
<pre>
OPEN (1,O,'TT:')
=={{header|Ayrch}}==
WRITES (1,"Hello world")
<syntaxhighlight lang="ayrch">PRINT "Goodbye, World!"</syntaxhighlight>
 
</langpre>
DISPLAY (1,"Hello world",10)
Remember, for the sake of simplicity, we're assuming your language is Ayrch, and the task is [[Hello world]]. We're also assuming, for the moment, that Ayrch looks a lot like BASIC.
DISPLAY (1,$SCR_MOV(-1,12),"again",10) ;move up, right and print
Once you've added your code, hit the preview button to make sure you crossed all your T's and closed all your tags. If the language name shows up in red (a broken link), then either the language doesn't exist on the site yet (as a category), or you misspelled/mis-capitalized the name. Check your spelling against the one in [[:Category:Programming Languages]].
 
That's all you really need to do!
CLOSE 1
END
</lang>
 
=Going a little further=
Line 47 ⟶ 40:
{{libheader|Ayrch Console Extensions}}
 
<langsyntaxhighlight lang="ayrch">PRINT "Goodbye, World!"</langsyntaxhighlight>
</pre>
 
Line 58 ⟶ 51:
{{works with|Ayrch Virtual Machine|6.2}}
 
<langsyntaxhighlight lang="ayrch">PRINT "Goodbye, World!"</langsyntaxhighlight>
 
</pre>
7,795

edits