如何指定亚历克斯词法分析器的标签宽度?
转换图是用于词法分析器和解析器的公共实现。
Transition diagrams are a common implementation for lexers and parsers.
输入过程的一个重要部分由词法分析器来进行。
An important part of the input process is carried out by the lexical analyzer.
如何使用一个亚历克斯一元词法分析器与快乐吗?
自己编写的比较简单的词法分析器,需要的人可以看看。
Their relatively simple preparation of the lexical analyzer, and we need people to see.
语法分析根据词法分析器提供的语法单元构造查询的语法树。
Lexic analysis constructs query semantic tree according to the semantic unit which lexic analyzer provides.
选择词法分析器还是语法分析器,其差别是值得考虑的。比如,规则。
There is considerable leeway in deciding whether to recognize structures using the lexical analyzer or grammar rules. For example, the rules.
一些情况下,当给定一个规范集合时,Yacc生成词法分析器会失败。
In some cases, Yacc fails to produce a parser when given a set of specifications.
因此,Perl5之上的P:RD是一个解析器与词法分析器的强大组合。
Thus, p: : RD on top of Perl 5 is a powerful parser and lexer combination.
前者会产生设计错误,后者一般能通过加强词法分析器来修复,或者重写其中一些语法规则。
The former cases represent design errors; the latter cases can often be corrected by making the lexical analyzer more powerful, or by rewriting some of the grammar rules.
由于词法分析器实际上只是优化,加工成令牌流数据分析器多,精神对待这一进程的两个部分几乎相同。
Since a lexical analyzer is actually nothing more than a parser optimized to process data into token streams, Spirit treats both parts of the process virtually identically.
例如,对于词法分析目的而言,这意味着可以用整数的词法分析器定义来构建实数和分数的词法分析器定义。
For lexing purposes, this means that the lexer definition of an integer number, for example, can be used to build the lexer definition of a real number and a fraction.
使用LR分析表的词法分析器,统一了词法分析器和语法分析器的构造方法,简化了编译程序的设计和构造。
The lexical analyzer using the LR parsing table unifies the construction method of lexical analyzer and syntax analyzer, simplifies the design and construction of compiler.
然后介绍了以S语言为源语言运用编译构造原理和实现技术设计s语言的编译程序的词法分析器的过程和关键技术。
Then regard s language as the source language and use the compile principle and realized technical to design the lexical analysis of s language.
词法分析器是我们的语言知识中识别“这是一个句子;这是标点;t wenty - three是一个单一的词”的那一部分。
The lexer is the part of our language knowledge that says "this is a sentence; this is punctuation; twenty-three is a single word."
一个脚本引擎通常包括的组件有:符号表、词法分析器、语法分析器、语义检查器、中间代码生成器、代码优化器、代码生成器、虚拟机。
The script engine has some components, include symbol table, lexical analyzer, parser, semantic checker, intermediate code generator, optimizer, code generator, virtual machine.
语法分析器完成词法分析和语法分析,建立具有多维语法结构的语法树。
The syntactic analyzer makes lexical analysis and syntactic analysis on the query, and sets up syntactic tree from the structure of the query.
该语法分析器有四个部件组成,分词程序、词法分析、语法分析和语义预置。
There are four components of the parser, word process, lexical analysis, syntax analysis and semantic preferences.
重点讨论了如何合理设置接口,以便综合运用词法、语法分析器的自动构造工具LEX和YACC。
How to set up the interface appropriately for using LEX and YACC is discussed as an emphasis.
重点讨论了如何合理设置接口,以便综合运用词法、语法分析器的自动构造工具LEX和YACC。
How to set up the interface appropriately for using LEX and YACC is discussed as an emphasis.
应用推荐