I've made a few changes so that '-' in paths etc are now supported. The attached grammar is based on the latest version in CVS.
Regards Tim > -----Original Message----- > From: Tim Anderson [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 22, 2002 12:53 PM > To: Slide Developers Mailing List > Subject: RE: Slide Client > > > After a quick glance at the grammar, I suspect that > things would be simpler if a STRING was required to be > quoted, rather than making the quotes optional. > > Also, you can get ANTLR to strip off quotes for you e.g instead of: > > STRING: (CHARS)+ | '"' (CHARS| ' ')+ '"'; > > you would have: > > STRING: (CHARS)+ | '"'! (CHARS| ' ')+ '"'!; > > This would do away with the need for the text() method. > > Handling of QNames could also be simplified. > > I'll take a look at it tonight and see what I can come up with. > > Regards > > Tim > > > -----Original Message----- > > From: msmith [mailto:msmith]On Behalf Of Michael Smith > > Sent: Monday, July 22, 2002 11:58 AM > > To: Slide Developers Mailing List > > Subject: Re: Slide Client > > > > > > Tim Anderson wrote: > > > > > > Hi there, > > > > > > I have some ANTLR experience from OpenJMS - > > > what exactly are you trying to do? > > > > The slide command line client uses ANTLR to parse commands, to provide a > > simple and easy to use text-based client. However, it's a bit buggy. For > > example, a URL containing certain characters (like '-') is rejected when > > it shouldn't be. So I can't do "open http://server/some-path/" (which I > > needed to a while ago). I tried to fix this, and found something which > > looked ok, but antlr looped indefinately trying to build the parser > > for. > > > > Mike > > > > -- > > To unsubscribe, e-mail: > > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > > <mailto:[EMAIL PROTECTED]> > > > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> >
Client.g
Description: Binary data
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
