The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Changes for version 1.222

  • Summary:
  • unit tests for many parts, both passing and TODO
  • many documentation fixes
  • add ->version method to PPI::Statement::Package (WOLFSAGE)
  • remove unused PPI::Document->new timeout feature
  • do not expect '.' in @INC (PLICEASE)
  • many parsing fixes
  • various fixes to the behaviors of methods
  • removal of problematic dependencies
  • Details:
  • Remove undocumented, non-working 'timeout' attribute to Document->new, including HAVE_ALARM and PPI::Exception::ParserTimeout. (GitHub #140) (MOREGAN)
  • first cut of a travis configuration
  • do hex number matching with [[:xdigit:]]
  • some readability improvements on the code of HereDoc.pm
  • recognize heredoc even if they have no newline at the end (AUBERTG)
  • parse left side of => as bareword even if it looks like a keyword or op (MOREGAN)
  • remove source code escapes in the output of QuoteLike::Words->literal (MOREGAN)
  • removal of Test::NoWarnings
  • less uses of List::MoreUtils in favor of List::Util
  • expand $'x to $::main::x in Symbol->canonical as with $::x (MOREGAN)
  • fixed parsing of large numbers in Number::Exp on Solaris 80 (JMASLAK)
  • make remove_child actually return undef on failure to find child to remove
  • higher accuracy when deciding whether certain characters are operators or variable type casts (*&% etc.) (MOREGAN)
  • parse x as the first element of code as a word, not an operator (MOREGAN)
  • recognize the implied end of a package statement that includes a block (MOREGAN)
  • parse package names that look like operators as strings, not ops (MOREGAN)
  • parse package names that look like v10 as strings, not versions (MOREGAN)
  • parse things like v49use as a single bareword, not v-string + keyword (MOREGAN)
  • parse x64 as a word, not x operator + number (MOREGAN)
  • parse 1.eq 1 as float + op, not concatenation
  • parse subroutine attributes correctly (MOREGAN)

Modules

PPI
Parse, Analyze and Manipulate Perl (without perl)
The PPI Document Caching Layer
Object representation of a Perl document
A Perl Document located in a specific file
A fragment of a Perl Document
A normalized Perl Document
Dumping of PDOM trees
The abstract Element class, a base for all source objects
The PPI exception base class
Object version of the Element->find method
The PPI Lexer
Abstract PPI Node class, an Element that can contain other Elements
Normalize Perl Documents
Provides standard document normalization functions
The base class for Perl statements
Statements which break out of normal statement flow
Describes all compound statements
The __DATA__ section of a file
Content after the __END__ of a module
A generic and non-specialised statement
A given-when statement
Statements that include other code
Inline Perl 6 file section
A useless null statement
A package statement
A scheduled code block
Subroutine declaration
An unknown or transient statement
Isolated unmatched brace
Variable declaration statements
A when statement
The base class for Perl braced structures
Curly braces representing a code block
Round braces for boolean context conditions
Anonymous hash or array constructor
Circular braces for a for expression
Circular braces for a switch statement
Explicit list or precedence ordering braces
Braces that represent an array or hash subscript
An unknown or unresolved brace structure
Circular braces for a when statement
A single token of Perl source code
Token getting the last index for an array
A token for a subroutine attribute
Tokens representing Unicode byte order marks
A prefix which forces a value into a different context
A comment in Perl source code
A dashed bareword token
The actual data in the __DATA__ section of a file
Completely useless content after the __END__ tag
Token class for the here-doc
Token class for a statement label
Tokens representing magic variables
Token class for a number
Token class for a binary number
Token class for an exponential notation number
Token class for a floating-point number
Token class for a binary number
Token class for a binary number
Token class for a byte-packed number
Token class for operators
Sections of POD in Perl documents
A subroutine prototype descriptor
String quote abstract base class
A standard "double quote" token
The interpolation quote-like operator
The literal quote-like operator
A 'single quote' token
Quote-like operator abstract base class
A `backticks` command token
The command quote-like operator
The readline quote-like operator
Regexp constructor quote-like operator
Word list constructor quote-like operator
Regular expression abstract base class
A standard pattern match regex
A match and replace regular expression token
A transliteration regular expression token
The __DATA__ and __END__ tags
Token class for characters that define code structure
A token class for variables and other symbols
Token of unknown or as-yet undetermined type
Tokens representing ordinary white space
The generic "word" Token
The PPI Quote Engine
The Perl Document Tokenizer
Abstract base class for document transformation classes
Demonstration PPI::Transform class

Provides

in lib/PPI/Exception/ParserRejection.pm
in lib/PPI/Token/_QuoteEngine/Full.pm
in lib/PPI/Token/_QuoteEngine/Simple.pm
in lib/PPI/Util.pm
in lib/PPI/XSAccessor.pm