Re: Questionable whether font-shorthand grammar LL(1)

2009-09-30 Thread Vincent Hennebert
this will help you to do a reasonable choice. c. -Message d'origine- De : berger@gmail.com [mailto:berger@gmail.com] De la part de Max Berger Envoyé : mardi 29 septembre 2009 13:00 À : fop-dev@xmlgraphics.apache.org Objet : Re: Questionable whether font-shorthand grammar LL(1

Re: Questionable whether font-shorthand grammar LL(1)

2009-09-30 Thread Vincent Hennebert
Hi Jonathan, Jonathan Levinson wrote: Hi Vincent, Excellent ideas! The diagram you drew is extremely useful! If the font shorthand sub-language has a grammar that is regular then it also has a grammar that is LL(1). So recursive descent parsing will work, if there is a regular

RE: Questionable whether font-shorthand grammar LL(1)

2009-09-30 Thread Jonathan Levinson
: Questionable whether font-shorthand grammar LL(1) Thanks everyone for your parser suggestions. I believe we should be able to do without one for the font shorthand, but this is definitely something to keep in mind if we want to improve the parsing of other properties. I’m starting to realise that the most

Re: Questionable whether font-shorthand grammar LL(1)

2009-09-29 Thread Max Berger
Hi *, I just want to throw in a different idea (you may ignore it if you like): How about specifing the grammer and using a tool such as JavaCC to generate the actual parser? This way you could focus more complete grammer and have to spend less time writing the parser. JavaCC is BSD license, so

Re: Questionable whether font-shorthand grammar LL(1)

2009-09-29 Thread Vincent Hennebert
Hi Max, Max Berger wrote: Hi *, I just want to throw in a different idea (you may ignore it if you like): How about specifing the grammer and using a tool such as JavaCC to generate the actual parser? This way you could focus more complete grammer and have to spend less time writing the

Re: Questionable whether font-shorthand grammar LL(1)

2009-09-29 Thread Max Berger
Hi Vincent, 2009/9/29 Vincent Hennebert vhenneb...@gmail.com: How about specifing the grammer and using a tool such as JavaCC to generate the actual parser? This way you could focus more complete grammer and have to spend less time writing the parser. That would be the same as using ANTLR. I

RE: Questionable whether font-shorthand grammar LL(1)

2009-09-29 Thread Laurent Caillette
@gmail.com] De la part de Max Berger Envoyé : mardi 29 septembre 2009 13:00 À : fop-dev@xmlgraphics.apache.org Objet : Re: Questionable whether font-shorthand grammar LL(1) Hi Vincent, 2009/9/29 Vincent Hennebert vhenneb...@gmail.com: How about specifing the grammer and using a tool such as JavaCC

RE: Questionable whether font-shorthand grammar LL(1)

2009-09-29 Thread Jonathan Levinson
whether font-shorthand grammar LL(1) Hi Jonathan, Interesting stuff! Jonathan Levinson wrote: Hi Vincent, snip/ Because font-variant font-style and font-weight can occur in any order, I could not (currently) come up with a grammar in which the directing sets were disjoint for each non

Re: Questionable whether font-shorthand grammar LL(1)

2009-09-28 Thread Vincent Hennebert
Hi Jonathan, Interesting stuff! Jonathan Levinson wrote: Hi Vincent, snip/ Because font-variant font-style and font-weight can occur in any order, I could not (currently) come up with a grammar in which the directing sets were disjoint for each non-terminal. So I was unable to come up

Questionable whether font-shorthand grammar LL(1)

2009-09-27 Thread Jonathan Levinson
Hi Vincent, I dusted off my books on parsing and compiling (also using some Web-sites to do research) and looked at writing a formal grammar for font-shorthand. Because font-variant font-style and font-weight can occur in any order, I could not (currently) come up with a grammar in which