parser for context sensitive grammars?

Alan Reider squeak at ajr.e4ward.com
Sun Jan 23 20:25:51 UTC 2005


oops, that also matches 'Egon sees |.' so that should have been:

'Egon sees Erna.' readStream
 match:[ :i | i matchOneOf: #('Egon' 'Erna' 'Emma') action:[:subj|subj]]
 and: $ 
 and: 'sees'
 and: $ 
 and: [: i | i matchOneOf: #('Egon' 'Erna' 'Edna') action:[:obj|obj]]
 and: $.
 action: [ : sentence | sentence]



More information about the Squeak-dev mailing list