0
0

🎨 move "use strict"; to top of include

This commit is contained in:
DrMaxNix 2022-09-29 19:25:35 +02:00
parent 195af72d01
commit aad9c5bdbb
5 changed files with 22 additions and 23 deletions

View File

@ -54,28 +54,31 @@
span.line.stderr-error { color: var(--onedark-red); } span.line.stderr-error { color: var(--onedark-red); }
</style> </style>
<script type="text/javascript"><?php <script type="text/javascript">
foreach(scandir("../src/helper") as $one_file){ "use strict";
if(is_file("../src/helper/" . $one_file)){ <?php
require("../src/helper/" . $one_file); foreach(scandir("../src/helper") as $one_file){
echo("\n"); if(is_file("../src/helper/" . $one_file)){
require("../src/helper/" . $one_file);
echo("\n");
}
} }
}
foreach(scandir("../src") as $one_file){ foreach(scandir("../src") as $one_file){
if(is_file("../src/" . $one_file)){ if(is_file("../src/" . $one_file)){
require("../src/" . $one_file); require("../src/" . $one_file);
echo("\n"); echo("\n");
}
} }
}
foreach(scandir("../src/command") as $one_file){ foreach(scandir("../src/command") as $one_file){
if(is_file("../src/command/" . $one_file)){ if(is_file("../src/command/" . $one_file)){
require("../src/command/" . $one_file); require("../src/command/" . $one_file);
echo("\n"); echo("\n");
}
} }
} ?>
?></script> </script>
<script type="text/javascript"> <script type="text/javascript">
let juice_program = <?php echo(json_encode(file_get_contents("juice-program.jce"))); ?>; let juice_program = <?php echo(json_encode(file_get_contents("juice-program.jce"))); ?>;

View File

@ -1,4 +1,3 @@
"use strict";
class Juicescript_helper_enum { class Juicescript_helper_enum {
constructor(...keys){ constructor(...keys){
keys.forEach((key, i) => { keys.forEach((key, i) => {

View File

@ -1,4 +1,3 @@
"use strict";
class Juicescript_io { class Juicescript_io {
/* /*
CONSTRUCTOR: Return new juicescript io adapter with CALLBACKs CONSTRUCTOR: Return new juicescript io adapter with CALLBACKs

View File

@ -1,4 +1,3 @@
"use strict";
class Juicescript_lexer { class Juicescript_lexer {
/* /*
CONSTRUCTOR: Return new juicescript lexer for SOURCE with OPTIONS CONSTRUCTOR: Return new juicescript lexer for SOURCE with OPTIONS

View File

@ -1,4 +1,3 @@
"use strict";
class Juicescript { class Juicescript {
// TOKEN TYPES // // TOKEN TYPES //
static token_type = new Juicescript_helper_enum( static token_type = new Juicescript_helper_enum(