完整後設資料紀錄
DC 欄位語言
dc.contributor.authorYang, Wen_US
dc.contributor.authorTsay, CWen_US
dc.contributor.authorChan, JTen_US
dc.date.accessioned2014-12-08T15:41:55Z-
dc.date.available2014-12-08T15:41:55Z-
dc.date.issued2002-10-01en_US
dc.identifier.issn1477-8424en_US
dc.identifier.urihttp://dx.doi.org/10.1016/S0096-0551(02)00014-0en_US
dc.identifier.urihttp://hdl.handle.net/11536/28507-
dc.description.abstractThe lexical analyzer of a compiler usually adopts the longest-match rule to resolve ambiguities when deciding the next token in the input stream. However, that rule may not be applicable in all situations. Because the longest-match rule is widely used, a language designer or a compiler implementor frequently overlooks the subtle implications of the rule. The consequence is either a flawed language design or a deficient implementation. We propose a method that automatically checks the applicability of the longest-match rule and identifies precisely the situations in which that rule is not applicable. The method is useful to both language designers and compiler implementors. In particular, the method is indispensable to automatic generators of language translation systems since, without the method, the generated lexical analyzers can only blindly apply the longest-match rule and this results in erroneous behaviors. The crux of the method consists of two algorithms: one is to compute the regular set of the sequences of tokens produced by a nondeterministic Mealy automaton when the automaton processes elements of an input regular set. The other is to determine whether a regular set and a context-free language have nontrivial intersection with a set of equations. (C) 2002 Elsevier Science Ltd. All rights reserved.en_US
dc.language.isoen_USen_US
dc.subjectcompileren_US
dc.subjectcontext-free grammaren_US
dc.subjectfinite-state automatonen_US
dc.subjectlexical analyzeren_US
dc.subjectMealy automatonen_US
dc.subjectMoore automatonen_US
dc.subjectparseren_US
dc.subjectregular expressionen_US
dc.subjectscanneren_US
dc.titleOn the applicability of the longest-match rule in lexical analysisen_US
dc.typeArticleen_US
dc.identifier.doi10.1016/S0096-0551(02)00014-0en_US
dc.identifier.journalCOMPUTER LANGUAGES SYSTEMS & STRUCTURESen_US
dc.citation.volume28en_US
dc.citation.issue3en_US
dc.citation.spage273en_US
dc.citation.epage288en_US
dc.contributor.department資訊工程學系zh_TW
dc.contributor.departmentDepartment of Computer Scienceen_US
dc.identifier.wosnumberWOS:000181112400002-
dc.citation.woscount2-
顯示於類別:期刊論文


文件中的檔案:

  1. 000181112400002.pdf

若為 zip 檔案,請下載檔案解壓縮後,用瀏覽器開啟資料夾中的 index.html 瀏覽全文。