update
authorClaus Gittinger <cg@exept.de>
Tue, 04 Mar 2014 15:34:00 +0100
changeset 184 dff934a0213f
parent 183 553dad635f6d
child 185 e094104de2e5
update
PPLambdaParser.st
--- a/PPLambdaParser.st	Tue Mar 04 15:33:59 2014 +0100
+++ b/PPLambdaParser.st	Tue Mar 04 15:34:00 2014 +0100
@@ -43,11 +43,11 @@
 !PPLambdaParser methodsFor:'productions'!
 
 abstraction
-	^ $\ asParser token trim , variable , $. asParser token trim , expression ==> [ :node | Array with: node second with: node fourth ]
+	^ $\ asParser trim , variable , $. asParser trim , expression ==> [ :node | Array with: node second with: node fourth ]
 !
 
 application
-	^ $( asParser token trim , expression , expression , $) asParser token trim ==> [ :node | Array with: node second with: node third ]
+	^ $( asParser trim , expression , expression , $) asParser trim ==> [ :node | Array with: node second with: node third ]
 !
 
 expression
@@ -55,19 +55,20 @@
 !
 
 variable
-	^ (#letter asParser , #word asParser star) token trim ==> [ :token | token value ]
+	^ (#letter asParser , #word asParser star) flatten trim
 ! !
 
 !PPLambdaParser class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/goodies/petitparser/PPLambdaParser.st,v 1.3 2012-05-04 22:03:02 vrany Exp $'
+    ^ '$Header: /cvs/stx/stx/goodies/petitparser/PPLambdaParser.st,v 1.4 2014-03-04 14:34:00 cg Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/goodies/petitparser/PPLambdaParser.st,v 1.3 2012-05-04 22:03:02 vrany Exp $'
+    ^ '$Header: /cvs/stx/stx/goodies/petitparser/PPLambdaParser.st,v 1.4 2014-03-04 14:34:00 cg Exp $'
 !
 
 version_SVN
-    ^ '§Id: PPLambdaParser.st 4 2010-12-18 17:02:23Z kursjan §'
+    ^ '$Id: PPLambdaParser.st,v 1.4 2014-03-04 14:34:00 cg Exp $'
 ! !
+