lib/Lingy/Lang/Compiler.pm

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