NAME ^

src/pmc/lexinfo.pmc - LexInfo PMC

DESCRIPTION ^

These are the vtable functions for the lexinfo PMC.

Functions ^

void class_init()

Manipulate vtable->flags so that constant PMCs are created. If your inherited LexInfo is not so constant, then don't do that and provide a mark() method and set the custom_mark flag.

init_pmc(PMC *sub)

Initialize the LexInfo PMC and remember the associate subroutine.

METHOD void declare_lex_preg(STRING *name, INTVAL preg)

Declare a lexical variable that is an alias for a PMC register. The PIR compiler calls this method in response to a ".lex STRING, PREG" directive.

INTVAL elements()

Returns the number of elements in the LexInfo hash.

void visit(visit_info *info)

void freeze(visit_info *info)

void thaw(visit_info *info)

Freeze/thaw interface used during freeze/thaw of the Sub PMC. The implementation of the Hash PMC is called.

SEE ALSO ^

docs/pdds/pdd20_lexical_vars.pod, src/classes/lexpad.pmc.


parrot