generated from seanpm2001/Template_SNU_2D_ProgrammingTools_V7
-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathPROJECT_LANG_2.js++
33 lines (33 loc) · 1.56 KB
/
PROJECT_LANG_2.js++
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
// Start of script
// I chose JavaScript++ as the second (and main) project language for this project (SNU/2D/ProgrammingTools/IDE/JavaScriptPlusPlus) as JavaScript++ is the language that is being extended to, and is the language this project aims to compile.
class projectLanguageFileTwo() {
void main() {
int x = 1; // declares the variable x with an "internal type" (JS++ type)
var y = 2; // declares the variable y with an "external type" (JavaScript type)
bool z = true; // declares the variable z with an "internal type" (JS++ type)
console.log ("Project language file 2");
console.log ("For: SNU/2D/ProgrammingTools/IDE/JavaScriptPlusPlus");
console.log ("About:");
console.log ("I chose JavaScript++ as the second (and main) project language for this project (SNU/2D/ProgrammingTools/IDE/JavaScriptPlusPlus) as JavaScript++ is the language that is being extended to, and is the language this project aims to compile.");
/* Garbage syntax, so I can test out 2 new keywords I recently learned. Uncomment to highlight
x = bool("true");
y = bool("false");
if (x == "false"); {
try y
} else: {
catch x;
}
*/
break;
return 0;
}
}
// Note for project language files: The languages associated with SNU programming tools are not included as project language files, as there are too many to list.
return main();
break;
/* File info
* File version: 1 (Tuesday, 2021 October 12th at 3:55 pm)
* File type: JavaScript 1.8 source file (*.js)
* Line count (including blank lines and compiler line): 34
*/
// End of script