Rosetta Code:Add a Language: Difference between revisions

→‎Tasks Not Implemented: Changed instructions for creating the Unimplemented page and explicitly linking from the language page.
(CafeOBJ is a algebraic specification and programming language.)
(→‎Tasks Not Implemented: Changed instructions for creating the Unimplemented page and explicitly linking from the language page.)
 
(15 intermediate revisions by 7 users not shown)
Line 19:
One simple way to start is to make this the entire body of the page:
 
<pre>{{stub}}{{CafeOBJlanguage|Ayrch}}</pre>
<small>(CafeOBJ is a algebraic specification language.
It has an executable sub-language which broadly similar to Haskell or ML.
CafeOBJ has many advanced features including: multiple logics, flexible mix-fix syntax, powerful and clear typing system with ordered sorts, parametric modules and views for instantiating the parameters, and module expressions, and more.
Many of these features are inherited from OBJ3 (http://en.wikipedia.org/wiki/OBJ3).
For download and manual see: http://www.ldl.jaist.ac.jp/cafeobj/)</small>
 
That will automatically give you a basic language page, and even a nice little stub notification reminding people who visit to fill in more information.
Line 52 ⟶ 47:
If you're pressed for time, browse the [[:Category:Programming Tasks|list of tasks]] and find a couple simple ones you can implement. [[User Output]], [[Loop Structures]] and [[Conditional Structures]] are some common ones that most languages support. For the sake of this demonstration, let's suppose that Ayrch looks a lot like BASIC, and implement [[User Output]].
 
We would need to go to that page, find where the language name would fit (alphabetically), and add this code:
 
<pre>
Line 63 ⟶ 58:
===Tasks Not Implemented===
 
Finally, you're going to want to create an easy way for other people to discover and add tasks that have not yet been implemented in your language. In the bottom right of your page, click the link that says, "If you know '''Ayrch''', please write code for some of the ''tasks not implemented in Ayrch''." In the new page that opens, enter the following for the page contents:
 
<!-- In the bottom right of your page, click the link that says, "If you know '''Ayrch''', please write code for some of the ''tasks not implemented in Ayrch''." In the new page that opens, enter the following for the page contents:
-->
 
Use Search Rosetta Code to find Tasks not implemented in Ayrch. The page won't exist but you can create it as suggested in the search results.
Give the page the following content:
<pre>
{{unimpl_Page|Ayrch}}
</pre>
(replace Ayrch with your language name in the search, page name and content).
<br>
Once created, you can add a link to the new page from your language page.
 
==More Advanced==
3,031

edits