Better dev env

This commit is contained in:
2022-07-09 04:30:41 -04:00
parent f3e12c91b4
commit 9139914e40
17 changed files with 47 additions and 7 deletions

View File

@ -0,0 +1,8 @@
// Testing a comment
"Hello World!";
/**
*
* Testing a comment
*/
42;

View File

@ -0,0 +1,18 @@
{
42;
"Hello World!";
}
{
}
{
42;
{
"Hello World!";
}
{
;
}
}

View File

@ -0,0 +1,7 @@
// Binary expression
2 + 2;
// Nested binary expressions:
// left : 3 + 2
// right : 2
3 + 2 - 2;

View File

@ -0,0 +1,5 @@
// Single
x = 42;
// Chained
x = (y = 42);

View File

@ -0,0 +1,8 @@
if (x)
{
x = 1;
}
else
{
x = 2;
}

View File

@ -0,0 +1 @@
x > 0;

View File

@ -0,0 +1,8 @@
// Declaration
let x;
// Single assignment declaration
let y = 42;
// Multiple declarations
let a, b;