-
Notifications
You must be signed in to change notification settings - Fork 4
/
NativeProcedures.hpp
56 lines (48 loc) · 1.42 KB
/
NativeProcedures.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//
// NativeProcedures.hpp
// Scheme++
//
// Created by Josh Sun on 2017-05-12.
// Copyright © 2017 Josh Sun. All rights reserved.
//
#ifndef NativeProcedures_hpp
#define NativeProcedures_hpp
#include "SList.hpp"
#include "stdlib.h"
#include "math.h"
//primitives
SList add (const SLists& arg);
SList subtract (const SLists& arg);
SList multiply (const SLists& arg);
SList divide (const SLists& arg);
SList mod (const SLists& arg);
SList sqrt (const SLists& arg);
SList max (const SLists& argv);
SList min (const SLists& argv);
SList sin (const SLists& arg);
SList cos (const SLists& arg);
SList tan (const SLists& arg);
SList arcsin (const SLists& arg);
SList arccos (const SLists& arg);
SList arctan (const SLists& arg);
SList abs (const SLists& arg);
SList greater_than(const SLists& argv);
SList less_than (const SLists& argv);
SList equal_num (const SLists& argv);
SList append (const SLists& argv);
SList apply (const SLists& argv);
SList map (const SLists& argv);
SList max (const SLists& argv);
SList max (const SLists& argv);
SList eqv (const SLists& argv);
SList isNumber (const SLists& arg);
SList isProcedure (const SLists& arg);
SList isSymbol (const SLists& arg);
SList isList (const SLists& arg);
SList isNull (const SLists& arg);
SList length (const SLists& arg);
SList list (const SLists& argv);
SList cons (const SLists& argv);
SList car (const SLists& argv);
SList cdr (const SLists& argv);
#endif /* NativeProcedures_hpp */