gmol has asked for the wisdom of the Perl Monks concerning the following question:
I am not sure exactly how well I've thought this out, but it gives you an idea...it's basically just subsitition with and emphasis on cross products that is sacrifices some flexibility for simplicity by imposing things like new line delimiters. I am just a little flustered in terms of where to start doing this "the right way". Am I supposed to do this in recdescent? Is there a way to extend/modify perl's syntax so I can get things like regex's in my function definitions? Is there an obvious way to do this without perl?As->{ 1 2 3 4 5 } Bs->{ 6 7 8 9 } AsBs >>16 27 38 49 5 x-> is some number 6x >>6 is some number 6{1,2,3,4} >>61 62 63 64 level1a->{ A AA } level1b->{ B BB } level2->{ level1a level1a level1a level1b } level2 >>A A A AA AA A AA AA A B A BB AA B AA BB
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: A simple list oriented language in Perl
by kvale (Monsignor) on May 10, 2006 at 23:26 UTC | |
by blazar (Canon) on May 11, 2006 at 12:22 UTC | |
|
Re: A simple list oriented language in Perl
by pajout (Curate) on May 11, 2006 at 12:47 UTC |