📜 ⬆️ ⬇️

Localization ISO / IEC 14977: 1996 (E) (Extended BNF)

Good day.

I translated the ISO / IEC 14977: 1996 (E) Standard to work, describing Extended BNF .

Perhaps the material will be interesting to other people, so I post the result to the network for free use. The designated google-group, created to correct the current version of the translation, comments / corrections are welcome.
')
With all respect, Andrew.

The designated metalanguage is convenient for describing various kinds of grammars, for example, for:

- programming languages
- parsers
- interpreters

For example, in the book “Programming. The practice of using C ++ ”Bearne Strovstrup shows how to write grammar correctly and implement it in code using the parser of mathematical expressions as an example. The mentioned parser supports the use of the following operators: + - * /% (). In addition, it also provides the ability to create and use variables, as well as functions. Moreover, the author of the book previously shows several attempts to write such a parser, but only a variant using grammar gives the correct, reliable solution.

Properly constructed grammar allows you to write a correct, compact code that solves this kind of problem. Since the topic of parsing is interesting to me - I have translated the above standard.

Source: https://habr.com/ru/post/187074/


All Articles