首页> 外文会议>2011 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 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号