-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsli_builtins.h
126 lines (110 loc) · 2.74 KB
/
sli_builtins.h
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
/*
* slibuiltins.h
*
* This file is part of NEST
*
* Copyright (C) 2004 by
* The NEST Initiative
*
* See the file AUTHORS for details.
*
* Permission is granted to compile and modify
* this file for non-commercial use.
* See the file LICENSE for details.
*
*/
#ifndef SLI_BUILTINS_H
#define SLI_BUILTINS_H
/*
The interpreter's basic operators
*/
#include "sli_function.h"
namespace sli3
{
/*********************************************************
This module contains only those functions which are
needed by the intereter's default actions. All other
built-in or user supplied functions must be defined
either in builtins.{h,cc} or in user-defined modules
*******************************************************/
class IparsestdinFunction: public SLIFunction
{
public:
IparsestdinFunction() {}
void execute(SLIInterpreter *) const;
};
class IparseFunction: public SLIFunction
{
public:
IparseFunction() {}
void execute(SLIInterpreter *) const;
};
class IlookupFunction: public SLIFunction
{
public:
IlookupFunction() {}
void execute(SLIInterpreter *) const;
};
class IiterateFunction: public SLIFunction
{
public:
IiterateFunction() {}
void execute(SLIInterpreter *) const;
void backtrace(SLIInterpreter *, int) const ;
};
class IloopFunction: public SLIFunction
{
public:
IloopFunction() {}
void execute(SLIInterpreter *) const;
void backtrace(SLIInterpreter *, int) const ;
};
class IrepeatFunction: public SLIFunction
{
public:
IrepeatFunction() {}
void execute(SLIInterpreter *) const;
void backtrace(SLIInterpreter *, int) const ;
};
class IforFunction: public SLIFunction
{
public:
IforFunction() {}
void execute(SLIInterpreter *) const;
void backtrace(SLIInterpreter *, int) const ;
};
class IforallarrayFunction: public SLIFunction
{
public:
IforallarrayFunction() {}
void execute(SLIInterpreter *) const;
void backtrace(SLIInterpreter *, int) const ;
};
class IforallindexedarrayFunction: public SLIFunction
{
public:
IforallindexedarrayFunction() {}
void execute(SLIInterpreter *) const;
void backtrace(SLIInterpreter *, int) const ;
};
class IforallindexedstringFunction: public SLIFunction
{
public:
IforallindexedstringFunction() {}
void execute(SLIInterpreter *) const;
void backtrace(SLIInterpreter *, int) const ;
};
class IforallstringFunction: public SLIFunction
{
public:
IforallstringFunction() {}
void execute(SLIInterpreter *) const;
void backtrace(SLIInterpreter *, int) const ;
};
class ArraycreateFunction: public SLIFunction
{
public:
void execute(SLIInterpreter *) const;
};
}
#endif