encyclopegia.org

abstract syntax

In computer science, the abstract syntax of data is its structure described as a data type (possibly, but not necessarily, an abstract data type), independent of any particular representation or encoding. This is particularly used in the representation of text in computer languages, which are generally stored in a tree structure as an abstract syntax tree. Abstract syntax, which only consists of the structure of data, is contrasted with concrete syntax, which also includes information about the representation. For example, concrete syntax includes features like parentheses (for grouping) or commas (for lists), which are not included in the abstract syntax, as they are implicit in the structure. Abstract syntaxes are classified as first-order abstract syntax (FOAS), if the structure is abstract but names (identifiers) are still concrete (and thus requires name resolution), and higher-order abstract syntax, if the names themselves are abstract.

In computer science, the abstract syntax of data is its structure described as a data type (possibly, but not necessarily, an abstract data type), independent of any particular representation or encoding. This is particularly used in the representation of text in computer languages, which are generally stored in a tree structure as an abstract syntax tree. Abstract syntax, which only consists of the structure of data, is contrasted with concrete syntax, which also includes information about the representation. For example, concrete syntax includes features like parentheses (for grouping) or commas (for lists), which are not included in the abstract syntax, as they are implicit in the structure. Abstract syntaxes are classified as first-order abstract syntax (FOAS), if the structure is abstract but names (identifiers) are still concrete (and thus requires name resolution), and higher-order abstract syntax, if the names themselves are abstract. ==Uses== To be implemented either for computation or communications, a mapping from the abstract syntax to specific machine representations and encodings must be defined; these may be called the "concrete syntax" (in language implementation) or the "transfer syntax" (in communications). A compiler's internal representation of a program will typically be specified by an abstract syntax in terms of categories such as "statement", "expression" and "identifier". This is independent of the source syntax (concrete syntax) of the language being compiled (though it will often be very similar). A parse tree is similar to an abstract syntax tree but it will typically also contain features such as parentheses, which are syntactically significant but which are implicit in the structure of the abstract syntax tree. Algebraic data types are particularly well-suited to the implementation of abstract syntax. ==See also== Higher-order abstract syntax Abstract Syntax Notation One ==References==

References

  1. abstract syntax · retrieved 2026-11-23 · rev 1312764787
    Cite this reference

    MLA "abstract syntax." 2026-11-23. https://en.wikipedia.org/w/index.php?oldid=1312764787. Accessed 25 November 2026.

    Chicago "abstract syntax." 2026-11-23. https://en.wikipedia.org/w/index.php?oldid=1312764787.

    APA encyclopegia.org. (2026). abstract syntax. Retrieved November 25, 2026, from https://en.wikipedia.org/w/index.php?oldid=1312764787

Cite this article

MLA

"abstract syntax." encyclopegia.org, 2025, https://encyclopegia.org/wiki/abstract-syntax. Accessed 25 November 2026.

Chicago

"abstract syntax." encyclopegia.org. Accessed November 25, 2026. https://encyclopegia.org/wiki/abstract-syntax.

APA

encyclopegia.org. (2025). abstract syntax. Retrieved November 25, 2026, from https://encyclopegia.org/wiki/abstract-syntax

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

Related articles

abstract

stub · references available

abstract interpretation

stub · references available

abstract factory pattern

stub · references available

abstract state machine

stub · references available

American Abstract Artists

stub · references available

syntax highlighting

stub · references available

syntax

stub · references available

syntax error

stub · references available
CC BY-SA 4.0 · tier1-factual · https://en.wikipedia.org/w/index.php?oldid=1312764787 · 0.55 · snapshot abstract-syntax-038839-d26c4bee8b4a439e · QID Q333373

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

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