// 0[bB][01]+n?
0b100110100000110011110010010
# 0[bB](?:_?[01])+
# 0b[01]+(_[01]+)*
// 0b[01_]+
-- 0[bB]_*[01](_*[01])*
# 0b[01]+
# 0b[01]+((_[01]+)+)?
% 0b[01]+
-- b'[01]+'
// 0[Bb][01_]+
// 0[bB][01][01_]*[uU]?[yslLn]?
// 0[bB][01]+
-- B"[01_]+"
// ([0-9]+)|(\'b)[01]+
-- 0[bB][01]+
0b110011
// \$([01]{4})(_[01]{4})+
// ([1-9][_0-9]*)?\s*\'[sS]?[bB]\s*[xXzZ?01][_xXzZ?01]*
// 0[Bb][01_]+([tTsSiIlLvV]|ll|LL|([iIuU])(8|16|32|64))?
/ [01]+b
// [01]+b
' \%[10]+
0b0001010101
|| num = 0b010101
`2_101` would evaluate as a binary number.
Languages with Binary Literals include JavaScript, Python, Java, Perl, Swift, Haskell, Elixir, Julia, Prolog, Zig, Reason, MySQL, D, OCaml, F#, Coq, Chapel, VHDL, F*, Verilog, Eiffel, Opa, C3, Futhark, Ceylon, SystemVerilog, NumPy, Felix, AspectJ, K, ooc, Isabelle, Logtalk, BlitzMax, Whiley, Monkey, BlitzBasic, Earl Grey, Croc, Jule, FloScript, MiniD, Savi, Speedie, parasail, Aardvark, nimrod, CBOR data definition language
Languages without Binary Literals include progsbase
View all concepts with or missing a hasBinaryNumbers measurement
Read more about Binary Literals on the web: 1.