|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Little questionHello,
I'm new to Spirit. I want to parse this string : ident = { some {text}, other text }, and get "some {text}, other text" into a variable. How can I that ? Thanks ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Spirit-general mailing list Spirit-general@... https://lists.sourceforge.net/lists/listinfo/spirit-general |
|
|
Re: Little questionOn Sun, Nov 8, 2009 at 6:12 AM, Jean-Michel Personne <jmc9497@...> wrote: Hello, Not to fear the new Spirit documentation has many examples which you can use to get you there. Oh wait... there isn't any which would be useful or even come close to showing in a simple way how to achive what you're after today. Nevermind perhaps someone else on this list can tell you how, as there doesn't seem be any simple method for someone to learn how its done for now... Darid ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Spirit-general mailing list Spirit-general@... https://lists.sourceforge.net/lists/listinfo/spirit-general |
|
|
Re: Little questionOn Sat, Nov 7, 2009 at 12:53 PM, Darid Tromer <darid.tromer@...> wrote:
> Not to fear the new Spirit documentation has many examples which you can use > to get you there. Oh wait... there isn't any which would be useful or even > come close to showing in a simple way how to achive what you're after today. > > Nevermind perhaps someone else on this list can tell you how, as there > doesn't seem be any simple method for someone to learn how its done for > now... Wte# was that? Why are you attacking this, why are you even here? There are plenty of examples, heck, what do you think the examples and test directories contain, empty files? On Sun, Nov 8, 2009 at 6:12 AM, Jean-Michel Personne <jmc9497@...> wrote: > I'm new to Spirit. I want to parse this string : > > ident = { some {text}, other text }, > > and get "some {text}, other text" into a variable. > > How can I that ? Since you did not specify how your grammar works, I will guess that you just want everything between "{ " and " }" on that line, the rule for that would be: rule<Iterator> r = omit[char_-"{ "] >> char_-" }" >> " }" >> omit[*char_]; That may or may not be what you want, cannot know for certain unless you actually tell how the grammar is formed. EBNF or PEG syntax is fine. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Spirit-general mailing list Spirit-general@... https://lists.sourceforge.net/lists/listinfo/spirit-general |
| Free embeddable forum powered by Nabble | Forum Help |