Статьи
Abstract
This article discusses the ways of defining artificial languages, indicates
the syntax and semantics of the language. So, grammar is a description of a way of
constructing sentences of a language. In other words, grammar is the mathematical system
that defines language. Language syntax is a set of rules that define the allowed constructs of
a language. Syntax defines the "form of the language" - defines the set of character strings
that belong to the language. Since programming languages are not purely formal languages
and carry some meaning (semantics), the problem of parsing for creating real compilers are
understood somewhat broader than it is formulated for purely formal languages.