首页> 外文会议>Federated Conference on Computer Science and Information Systems >Checking the conformance of grammar refinements with respect to initial context-free grammars
【24h】

Checking the conformance of grammar refinements with respect to initial context-free grammars

机译:检查语法改进方面关于初始无背景语法的一致性

获取原文

摘要

According to this paper, to refine an initial context-free grammar supposes to devise an equivalent grammar that preserves the main syntactic structures of the initial one while making explicit other structural characteristics (e.g., associativity and priority of the operators in an expression language). Although, generally speaking, checking the equivalence of two context-free grammars is an undecidable problem, in the scenario of grammar refinement it is possible to exploit the relationships between the initial grammar and the grammar refinement to run a heuristic conformance test. These relationships must be made explicit by associating core nonterminal symbols in the initial grammar with core non-terminal symbols in the grammar refinement. Once it is made, it is possible to base the heuristic test on searching regular expressions involving both terminal and core non-terminal symbols that describe each core non-terminal symbol, and on checking the equivalence of carefully chosen pairs of such regular expressions. The paper describes the method and illustrates it with an example.
机译:根据本文,为了改进初始的无内容语法,该名称假设设计了一种等效的语法,这些语法可以保留初始一体的主要句法结构,同时制作明确的其他结构特征(例如,以表达语言的运营商的关联和优先级)。虽然一般而言,检查两种无背景语法的等价性是一个不可接定的问题,但在语法细化的情况下,可以利用初始语法和语法细化之间的关系来运行启发式一致性测试。必须通过将初始语法中的核心非终端符号与语法改进中的核心非终端符号相关联,明确地进行这些关系。一旦制作,就可以基于搜索涉及描述每个核心非终端符号的终端和核心非终端符号的正则表达式的启发式测试,以及检查仔细选择的这种正则表达式对的等价性。本文描述了该方法并用示例说明了它。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号