You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 20, 2026. It is now read-only.
Copy file name to clipboardExpand all lines: docs/SPECIFICATION.html
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -75,7 +75,7 @@
75
75
76
76
Keywords: Thelanguage's reserved keywords (for example, `IF`, `WHILE`, `FUNC`, etc.) are matched by the lexer exactly as listed in this specification and are case-sensitive. Programs must use the keywords in their canonical uppercase form; otherwise the token will be recognized as an identifier. Built-in operator names such as `INPUT`, `PRINT`, and `IMPORT` follow the same case-sensitive matching rules.
77
77
78
-
Line continuation: Thecharacter`^`servesasaline-continuationmarker.Whenacaret`^`appearsinthesourceandisfollowedimmediatelybyanewline,boththe`^`andthenewlineareignoredbythelexer(thatis,thelogicallinecontinuesonthenextphysicalline).Ifa`^`ispresentinastring,itdoesnotcountasalinecontinuation.Ifacaretappearsandisnotimmediatelyfollowedbyanewline(ortheplatform's single-character newline sequence), the lexer must raise a syntax error.
78
+
Line continuation: Thecharacter`^`servesasaline-continuationmarker.Whenacaret`^`appearsinthesourceandisfollowedimmediatelybyanewline,boththe`^`andthenewlineareignoredbythelexer(thatis,thelogicallinecontinuesonthenextphysicalline).Thelexeralsoacceptsacaretimmediatelybeforeacodenote(acommentbeginningwith`#`);inthiscasethe`^`,thecommenttextuptothelineterminator,andtheterminatingnewlinearetreatedasiftheywerenotpresent.Ifa`^`ispresentinastring,itdoesnotcountasalinecontinuation.Ifacaretappearsandisnotimmediatelyfollowedbyanewline,acodenote,ortheplatform's single-character newline sequence, the lexer must raise a syntax error.
-`TNS(STR: string):TNS`—Convertsa`STR`intoa1-D`TNS`of `STR` characters. Each element of the resulting tensor is a `STR` containing a single character from the input string. For example, `TNS("foo")` yields `["f","o","o"]`.
- Backward-compatible two-argument form: when called as `CONV(x,kernel)` the operator performs the original N-dimensional discrete convolution and returns a tensor with the same shape as `x`. Requirements and semantics from the original behavior remain unchanged: `kernel` must have the same rank as `x`, every kernel dimension length must be odd (so the kernel has a well-defined center), boundary sampling is clamped to the nearest valid index (replicate padding), and tensor element types must be uniformly `INT` or uniformly `FLT` within each tensor. If both tensors are `INT` the output is `INT`, otherwise the output is `FLT`.
0 commit comments