Parnassus

From Esolang
Jump to navigation Jump to search
This article is not detailed enough and needs to be expanded. Please help us by adding some more information.

The Parnassus Programming Language (2007, by User:Pegasus) is a programming language with features that other languages never had before. It is based on the When instruction, that allows to run a procedure in the moment an event happen. It also has a support to multiple strings of OR and AND logical statements, making the program simplier. It will be implemented through Hera Runtime

Hello World Example

Load "output.exe"
When app.run = True
  Call write:string With const "Hello World"
  End

Another example: An application that receives a number from keyboard and it prints a message if the number is 2, 4, 5 or 11.

Load "input.exe"
Load "output.exe"
When i = 5
  Call write:string With const "The number is five"
  End
When app.run = True
 Call read:integer to i            Comment: Reads an integer from the keyboard
 If i = ( 4; or 2; or 1)
  Call write:string With const "The number is two, four or eleven"             
  End
 End

If the number entered is 5 then program will print the message: "The number is five", If at some part of the program "i" loses its value of 5, and regains it later, the "When i = 5" method will be executed once more, right after the new assignment.