Re: Action or Scanless::G accessors for separator in quantified rules

2015-03-05 Thread Jeffrey Kegler
I'm trying to minimize the new features added to Marpa::R2, but your write up will help with the planning for Kollos, in any case. On Thu, Mar 5, 2015 at 5:39 PM, Thomas Weigert wrote: > Why don't I write this up with more detailed examples... Th. > > > > On 03/05/2015 07:19 PM, Jeffrey Kegler

Re: Action or Scanless::G accessors for separator in quantified rules

2015-03-05 Thread Thomas Weigert
Why don't I write this up with more detailed examples... Th. On 03/05/2015 07:19 PM, Jeffrey Kegler wrote: I actually did not understand what this syntax would be supposed to do. On Thu, Mar 5, 2015 at 5:01 PM, Th

Re: Action or Scanless::G accessors for separator in quantified rules

2015-03-05 Thread Jeffrey Kegler
I actually did not understand what this syntax would be supposed to do. On Thu, Mar 5, 2015 at 5:01 PM, Thomas Weigert wrote: > > > A related suggestion was mentioned below: Allow to mention symbols (of the > grammar or just Perl names) that are passed as parameters to custom > actions. Then I co

Re: Action or Scanless::G accessors for separator in quantified rules

2015-03-05 Thread Jeffrey Kegler
In custom actions you can access context variables: http://search.cpan.org/~jkegl/Marpa-R2-2.102000/pod/Semantics.pod#Action_context Right now there are only a few of these. Which others would you like? On Thu, Mar 5, 2015 at 5:01 PM, Thomas Weigert wrote: > > Jeff, > > thanks. I understand th

Re: Action or Scanless::G accessors for separator in quantified rules

2015-03-05 Thread Thomas Weigert
Jeff, thanks. I understand that I can write the list explicitly, but that means I also have to write the semantics to turn the spine into a list. Not difficult, but not as clear. My suggestion was just that since we have the DSL and this information is available also, why not provide this inf

Re: Action or Scanless::G accessors for separator in quantified rules

2015-03-05 Thread Jeffrey Kegler
Quantified rules are semantic sugar for BNF, and you can write BNF rules and have access to all the symbols in them, including those you think of as separators. I say "think of", because if separators are given a semantics, they are (conceptually) more than just separators. Sequences can be writt

Action or Scanless::G accessors for separator in quantified rules

2015-03-05 Thread Thomas Weigert
Dear all, this may be a "newbie cannot find the documentation" issue, but I cannot see how I can get, when defining an action, to the separator defined for a quantified rule. It would be most convenient, if there were an array descriptor action available that provides me the separator, so I c

Re: Marpa-R2 2.103_010 -- release candidate, try 2

2015-03-05 Thread Ron Savage
Progess! MarpaX::Languages::SVG::Parser now works, since I replaced XML::SAX::ParserFactory with XML::Parser. I still need to re-write part of the docs. The problem remains that to generate the demo page I need Dump::TreeDumper, which won't install because it needs Devel::Size, which is broken