help-bison
[Top][All Lists]
Advanced

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

Dynamically add tokens


From: Alex Duller
Subject: Dynamically add tokens
Date: Tue, 28 Jul 2009 09:02:24 +0100
User-agent: Thunderbird 2.0.0.21 (X11/20090327)

Hi,
In the language that I'm parsing it's possible to define custom 'types'; I have the following two rules:

type_defn:
yTYPE yID yIS var_type ';'

use_type:
yID "=>" sig_type

So, I want to somehow store whatever the user enters as yID in the first rule and use it as an alias for the specified var_type when yID is used in the second rule.

Hope that makes sense :)

thanks,
Alex





reply via email to

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