NAME
src/pmc/lexinfo.pmc - LexInfo PMC
DESCRIPTION
These are the vtable functions for the lexinfo PMC.
Functions
init_pmc(PMC *sub)
Initialize the LexInfo PMC and remember the associate subroutine.The void declare_lex_preg(STRING *name, INTVAL preg)
Declare a lexical variable that is an alias for a PMC register.
This is the dynamic version of a ".lex STRING,
PREG" directive.
Note that the second argument is just an integer,
i.e.
PMC *inspect_str(STRING *what)
Introspects this LexInfo structure.
The only valid introspection key is
sub
argument is currently ignored.
0
for $P0
.
symbols
,
which gets an array of the names of the symbols in this lexpad.SEE ALSO
docs/pdds/pdd20_lexical_vars.pod, src/classes/lexpad.pmc.