Greg London > Parse-Gnaw-0.601 > Parse::Gnaw::Blocks::LetterConstants

Download:
Parse-Gnaw-0.601.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.001   Source  

NAME ^

Parse::Gnaw::Blocks::LetterConstants - Hold subroutine/constants for Letter objects These are NOT contained in a separate package so that another file can use them and they automatically get imported into that package.

Not in its own package namespace so that whoever uses it, sees all the functions.

LETTER__LINKED_LIST This is a constant index into the object array for the LETTER__LINKED_LIST, the linked list object that holds this letter.

LETTER__DATA_PAYLOAD This is a constant index into the object array for the LETTER__DATA_PAYLOAD, the data payload for this letter. assuming it is a single character. Will have to override and redefine a bunch of methods if you want it to be something else. First and Last letters use 'first' and 'last' as the payload.

LETTER__CONNECTIONS This is a constant index into the object array for the LETTER__CONNECTIONS, the axis array which indicates the next and previous letters on each axis. Axis 0 might represent the "vertical" axis. Axis0->[0] would be up Axis0->[1] would be down.

LETTER__NEXT_START This is a constant index into the object array for the LETTER__NEXT_START, the letter that would be the next "match" starting position after the current letter.

LETTER__PREVIOUS_START This is a constant index into the object array for the LETTER__PREVIOUS_START, the letter that would be the previous "match" starting position before the current letter.

LETTER__CAPTURE_COUNT This is a count of how many letters have been matched(captured) so far.

LETTER__WHERE_LETTER_CAME_FROM This is a constant index into the object array for the LETTER__WHERE_LETTER_CAME_FROM, a string describing where this particular letter came from.

LETTER__LETTER_HAS_BEEN_CONSUMED This is a constant index into the object array for the LETTER__LETTER_HAS_BEEN_CONSUMED flag, this is a boolean indicating whether this particular letter instance has been "consumed" by the grammar or not.

LETTER__CONNECTION_NEXT Each index into the axis array contains a 2-dimensional array for next/prev values. Axis0->[0] would be up Axis0->[1] would be down.

LETTER__CONNECTION_PREV Each index into the axis array contains a 2-dimensional array for next/prev values. Axis0->[0] would be up Axis0->[1] would be down.

syntax highlighting: