【24h】

An object-oriented LL(1) parser generator

机译:面向对象的LL(1)解析器生成器

获取原文
获取原文并翻译 | 示例
           

摘要

This paper describes oops, an object-oriented parser generator implemented in Java [1]. Oops takes a grammar written in EBNF, checks that is is indeed LL(1), i.e., suitable for recursive descent parsing, and produces a parser as a set of serialized objects. A scanner must be provided and classes satisfying certain interfaces can be implemented which the parser uses to build parse trees. The paper discusses the ideas behind oops - which are not specific to an implementation in Java - and shows the advantages of an object-oriented approach to grammar verification and parsing.
机译:本文介绍了oops,它是用Java [1]实现的面向对象的解析器生成器。 Oops采用用EBNF编写的语法,检查确实是LL(1),即适合于递归下降解析,并生成一个解析器作为一组序列化对象。必须提供扫描程序,并且可以实现满足某些接口的类,解析器使用这些类来构建解析树。本文讨论了oops背后的思想-这些思想并非特定于Java中的实现-并展示了面向对象的语法验证和解析方法的优点。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号