| Syntax (logic) |
Article Index for Syntax |
Website Links For Syntax |
Information AboutSyntax (logic) |
|
In Computer Science , the term '' Syntax '' is used to denote the ''literal text'' of something written in a Formal Language or Programming Language , as opposed to its Semantics or meaning. The analysis of programming language syntax usually entails the transformation of a linear sequence of ''tokens'' (a token is akin to an individual word or punctuation mark in a natural language) into a hierarchical ''syntax tree'' ( Abstract Syntax Tree s are one convenient form of syntax tree). This process, called ''parsing'', is in some respects analogous to syntactic analysis in linguistics; in fact, certain concepts, such as the Chomsky Hierarchy and Context-free Grammar s, are common to the study of syntax in both linguistics and computer science. However, the applications of these concepts vary widely between the two fields, and the practical resemblances are small. See also; Mathematics . |
|
|