-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
322 lines (260 loc) · 9.18 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
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- Sample -->
<html>
<head>
<title>Sample application where s2sc is integrated</title>
<!-- The s2sc.js files -->
<script src="utility.js"></script>
<script src="error.js"></script>
<script src="dictionary.js"></script>
<script src="tokenizer.js"></script>
<script src="parser.js"></script>
<script src="generator.js"></script>
<script src="s2sc.js"></script>
<!-- ends here -->
<!-- Third party plugins -->
<script src="jquery/jquery.js"></script>
<script src="jquery/jquery-ui.custom.js" type="text/javascript"></script>
<script src="jquery/jquery.ui.touch-punch.min.js"></script>
<script src="edit_area/edit_area_full.js"></script>
<!-- Window Menus -->
<script src="window/tokenizer-settings.js"></script>
<script src="window/parser-settings.js"></script>
<script src="window/dictionary-settings.js"></script>
<script src="window/editorPreference.js"></script>
<script src="window/cConfigPreference.js"></script>
<script src="window/pythonConfigPreference.js"></script>
<script src="window/s2scPreference.js"></script>
<script src="window/add-new-grammar.js"></script>
<script src="window/add-new-token.js"></script>
<!-- Whole application that uses everything-->
<script src="consolehandler.js"></script>
<script src="application.js"></script>
<!-- Superfish & Super subs-->
<script src="superfish/js/hoverIntent.js"></script>
<script src="superfish/js/superfish.js"></script>
<script src="superfish/js/supersubs.js"></script>
<!-- Tree List-->
<link href="fancytree/skin-win8/ui.fancytree.css" rel="stylesheet" type="text/css">
<script src="fancytree/jquery.fancytree.js" type="text/javascript"></script>
<link href="prettify/prettify.css" rel="stylesheet">
<script src="prettify/prettify.js" type="text/javascript"></script>
<!-- -->
<link rel="stylesheet" type="text/css" href="display.css">
<link rel="stylesheet" media="screen" href="superfish/css/superfish.css">
<link rel="stylesheet" href="jquery/themes/base/jquery.ui.all.css">
</head>
<body>
<ul class="sf-menu" id="menubar">
<li>
<a>File</a>
<ul>
<li>Open<input display="cursor: pointer;" type="file" id="chosenFile"></li>
</ul>
</li>
<li>
<a>Code Generation</a>
<ul>
<li>Settings
<ul>
<li id="parserSelector">Parser</li>
<li id="tokenizerSelector">Tokenizer</li>
<li id="dictionarySelector">Dictionary</li>
</ul>
</li>
<li>Convert
<ul>
<li>Python 3
<ul>
<li id="convertButton">> C</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li>
<a>Preferences</a>
<ul>
<li id="editorSelector">Editor</li>
<li id="cConfigSelector" style="display: none">C Config</li>
<li id="pythonConfigSelector" style="display: none">Python Config</li>
<li id="s2scSelector" style="display: none">S2SC</li>
</ul>
</li>
<li>
<a>Help</a>
<ul>
<li>Documentation</li>
<li>How to Compile</li>
<li>Visit our Github Page</li>
</ul>
</li>
</ul>
<div id="shortcutbar">
<!--
<div id="openFileShortcut" class="shortcutButton"></div>
<div id="compileCtoPython" class="shortcutButton"></div>
-->
</div>
<div id="menuframe">
</div>
<br><br>
<p style="display: none">Select File: <input type="text" id="fileName" disabled> <input type="button" value="Convert" >
</p>
<table class="header" id="heading">
<tr>
<td>
Input
</td>
<td>
   Output
</td>
<td>
       Function & Variables
