Menu

Diff of /trunk/python/python.lime [r14] .. [r15]  Maximize  Restore

Switch to side-by-side view

--- a/trunk/python/python.lime
+++ b/trunk/python/python.lime
@@ -12,13 +12,21 @@
 			| small_stmt NEWLINE			
 			.
 
-small_stmt = cmd_stmt .
+small_stmt = cmd_stmt
+		   | assign_stmt 
+		   .
 
 compound_stmt = for_stmt .
 
 cmd_stmt = NAME DSTRING {python_command($1,$2);} .
 
+assign_stmt = varlist EQUAL exprlist .
+
 for_stmt = FOR exprlist IN testlist COLON { python_for(); } suite { python_end_for(); } .
+
+suite = simple_stmt 
+	  | NEWLINE INDENT stmt DEDENT
+	  .
 
 exprlist = NAME .
 
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.