[Tinyos-help] How to use "pstate" in nesC compiler

David Gay dgay42 at gmail.com
Tue Dec 5 11:21:32 PST 2006


On 12/5/06, Sean Walton <swalton at cs.utah.edu> wrote:
> I'm stumped.  I trying to figure out what pstate is and how to use it.
> Can anyone help?

It's the parser state, as the name of its type ("parse_state") might
have suggested. It's all in one structure to make it simple to make
the parser reentrant (note that the parse function saves and restores
pstate).

As to the details of its contents, you'll need to look at the parser
rules. Documentation on gcc internals (pre version 4) may or may not
explain some of the weirdnesses there... (there's some amount of
parser hackery in gcc's C grammar...).

David Gay


More information about the Tinyos-help mailing list