API documentation: internals
Generic utility functions
Orthography.collecttail
— Functioncollecttail(s, arr)
collecttail(s, arr, stripped)
Remove all trailing characters belong to list in arr
, and collect them. This is useful to collect punctuation from a token, for example.
Orthography.trimtail
— FunctionRemove all trailing characters belong to list in arr
, and return the trimmed string.
trimtail(s, arr)
This is useful to remove punctuation from a token, for example.
Functions supporting the SimpleAscii
implementation
Orthography.asciialphabetic
— FunctionCompose list of alphabetic characters in SimpleAscii
.
asciialphabetic()
Orthography.asciinumeric
— FunctionCompose list of numeric characters in SimpleAscii
.
asciinumeric()
Allow notation of positive or negative decimals.
Orthography.asciipunctuation
— FunctionCompose list of punctuation characters in SimpleAscii
.
asciipunctuation()
Orthography.asciiwhitespace
— FunctionCompose list of recognized whitespace characters in SimpleAscii
.
asciiwhitespace()
Orthography.asciiCPs
— FunctionDefine a string including all valid code points in the SimpleAscii
orthography.
asciiCPs()
Orthography.basicTypes
— FunctionDefine an Array with all valid TokenCategory
systems in the SimpleAscii
orthography.
basicTypes()
Orthography.splitAsciiPunctuation
— FunctionSplit off any trailing punctuation and return an Array of leading strim + trailing punctuation.
splitAsciiPunctuation(s)
Orthography.asciitokenforstring
— FunctionConstruct an OrthographicToken
from a string.
asciitokenforstring(s)
s
is a string representing a single token in the SimpleAscii
orthography.
Orthography.isAsciiAlphabetic
— FunctionTrue if all characters in s
are alphabetic.
isAsciiAlphabetic(s)
Orthography.isAsciiPunctuation
— FunctionTrue if all characters in s
are punctuation.
isAsciiPunctuation(s)
Orthography.isAsciiNumeric
— FunctionTrue if all characters in s
are numeric characters and at least one is a digits.
isAsciiNumeric(s)
Obviously not a real-world definition of syntax for a numeric token.