</td>
</tr>
</table>
<div class="wrapper">
<textarea id="inputText"></textarea>
<textarea id="output"></textarea>
<div id="functionList">
</div>
</div>
<div id="consoleContainer">
<!--table class="header"><tr><td>Console:</td></tr></table>-->
<iframe id='console'></iframe>
</div>
<div id="tokenizerWindow" title="Tokenizer Settings">
<table style="width: 80%">
<tr>
<td><p class="window-desc">Languages: </p></td>
<td><p class="window-desc">Token: </p></td>
</tr>
</table>
<div id="languageList">
</div>
<div id="tokenList">
</div>
<input id="addToken" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only windowSelectionButton" type="button" style="margin-left: 5px;" value="Add Token">
<input id="deleteToken" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only windowSelectionButton" type="button" value="Delete Token">
</div>
<div id="parserWindow" title="Parser Settings">
<table style="width: 92%">
<tr>
<td><p class="window-desc">Languages: </p></td>
<td><p class="window-desc">Token: </p></td>
</tr>
</table>
<div id="parserList">
</div>
<div id="grammarList">
</div>
<input id="addGrammar" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only windowSelectionButton" type="button" style="margin-left: 5px;" value="Add new grammar">
<input id="deleteGrammar" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only windowSelectionButton" type="button" value="Delete selected grammar(s)">
</div>
<div id="dictionaryWindow" title="Dictionary Settings">
<table style="width: 85%">
<tr>
<td><p class="window-desc">Languages: </p></td>
<td><p class="window-desc">Function: </p></td>
<td><p class="window-desc">           Code: </p></td>
</tr>
</table>
<div id="supportedLanguageList">
</div>
<div id="dictionaryFunctionList">
</div>
<textarea id="functionCode"></textarea>
<input id="addFunction" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only windowSelectionButton" type="button" style="margin-left: 5px; display: none" value="Add new function">
<input id="deleteFunction" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only windowSelectionButton" type="button" style="display: none" value="Delete function(s)">
</div>
<div id="editorWindow" title="Editor">
<div class="buttonContainer">
<span class="ui-icon ui-icon-info" style="float:left; margin:0 7px 40px 0;"></span>
<p style="font-size: 10pt;">
You can select here which shortcuts is shown on the shortcut panel bar. Take note that
any changes done here will be saved permanently. The selection panel shows the available
shortcuts that had not been placed while the shown panel shows the shortcuts used by the shortcut
panel bar, your shortcuts will be on the same order as you configured it.
</p>
<hr style="rgba(0, 0, 0, 0.4); opacity: 0.4;">
<p style="font-size: 8pt;">Selection:</p>
<div id="selection" class="draggable-list" style="margin-bottom: -15px;">
</div>
<br>
<p style="font-size: 8pt;">Shown:</p>
<div id="shownToolbar" class="draggable-list">
</div>
</div>
</div>
<div id="C-ConfigWindow" title="C Configuration">
</div>
<div id="Python-ConfigWindow" title="Python Configuration">
</div>
<div id="S2SCWindow" title="S2SC Configuration">
</div>
<div id="addNewGrammar" title="Add New Grammar">
<table class="allWidth">
<tr>
<td>Programming Language:</td>
<td id="addNewGrammar_Language"></td>
</tr>
<tr>
<td>Representation:</td>
<td><input id="addNewGrammar_representation" class="text ui-widget-content ui-corner-all allWidth" type="text"></input></td>
</tr>
<tr>
<td>Condition:</td>
<td><input id="addNewGrammar_condition" class="text ui-widget-content ui-corner-all allWidth" type="text"></input></td>
</tr>
</table>
</div>
<div id="addNewToken" title="Add New Token">
<table class="allWidth">
<tr>
<td>Programming Language:</td>
<td id="addNewToken_Language"></td>
</tr>
<tr>
<td>Token Symbol:</td>
<td><input id="addNewToken_representation" class="text ui-widget-content ui-corner-all allWidth" type="text"></input></td>
</tr>
<tr>
<td>Token Category:</td>
<td>
<select id="addNewToken_condition" class="text ui-widget-content ui-corner-all allWidth" >
<option value="Keyword">Keyword</option>
<option value="Symbol">Symbol</option>
<option value="ReserveWord">Reserve Word</option>
</select>
</td>
</tr>
</table>
</div>
<div class="minify" id="addNewGrammar_error_noLanguage" title="Invalid Language">
<p>
<span class="ui-icon ui-icon-info" style="float:left; margin:0 7px 50px 0;"></span>
The parser could not identify what programming language you're using
</p>
<p>
Please select one if you have not selected any</b>.
</p>
</div>
</body>
</html>
<!--
<div id="additionForm" title="Add an Addition Type">
<p class="validateTips">All form fields are required.</p>
<hr>
<form>
<fieldset>
<label for="aname">Type:</label><br>
<input type="text" name="aname" id="aname" class="text ui-widget-content ui-corner-all" /> <br><br>
<label for="adesc">Description: </label> <br>
<textarea name="adesc" id="adesc" value="" class="text ui-widget-content ui-corner-all" />
</textarea><br><br>
</fieldset>
</form>
</div>
-->