Menu

Diff of /trunk/python/python.lime [r32] .. [r33]  Maximize  Restore

Switch to side-by-side view

--- a/trunk/python/python.lime
+++ b/trunk/python/python.lime
@@ -35,7 +35,8 @@
 small_stmt 
 	= expr_stmt 
 	| print_stmt 
-	.
+	| flow_stmt
+	. 
 
 funcdef
 	= DEF NAME parameters COLON suite
@@ -110,7 +111,7 @@
 	| MODEQUAL 
 	| AMPEQUAL 
 	| PIPEEQUAL 
-	| ACUEQUAL 
+	| ACUEQUAL  
 	| LSHIFTEQUAL            
 	| RSHIFTEQUAL 
 	| DSTAREQUAL 
@@ -130,6 +131,15 @@
 
 print_stmt	
 	= PRINT test { python_print($2); } 
+	.
+
+flow_stmt
+	= return_stmt
+	.
+
+return_stmt
+	= RETURN testlist
+	| RETURN
 	.
 
 suite 
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.