Re: Perl6 grammars -- Parsing english

2012-07-04 Thread Lard Farnwell
Hi Moritz, Thanks that was interesting. My investigation into grammars took a while but here are the results thus far: Grammar rules and regexes are just methods… I hadn't thought about what a grammar and rule actually was before. This inspired me to try: --- grammar

Perl6 grammars -- Parsing english

2012-06-26 Thread Lard Farnwell
Hi guys, To understand and play around with perl6 grammars I was trying to do a simple NLP parts of speech parser in perl6 grammars. This is sort of what I did: --- grammar Sentence{ proto rule VP {*} proto rule NP {*} rule sentence

Re: Perl6 grammars -- Parsing english

2012-06-26 Thread Moritz Lenz
On 06/26/2012 02:04 PM, Lard Farnwell wrote: Hi guys, To understand and play around with perl6 grammars I was trying to do a simple NLP parts of speech parser in perl6 grammars. This is sort of what I did: --- grammar Sentence{ proto rule VP {*}