Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

B

< >

B is a programming language created in 1969 by Ken Thompson and Dennis Ritchie.

#453on PLDB 55Years Old
Wikipedia

B is a programming language developed at Bell Labs circa 1969. It is the work of Ken Thompson with Dennis Ritchie. B was derived from BCPL, and its name may be a contraction of BCPL. Read more on Wikipedia...


Example from hello-world:
main() { putchar ('Hell'); putchar ('o Wo'); putchar ('rld'); putchar ('*n'); }
Example from Wikipedia:
/* The following function will print a non-negative number, n, to the base b, where 2<=b<=10. This routine uses the fact that in the ASCII character set, the digits 0 to 9 have sequential code values. */ printn(n, b) { extrn putchar; auto a; if (a = n / b) /* assignment, not test for equality */ printn(a, b); /* recursive */ putchar(n % b + '0'); }

Language features

Feature Supported Example Token
Comments ✓ /* A comment */
MultiLine Comments ✓ /* A comment */ /* */
Print() Debugging ✓ putchar
Semantic Indentation X

- Build the next great programming language · Add · Issues · About · Search · Keywords · Livestreams · Labs · Resources · Acknowledgements

Built with Scroll v154.2.0