PLDB
Languages Features Creators Calendar CSV Resources Blog About Donate Add Language
GitHub icon

Binary Literals

< >
Example from Java, AspectJ, Pizza, Deesel:
// 0[bB][01][01_]*[lL]?
// 0[bB][01]+n? 0b100110100000110011110010010
Example from Python, Cython:
# 0[bB](?:_?[01])+
Example from Perl:
# 0b[01]+(_[01]+)*
Example from MySQL:
-- b'[01]+'
Example from Swift:
// 0b[01_]+
Example from Haskell:
-- 0[bB]_*[01](_*[01])*
Example from Prolog, CLPR, GAEA, Progol:
% 0b[01]+
Example from Elixir:
# 0b[01]+
Example from Julia:
# 0b[01]+((_[01]+)+)?
Example from Verilog:
// ([0-9]+)|(\'b)[01]+
Example from Reason, MiniD, Croc:
// 0[bB][01][01_]*
Example from F#:
// 0[bB][01][01_]*[uU]?[yslLn]?
Example from Eiffel:
-- 0[bB][01]+
Example from D:
// 0[Bb][01_]+
Example from VHDL:
-- B"[01_]+"
Example from Chapel:
// 0[bB][01]+
Example from Monkey:
' \%[10]+
Example from Ceylon:
// \$([01]{4})(_[01]{4})+
Example from SystemVerilog:
// ([1-9][_0-9]*)?\s*\'[sS]?[bB]\s*[xXzZ?01][_xXzZ?01]*
Example from C3:
0b110011
Example from K:
/ [01]+b
Example from Felix:
// 0[Bb][01_]+([tTsSiIlLvV]|ll|LL|([iIuU])(8|16|32|64))?
Example from Jule:
0b0001010101
Example from Whiley:
// [01]+b

Languages with Binary Literals include Java, JavaScript, Python, Perl, MySQL, Swift, Haskell, TypeScript, Prolog, Elixir, Julia, Verilog, Reason, F#, OCaml, Eiffel, D, VHDL, Chapel, Monkey, BlitzBasic, Coq, Zig, Ceylon, F*, SystemVerilog, Opa, Cython, Isabelle, MiniD, C3, AspectJ, Croc, K, Felix, Futhark, Jule, Pizza, BlitzMax, ooc, Whiley, Logtalk, Earl Grey, parasail, FloScript, CLPR, nimrod, Savi, CBOR data definition language, Deesel, GAEA, Static Typescript, Progol

Languages without Binary Literals include progsbase

Read more about Binary Literals on the web: 1.

HTML of this page generated by Features.ts

hasAsyncAwait.html 路 hasBinaryNumbers.html 路 hasBinaryOperators.html

View source

PLDB - Build the next great programming language Search v2023 Day 157 Docs Acknowledgements Traffic Today Traffic Trends Mirrors GitHub feedback@pldb.com