1 package PPI::Statement::Unknown;
7 PPI::Statement::Unknown - An unknown or transient statement
11 PPI::Statement::Unknown
18 The C<PPI::Statement::Unknown> class is used primarily during the lexing
19 process to hold elements that are known to be statement, but for which
20 the exact C<type> of statement is as yet unknown, and requires further
21 tokens in order to resolve the correct type.
23 They should not exist in a fully parse B<valid> document, and if any
24 exists they indicate either a problem in Document, or possibly (by
25 allowing it to get through unresolved) a bug in L<PPI::Lexer>.
29 C<PPI::Statement::Unknown> has no additional methods beyond the
30 default ones provided by L<PPI::Statement>, L<PPI::Node> and
36 use PPI::Statement ();
38 use vars qw{$VERSION @ISA};
41 @ISA = 'PPI::Statement';
44 # If one of these ends up in the final document,
45 # we're pretty much screwed. Just call it a day.
46 sub _complete () { 1 }
54 See the L<support section|PPI/SUPPORT> in the main module.
58 Adam Kennedy E<lt>adamk@cpan.orgE<gt>
62 Copyright 2001 - 2009 Adam Kennedy.
64 This program is free software; you can redistribute
65 it and/or modify it under the same terms as Perl itself.
67 The full text of the license can be found in the
68 LICENSE file included with this module.