Empty program: Difference between revisions

Glad there are only five LilyPond tasks or this spelling stuff would be hard!
imported>Tromp
mNo edit summary
(Glad there are only five LilyPond tasks or this spelling stuff would be hard!)
 
(4 intermediate revisions by 3 users not shown)
Line 262:
At 4 bits, or half a byte, the smallest BLC program is `cat' :
 
<pre>00 10</pre>
<syntaxhighlight>0010</syntaxhighlight>
 
corresponding to the smallest valid lambda term, the identity function \x.x
Line 338:
Pressing enter from the mged prompt, just returns another prompt, so I suppose that is the smallest possible program. However, before we can draw anything we at least need to open a database:
<syntaxhighlight lang="mged">opendb empty.g y</syntaxhighlight>
 
=={{header|Bruijn}}==
The smallest program in bruijn is the identity function (\x.x) and returns its input:
 
<syntaxhighlight>0010main [0]</syntaxhighlight>
 
=={{header|C}}==
Line 879 ⟶ 884:
<syntaxhighlight lang="lb">end</syntaxhighlight>
 
=={{header|LilypondLilyPond}}==
According to the manual, all lilypond programs should contain a version statement expressing the minimum version number. If this is missing then a warning will be emitted.
<syntaxhighlight lang="lilypond">\version "2.6.12"</syntaxhighlight>
61

edits