搜索资源列表
Expreesion
- 一个表达式和一棵二叉树之间,存在着自然的对应关系。写一个程序,实现基于二叉树表示的算术表达式Expression的操作。 【基本要求】 【一】【必做部分】 假设算术表达式Expression内可以含有变量(a-z),常量(0-9)和二元运算符(+,-,*,/,^(乘幂))。实现以下操作: (1)ReadExpr(E)――以字符序列的形式输入语法正确的前缀表达式并构造表达式E。 (2)WriteExpr(E)――用带括号的中缀表达式输出表达式E。 (3)Assign(V,c
Expresso
- The .NET framework provides a powerful class Regex for creating and using Regular Expressions. While regular expressions are a powerful way to parse, edit, and replace text, the complex syntax makes them hard to understand prone to errors, even for t
syntax-analysis
- 使用C语言写的语法分析小程序,要借助flex和bison工具,输入符合LCC语言语法的程序段,程序会输出语法树。-Using C language to write the syntax analysis of small programs, with the aid of bison and flex tools, input in accordance with the LCC syntax of the program segment, the program will output th
TokenAnalysis
- 用C++编写的语法分析器,对于给定的TOKEN序列能进行良好的分析,从而建立一棵语法树。-A grammar tree written in C++ provides a good parsing of a given TOKEN sequence to create a syntax tree.