NAME

src/dynpmc/match.pmc - Match object for rules

DESCRIPTION

This is a match object for holding hypothetical variables, the input string, etc. It is used by the languages/regex rule compiler.

For now, it is really just proof-of-concept code, and I fully expect anyone who reads this to hurl. Violently.

Functions

void class_init()
Class initialization. Caches the type id of the MatchRange PMC, because it will be used frequently here. Does not bother to call Hash's class_init(), because everything it does looks like it only needs to be done once.
STRING *get_string_keyed_str(STRING *key)
STRING *get_string_keyed(PMC *key)
Returns the string value for the element at *key.
INTVAL get_bool()
Returns whether the match succeeded. Throws an exception if the match has not completed yet.

SEE ALSO

docs/pdds/pdd08_keys.pod.