File Coverage

blib/lib/rperlrules.pm
Criterion Covered Total %
statement 156 156 100.0
branch n/a
condition n/a
subroutine 52 52 100.0
pod n/a
total 208 208 100.0


line stmt bran cond sub pod time code
1             # [[[ HEADER ]]]
2             ## no critic qw(Capitalization ProhibitMultiplePackages ProhibitReusedNames) # SYSTEM DEFAULT 3: allow multiple & lower case package names
3             package # hide from PAUSE indexing
4             rperlrules; # yes, yes it does
5 4     4   30 use strict;
  4         10  
  4         131  
6 4     4   27 use warnings;
  4         11  
  4         271  
7             our $VERSION = 0.001_100;
8              
9             #use RPerl;
10              
11             # NEED UPGRADE: make Grammars first-class citizens for full Perl 6 compatibility, we should have it done by Christmas XD
12             #use parent qw(RPerl::GrammarComponent)
13              
14             # all following rules lists highest-to-lowest level
15              
16             # [[[ COMPILE UNITS ]]]
17              
18 4     4   1668 use RPerl::CompileUnit;
  4         13  
  4         131  
19 4     4   1741 use RPerl::CompileUnit::Program;
  4         11  
  4         206  
20 4     4   1909 use RPerl::CompileUnit::Module;
  4         14  
  4         168  
21 4     4   2495 use RPerl::CompileUnit::Module::Class::Generator;
  4         14  
  4         173  
22 4     4   1835 use RPerl::CompileUnit::Module::Header;
  4         12  
  4         125  
23 4     4   1604 use RPerl::CompileUnit::Module::Package;
  4         11  
  4         123  
24 4     4   1462 use RPerl::CompileUnit::Include;
  4         13  
  4         118  
25 4     4   1352 use RPerl::CompileUnit::Critic;
  4         10  
  4         109  
26 4     4   1452 use RPerl::CompileUnit::Constant;
  4         15  
  4         150  
27 4     4   32 use RPerl::CodeBlock;
  4         9  
  4         103  
28 4     4   22 use RPerl::CodeBlock::Subroutine;
  4         7  
  4         94  
29 4     4   21 use RPerl::CodeBlock::Subroutine::Method;
  4         11  
  4         91  
30 4     4   1690 use RPerl::CodeBlock::Subroutine::Method::Arguments;
  4         13  
  4         120  
31 4     4   1389 use RPerl::NonGenerator;
  4         11  
  4         112  
32              
33             # [[[ OPERATIONS ]]]
34              
35 4     4   1335 use RPerl::Operation;
  4         14  
  4         115  
36 4     4   28 use RPerl::Operation::Expression;
  4         9  
  4         92  
37 4     4   18 use RPerl::Operation::Expression::Operator;
  4         8  
  4         70  
38 4     4   22 use RPerl::Operation::Expression::ConstantCall; # grammar rule & operation
  4         11  
  4         74  
39 4     4   19 use RPerl::Operation::Expression::SubroutineCall; # grammar rule & operation
  4         9  
  4         72  
40 4     4   20 use RPerl::Operation::Expression::SubroutineCall::MethodCall; # grammar rule & operation
  4         9  
  4         78  
41 4     4   22 use RPerl::Operation::Expression::SubroutineCall::MethodCall::ConstructorCall; # grammar rule & operation
  4         9  
  4         68  
42 4     4   23 use RPerl::Operation::Statement;
  4         10  
  4         66  
43 4     4   17 use RPerl::Operation::Statement::Conditional; # grammar rule & operation
  4         10  
  4         95  
44 4     4   23 use RPerl::Operation::Statement::Loop; # grammar rule & operation
  4         9  
  4         86  
45 4     4   25 use RPerl::Operation::Statement::Loop::For; # grammar rule & operation
  4         8  
  4         79  
46 4     4   18 use RPerl::Operation::Statement::Loop::ForEach; # grammar rule & operation
  4         10  
  4         71  
47 4     4   17 use RPerl::Operation::Statement::Loop::While; # grammar rule & operation
  4         8  
  4         64  
48 4     4   18 use RPerl::Operation::Statement::OperatorVoid;
  4         12  
  4         60  
49 4     4   19 use RPerl::Operation::Statement::OperatorVoid::Named;
  4         7  
  4         70  
50 4     4   20 use RPerl::CodeBlock;
  4         8  
  4         73  
51              
52             # [[[ VARIABLES & TYPES ]]]
53              
54 4     4   1798 use RPerl::Operation::Expression::SubExpression::Variable;
  4         14  
  4         162  
55 4     4   2091 use RPerl::Operation::Expression::SubExpression::Variable::Retrieval;
  4         13  
  4         180  
56 4     4   1768 use RPerl::Operation::Expression::SubExpression::Literal;
  4         14  
  4         147  
57 4     4   1774 use RPerl::Operation::Expression::SubExpression::Literal::Number;
  4         31  
  4         154  
58 4     4   1785 use RPerl::Operation::Expression::SubExpression::Literal::String;
  4         14  
  4         168  
59 4     4   1730 use RPerl::Operation::Expression::SubExpression::Literal::Undefined;
  4         14  
  4         151  
60 4     4   1478 use RPerl::Operation::Expression::SubExpression::Parenthesis;
  4         22  
  4         136  
61 4     4   1485 use RPerl::Operation::Expression::SubExpression::ArrayDereference;
  4         13  
  4         131  
62 4     4   1575 use RPerl::Operation::Expression::SubExpression::HashDereference;
  4         13  
  4         126  
63 4     4   1840 use RPerl::Operation::Statement::VariableDeclaration;
  4         13  
  4         151  
64 4     4   1614 use RPerl::Operation::Statement::VariableModification;
  4         12  
  4         141  
65 4     4   1477 use RPerl::DataStructure::Array::ListElements;
  4         12  
  4         124  
66 4     4   1563 use RPerl::DataStructure::Array::ListElement;
  4         11  
  4         134  
67 4     4   1446 use RPerl::DataStructure::Hash::Entry;
  4         10  
  4         162  
68 4     4   1407 use RPerl::DataType::TypeInner;
  4         12  
  4         123  
69              
70             # [[[ INPUT / OUTPUT ]]]
71              
72 4     4   1512 use RPerl::InputOutput::FilehandleIn;
  4         12  
  4         101  
73 4     4   1267 use RPerl::InputOutput::Stdin;
  4         10  
  4         103  
74              
75             # [[[ OBJECT-ORIENTED ]]]
76              
77 4     4   23 use RPerl::CompileUnit::Module::Class;
  4         8  
  4         64  
78 4     4   1371 use RPerl::DataStructure::Hash::Properties;
  4         10  
  4         102  
79 4     4   26 use RPerl::CodeBlock::Subroutine::Method; # Method is the only item that is both a Data Type & a Grammar Rule
  4         9  
  4         103  
80              
81             1;