- 博客(44)
- 资源 (2)
- 收藏
- 关注
原创 boost.spirit用户手册翻译(35):重构分析器
Refactoring Parsers重构分析器There are three types of Refactoring Parsers implemented right now, which help to abstract common parser refactoring tasks. Parser refactoring means, th
2008-02-05 10:51:00
848
原创 boost.spirit用户手册翻译(36):正则表达式分析器
Regular Expression Parser正则表达式分析器Regular expressions are a form of pattern-matching that are often used in text processing. Many users will be familiar with the usage of regular
2008-02-05 10:51:00
1824
原创 boost.spirit用户手册翻译(37):范围锁
Scoped Lock范围锁scoped_lock_dThe scoped_lock_d directive constructs a parser that locks a mutex during the attempt to match the contained parser.scoped_lock_d定向器产生一个在尝试匹配所包含的分析器
2008-02-05 10:51:00
865
原创 boost.spirit用户手册翻译(34):仿函数分析器
Functor Parser仿函数分析器The simplest way to write your hand coded parser that works well with the rest of the Spirit library is to simply write a functor parser.使得你所写的代码能和Spirit其他部
2008-02-01 10:35:00
737
原创 boost.spirit用户手册翻译(33):列表分析器
List Parsers列表分析器List Parsers are generated by the special predefined parser generator object list_p, which generates parsers recognizing list structures of the type列表分析器生成自特殊
2008-02-01 10:23:00
844
原创 boost.spirit用户手册翻译(32):片段分析器
Confix Parsers片段分析器Confix Parsers 片段分析器Confix Parsers recognize a sequence out of three independent elements: an opening, an expression and a closing. A simple example is a C
2008-01-25 16:45:00
937
原创 boost.spirit用户手册翻译(31):字符集
Character Sets字符集The character set chset matches a set of characters over a finite range bounded by the limits of its template parameter CharT. This class is an optimization of
2008-01-22 23:07:00
1088
原创 boost.sprit用户手册翻译(30):循环
Loops循环So far we have introduced a couple of EBNF operators that deal with looping. We have the + positive operator, which matches the preceding symbol one (1) or more times, as
2008-01-18 15:43:00
1097
原创 boost.spirit用户手册翻译(29):转义字符分析器
Escape Character Parser转义字符分析器The Escape Character Parser is a utility parser, which parses escaped character sequences used in C/C++, LEX or Perl regular expressions. Combined
2008-01-17 09:02:00
1364
原创 boost.spirit用户手册翻译(28):跳转分析器
The Switch Parser跳转分析器Switch parsers may be used to simplify certain alternation constructs. Consider the following code:跳转分析器可用来简化选择的构建。考虑下面的代码: rule rule_overall =
2008-01-15 16:36:00
779
原创 boost.spirit用户手册翻译(27):选择分析器
The Select Parser选择分析器Select parsers may be used to identify a single parser from a given list of parsers, which successfully recognizes the current input sequence. Example:选择分
2008-01-14 14:40:00
734
原创 boost.spirit用户手册翻译(26):懒惰分析器
The Lazy Parser懒惰分析器Closures are cool. It allows us to inject stack based local variables anywhere in our parse descent hierarchy. Typically, we store temporary variables, gener
2008-01-14 14:24:00
912
原创 boost.Spirit用户手册翻译(23):闭包
Closures闭包Overview总括Using phoenix, in the previous chapter, weve seen how we can get data from our parsers using var:在上一章中,使用Phoenix,我们已经看到了如何用var从分析器中取得数据:int i; integer
2008-01-04 16:08:00
980
原创 boost.spirit用户手册翻译(22):Phoenix
PhoenixThe preceding chapter introduced Phoenix as a means to implementing your semantic actions. We shall look a little bit more into this important library with focus on how you
2008-01-02 22:59:00
1010
原创 翻译爪印
到目前为止,Spirit的用户手册的第一部分core翻译完成了,18节,三分之一弱。这个效率是相当低的,其实翻译一节的时间并不长,平均也就半个小时。但CSDN的blog实在太能打击人了,点击“发表”之后ie给出一个找不到服务器的的情况可以说是不计其数。还有n次无法刷出编辑界面的情况。不过我不会放弃的,一定会完整的翻译整个用户手册。
2007-12-05 11:44:00
1053
原创 Boost.Spirit用户手册翻译(14):子规则
Subrules子规则 Spirit is implemented using expression templates. This is a very powerful technique. Along with its power comes some complications. We almost take for granted that when we w
2007-04-06 16:24:00
1001
翻译 boost.spirit用户手册翻译(3):入门
Why would you want to use Spirit? 为什么使用Spirit?Spirit is designed to be a practical parsing tool. At the very least, the ability to generate a fully-working parser from a formal EBNF specification
2007-03-20 22:47:00
2559
1
翻译 boost.spirit用户手册翻译(2) 简介
Spirit is an object-oriented recursive-descent parser generator framework implemented using template meta-programming techniques. Expression templates allow us to approximate the syntax of Extended Ba
2007-03-20 13:01:00
1720
翻译 boost.Spirit用户手册(1):前言
"Examples of designs that meet most of the criteria for "goodness" (easy to understand, flexible, efficient) are a recursive-descent parser, which is traditional procedural code. Another example is t
2007-03-20 11:24:00
9175
1
原创 boost.spirit用户手册翻译(0)
换了一份工作,没有那么忙了,正好可以拿来翻译一下这个文档了。我的英文水平不怎的,翻译这个的目的一个是希望能把这个优秀而且极为优美的库介绍给更多的人,也同时能够提高自己的英文水平,翻译的文本肯定有很多谬误,希望各位能够指正。在翻译中,我会首先列出一段英文原文,下面跟着译文,对于原文吃不准,不知如何翻译的地方,都会在译文中加以说明,可能会给阅读带来不少麻烦,还请多多包涵。
2007-03-19 00:06:00
1265
原创 小小的感慨,基础知识的重要性
今天帮同事调程序,优化了一个SQL语句。直接执行这个SQL语句,12个小时出不来结果。分析了一下子,这个sql语句是三个表自然连接。然而最大的一张表,有32万条记录,第二张表有三千条,第三张有32条。于是自然连接的结果的数量级,至少在10^9以上,难怪12个小时没有结果。经过优化以后,不到1秒就有结果了。其实这个问题,只要对关系代数有最基本的了解,就可以避免了。可是写这个语句的同事,显然没有了解过
2006-12-07 22:31:00
1636
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人