presentations/highlight-js/test/markup/reasonml/literals.txt

41 lines
646 B
Text
Raw Normal View History

2018-12-07 08:48:05 -06:00
let i = 14;
let i = (-14);
let i = 1000;
let i = 0b100;
let i = 0x1FF;
let i = 0o777;
let i64 = 128L;
let i64 = 0b10L;
let i32 = 32l;
let i32 = 0x12l;
let nat = 10n;
let nat = 0o644n;
let f = 5.;
let f = 5.1;
let f = 1e+1;
let f = 1e1;
let f = 1e-1;
let f = 1024e12;
let f = 1L;
let f = 23.0 +. 1.0;
let f = 2 / 23 * 1;
let f = 2.0 /. 23.0 *. 1.0;
let exp = 2.0 ** 2.0;
let structual = true == false;
let reference = true === false;
let b = true || false;
let l = [];
let a = [||];
let arr = [|1, 2, 3|];
let b = [item1, item2, ...theRest];
let () = ignore(b);
let str = "a" ++ "b";
let c = 'a';
let c = '\xFF';
let c = '\128';
let c = '\n';