guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Nyacc question: where are the actions bound?


From: tomas
Subject: Re: Nyacc question: where are the actions bound?
Date: Mon, 9 Mar 2020 10:07:12 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

On Sun, Mar 08, 2020 at 08:10:50AM -0700, Matt Wette wrote:
> 
> 
> On 3/8/20 3:14 AM, address@hidden wrote:
> >Hi,
> >
> >I'm playing around with Nyacc [...]

> >So I defined some function =collect= which will be called from
> >actions in the grammar.
> >
> >My question is: where is the stuff resolved which is mentioned
> >in grammar actions? [...]

Thanks for your quick response, and for taking the time to make
sense of my diffuse text.

> Nyacc was envisioned with the paradigm you propose, by using tags.
> But I have not tried that in a while.  If you look at the example calc
> in examples/nyacc/lang/calc/mach.scm you will see

Note that I'm not yet proposing a paradigm. What you (graciously)
raise to the level of "paradigm" is still just a set of prejudices
as I try to find a way through the bushes :)

I'm ready & willing to change my way of seeing things.

Care to explain why you havent tried your first paradigm in a
while? After all you're probably the one having the most practical
experience with Nyacc.

> (define (gen-calc-files)
  [...]

> You can run this, then you can use the generated files to provide
> the parser [...]

> (define calc-full-act-v
  [...]

Thanks for the hint. I'll definitely give that angle a try.

Cheers
-- tomás

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]