Python's BNF

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

    Python's BNF

    I spent too long Googling for Python's BNF. Eventually found it at
    Python.org, but only by accident.

    I've put Python's BNF here: http://www.martinrinehart.com/articl...parse-bnf.html

    Extensively cross-referenced.

    Addenda:

    No, Google, I didn't want the Botswana daily news with its article on
    the Botswana
    National Front and another on a fellow arrested for having contraband
    python skins.

    Did this with a Python program. Used to use Perl for this sort of
    thing. Doubt I'll ever write another line of Perl.

    There's a link to the program, top-right of page. If anyone wants to
    look at this no-longer-quite-newbie's code and give a constructive
    critique, I'd be grateful.
  • Arnaud Delobelle

    #2
    Re: Python's BNF

    On Feb 27, 5:23 pm, MartinRineh...@ gmail.com wrote:
    I spent too long Googling for Python's BNF. Eventually found it at
    Python.org, but only by accident.


    --
    Arnaud

    Comment

    • Ben Finney

      #3
      Re: Python's BNF

      MartinRinehart@ gmail.com writes:
      No, Google, I didn't want the Botswana daily news with its article
      on the Botswana National Front and another on a fellow arrested for
      having contraband python skins.
      +1 QOTW

      --
      \ “I thought ’'d begin by reading a poem by Shakespeare, but then |
      `\ I thought ‘Why should I? He never reads any of mine.’” |
      _o__) —Spike Milligan |
      Ben Finney

      Comment

      • MartinRinehart@gmail.com

        #4
        Re: Python's BNF

        Thanks so much Gabriel.

        Comment

        • MartinRinehart@gmail.com

          #5
          Re: Python's BNF


          Steve Holden wrote:
          I wish you'd stop trying to defend this code and simply admit that it's
          just a throwaway program to which no real significance should be
          attached. *Then* I'll leave you alone ;-)
          You're hurting my program's feelings!

          Actually, I intend to keep this program as the nice HTML version of
          the BNF that it produces is a big advance over the source from
          GvR. I'll rerun this from time to time to keep my BNF up to date.
          A second intent was to have the next sorry coder who searched for
          'Python BNF' get a better answer than I got, which is already the
          case.

          The discussion re globals is entirely academic, of course, with this
          little program being merely illustrative.

          Comment

          Working...