🎨 move "use strict";
to top of include
This commit is contained in:
parent
195af72d01
commit
aad9c5bdbb
@ -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"))); ?>;
|
||||||
|
@ -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) => {
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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(
|
||||||
|
Reference in New Issue
Block a user