encyclopegia.org

CGOL

CGOL (pronounced "see goll") is an alternative syntax featuring an extensible algebraic notation for the Lisp programming language.[src] It was designed for MACLISP by Vaughan Pratt and subsequently ported to Common Lisp.[src] The notation of CGOL is a traditional infix notation, in the style of ALGOL, rather than Lisp's traditional, uniformly-parenthesized prefix notation syntax.[src] The CGOL parser is based on Pratt's design for top-down operator precedence parsing, sometimes informally referred to as a "Pratt parser".[src] Semantically, CGOL is essentially just Common Lisp, with some additional reader and printer support.[src] CGOL may be regarded as a more successful incarnation of some of the essential ideas behind the earlier LISP 2 project.[src] Lisp 2 was a successor to LISP 1.5 that aimed to provide ALGOL syntax.[src] LISP 2 was abandoned, whereas it is possible to use the CGOL codebase today.[src] This is because unlike LISP 2, CGOL is implemented as portable functions and macros written in Lisp, requiring no alterations to the host Lisp implementation.[src]

CGOL (pronounced "see goll") is an alternative syntax featuring an extensible algebraic notation for the Lisp programming language.[src] It was designed for MACLISP by Vaughan Pratt and subsequently ported to Common Lisp.[src] The notation of CGOL is a traditional infix notation, in the style of ALGOL, rather than Lisp's traditional, uniformly-parenthesized prefix notation syntax.[src] The CGOL parser is based on Pratt's design for top-down operator precedence parsing, sometimes informally referred to as a "Pratt parser".[src] Semantically, CGOL is essentially just Common Lisp, with some additional reader and printer support.[src] CGOL may be regarded as a more successful incarnation of some of the essential ideas behind the earlier LISP 2 project.[src] Lisp 2 was a successor to LISP 1.5 that aimed to provide ALGOL syntax.[src] LISP 2 was abandoned, whereas it is possible to use the CGOL codebase today.[src] This is because unlike LISP 2, CGOL is implemented as portable functions and macros written in Lisp, requiring no alterations to the host Lisp implementation.[src] ==Syntax== Special notations are available for many commonly used Common Lisp operations.[src] For example, one can write a matrix multiply routine as: CGOL has an infix .[src] operation (referring to Common Lisp's cons function) and the infix @ operation (referring to Common Lisp's append function): a.(b@c) = (a.b)@c The preceding example corresponds to this text in native Common Lisp: (EQUAL (CONS A (APPEND B C)) (APPEND (CONS A B) C)) CGOL uses of to read and set properties: The preceding example corresponds to this text in native Common Lisp: (PUTPROP X (GET (GET Y RELATIVE) 'BROTHER) 'FATHER) This illustrates how CGOL notates a function of two arguments: \x,y; 1/sqrt(x**2 + y**2) The preceding example corresponds to this text in native Common Lisp: (LAMBDA (X Y) (QUOTIENT 1 (SQRT (PLUS (EXPT X 2) (EXPT Y 2))))) The syntax of CGOL is data-driven and so both modifiable and extensible.[src]

21 sentences · 21 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"CGOL." encyclopegia.org, 2025, https://encyclopegia.org/wiki/cgol. Accessed 30 November 2026.

Chicago

"CGOL." encyclopegia.org. Accessed November 30, 2026. https://encyclopegia.org/wiki/cgol.

APA

encyclopegia.org. (2025). CGOL. Retrieved November 30, 2026, from https://encyclopegia.org/wiki/cgol

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

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1328340098 · 0.5 · snapshot enwiki-001328340098

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.