On 12/02/2011, at 10:48 PM, Emmanuel Onzon wrote:

> 
> Consider that the user action is rewritten something like this:
> 
>        { (Hashtbl.find myhash index) () }
> 
> 
> The data structure I have to access the user actions is an array of list of 
> actions.
> the index of the array is the integer that identifies a grammar rule. When 
> reducing with a grammar rule which identifier is the integer i, the parser 
> look up the array at the index i. There it finds a list of actions that are 
> all the user actions associated with this grammar rule (most of the time 
> there is only one action).
> The other structures are: a list of couples (rule, action list) that contains 
> the same information as the array, and a hashtable that returns the id of 
> each rule.



Ok, so that's basically what I was proposing I would do manually anyhow.
:Fair Nuf: :)


--
john skaller
skal...@users.sourceforge.net





------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Felix-language mailing list
Felix-language@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to