Where can I find the complete official “grammar book” of Python or C?

I'm currently working a lot with Python and C in my private life.

However, I wonder where one can find the official rules for complete grammar, etc.

For example, it is based on the Backus-Naur form, in which you can understand exactly how the basic building blocks of Python are defined.

I'm still relatively new to this, so it's possible that I've described a few things incorrectly.

(1 votes)
Loading...

Similar Posts

Subscribe
Notify of
5 Answers
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
raphaelbud
5 months ago

Hey.

For Python you will find the official grammar in Backus-Naur-Form in the Language Reference: here the link to grammar.

For C look in the ISO C standard (ISO/IEC 9899), there is everything described in detail. However, a freely accessible source is not available directly, you should buy the ISO standards or access unofficial summaries.

KarlRanseierIII
5 months ago
Reply to  Anonym6262727

Yes, this is the complete grammar – why should it be bigger?

The grammar of C is usually found in Annex A to the standard.

jo135
5 months ago
Reply to  raphaelbud

or access unofficial summaries.

Don’t have to be. The final versions are paid, but the drafts are not. You can therefore simply use the most up-to-date draft (the differences to the published standard are usually only tiny editorial corrections). See https://en.cppreference.com/w/c/links

Also valid for C++.

12345662342gfg
5 months ago

W3-school explains that