-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
247 lines (214 loc) · 5.1 KB
/
index.html
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
<!DOCTYPE html>
<html>
<head>
<title>Eaucool Keyword Documentation</title>
<style>
body {
font-family: Arial, sans-serif;
line-height: 1.6;
}
h2 {
color: #008080;
margin-top: 30px;
margin-bottom: 10px;
}
h3 {
color: #006400;
margin-top: 20px;
margin-bottom: 10px;
}
pre {
background-color: #f0f0f0;
padding: 10px;
}
</style>
</head>
<body>
<h1>Eaucool Keyword Documentation</h1>
<p>
This documentation provides information about the keywords used in the Eaucool programming language.
</p>
<i>Note: Arguments that have spaces in them must be enclosed in double quotes.</i>
<h2>Operators</h2>
<h3>$=</h3>
<p>
<h4 style="color: red">This operator has been deprecated since v1.0. Use the 'echo' keyword instead.</h3>
Description: Outputs formatted text to the console.
</p>
<pre>
$= text
</pre>
<h3>$</h3>
<p>
Description: Creates or updates a variable.
</p>
<pre>
$ variable_name = value
</pre>
<h2>Utility Keywords</h2>
<h3>echo</h3>
<p>
Description: Prints a message to the console.
</p>
<pre>
echo message
</pre>
<h3>rndmax</h3>
<p>
Description: Sets the maximum value for the random number generator.
</p>
<pre>
rndmax max_value
</pre>
<h3>random</h3>
<p>
Description: Generates a random number between 0 and the specified maximum value.
</p>
<pre>
random
</pre>
<h3>existing</h3>
<p>
Description: Checks if a variable exists.
</p>
<pre>
existing $variable_name
</pre>
<h3>escape</h3>
<p>
Description: Escapes special characters in a variable.
</p>
<pre>
escape $variable_name
</pre>
<h3>replace</h3>
<p>
Description: Replaces occurrences of a substring in a variable with another value.
</p>
<pre>
replace $variable_name substring_to_replace new_value
</pre>
<h2>Control Flow Keywords</h2>
<h3>if</h3>
<p>
Description: Conditionally executes code based on a condition.
</p>
<pre>
if $variable_name = value
</pre>
<h2>Date/Time Keywords</h2>
<h3>getdate</h3>
<p>
Description: Gets the current date in the format "yyyy-MM-dd" and stores it in a variable.
</p>
<pre>
getdate $variable_name
</pre>
<h2>Mail Keywords</h2>
<h3>mail</h3>
<p>
Description: Sends an email using the specified SMTP server.
</p>
<pre>
mail to_address subject body from_address password smtp_server
</pre>
<h2>File System Keywords</h2>
<h3>writefile</h3>
<p>
Description: Writes content to a file.
</p>
<pre>
writefile filename content
</pre>
<h3>readfile</h3>
<p>
Description: Reads the content of a file and stores it in a variable.
</p>
<pre>
readfile filename
</pre>
<h3>rmfile</h3>
<p>
Description: Deletes a file from the file system.
</p>
<pre>
rmfile filename
</pre>
<h3>appendfile</h3>
<p>
Description: Appends content to a file.
</p>
<pre>
appendfile filename content
</pre>
<h3>execute</h3>
<p>
Description: Executes a command with optional arguments.
</p>
<pre>
execute command arguments
</pre>
<h2>Web Keywords</h2>
<h3>urldecode</h3>
<p>
Description: URL decodes a value and stores it in a variable.
</p>
<pre>
urldecode $variable_name value_to_decode
</pre>
<h3>urlencode</h3>
<p>
Description: URL encodes a value and stores it in a variable.
</p>
<pre>
urlencode $variable_name value_to_encode
</pre>
<h3>urlget</h3>
<p>
Description: Performs an HTTP GET request and stores the response in a variable.
</p>
<pre>
urlget $variable_name url
</pre>
<h3>urlpost</h3>
<p>
Description: Performs an HTTP POST request and stores the response in a variable.
</p>
<pre>
urlpost $variable_name url data
</pre>
<h2>Method Keywords</h2>
<h3>method</h3>
<p>
Description: Defines a method with the specified name and associated code.
</p>
<pre>
method method_name
...
stopmethod
</pre>
<h3>stopmethod</h3>
<p>
Description: Stops the execution of a method.
</p>
<pre>
stopmethod
</pre>
<h3>callmethod</h3>
<p>
Description: Calls a previously defined method with the specified name.
</p>
<pre>
callmethod method_name
</pre>
<h2>Other Keywords</h2>
<h3>include</h3>
<p>
Description: Includes the contents of a file in the current script.
</p>
<pre>
// Note that 'include' does not require double quotes around the filename
include filename
</pre>
</body>
</html>