首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > C# > C # Packrat Parser

C # Packrat Parser

  • 资源大小:95.41 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签:

资 源 简 介

This library generates a C# parser for a language encoded into a Parsing Expression Grammar (PEG) along with optional semantic actions. The parser is implemented as a back-tracking recursive descent parser with memoization (i.e. a packrat parser) so it runs in linear time. The library has the follow advantages and disadvantages: +The language to be parsed is written using a PEG which provides an especially nice syntax for encoding languages (see the example below). +Parses are unambiguous: if a string parses then it has exactly one parse tree. +There is no need for a separate tokenization step. +The library makes it very easy to add semantic actions. +The library has good support for customizing error messages. +The library offers a lot of support for customization. -The library does not support left recursive rules. -The amount of memory used is proportional to the input size. -Not a lot of time

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP