{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,8,21]],"date-time":"2026-08-21T19:30:18Z","timestamp":1787340618192,"version":"build-2736575974"},"reference-count":19,"publisher":"Society for Industrial & Applied Mathematics (SIAM)","issue":"4","content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["SIAM J. Comput."],"published-print":{"date-parts":[[1981,11]]},"abstract":"<jats:p>The problem of constructing multi-pass evaluators for attribute grammars is studied. We show that the construction algorithm used heretofore can in the worst case produce evaluators which perform $2n - 1$ passes over the parse tree, where n is the minimum number of passes required. Furthermore, the problem of constructing an optimal evaluation order is shown to be NP-complete. We then develop a new characterization for attribute grammars evaluable in passes. It can be directly applied as an efficient membership test. Finally, the characterization is used for deriving a polynomial time construction algorithm for a large subclass of pass-oriented attribute grammars. The subclass is argued to be of practical importance.<\/jats:p>","DOI":"10.1137\/0210060","type":"journal-article","created":{"date-parts":[[2005,2,24]],"date-time":"2005-02-24T06:24:20Z","timestamp":1109226260000},"page":"772-786","source":"Crossref","is-referenced-by-count":10,"title":["Minimizing the Number of Evaluation Passes for Attribute Grammars"],"prefix":"10.1137","volume":"10","author":[{"given":"Kari-Jouko","family":"R\u00e4ih\u00e4","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Esko","family":"Ukkonen","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"351","published-online":{"date-parts":[[2006,7,13]]},"reference":[{"key":"R1","volume-title":"The design and analysis of computer algorithms","author":"Aho Alfred V.","year":"1975"},{"key":"R2","doi-asserted-by":"publisher","DOI":"10.1145\/359997.359999"},{"key":"R3","first-page":"337","volume-title":"Le Point sur la Compilation, Cours de la Commission des Communaut\u00e9s Europ\u00e9ennes","author":"Giegerich R.","year":"1978"},{"key":"R4","doi-asserted-by":"publisher","DOI":"10.1016\/0020-0190(78)90017-0"},{"key":"R5","unstructured":"M. Jazayeri,  On attribute grammars and the semantic specification of programming languages, Report, 1159, Jennings Comp. Center, Case Western Reserve Univ., Cleveland, OH,  1974"},{"key":"R6","unstructured":"M. Jazayeri,  Live variable analysis, attribute grammars, and program optimization,  1975, manuscript, Dept. of Computer Science, University of North Carolina, Chapel Hill, NC"},{"key":"R7","unstructured":"M. Jazayeri, D. Pozefsky,  Algorithms for efficient evaluation of multi-pass attribute grammars without a parse tree, Report, TR 77-001, Dept. of Computer Science, University of North Carolina, Chapel Hill, NC,  1977, revised 1979"},{"key":"R8","unstructured":"M. Jazayeri, D. Pozefsky,  Space-efficient storage management in an attribute grammar evaluator, Report, TR 79-007, Dept. of Computer Science, University of North Carolina, Chapel Hill, NC,  1979"},{"key":"R9","doi-asserted-by":"crossref","unstructured":"M. Jazayeri, K. G. Walter,  Alternating semantic evaluator,  Proc. ACM 1975 Annual Conference,  1975,  230\u2013234","DOI":"10.1145\/800181.810328"},{"key":"R10","doi-asserted-by":"publisher","DOI":"10.1007\/BF01692511"},{"key":"R11","doi-asserted-by":"publisher","DOI":"10.1016\/S0022-0000(74)80045-0"},{"key":"R12","doi-asserted-by":"publisher","DOI":"10.1145\/322063.322075"},{"key":"R13","unstructured":"D. Pozefsky,  Building efficient pass-oriented attribute grammar evaluators, Report, TR 79-006, Dept. of Computer Science, University of North Carolina, Chapel Hill, NC,  1979"},{"key":"R14","doi-asserted-by":"crossref","unstructured":"D. Pozefsky, M. Jazayeri,  A family of pass-oriented attribute grammar evaluators,  Proc. ACM 1978 Annual Conference,  1978,  261\u2013270","DOI":"10.1145\/800127.804108"},{"key":"R15","unstructured":"K.J. R\u00e4ih\u00e4,  On attribute grammars and their use in a compiler writing system, Report, A-1977-4, Dept. of Computer Science, University of Helsinki,  1977"},{"key":"R16","unstructured":"K.J. R\u00e4ih\u00e4, M. Saarinen, E. Soisalon-Soininen, M. Tienari,  The compiler writing system HLP (Helsinki Language Processor), Report, A-1978-2, Dept. of Computer Science, University of Helsinki,  1978"},{"key":"R17","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-10003-2_94"},{"key":"R18","doi-asserted-by":"publisher","DOI":"10.1016\/0304-3975(81)90075-X"},{"key":"R19","doi-asserted-by":"publisher","DOI":"10.1137\/0201010"}],"container-title":["SIAM Journal on Computing"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/epubs.siam.org\/doi\/pdf\/10.1137\/0210060","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,8,21]],"date-time":"2026-08-21T18:41:38Z","timestamp":1787337698000},"score":1,"resource":{"primary":{"URL":"https:\/\/epubs.siam.org\/doi\/10.1137\/0210060"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[1981,11]]},"references-count":19,"journal-issue":{"issue":"4","published-print":{"date-parts":[[1981,11]]}},"alternative-id":["10.1137\/0210060"],"URL":"https:\/\/doi.org\/10.1137\/0210060","relation":{},"ISSN":["0097-5397","1095-7111"],"issn-type":[{"value":"0097-5397","type":"print"},{"value":"1095-7111","type":"electronic"}],"subject":[],"published":{"date-parts":[[1981,11]]}}}