Empty program: Difference between revisions

Rename Perl 6 -> Raku, alphabetize, minor clean-up
(→‎{{header|PowerShell}}: Add Processing section)
(Rename Perl 6 -> Raku, alphabetize, minor clean-up)
Line 210:
=={{header|Brlcad}}==
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:
<lang mged>opendb empty.g y</lang>
 
=={{header|C}}==
Line 241:
 
=={{header|Clojure}}==
An empty file is the simplest valid Clojure program.
 
=={{header|COBOL}}==
Line 279:
=={{header|Delphi}}==
:''See [[#Pascal|Pascal]]''
 
=={{header|Déjà Vu}}==
<lang dejavu></lang>
Shortest module that works with <code>!import</code>:
<lang dejavu>{}</lang>
 
=={{header|Dyalect}}==
Line 292 ⟶ 287:
 
This program would evaluate and return "nil".
 
=={{header|Déjà Vu}}==
<lang dejavu></lang>
Shortest module that works with <code>!import</code>:
<lang dejavu>{}</lang>
 
=={{header|E}}==
Line 476:
The shortest program that will actually finish is a <tt>;</tt>, which will end the program immediately:
<lang Fish>;</lang>
 
=={{header|Fōrmulæ}}==
 
In [http://wiki.formulae.org/Empty_program this] page you can see the solution of this task.
 
Fōrmulæ programs are not textual, visualization/edition of programs is done showing/manipulating structures but not text ([http://wiki.formulae.org/Editing_F%C5%8Drmul%C3%A6_expressions more info]). Moreover, there can be multiple visual representations of the same program. Even though it is possible to have textual representation &mdash;i.e. XML, JSON&mdash; they are intended for transportation effects more than visualization and edition.
 
The option to show Fōrmulæ programs and their results is showing images. Unfortunately images cannot be uploaded in Rosetta Code.
 
=={{header|Forth}}==
Line 492 ⟶ 484:
=={{header|Fortran}}==
<lang fortran> end</lang>
 
=={{header|FreeBASIC}}==
A completely empty program compiles and runs fine:
Line 521 ⟶ 514:
end
</lang>
 
=={{header|Fōrmulæ}}==
 
In [http://wiki.formulae.org/Empty_program this] page you can see the solution of this task.
 
Fōrmulæ programs are not textual, visualization/edition of programs is done showing/manipulating structures but not text ([http://wiki.formulae.org/Editing_F%C5%8Drmul%C3%A6_expressions more info]). Moreover, there can be multiple visual representations of the same program. Even though it is possible to have textual representation &mdash;i.e. XML, JSON&mdash; they are intended for transportation effects more than visualization and edition.
 
The option to show Fōrmulæ programs and their results is showing images. Unfortunately images cannot be uploaded in Rosetta Code.
 
=={{header|Gambas}}==
Line 527 ⟶ 528:
End
</lang>
 
 
=={{header|Gecho}}==
Line 568:
=={{header|HicEst}}==
<lang hicest>END ! looks better, but is not really needed</lang>
 
=={{header|HQ9+}}==
An empty file is a valid HQ9+ program that does nothing.
 
=={{header|HolyC}}==
An empty file is the simplest valid HolyC program and returns 0.
 
=={{header|HQ9+}}==
An empty file is a valid HQ9+ program that does nothing.
 
=={{header|HTML}}==
Line 823:
=={{header|MiniScript}}==
<lang MiniScript></lang>
 
=={{header|МК-61/52}}==
<lang>С/П</lang>
 
=={{header|MIPS Assembly}}==
Line 834 ⟶ 831:
syscall
</lang>
 
=={{header|МК-61/52}}==
<lang>С/П</lang>
 
=={{header|ML/I}}==
Line 857:
The empty file is a valid program.
<pre></pre>
 
 
=={{header|Nanoquery}}==
Empty files are valid Nanoquery programs that do nothing.
<lang Nanoquery></lang>
 
=={{header|N/t/roff}}==
Line 872 ⟶ 867:
{{works with|GNU TROFF|1.22.2}}
<lang N/t/roff>.mso me.tmac</lang>
 
=={{header|Nanoquery}}==
Empty files are valid Nanoquery programs that do nothing.
<lang Nanoquery></lang>
 
=={{header|Nemerle}}==
Line 1,012 ⟶ 1,011:
 
The smallest possible Perl one-liner is <code>perl -e0</code>.
 
=={{header|Perl 6}}==
 
The empty program is valid and does nothing but return a successful exit code:
<lang perl6></lang>
 
It is also possible to just specify that the program is written in Perl6:
<lang perl6>use v6;</lang>
 
or even:
<lang perl6>v6;</lang>
 
=={{header|Phix}}==
Line 1,129 ⟶ 1,117:
#lang racket
</lang>
 
=={{header|Perl 6Raku}}==
(formerly Perl 6)
 
The empty program is valid and does nothing but return a successful exit code:
<lang perl6></lang>
 
It is also possible to just specify that the program is written in Perl6:
<lang perl6>use v6;</lang>
 
or even:
<lang perl6>v6;</lang>
 
=={{header|Raven}}==
Line 1,370:
04 0002 2 ret ;return from main procedure
0003 3 .end main ;start address for linker</lang>
 
=={{header|VBA}}==
Same as Visual Basic, VB6, etc.
<lang vb>Sub Demo()
End Sub</lang>
 
=={{header|VBScript}}==
An empty .vbs file is considered the smallest runnable code, but the following (a single apostrophe as comment marker) would also be acceptable (along with other non-executing instructions like <code>option explicit</code>.)
Line 1,389 ⟶ 1,395:
=={{header|Vim Script}}==
An empty file is a valid program.
 
=={{header|VBA}}==
Same as Visual Basic, VB6, etc.
<lang vb>Sub Demo()
End Sub</lang>
 
=={{header|Visual Basic}}==
10,339

edits