encyclopegia.org

Compiler Description Language

Compiler Description Language (CDL) is a programming language based on affix grammars.[src] It is very similar to Backus–Naur form (BNF) notation.[src] It was designed for the development of compilers.[src] It is very limited in its capabilities and control flow, and intentionally so.[src] The benefits of these limitations are twofold.[src] On the one hand, they make possible the sophisticated data and control flow analysis used by the CDL2 optimizers resulting in extremely efficient code.[src] The other benefit is that they foster a highly verbose naming convention.[src] This, in turn, leads to programs that are, to a great extent, self-documenting.[src] The language looks a bit like Prolog (this is not surprising since both languages arose at about the same time out of work on affix grammars).[src] However, as opposed to Prolog, control flow in CDL is deterministically based on success/failure, i.e., no other alternatives are tried when the current one succeeds.[src] This idea is also used in parsing expression grammars.[src] CDL3 is the third version of the CDL language, significantly different from the previous two versions.[src]

Compiler Description Language (CDL) is a programming language based on affix grammars.[src] It is very similar to Backus–Naur form (BNF) notation.[src] It was designed for the development of compilers.[src] It is very limited in its capabilities and control flow, and intentionally so.[src] The benefits of these limitations are twofold.[src] On the one hand, they make possible the sophisticated data and control flow analysis used by the CDL2 optimizers resulting in extremely efficient code.[src] The other benefit is that they foster a highly verbose naming convention.[src] This, in turn, leads to programs that are, to a great extent, self-documenting.[src] The language looks a bit like Prolog (this is not surprising since both languages arose at about the same time out of work on affix grammars).[src] However, as opposed to Prolog, control flow in CDL is deterministically based on success/failure, i.e., no other alternatives are tried when the current one succeeds.[src] This idea is also used in parsing expression grammars.[src] CDL3 is the third version of the CDL language, significantly different from the previous two versions.[src] ACTION quicksort + >from + >to -p -q: less+from+to, split+from+to+p+q, quicksort+from+q, quicksort+p+to; +.[src] ACTION split + >i + >j + p> + q> -m: make+p+i, make+q+j, add+i+j+m, halve+m, (again: move up+j+p+m, move down+i+q+m, (less+p+q, swap item+p+q, incr+p, decr+q, *again; less+p+m, swap item+p+m, incr+p; less+m+q, swap item+q+m, decr+q; +)).[src] FUNCTION move up + >j + >p> + >m: less+j+p; smaller item+m+p; incr+p, *.[src] FUNCTION move down + >i + >q> + >m: less+q+j; smaller item+q+m; decr+q, *.[src] TEST less+>a+>b:=a" +>b:=a"="b.[src] FUNCTION add+>a+>b+sum>:=sum"="a"+"b.[src] FUNCTION halve+>a>:=a"/=2".[src] FUNCTION incr+>a>:=a"++".[src] FUNCTION decr+>a>:=a"--".[src] TEST smaller item+>i+>j:="items["i"] i+>j-t:=t"=items["i"];items["i"]=items["j"];items["j"]="t.[src] The primitive operations are here defined in terms of Java (or C).[src] This is not a complete program; we must define the Java array items elsewhere.[src] CDL2, which appeared in 1976, kept the principles of CDL1 but made the language suitable for large projects.[src] It introduced modules, enforced data-change-only-on-success, and extended the capabilities of the language somewhat.[src] The optimizers in the CDL2 compiler and especially in the CDL2 Laboratory (an IDE for CDL2) were world-class and not just for their time.[src] One feature of the CDL2 Laboratory optimizer is almost unique: it can perform optimizations across compilation units, i.e., treating the entire program as a single compilation.[src] CDL3 is a more recent language.[src] It gave up the open-ended feature of the previous CDL versions, and it provides primitives to basic arithmetic and storage access.[src] The extremely puritan syntax of the earlier CDL versions (the number of keywords and symbols both run in single digits) has also been relaxed.[src] Some basic concepts are now expressed in syntax rather than explicit semantics.[src] In addition, data types have been introduced to the language.[src]

45 sentences · 45 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Compiler Description Language." encyclopegia.org, 2025, https://encyclopegia.org/wiki/compiler-description-language. Accessed 30 November 2026.

Chicago

"Compiler Description Language." encyclopegia.org. Accessed November 30, 2026. https://encyclopegia.org/wiki/compiler-description-language.

APA

encyclopegia.org. (2025). Compiler Description Language. Retrieved November 30, 2026, from https://encyclopegia.org/wiki/compiler-description-language

Accessed November 30, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · tier1-factual · https://en.wikipedia.org/w/index.php?oldid=1310174926 · 0.55 · snapshot compiler-description-language-587532-a51fa1ea1d639d90 · QID Q5156377

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.