Empty program: Difference between revisions

PascalABC.NET
(PascalABC.NET)
(10 intermediate revisions by 6 users not shown)
Line 257:
=={{header|bc}}==
An empty file is a valid program.
 
=={{header|Binary Lambda Calculus}}==
 
At 4 bits, or half a byte, the smallest BLC program is `cat' :
 
<pre>00 10</pre>
 
corresponding to the smallest valid lambda term, the identity function \x.x
 
=={{header|Beef}}==
Line 330 ⟶ 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>main [0]</syntaxhighlight>
 
=={{header|C}}==
Line 434 ⟶ 447:
This is equivalent to:
<syntaxhighlight lang="e">null</syntaxhighlight>
 
=={{header|EasyLang}}==
<syntaxhighlight>
#
</syntaxhighlight>
 
=={{header|eC}}==
Line 866 ⟶ 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>
Line 1,212 ⟶ 1,230:
The first line is not necessary in modern Pascal dialects. With today's most compilers, the empty program is just:
<syntaxhighlight lang="pascal">begin end.</syntaxhighlight>
 
=={{header|PascalABC.NET}}==
<syntaxhighlight lang="delphi">
##
</syntaxhighlight>
 
=={{header|PepsiScript}}==
Line 1,761 ⟶ 1,784:
 
=={{header|Wren}}==
<syntaxhighlight lang="ecmascriptwren"></syntaxhighlight>
 
=={{header|X86 Assembly}}==
246

edits