Skip to content
  • Eckhart Arnold's avatar
    - refactoring of "components" finished: · 000b873e
    Eckhart Arnold authored
      Finally `component` has been renamed to `name`, i.e. there are some
      parsers that have a `name`. If a parser has a name this is used to
      describe nodes in the S-Expression of XML-Representation of the AST-Tree.
      Only in this latter sense, they are components of the AST-tree, but
      it is nicer to speak of a named parser.
      Names can be assign to Parsers on object initialization, or - more
      elegantly - they will be assigned by instantiating the Grammar class
      (which is always a descendant of the ParserHeadquarter class).
      In this case, those parsers that have been assigned to a
      class variable of the Grammar class will receive the variable's name
      as their parser name. This makes the python-compiled grammars more
      readable, because they are need not to be clutterd with (redundant)
      name assignments.
    000b873e