Programming Language Specification - Syntax

Syntax

The Syntax of a programming language is usually described using a combination of the following two components:

  • a regular expression describing its lexemes, and
  • a context-free grammar which describes how lexemes may be combined to form a syntactically correct program.

Read more about this topic:  Programming Language Specification