Constructor/Element

The element is the most basic object created by the lexer. In their simplest
form, elements are essentially objective representations of tokens.
The elements are then arranged in a DOM-like tree which is then executed. The
process of creating elements is done during the "construction" stage and is
handled by the constructor.

Most elements are categorized through heredity. The simplest parent element
is the node; normal elements cannot encapsulate others.

Methods

$el->parent

Returns the parent element or undef if it is a root element. Usually, all
elements except perhaps documents will have a parent.