lib/Lingy/Compiler.pm

filter: Statementstmt 100% 91 / 91 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 30 / 30 Podpod n/a totaltotal 100% 121 / 121 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/script/_lingy.pl ↑ Summary lib/Lingy/IllegalArgumentException.pm »
1 53 ▶use strict; use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
2 package Lingy::Compiler;
3  
4 53 ▶use Lingy::Common;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 53 ▶use Lingy::Symbol;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 53 ▶use Lingy::HashMap;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 53 ▶use constant DEF => symbol('def');
Subroutine BEGIN: called CC=1 SCAR=0.0
9 53 ▶use constant LOOP => symbol('loop*');
Subroutine BEGIN: called CC=1 SCAR=0.0
10 53 ▶use constant RECUR => symbol('recur');
Subroutine BEGIN: called CC=1 SCAR=0.0
11 53 ▶use constant IF => symbol('if');
Subroutine BEGIN: called CC=1 SCAR=0.0
12 53 ▶use constant CASE => symbol('case*');
Subroutine BEGIN: called CC=1 SCAR=0.0
13 53 ▶use constant LET => symbol('let*');
Subroutine BEGIN: called CC=1 SCAR=0.0
14 53 ▶use constant LETFN => symbol('letfn*');
Subroutine BEGIN: called CC=1 SCAR=0.0
15 53 ▶use constant DO => symbol('do');
Subroutine BEGIN: called CC=1 SCAR=0.0
16 53 ▶use constant FN => symbol('fn*');
Subroutine BEGIN: called CC=1 SCAR=0.0
17 53 ▶use constant QUOTE => symbol('quote');
Subroutine BEGIN: called CC=1 SCAR=0.0
18 53 ▶use constant THE_VAR => symbol('var');
Subroutine BEGIN: called CC=1 SCAR=0.0
19 53 ▶use constant IMPORT => symbol('import*');
Subroutine BEGIN: called CC=1 SCAR=0.0
20 53 ▶use constant DOT => symbol('.');
Subroutine BEGIN: called CC=1 SCAR=0.0
21 53 ▶use constant ASSIGN => symbol('set!');
Subroutine BEGIN: called CC=1 SCAR=0.0
22 53 ▶use constant DEFTYPE => symbol('deftype*');
Subroutine BEGIN: called CC=1 SCAR=0.0
23 53 ▶use constant REIFY => symbol('reify*');
Subroutine BEGIN: called CC=1 SCAR=0.0
24 ### TRY_FINALLY
25 53 ▶use constant TRY => symbol('try');
Subroutine BEGIN: called CC=1 SCAR=0.0
26 53 ▶use constant THROW => symbol('throw');
Subroutine BEGIN: called CC=1 SCAR=0.0
27 53 ▶use constant MONITOR_ENTER => symbol('monitor-enter');
Subroutine BEGIN: called CC=1 SCAR=0.0
28 53 ▶use constant MONITOR_EXIT => symbol('monitor-exit');
Subroutine BEGIN: called CC=1 SCAR=0.0
29 ### INSTANCE
30 ### IDENTICAL
31 ### THISFN
32 53 ▶use constant CATCH => symbol('catch');
Subroutine BEGIN: called CC=1 SCAR=0.0
33 53 ▶use constant FINALLY => symbol('finally');
Subroutine BEGIN: called CC=1 SCAR=0.0
34 ### CLASS
35 53 ▶use constant NEW => symbol('new');
Subroutine BEGIN: called CC=1 SCAR=0.0
36 ### UNQUOTE
37 ### UNQUOTE_SPLICING
38 ### SYNTAX_QUOTE
39 53 ▶use constant _AMP_ => symbol('&');
Subroutine BEGIN: called CC=1 SCAR=0.0
40  
41  
42 53 ▶use constant specials => HASHMAP->new([
Subroutine BEGIN: called CC=1 SCAR=0.0
43 DEF, nil,
44 LOOP, nil, # change to loop*
45 RECUR, nil,
46 IF, nil,
47 LET, nil,
48 # LETFN, nil,
49 DO, nil,
50 FN, nil,
51 QUOTE, nil,
52 THE_VAR, nil,
53 IMPORT, nil,
54 DOT, nil,
55 # ASSIGN, nil,
56 # DEFTYPE, nil,
57 # REIFY, nil,
58 TRY, nil,
59 THROW, nil,
60 # MONITOR_ENTER, nil,
61 # MONITOR_EXIT, nil,
62 CATCH, nil,
63 # FINALLY, nil,
64 NEW, nil,
65 # _AMP_, nil,
66  
67 # TODO Maybe add these:
68 ### UNQUOTE
69 ### UNQUOTE_SPLICING
70 ### SYNTAX_QUOTE
71 53 ]);
72  
73 53 1;
« blib/script/_lingy.pl ↑ Summary lib/Lingy/IllegalArgumentException.pm »