-
前些天写了个小语言的词法分析程序,因为前些天在VC知识库看到一个pascal词法分析的程序,觉得写得挺复杂的。其实词法分析程序的原理都是一样的,所以我想只要搞明...
前些天写了个小语言的词法分析程序,因为前些天在VC知识库看到一个pascal词法分析的程序,觉得写得挺复杂的。其实词法分析程序的原理都是一样的,所以我想只要搞明白了简单的词法分析程序,再写复杂的就不难了,无非是多加几个关键字,多写几个条件判断语句而已。词法分析是编译程序的基础,也是最简单的。好,现在让我们看程序吧。 先让我们看看这个小语言的文法吧-few days ago wrote a small language lexical analysis procedures, because the other day in the knowledge base to see a VC pascal lexical analysis procedures, find that quite complex. In fact, lexical analysis procedure is the same principle, I think if you understood a simple lexical analysis procedure to write complex it is not difficult, is nothing but add a few keywords and writing several conditions judgment statement it. Lexical analysis is the basis of compilers, as well as the most simple. Well, now let us look at the procedures it. Let us look at this small language grammar it
- 2022-08-08 01:17:36下载
- 积分:1
-
单词频率统计,再次基础上可以开展更广泛的工作
单词频率统计,再次基础上可以开展更广泛的工作- The word frequency statistics, in the foundation may do a more
widespread work once more
- 2022-03-30 19:35:53下载
- 积分:1
-
词法分析器比较好,运行是输入要分析的程序路径.
词法分析器比较好,运行是输入要分析的程序路径.-lexical analyzer better, it is the operation of procedures to analyze the path.
- 2023-07-21 06:55:03下载
- 积分:1
-
Full support for extended regular expressions (those with intersection and compl
Full support for extended regular expressions (those with intersection and complement); Support for some kinds of cycles in grammar; DFA-based operation; Unicode support; C++ only, requires a modern compiler; Lexical analyzers can be configured to get symbols from any input class (built-in support for std::istream, std::wistream and FILE *); Designed to work with Whale, but can work standalone or interface to other parsers.-Full support for extended regular expressions (those with
intersection and complement); Support for some kinds of cycles in
grammar; DFA-based operation; Unicode support; C only, requires a
modern compiler; Lexical analyzers can be configured to get symbols
from any input class (built-in support for std::istream, std::wistream
and FILE*); Designed to work with Whale, but can work standalone or
interface to other parsers.
- 2022-05-27 12:54:56下载
- 积分:1
-
预测分析法实现的语法分析器
预测分析法实现的语法分析器 -Forecast and Analysis Method syntax analyzer Forecast and Analysis Method of Grammar Analyzer Forecast and Analysis Method syntax analyzer
- 2022-03-15 04:53:12下载
- 积分:1
-
small c for dos/z80
small c for dos/z80
- 2022-02-03 09:37:15下载
- 积分:1
-
构造接受语言{{}}的一台自动机,对于任意输入的一个字符串,模拟其运行过程,判断字符串是否接受。...
构造接受语言{{}}的一台自动机,对于任意输入的一个字符串,模拟其运行过程,判断字符串是否接受。-structure acceptable language (()) of an automatic machine for the indiscriminate importation of a string, its process simulation, the judge whether to accept the string.
- 2022-05-12 11:44:55下载
- 积分:1
-
用c51的键盘扫描
用c51的键盘扫描-C51 with keyboard scanning
- 2022-06-13 02:27:21下载
- 积分:1
-
在语言环境下写的个人简历,包括三…
在XML语言环境下写的个人简历,包含三个文件,XML文件、SCHEMA文件、CSS文件-In the XML language environment written biographical notes, including the three files, XML files, SCHEMA files, CSS files
- 2022-01-22 04:14:22下载
- 积分:1
-
编译
Compile-CC编译器源代码.rar,是学习编译原理和C语言的好例子!-Compile-CC compiler source code. Rar, learning theory and compile C language a good example!
- 2022-06-28 05:34:31下载
- 积分:1