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

AW: Node

as far as I know there is no better way. The only thing I would suggest is considering to
change the file which is used to generate the Node class.
The template file is called utils.txt and it should be pretty forward to change.
The advanage I see is that this enables you to regenerate your classes without
doing the changes again by hand. Be sure to keep the original utils.txt file as backup.
-----Ursprüngliche Nachricht-----
Von: owner-sablecc-list@sable.mcgill.ca [mailto:owner-sablecc-list@sable.mcgill.ca]Im Auftrag von Yuntao Cui
Gesendet: 04 June 2002 23:43
An: sablecc-list@sable.mcgill.ca
Betreff: Node

I would like to add a method for the node object, so that all extended classes
can use it. What is the best way to do it?
I hesitate to directly change on the generated file.
Yuntao Cui