A language that is both static and dynamically typed. Universal error handling(AKA nofail) is enabled by default, but optional feature that allows for no crashes/error code(0). This is the same as wrapping every method in try catch in other languages Name = "ex" and var Name string 2ct = "ex" (Defines a variable as only allowed to be a string and 2 characters long, will be trimmed from start if to long, use ce instead if you want it to throw an error so ```var Name string 2ce = "ex"``` with the t(trim) being replaced with e(error)) or even var Name string 2ct = "ex" | "xe" (Randomize result(50/50 chance)) logical or: || logical and: && logical xor: !| logical xand: !& logical notL !! OR ! (!! is strict aka flips no matter what, ! only works on bool) Append to existing: += Add two values together(Numeral or string/combine array): + // Global/executed once on script start defineconfig server1 allowprocessing = {"T": 10, "R": 1024} // Allowed to use a max of ten threads with 1GB of ram each defineconfig server1 onerror = {"headers": default/*STILL use globally defined default*/, contents: "Sorry for the inconvience, we've seen an error", code: 500} // or you could even define something for all servers defineconfig * headers = '{"Content-Type":"text/html"}' // Execututed for each client serve(http, 8080, headers, contents, server1, client){ // var headers string = "{"Content-Type":"text/html"}" Don't need to define per-request headers = headers += "other headers here" var headers contents = " Your IP is the @{server1.client.IP}
Your UA is @{server1.client.UA}
You're visitor @{server1.client.CNT}
escape like this \# or like this \@
or even call a function like this @{funcname(true, false, true)} - think of this like PHP's
your user number is #{server1.client.cookie."Name"}
There's also #{test = server1.client.CNT return test} - think of this like PHP's . " } server1 is the specific server(can serve from multiple ports/servers from one script) client is the variable you can use to access info on the current request you're responding to. All variables names can be changed by changing how you call it such as serve(http, 8080, hdr, cnt, s1, c) if you want shorthand. You can also do things like serve(httpg, 8080, hdr, cnt, s1, c) to serve with gzip enabled. // Eqiv. of PHP file_put_contents and file_get_contents. read(filepath) write(filepath) pl("Text") // Funtion to print line to console time() // Gets unix TS db = getdb(type, PathAndAuthIfNeed) // Open a DB connection db = fromdb(QUERY) // Query a DB hd(type, data) // Hash data, e.g. hd("sha3-256", "password123") cdh(type, data, hash) // Check a bycrypt or similar hash against a entered password