Skip to content

Commit 54cd9ef

Browse files
Update test.css
1 parent a9c7a19 commit 54cd9ef

File tree

1 file changed

+63
-1
lines changed

1 file changed

+63
-1
lines changed

javascript/test.css

Lines changed: 63 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,69 @@ body::after {
22
content: 'How to use this experimental JUSTC demo website:' "\A "
33
'1. Click the "Initialize" button and wait until an alert appears saying "Initialized.", Accept it.' "\A "
44
'2. Type JUSTC code into the Monaco Editor window (if there is no Monaco Editor window, skip this step - you\'ll be prompted to enter the code)' "\A "
5-
'3. Click "Execute" button to run the code. You can also click "Parse" button instead to run without executing, or "Parser" or "Lexer" to only run the parser or lexer.' "\A\A";
5+
'3. Click "Execute" button to run the code. You can also click "Parse" button instead to run without executing, or "Parser" or "Lexer" to only run the parser or lexer.' "\A\A"
6+
7+
'The basics of JUSTC language:' "\A "
8+
'- Everything is "commands" or "expressions", separated by either comma (",") or semicolon (";") or even nothing (use what you want).' "\A "
9+
'- The JUSTC code could be an object, an array, or a JSON object:' "\A "
10+
'* Object: nothing special, but the code should end with ".".' "\A "
11+
'* Array: works just like JSON array, the code should start with "[" and end with "]".' "\A "
12+
'* JSON Object: the name says everything. the code should start with "{" and end with "}".' "\A "
13+
'- Defining variables is simple: just type variable name, then "=" or "is" or "-" or ":" or nothing (whatever you want), then value.' "\A "
14+
'And you can also declare variable type by adding ":" right after variable name and then a type name (number/string/link/binary/hex/octal/data/array/object/...).' "\A "
15+
'Note: type declaration actually affects variable type or may throw error in some cases.' "\A "
16+
'- There is also some other operators and keywords to define variables, like "isn\'t" and "!=". (and conditions! "isif", "then", "else", and more)' "\A "
17+
'- Types:' "\A "
18+
'* String: either single/double -quoted or single identifier that does not match name of any defined variable.' "\A "
19+
'* Number: any numbers, there is no int or float or double - they all are numbers. Also, if not in Object/JSON Object/Array, you can use "," intead of ".": 0,123 = 0.123.' "\A "
20+
'* Boolean: true or false.' "\A "
21+
'true: "true", "yes", "y".' "\A "
22+
'false: "false", "no", "n".' "\A "
23+
'* Null: "null", "nil"' "\A "
24+
'* Objects, Arrays: same with when the entire code is JSON object or array (use [] for arrays and {} for objects).' "\A "
25+
'* Links: similar to strings but for URLs. put "<" and ">" instead of quotes (example: <https://just.js.org/>).' "\A "
26+
'- You can also define variables by executing JavaScript or Luau:' "\A "
27+
'To embed JavaScript, use "{{" (open) and "}}" (close).' "\A "
28+
'To embed Luau, use "<<" (open) and ">>" (close).' "\A "
29+
'Yes, it will work in node.js and browsers. Yes, that means you can make websites on Luau now.' "\A "
30+
'Example: "luautest = <<return 67>>, jstest = {{console.log(\'hi\');}}."' "\A "
31+
'- Some important commands:' "\A "
32+
'* output everything - outputs every defined variable' "\A "
33+
'* output specified - outputs defined variables from return command' "\A "
34+
'* output disabled - nothing' "\A "
35+
'* return [] - (after output specified) outputs every variable in array' "\A "
36+
'* return [] as [] - (after output specified) outputs every variable in array but renames them to identifiers/strings/numbers in array after "as"' "\A "
37+
'* allow JavaScript - allows JavaScript' "\A "
38+
'* disallow JavaScript - disallows JavaScript' "\A "
39+
'* allow Luau - allows Luau' "\A "
40+
'* disallow Luau - disallows Luau' "\A "
41+
'- Built-ins:' "\A "
42+
'* value() - returns value of variable by name' "\A "
43+
'* HTTP::GET() - sends http request and returns the response' "\A "
44+
'there is also so many Math:: functions, see core/built-in/math/math.hpp' "\A "
45+
'- More operators and keywords:' "\A "
46+
'* plus: "+"' "\A "
47+
'* minus: "-"' "\A "
48+
'* times: "*"' "\A "
49+
'* divide: "/", ":"' "\A "
50+
'* power: "**"' "\A "
51+
'* modulo: "%"' "\A "
52+
'* concatenate: ".."' "\A "
53+
'* logical not: "!"' "\A "
54+
'* logical and: "&&", "and"' "\A "
55+
'* logical nand: "!&", "nand", "andn\'t"' "\A "
56+
'* logical or: "||", "or"' "\A "
57+
'* logical nor: "!|", "nor", "orn\'t"' "\A "
58+
'* logical xor: "xor"' "\A "
59+
'* logical xnor: "xnor"' "\A "
60+
'* logical imply: "imply"' "\A "
61+
'* logical nimply: "nimply"' "\A "
62+
'* bitwise not: "~", "NOT"' "\A "
63+
'* bitwise and: "&", "AND"' "\A "
64+
'* bitwise or: "|", "OR"' "\A "
65+
'* bitwise xor: "^", "XOR"' "\A "
66+
'* bitwise left shift: "<<"' "\A "
67+
'* bitwise right shift: ">>"' "\A ";
668
white-space: pre-wrap;
769
font-family: monospace;
870
}

0 commit comments

Comments
 (0)