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

Re: Trying to understand cst->ast transformations



Hi Roger,

SableCC 3 just caught a transformation bug in your grammar:

  unop {-> expression}  = ...

As unop is preserved in the AST, you should not transform it. Solution:
Just remove the "{-> ...}".

Have fun!

Etienne

Roger Pomeroy wrote:
> I am now trying to understand how to do the CST->AST transformations for my grammer.  I was starting with just trying to transform the expression section of my grammar (trying to follow the sample in http://nat.truemesh.com/archives/000531.html) 
>
> I have a CST section that looks like:
> ...
>   

-- 
Etienne M. Gagnon, Ph.D.
SableCC:                                            http://sablecc.org


Attachment: signature.asc
Description: OpenPGP digital signature