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

您现在的位置是:虫虫源码 > 其他 > 语法分析器(1)是抽象语法树节点的类。

语法分析器(1)是抽象语法树节点的类。

  • 资源大小:172.56 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: 分析器 语法 节点 抽象

资 源 简 介

The need for parsers There is a bunch of parser-generators out there, but only view generate recursive descent parsers for your LL(1) grammar. Anyway, usually you do not only need to check some input against your grammar; the common case is that you must perform custom logic on the parsed input. When building compilers, this logic is generally embedded in the nodes of your abstract syntax tree (AST), which is what a parser should output. Each node in the AST stands for an applied production of the grammar the parser recognizes. If you could define these nodes, then you could use your very own logic to process the input however you want. A compiler would do semantic checking and object code generation, a calculator would evaluate a formula, an BNF parser would determine whether a grammar is LL(1), LL(2), ... Deduce g

文 件 列 表

Beauty.dll
LICENSE.txt
README.txt
src
Beauty
Beauty.NUnit
Beauty.sln
Beauty.suo
VIP VIP
0.179212s