docs(book): reference syntax #634
Loading…
Reference in a new issue
No description provided.
Delete branch "docs/609-reference-syntax"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #609
Adds
book/reference/syntax.md(kindpage, stable): comments, where a statement ends, tokens, reserved and contextual words, members named after keywords, the naming rules with every naming error, integer, decimal and character literals, doc comments, and how<is read as type arguments or as a comparison. 58trb run/trb errorblocks, each followed by its realoutput(nightly torb; error blocks start aterror:).book/reference/index.mdis regenerated.Where the compiler disagrees with the old pages, the page follows the compiler: the keyword list adds
static,elseandloop; a line starting with-,<,>or|does not continue the previous one;0XFFand0o17are not literals.Checks run locally:
torb docs index --check book,torb docs skill docs skills --checkandtorb docs site book --checkpass.torb docs check bookdoes not run on this host (glibc), so CI decides that one.Old pages kept in
docs/, unpublished:docs/language/syntax/{index,lexical-structure,literals,naming,doc-comments,generics-or-comparison}.md. Thetorbscript-languageskill carries the wholelanguage/tree (<!-- carry: language/ ... -->), so deleting them would change the skill.cheat-sheet.md, the string pages andcommand-calls.mdstay as the issue says. Skills are unchanged by this PR.CI red on
2fba714:ci / tier A (linux-x64)(andgatesas its consequence) -docs check book: FAILED, 15 problems, all inbook/reference/syntax.md:outputof atrb errorblock is not whattorb check main.trbprints (:52 the 3rd error is at1:35, not2:1, with the source line/* outer /* inner */ still here */and the span under the end of the file; :1057const none = ''printsThis character literal is emptyat 1:14 plusExpected an expression, found the end of the fileat 1:16).printwith several-line arguments or a top-level operator must be written with parentheses.by ...,Input.Click ...,Event ...,Round ...,Present ...).Fix the page (or the compiler) and push; the next CI run brings the review back. No review on this head yet, nothing else looked at.
Checklist (head
47b4bdb):2fba714is fixed by the second commit.Non-blocking: none.