" {p Useful as a placeholder where values are irrelevant}}"
]
openDoc=unlines[
"{section {title Open File}",
"{p {em Usage:} open name \\{file: ...\\}}",
"{p Opens a file and passes the file descriptor to the continuation in the second argument}}"
]
readDoc=unlines[
"{section {title Read From File}",
"{p {em Usage:} read file n \\{str: ...\\}}",
"{p Reads a number of bytes from the given file and passes the resulting string to the continuation.}}"
]
writeDoc=unlines[
"{section {title Write To File}",
"{p {em Usage:} write file str}",
"{p Writes the given bytes to the given file.}}"
]
closeDoc=unlines[
"{section {title Close File}",
"{p {em Usage:} close file}",
"{p Closes a file.}}"
]
stdoutDoc=unlines[
"{section {title The Standard Output Descriptor}",
" {p You can pass this to the 'write' function to",
" print a message to the screen}}"
]
stdinDoc=unlines[
"{section {title The Standard Input Descriptor}",
" {p You can pass this to the 'read' function to",
" retrieve user-written text.}}"
]
addIntDoc=unlines[
"{section {title AddIntegers}",
"{p {em Usage:} addInt a b}",
"{p Adds two integers.}}"
]
subIntDoc=unlines[
"{section {title Subtract Integers}",
"{p {em Usage:} subInt a b}",
"{p Subtracts two integers.}}"
]
mulIntDoc=unlines[
"{section {title Multiply Integers}",
"{p {em Usage:} mulInt a b}",
"{p Multiplies two integers.}}"
]
divIntDoc=unlines[
"{section {title Divide Integers}",
"{p {em Usage:} divInt a b}",
"{p Divides two integers.}}"
]
cmpInt_ltDoc=unlines[
"{section {title Compare Integers (lower than)}",
"{p {em Usage:} cmpInt n m x y}",
"{p Returns x when n<m, and y otherwise.}}"
]
cmpInt_eqDoc=unlines[
"{section {title Compare Integers (equality)}",
"{p {em Usage:} cmpInt n m x y}",
"{p Returns x when n=m, and y otherwise.}}"
]
addStringDoc=unlines[
"{section {title AddStrings}",
"{p {em Usage:} addString a b}",
"{p Adds two strings.}}"
]
stringLengthDoc=unlines[
"{section {title StringLength}",
"{p {em Usage:} stringLength s}",
"{p Gets the length of a string.}}"
]
showIntDoc="{section {title Show Number} Produces a string representation of its argument}"
mkArrayDoc="{section {title Make Array} {p Usage: mkArray n {i: ...}} {p Creates an array of size n, populated by callingthe given function on every index from 0 to n-1}}"
arrayLengthDoc="{section {title Get Array Length} {p Gets the length of an array.}}"
arrayAtDoc="{section {title Get Array Element} {p Usage: arrayAt arr i} {p Gets the element at index i in the array arr}}"
arraySetDoc="{section {title Set Array Element} {p Usage: arraySet arr i x k} {p Sets the element at index i, then evaluate k}}"
mkSyntaxNodeDoc=""
mkSyntaxSymDoc=""
mkSyntaxExprDoc=""
syntaxIndDoc=""
mkExprLambdaDoc=""
mkExprApplyDoc=""
mkExprSymDoc=""
exprIndDoc=""
whereseqDoc=unlines[
"{section {title Sequence Expressions}",
"{p {em Usage:} seq x y}",
" {p Evaluates its two arguments in order.}}"
]
unitDoc=unlines[
"{section {title The Unit value}",
"{p Useful as a placeholder where values are irrelevant}}"
]
openDoc=unlines[
"{section {title Open File}",
"{p {em Usage:} open name \\{file: ...\\}}",
"{p Opens a file and passes the file descriptor to the continuation in the second argument}}"
]
readDoc=unlines[
"{section {title Read From File}",
"{p {em Usage:} read file n \\{str: ...\\}}",
"{p Reads a number of bytes from the given file and passes the resulting string to the continuation.}}"
]
writeDoc=unlines[
"{section {title Write To File}",
"{p {em Usage:} write file str}",
"{p Writes the given bytes to the given file.}}"
]
closeDoc=unlines[
"{section {title Close File}",
"{p {em Usage:} close file}",
"{p Closes a file.}}"
]
stdoutDoc=unlines[
"{section {title The Standard Output Descriptor}",
"{p You can pass this to the 'write' function to",
" print a message to the screen}}"
]
stdinDoc=unlines[
"{section {title The Standard Input Descriptor}",
"{p You can pass this to the 'read' function to",
" retrieve user-written text.}}"
]
addIntDoc=unlines[
"{section {title AddIntegers}",
"{p {em Usage:} addInt a b}",
"{p Adds two integers.}}"
]
subIntDoc=unlines[
"{section {title Subtract Integers}",
"{p {em Usage:} subInt a b}",
"{p Subtracts two integers.}}"
]
mulIntDoc=unlines[
"{section {title Multiply Integers}",
"{p {em Usage:} mulInt a b}",
"{p Multiplies two integers.}}"
]
divIntDoc=unlines[
"{section {title Divide Integers}",
"{p {em Usage:} divInt a b}",
"{p Divides two integers.}}"
]
cmpInt_ltDoc=unlines[
"{section {title Compare Integers (lower than)}",
"{p {em Usage:} cmpInt n m x y}",
"{p Returns x when n<m, and y otherwise.}}"
]
cmpInt_eqDoc=unlines[
"{section {title Compare Integers (equality)}",
"{p {em Usage:} cmpInt n m x y}",
"{p Returns x when n=m, and y otherwise.}}"
]
addStringDoc=unlines[
"{section {title AddStrings}",
"{p {em Usage:} addString a b}",
"{p Adds two strings.}}"
]
stringLengthDoc=unlines[
"{section {title StringLength}",
"{p {em Usage:} stringLength s}",
"{p Gets the length of a string.}}"
]
showIntDoc="{section {title Show Number} Produces a string representation of its argument}"
mkArrayDoc="{section {title Make Array} {p Usage: mkArray n {i: ...}} {p Creates an array of size n, populated by calling the given function on every index from 0 to n-1}}"
arrayLengthDoc="{section {title Get Array Length} {p Gets the length of an array.}}"
arrayAtDoc="{section {title Get Array Element} {p Usage: arrayAt arr i} {p Gets the element at index i in the array arr}}"
arraySetDoc="{section {title Set Array Element} {p Usage: arraySet arr i x k} {p Sets the element at index i, then evaluate k}}"