The definition and general characteristics of programming language

Source: Internet
Author: User

1. Definition of program language

 The programming language is a notation System. There are two characteristics of the marking system:

Grammar: a set of rules of a language used to form and generate programs

Semantics: the meaning of a language used to denote the logical relationship of a program

2. Some syntax-related definitions

  Alphabet: a non-empty finite set of elements, recorded as ∑. For Example: ∑={a,b}

Symbols: elements in an alphabet are called symbols

Symbol string: A poor sequence of symbols, for example: a,aa,aaa,ac,aaccc,.., symbol string without any symbols is called an empty symbol string and is recorded as ε

Symbol string Length: the number of symbols in the symbol string, if there is x=sss, then the length of X is |x|=3,|ε|=;

Symbolic string connection: If x, y is defined on the ∑ of the symbol string, it is called xy x and y connection, xy is also ∑ on the symbol string, εx=x=xε;

Positive closures for the collection of symbolic strings: a+=a1∪a2∪a3∪ ... ∪an ...

Reflexive closure of a collection of symbolic strings: a*={ε}∪a+

  

The definition and general characteristics of programming language

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.