Difference between revisions of "Abstract syntax"

From Wiki @ Karl Jones dot com
Jump to: navigation, search
(Created page with "In computer science, the '''abstract syntax''' of Data (computing)data is its structure described as a data type (possibly, but not necessarily, an abstract...")
 
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
In [[computer science]], the '''abstract syntax''' of [[Data (computing)data]] is its [[structure]] described as a [[data type]] (possibly, but not necessarily, an [[abstract data type]]), independent of any particular [[representation]] or [[encoding]].
+
In [[computer science]], the '''abstract syntax''' of [[Data (computing)|data]] is its [[structure]] described as a [[data type]] (possibly, but not necessarily, an [[abstract data type]]), independent of any particular [[representation]] or [[encoding]].
  
 
== Description ==
 
== Description ==
  
This is particularly used in the representation of text in [[Programming language|programming languages]], which are generally stored in a tree structure as an abstract syntax tree.
+
This is particularly used in the representation of text in [[Programming language|programming languages]], which are generally stored in a [[Tree (graph theory)|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.
 
Abstract syntax, which only consists of the structure of data, is contrasted with concrete syntax, which also includes information about the representation.
Line 18: Line 18:
  
 
* [[Abstract syntax tree]]
 
* [[Abstract syntax tree]]
 +
* [[Programming language]]
 
* [[Syntax]]
 
* [[Syntax]]
 +
* [[Tree (graph theory)]]
  
 
== External links ==  
 
== External links ==  
  
 
* [https://en.wikipedia.org/wiki/Abstract_syntax Abstract syntax] @ Wikipedia
 
* [https://en.wikipedia.org/wiki/Abstract_syntax Abstract syntax] @ Wikipedia
 +
 +
[[Category:Mathematics]]

Latest revision as of 07:59, 17 March 2016

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.

Description

This is particularly used in the representation of text in programming 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.

Example

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.

Classification

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.

See also

External links