• DocumentCode
    2819927
  • Title

    Conditional evaluation in simple multi-visit attribute-grammar evaluators

  • Author

    Yang, Wuu

  • Author_Institution
    Dept. of Comput. & Inf. Sci., Nat. Chiao Tung Univ., Hsinchu, Taiwan
  • fYear
    1997
  • fDate
    2-5 Dec 1997
  • Firstpage
    455
  • Lastpage
    464
  • Abstract
    Attribute grammars are a formalism for specifying computations on context-free languages. Due to the nonstrictness of the if constructs in attribution equations, it is possible to avoid evaluating certain attribute instances in a syntax tree. A dynamic evaluator can easily avoid such useless computations with a demand-driven approach. However, dynamic evaluators are not efficient because they need to keep the attribute dependence graph during evaluation, and they need to decide an evaluation order for each syntax tree. In contrast, a visit-oriented (static) evaluator can carefully re-arrange the evaluation order and still avoid unnecessary computations. We propose such a technique in this paper
  • Keywords
    attribute grammars; context-free languages; trees (mathematics); attribute dependence graph; attribution equations; computations; conditional evaluation; context-free languages; demand-driven approach; dynamic evaluator; if constructs; multi-visit attribute grammar evaluators; static evaluator; syntax tree; visit-oriented evaluator; Computational Intelligence Society; Equations; Information science; Mars; Performance evaluation; Tree graphs;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Software Engineering Conference, 1997. Asia Pacific ... and International Computer Science Conference 1997. APSEC '97 and ICSC '97. Proceedings
  • Print_ISBN
    0-8186-8271-X
  • Type

    conf

  • DOI
    10.1109/APSEC.1997.640202
  • Filename
    640202