搜索资源列表
antlr-3.0b5.tar
- ANTLR(ANother Tool for Language Recognition)它是这样的一种工具,它可以接受词文法语言描述,并能产生识别这些语言的语句的程序。作为翻译程序的一部分,你可以使用简单的操作符和动作来参数化你的文法,使之告诉ANTLR怎样去创建抽象语法树(AST)和怎样产生输出。ANTLR知道怎样去生成识别程序,语言包括Java,C++,C#. -distributions (ANother Tool for Language Recognit ion) it is a to
tut5
- 用词法分析对简单语言进行一个一遍扫描的编译程序-term analysis of a simple language what the compiler scanning
pl/0
- /*PL/0编译系统C版本头文件pl0.h*/ /* typedef enum { false, true } bool; */ #define norw 13 /*关键字个数*/ #define txmax 100 /*名字表容量*/ #define nmax 14 /*number的最大位数*/ #define al 10
递归下降分析器
- 目的】 使用递归子程序法设计一个语法分析程序,理解自顶向下分析方法的原理,掌握手工编写语法分析程序的方法。 【要求】 1、使用递归下降分析算法分析表达式文法: exp ::= exp addop term | term addop ::= + | - term ::= term mulop factor | factor mulop ::= * | / factor ::= (exp) | number 其中number可以是多位的十进制数字串(整数即可),因此这里还需要一个小的词法分析器来得到
Lexical_analysis
- 编译器中词法分析部分,是基于正则表达式的词法分析,包括了代码,演示PPT,要分析的代码和分词结果-Compiler in the lexical analysis part of the regular expressions based on lexical analysis, including the code, demo PPT, to analyze the code and sub-term results
tiny-parse
- Syntax of TINY+ An EBNF grammar for TINY+ is as follows (Strings in bold are terminals): 1. program -> declarations stmt-sequence 2. declarations -> decl declarations |² 3. decl -> type-specifi er varlist 4. type-speci
YFFXQ
- 使用递归子程序法设计一个语法分析程序,自顶向下分析方法. 1、使用递归下降分析算法分析表达式文法: exp ::= exp addop term | term addop ::= + | - term ::= term mulop factor | factor mulop ::= * | / factor ::= (exp) | number 其中number可以是多位的十进制数字串(整数即可),因此这里还需要一个小的词法分析器来得到number的值。 2、该
porter-stemmer
- The Porter stemming algorithm (or ‘Porter stemmer’) is a process for removing the commoner morphological and inflexional endings from words in English. Its main use is as part of a term normalisation process that is usually done when setting up Infor
1
- 编译原理实验 表达式翻译器:一个中缀表达式到后缀表达式的翻译器 表达式文法及其翻译模式定义如下: expr expr + term {print(‘+’)} | expr - term {print(‘-’)}| term term term * factor {print(‘*’)} | term / factor {print(‘/’)} | factor factor ( expr ) | id {print(id.