json-as
Version:
The only JSON library you'll need for AssemblyScript. SIMD enabled
77 lines (75 loc) • 2.86 kB
text/typescript
// Characters
// @ts-ignore = Decorator is valid here
export const COMMA = 44;
// @ts-ignore = Decorator is valid here
export const QUOTE = 34;
// @ts-ignore = Decorator is valid here
export const BACK_SLASH = 92;
// @ts-ignore: Decorator is valid here
export const FWD_SLASH = 47;
// @ts-ignore: Decorator is valid here
export const BRACE_LEFT = 123;
// @ts-ignore: Decorator is valid here
export const BRACE_RIGHT = 125;
// @ts-ignore: Decorator is valid here
export const BRACKET_LEFT = 91;
// @ts-ignore: Decorator is valid here
export const BRACKET_RIGHT = 93;
// @ts-ignore: Decorator is valid here
export const COLON = 58;
// @ts-ignore: Decorator is valid here
export const CHAR_T = 116;
// @ts-ignore: Decorator is valid here
export const CHAR_R = 114;
// @ts-ignore: Decorator is valid here
export const CHAR_U = 117;
// @ts-ignore: Decorator is valid here
export const CHAR_E = 101;
// @ts-ignore: Decorator is valid here
export const CHAR_F = 102;
// @ts-ignore: Decorator is valid here
export const CHAR_A = 97;
// @ts-ignore: Decorator is valid here
export const CHAR_L = 108;
// @ts-ignore: Decorator is valid here
export const CHAR_S = 115;
// @ts-ignore = Decorator is valid here
export const CHAR_N = 110;
// @ts-ignore = Decorator is valid here
export const CHAR_B = 98;
// Strings
// @ts-ignore: Decorator is valid here
export const TRUE_WORD = "true";
// @ts-ignore: Decorator is valid here
export const FALSE_WORD = "false";
// @ts-ignore: Decorator is valid here
export const NULL_WORD = "null";
// @ts-ignore: Decorator is valid here
export const BRACE_LEFT_WORD = "{";
// @ts-ignore: Decorator is valid here
export const BRACKET_LEFT_WORD = "[";
// @ts-ignore: Decorator is valid here
export const EMPTY_BRACKET_WORD = "[]";
// @ts-ignore: Decorator is valid here
export const COLON_WORD = ":";
// @ts-ignore: Decorator is valid here
export const COMMA_WORD = ",";
// @ts-ignore: Decorator is valid here
export const BRACE_RIGHT_WORD = "}";
// @ts-ignore: Decorator is valid here
export const BRACKET_RIGHT_WORD = "]";
// @ts-ignore: Decorator is valid here
export const QUOTE_WORD = '"';
// @ts-ignore: Decorator is valid here
export const EMPTY_QUOTE_WORD = '""';
// Escape Codes
// @ts-ignore: Decorator is valid here
export const BACKSPACE = 8; // \b
// @ts-ignore: Decorator is valid here
export const TAB = 9; // \t
// @ts-ignore: Decorator is valid here
export const NEW_LINE = 10; // \n
// @ts-ignore: Decorator is valid here
export const FORM_FEED = 12; // \f
// @ts-ignore: Decorator is valid here
export const CARRIAGE_RETURN = 13; // \r