Interesting... I think we might use this in a few places!  Thanks for
implementing it!

I don't see a lot of problems with the scheme you've come up with... I mean
it does overload things a bit... but it's not hard to keep straight.  Best
of all, this will be easy to deal with in our Python GetPot parser (yes, we
have our very own because the official one is not great).

Thanks again for the feature!

Derek


On Wed, Jan 23, 2013 at 2:20 PM, Roy Stogner <royst...@ices.utexas.edu>wrote:

>
> Specifically, although tokens like:
>
> [a-single-word]
>
> still specify section names, tokens like:
>
> [two or more words]
>
> (which didn't parse at all before) are now going to be reserved for
> directives.  The only directive implemented so far (git commit
> 745d639e3bf39e884919d7f6f4910db722139157 ) is "include filename":
>
> roystgnr@spark$ cat ~/test/test2.in
> [include /h2/roystgnr/test/test.in]
> [another_section]
> another_value = 1
> [include /h2/roystgnr/test/test.in]
> roystgnr@spark$ cat ~/test/test.in
> [a_section]
> value = 1
> roystgnr@spark$ ./getpot_parse-dbg ~/test/test2.in
> [a_section]
> a_section/value=1
> [another_section]
> another_section/another_value=1
> [a_section]
> a_section/value=1
>
> Sorry it took me three years to get around to adding this feature...
> http://permalink.gmane.org/gmane.comp.mathematics.libmesh.devel/1769
>
> Also sorry I didn't add it as a ${Dollar Bracket Expression} like
> Derek wanted; I could switch to that if people still strongly prefer
> ${include filename}, but this way seemed like it would be much less
> invasive to the getpot.h code.
> ---
> Roy
>
>
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. ON SALE this month only -- learn more at:
> http://p.sf.net/sfu/learnnow-d2d
> _______________________________________________
> Libmesh-devel mailing list
> Libmesh-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/libmesh-devel
>
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
Libmesh-devel mailing list
Libmesh-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-devel

Reply via email to