perl.recdescent...Fwd: Re: (SPAM) space-separated tokens (FAQ) by Ron Smith- June 30, 2005 Scott wrote:> > 1pu2nmmu5cni> > thumb pick up near forefinger string > > And doesn&39;t work because no break.> > > >>Way number two is:>>>>lat: ("i" "o" "m" ...!rel_move ) $SFNParse::abbrevs$item1;>>>>which is the "lookahead" I mentioned previously.>>> > > Whoops! Now for the two previous lines I get:> > thumb pick up near forefinger string > > for both,...http://www.nntp.perl.org/group/perl.recdescent/2005/06/msg497.html Re: (SPAM) space-separated tokens (FAQ) by Scott- June 30, 2005 On Wed, Jun 29, 2005 at 09:01:19AM -0700, Ron Smith wrote:> > NO, we don&39;t want the white space, if we can avoid it.Okay, but why Or would that be an entire treatise > >Hmmm. Is it &39;together&39; or &39;to get her&39; Who is she Who&39;s on first> > Touché. So would a spaceless grammar have to make special provisions for anyand all foreseeable ambiguities such as this> >...http://www.nntp.perl.org/group/perl.recdescent/2005/06/msg496.html Re: (SPAM) space-separated tokens (FAQ) by Ron Smith- June 29, 2005 Scott wrote:> On Tue, Jun 28, 2005 at 09:58:56AM -0700, Ron Smith wrote:> > Well, here are my results (where test.pl was the file I cut and pasted> into the original email):> > 0 stringspl$ perl .test.pl> thumb pick up far little finger string > thumb pick up top far outer little finger string > thumb move under near forefinger string, pick up center near inner little finger string > thumb pick up near middle forefinger string > thumb.http://www.nntp.perl.org/group/perl.recdescent/2005/06/msg495.html Re: (SPAM) space-separated tokens (FAQ) by Scott- June 28, 2005 On Tue, Jun 28, 2005 at 09:58:56AM -0700, Ron Smith wrote:> Well, what I did was simple. I cut and pasted your code into an editor, > no more, no less.> > I got this result:> > Error: 1 pu 5f> Error: 1 pu 5tfo> Error: 1 mu 2n pu 5cni> Error: 1 pu 2n mu 5cni> Error: 1mu2npu5cni> Well, here are my results (where test.pl was the file I cut and pastedinto the original email):0 stringspl$ perl .test.pl thumb pick up far little finger string thumb pick up top.http://www.nntp.perl.org/group/perl.recdescent/2005/06/msg494.html Re: (SPAM) space-separated tokens (FAQ) by Ron Smith- June 28, 2005 Scott wrote:> On Mon, Jun 27, 2005 at 10:19:22AM -0700, Ron Smith wrote:> >>Scott, it is "bad form" to post code that you have not tested. I copied >>the above verbatim into an editor and every line in your test data >>causes an "error" message. Moreover, there is nothing in your grammar >>that handles "comments".> > > Hmmm. I had tested the code before sending, and it worked fine. I know> better than to post untested...http://www.nntp.perl.org/group/perl.recdescent/2005/06/msg493.html Re: (SPAM) space-separated tokens (FAQ) by Scott- June 27, 2005 On Mon, Jun 27, 2005 at 10:19:22AM -0700, Ron Smith wrote:> > Scott, it is "bad form" to post code that you have not tested. I copied > the above verbatim into an editor and every line in your test data > causes an "error" message. Moreover, there is nothing in your grammar > that handles "comments".Hmmm. I had tested the code before sending, and it worked fine. I knowbetter than to post untested code. > > Second if you really want help,...http://www.nntp.perl.org/group/perl.recdescent/2005/06/msg492.html Re: (SPAM) space-separated tokens (FAQ) by Ron Smith- June 27, 2005 Scott wrote:> Subject:> space-separated tokens (FAQ)> From:> Scott <harviewmontana.com>> Date:> Sun, 26 Jun 2005 12:28:05 -0600> To:> recdescentperl.org> > To:> recdescentperl.org> > > Please forgive me if this an FAQ. I am new to the world of RecDescent> and grammars in general. I&39;m assisting on a project for which the> original grammar was developed by someone else; making my own> additions, learning (sometimes) as I go. Not a pro,...http://www.nntp.perl.org/group/perl.recdescent/2005/06/msg491.html space-separated tokens (FAQ) by Scott- June 26, 2005 Please forgive me if this an FAQ. I am new to the world of RecDescentand grammars in general. I&39;m assisting on a project for which theoriginal grammar was developed by someone else; making my ownadditions, learning (sometimes) as I go. Not a pro, just dabbling.I&39;ve tried to distill the grammar down for this post, but again, Iapologize if it is too long to digest. If you don&39;t like it, you cansay, in our full grammar: ex R3 up.I can&39;t for the life of me figure out how to ensure that..http://www.nntp.perl.org/group/perl.recdescent/2005/06/msg490.html Re: want <error> on demand by merlyn- June 3, 2005 >>>>> "Alexander" == Alexander Danel <Alexander.Danelinfores.com> writes:Alexander> I&39;d like to be able to force an <error> condition, based upon someAlexander> checking within an action. Forcing an "undef" result is notAlexander> satisfactory, since the parser just assumes the sub-rule failed; I wantAlexander> the whole parse to halt.Just die.And no, I don&39;t mean you. I mean use "die" in your code.-- Randal L....http://www.nntp.perl.org/group/perl.recdescent/2005/06/msg489.html want <error> on demand by Danel, Alexander- June 1, 2005 Greetings, I&39;d like to be able to force an <error> condition, based upon somechecking within an action. Forcing an "undef" result is notsatisfactory, since the parser just assumes the sub-rule failed; I wantthe whole parse to halt. I guess I can set a global; that seems hokey. Alexanderhttp://www.nntp.perl.org/group/perl.recdescent/2005/06/msg488.html |