For faster navigation, this Iframe is preloading the Wikiwand page for BCPL.

BCPL

Basic Combined Programming Language
Paradigma imperatief
Verschenen 1967
Ontworpen door Martin Richards
Typesysteem geen
Beïnvloed door CPL
Invloed op B, C
Website http://www.cl.cam.ac.uk/~mr10/BCPL.html
Portaal  Portaalicoon   Informatica

BCPL (Basic Combined Programming Language) is een programmeertaal voor computers, ontwikkeld door Martin Richards van de Universiteit van Cambridge. Oorspronkelijk was ze bedoeld als programmeertaal voor compilers van andere programmeertalen. Al wordt ze tegenwoordig niet vaak meer gebruikt, ze was zeer invloedrijk, omdat Dennis Ritchie deze taal indirect gebruikte als basis voor de tegenwoordig veelgebruikte programmeertaal C.

BCPL is ontwikkeld vanwege problemen met haar voorloper CPL, die ontstaan was in de vroege jaren 60. Martin Richards ontwikkelde als reactie BCPL door het verwijderen van eigenschappen uit de taal die compilatie moeilijk maakten. De eerste implementatie, voor de IBM 7094, werd geschreven toen Richards het Project MAC bezocht aan de MIT in de lente van 1967. De taal werd eerst beschreven in een verspreide publicatie tijdens de Spring Joint Computer Conference in 1969.

BCPL valt op doordat er geen typen zijn, waardoor bij ieder gebruik van een identifier moet worden aangegeven wat de bedoeling is, en er geen controle is op verkeerd gebruik. Het is bijvoorbeeld geoorloofd (maar niet erg zinvol) om het adres van een variabele te vermenigvuldigen met het adres van een functie.

Enkele voorbeelden van de syntaxis:

A:=!B B is een adres. Sla de waarde op adres B op in A,
C!4:=!(B+3)
of liever
C!4:=B!3
B en C zijn het beginadres van arrays. Kopieer element 3 van array B naar element 4 van array C,
A:=D(5) D is het adres van een subroutine. Roep subroutine D op met parameter 5,
A:=D!(5) D is het beginadres van een array. Tel 5 op bij D en sla de inhoud van dat adres op in A,

In BCPL is het meestal niet nodig een puntkomma te schrijven tussen statements die op aparte regels staan.

{{bottomLinkPreText}} {{bottomLinkText}}
BCPL
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?