Hi Wiliam,

I've been working on the c-target, which is quite a chalange. So far I
succeeded in creating a program that compiles and parses the input.
The result is a tree in memory, but I haven't figured out how to acces
it. What does work is:
      printf("ChildIndex : %ld\n", r.tree->getChildIndex(r.tree));
      printf("Child : %ld\n", Child = r.tree->getChild(r.tree, 1));

and incrementing the index of the child up to 3615 (reported by
ChildIndex) gives a pointer, beyond that it gives zero.I did not find
a way to actually use that pointer and get more info from each node
and the search is realy time-consuming...

I hope (and expect) that the tree contains the actual values of each
field, but also the node type. If we can access this, it should be
possible to generate code from there (and probably show the grammar
should be arranged a bit different, like you predicted). If not,
actual code in the grammar definition is required...

Joep



2010/4/10 William <[email protected]>:
> On Apr 10, 12:15 pm, William <[email protected]> wrote:
>>
>> If my back-of-envelope calculations are correct, with a 20MHz crystal,
>> and timer0 in 8-bit mode, the longest period (timer overflow) is 13mS,
>> and with the other timers: 1,2,3, the biggest prescaler is only 8, so
>> I can only get about 100mS period. If timer0, in 16-bit mode with 256
>> prescaler really works, I should be able to get almost 3.5 seconds
>> before overflow.  I'll give it a try.
>>
>
> I tried the 16-bit mode and it seems to work as expected - but the
> init routine doesn't allow for sub-Hz rates, so I added some optional
> constants that allow finer control.  I haven't done any testing with
> 16F devices yet.
>
> Feedback welcome!
>
> William
>
> --
> You received this message because you are subscribed to the Google Groups 
> "jallib" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/jallib?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en.

Reply via email to