MENUGOOL
     
   

Below are keywords for the language


screen
item
action
display
call
execute
menu
.

These are modifiers for items and titles

color (red yellow blue black green cyan yellow white)
border
center
bold
underline*
right*
justify*

Now for a sample menu and an explanation

screen "My Title" : center, border
item "Item 1 calls second menu" action menu 1
item "Item 2 Quits" action quit
.

So its screen followed by the title, all attributes are comma delimited after the :

For items in the menu declare them with item,followed by a quoted string for what you want to display (MGL handles the numbering so dont include numbers). After that is action followed by call for functions, execute for external scripts, quit to quit, or menu to call another menu. The menus are numbered starting from 0 (this menu would be called menu 0). After all that is a period denoting end of screen. A more complicated example.

screen "My Second Title" : center, border, bold
item "Item 1 calls second menu" action menu 1
item "Item 2 calls funcion foo() and displays output" display action call "foo(/*parameters here*/)" : color red
item "Item 3 calls external script and displays" display action execute "/home/qbert/foo.pl" : color blue
item "Quit" action quit

.

Here we see how to embed callbacks and display the output (you'll need to format it yourself, default position is top left screen),call external scripts and quit. When calling a function is

action call "my_function(my_patameter)"

do not add the semicolon, and it must be a quoted string, same with execute. Play around with it, its pretty simple.

 

 Docs

 Examples

 Download

 Email-me

 Compiler tools

   
     
               
       

*(Not yet implemeted)

 

QBERT