/** * What a character is, in the alphabet language.md 3.1 allows outside a string * literal: ASCII letters, ASCII digits, space, newline and the punctuation of * 3.12. Anything else is OS1001, so a classifier that answered questions about * a wider alphabet would be answering a question the language never asks. * * Every predicate takes a code unit rather than a string. The scanner asks * about each character of the file in turn, and a one character string per * question is an allocation per character of every compile. */ export declare const LINE_FEED = 10; export declare const SPACE = 32; export declare const TAB = 9; export declare const QUOTE = 34; export declare const APOSTROPHE = 39; export declare const HASH = 35; export declare const DOT = 46; export declare const SLASH = 47; export declare const ASTERISK = 42; export declare const BACKSLASH = 92; export declare const SEMICOLON = 59; export declare const UNDERSCORE = 95; export declare function isDigit(code: number): boolean; export declare function isHexDigit(code: number): boolean; export declare function isAsciiLetter(code: number): boolean; /** An identifier begins with an ASCII letter or an underscore (3.3). */ export declare function isNameStart(code: number): boolean; export declare function isNamePart(code: number): boolean; /** * Horizontal whitespace. * * A tab is included although the language accepts none: it is recognised here * so that it can be reported where it sits, as OS1002 in leading whitespace and * as OS1001 anywhere else, rather than ending a token and confusing the next * one. */ export declare function isBlank(code: number): boolean; //# sourceMappingURL=characters.d.ts.map