D
D
doublench212016-07-25 23:48:49
C++ / C#
doublench21, 2016-07-25 23:48:49

How to read a fragment of the C language standard?

How to read the syntax of C identifiers here?
srReiTw.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Denis Zagaevsky, 2016-07-26
@doublench21

It's some kind of Backus-Naur notation, I think. View record

X:
    A
    B
    C

Should be read as "X is A or B or C". When two definitions are in a row, it means that they follow each other. Those definitions that are defined in terms of others are non-terminals, those that are self-explanatory are terminals. All this works recursively. In short, this will give you an idea about this https://ru.m.wikipedia.org/wiki/Backus_Form_—_Naura
Well, read it like this: an identifier (identifier) ​​is a sequence of characters that may not be a digit (identifier-nondigit) either start with an identifier (recursion) and continue with a non-digit, or start with an identifier and continue with a digit (digit)
Next comes the deepening - what is identifier-nondigit, what is digit, and so on.

A
abcd0x00, 2016-07-26
@abcd0x00

Read more on this,
rfc will come in handy later. ABNF

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question