Re: Reversible grammars

2010-06-04 Thread Timothy S. Nelson
On Fri, 4 Jun 2010, Stefan O'Rear wrote: On Sat, Jun 05, 2010 at 09:19:01AM +1000, Timothy S. Nelson wrote: Hi. I've been thinking more about reversible grammars. Specifically, I'm wondering if the following pseudo-code will be possible: ## Match a gram

Re: Reversible grammars

2010-06-04 Thread Stefan O'Rear
On Sat, Jun 05, 2010 at 09:19:01AM +1000, Timothy S. Nelson wrote: > Hi. I've been thinking more about reversible grammars. Specifically, > I'm wondering if the following pseudo-code will be possible: > > ## Match a grammar here > $match = Grammar.match($text) &g

Reversible grammars

2010-06-04 Thread Timothy S. Nelson
Hi. I've been thinking more about reversible grammars. Specifically, I'm wondering if the following pseudo-code will be possible: ## Match a grammar here $match = Grammar.match($text) ## Need some code here to get $submatch from $match $submatch.Str = "fred" ## R