Why is ::= used as assignment operator in doc statements?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • schaffe@gmail.com

    Why is ::= used as assignment operator in doc statements?

    Why is statments expressed with ::= as the assigning operator?
    like: http://docs.python.org/ref/grammar.txt

    br
  • Méta-MCI \(MVP\)

    #2
    Re: Why is ::= used as assignment operator in doc statements?

    Bonjour !

    it's a grammar description language, not python language.

    @-salutations

    Michel Claveau

    Comment

    • Ben Finney

      #3
      Re: Why is ::= used as assignment operator in doc statements?

      schaffe@gmail.c om writes:
      Why is statments expressed with ::= as the assigning operator?
      like: http://docs.python.org/ref/grammar.txt
      That page is part of the language reference. It shows, not Python
      code, but a description of part of the Python grammar. See §1.2
      <URL:http://www.python.org/doc/ref/notation.html>.

      --
      \ “A man must consider what a rich realm he abdicates when he |
      `\ becomes a conformist.” —Ralph Waldo Emerson |
      _o__) |
      Ben Finney

      Comment

      • Colin J. Williams

        #4
        Re: Why is ::= used as assignment operator in doc statements?

        Ben Finney wrote:
        schaffe@gmail.c om writes:
        >
        >Why is statments expressed with ::= as the assigning operator?
        >like: http://docs.python.org/ref/grammar.txt
        >
        That page is part of the language reference. It shows, not Python
        code, but a description of part of the Python grammar. See §1.2
        <URL:http://www.python.org/doc/ref/notation.html>.
        >
        Of historic interest is Extended
        Bachus-Naur Normal Form (EBNF):


        Colin W.

        Comment

        Working...