Zeno (programming language)

Zeno (after pre-Socratic Greek philosopher Zeno of Elea) is an imperative procedural programming language designed to be easy to learn and user friendly. Zeno is generic in the sense that it contains most of the essential elements used in other languages to develop real applications.

The Zeno Interpreter was designed for use in Windows 95 and later Microsoft operating systems. The interpreter comes with built-in debugging tools, a source code text editor, and an on-line language reference.

Zeno was created by Stephen R. Schmitt and is maintained by Abecedarical Systems.

Example: Sieve of Eratosthenes

const N : int := 5000
var a : array[N] of boolean
 
program
 
   var i, j : int 
 
   init_a                          % initialize array
 
   for i := 2...floor ( N/2 ) do
       for j := 2...floor ( N/i ) do
           a[i*j] := false         % mark as not prime
       end for
   end for
   j := 0
   for i := 2...N do               % output results
       if a[i] then                % is prime
           put i : 6 ...
           incr j
           if (j mod 5) = 0 then   % start new line
               put ""
           end if
       end if
   end for
 
end program
 
% initialize the array
procedure init_a
 
   var i : int
   for i := 1...N do
       a[i] := true
   end for
 
end procedure
 

Sample output

    2     3     5     7    11 
   13    17    19    23    29 
   31    37    41    43    47 
   53    59    61    67    71 
   73    79    83    89    97 
  101   103   107   109   113
gollark: Isn't that *also* kind of bad? I mean, you're subject to departmental politics stuff probably, have "publish or perish" going on, etc.
gollark: "It's only real work if you do manual labour, because that was around longer and is thus evidently the only valid kind, and it looks more difficult to me."
gollark: Yes, that is silly people being silly.
gollark: You're not really paying them for either as much as just the fact that they can do/make the thing you want and you are, presumably, willing to pay the price they ask for. Going around trying to judge someone else's "worth" in some way is problematic.
gollark: The learning time is amortized over all the other programming stuff they do, and it's not like they would somehow unlearn everything if you didn't pay more. Still, it is somewhat complicated and, er, possibly impossible, although if people want to do it (they regularly do complex things anyway if they're interesting) then why not.
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.