Hello World (Seed7)

From LiteratePrograms

Jump to: navigation, search
Other implementations: Ada | ALGOL 68 | Alice ML | Amiga E | Applescript | AspectJ | Assembly Intel x86 Linux | Assembly Intel x86 NetBSD | AWK | bash | BASIC | Batch files | C | C, Cairo | C, Xlib | Candle | Clojure | C++ | C# | Delphi | Dylan | E | Eiffel | Erlang | Forth | FORTRAN | Fortress | Go | Groovy | Haskell | Hume | IBM PC bootstrap | Inform 7 | Java | Java, Swing | JavaScript | LaTeX | Lisp | Logo | Lua | Maple | MATLAB | Mercury | OCaml/F Sharp | occam | Oz | Pascal | Perl | PHP | Pic | PIR | PLI | PostScript | Prolog | Python | Rexx | Ruby | Scala | Scheme | Seed7 | sh | Smalltalk | SQL | Standard ML | SVG | Tcl | Tcl Tk | Visual Basic | Visual Basic .NET | XSL

This short Seed7 program prints a message to the console.

<<hello_world.sd7>>=
$ include "seed7_05.s7i";
const proc: main is func
  begin
    writeln("Hello World!");
  end func;

The first line includes the standard library. In contrast to other standard libraries the "seed7_05.s7i" library contains not only function declarations but also declarations of statements and operators. Additionally the "seed7_05.s7i" library defines the 'main' function as entry point for a Seed7 program.

Download code
Views