<--Script1: Blank-->
<--Script2: Newline-->


<--Script3: Semicolon-->
;
<--Script4: Semicolon and newlines-->

;

<--Script5: Simple Action Verb-->
DoAction
<--Script6: Action with literal argument-->
DoAction 'Banana'
<--Script7a: Multiple Actions-->
DoAction 'Banana'
DoAction 'Orange'

DoAction 56
DoAction "Pizza", 56, -10, +3.65E-13

<--Script7b: Variable assignments and references -->
?j = 3
?newvar = ?j
?newvar = ?{j}
?s=-3.5
?var1=3;?var2=4;?var5=6;           ?var7=8;
?varx = 3.5E-6
?varx = +42.5837e+17
?varx = -42.5837E-17
?m_23 = 'hi';     ?_x34 = 89000;

?newVarBlank

//Hex
?y683838383838 = 0xFF
//Octal
?y683838383838 = 071
//decimal
?y683838383838 = 07

<--Script8: Single Comment -->
//Here is a comment!
<--Script8b: Single Comment + Newline-->
//Here is a comment!

<--Script8c: Single Comments with Newlines-->
//Here is a comment!

//Here is another comment!


//Here is third comment!



<--Script9: Multiline Comment -->
/* Multiline comments are very nice to have!! */
<--Script10: Comments -->
/* Multiline 
 comments 
  asdfa sdfs0987
  (*&(*^*(^*&^*&^B 
  *((*&(*&^^
  // / / / /// * * ** // * / ***** /////
  ))))))are very nice to have!! */
?var = 5 //if not for this comma, there'd be an error (*&(*&^*&^%^&%(*^&(*(*)(&*
?potatoes =  /* here is a mid-line multiline comma 982398477(*&*^*^%^&%^$%^$$%#%$// 8*** */   'fred'
/* start of line comma */DoAction 'Bananas'//end-of line comment (*&^&%^%$%##$$%^&*()__)_*/*///**??**??*?
//comment should not stop at semicolon; here )(&**&%&^% is a comma; (*&Y*&^*))
/**/?var = 5

<--Script11: Gui References -->
Click { Menu 'RNA' }
Type "banana", { Menu name='RNA', label='Run' }
Focus { Dialog }
Close { text="Window" }
Click { Menu "RNA" } >> { Menu "Fold" } >> { Menu "All" }
Click { Menu "RNA|Fold|Single" } >>> { Button }

<--Script12: A real script -->
/* C-Style multi-line comments  */
Title 'A real script'   //Single-line comment

?var := 'hello there'; ?myvar = 2

?guiRef := { Menu 'Coconut' } >> { Dialog }

@WARNING 'Take heed of the upcoming disaster!', 56

@INFO 'Here is some info.'

@QUIT

/*
COMMENT (comments can be anywhere except inside strings)
*/

?myvar = "This scring contains a comment // inside it";

<--Script13: Real-Script 2-->
/* Script Language Allows C-Style comments. 
	Code-lines end with 
	semicolon or LF.  */

// Variables
?var = 'hello there';   ?num = 2

// a GUI-object is a first-class language element -- { GuiType criteria }
?myMenu  = { Menu 'RNA|Partition Function RNA' }
?text    = { TextField label='File Save' }
?custom  = { type='CustomGUIType', parent=?myPanel, text='/RNA .*/'  }
MyAction ?guiVar >> { type='CustomGUIType', parent=?myPanel, text='/RNA .*/'  }
