Sunday, December 21, 2008

Tuesday, November 4, 2008

Using Boost Spirit2 parse Http Message

Boost Spirit2 is a parser, lexer, formatter
easy to learn
easy to use
easy to integerate , all code wroted by yourself. It is not a source code generator....
BNF concept
metaprogramming using attributes...


the source code link:
http://docs.google.com/Doc?id=ddcpkw86_18r5zmtdn

Tuesday, October 28, 2008

Using Bjam In my Projects

Using Bjam In my Projects


Concept of Bjam in Boost.Build

*every element must be seperated by blank/tab/CRLN
*the only variable type is string list
*Project file can be Jamroot or Jamfile. Jamroot should using as root Project file name
*Project file composed by target builds, all target builds described by rules.
*rule is described by properties.

What is Rule?
Every kind of rule has following definition.
rulename : targets : sources : requirements : default-build : usage-requirements;

What is project rule?
project rule is a definition of project, it affects all other target builds.
requirements part of project describe properties they are necessary for project,
for example property indicate other build target to find source code file.
you can also specify condition properties at here to choose correct build targets.
default-build contains default properties when they not specified in command line.
usage-requirements contain properties they will be propagate to other projects
which using and depend them.


source code link:
http://docs.google.com/View?docid=ddcpkw86_0dfrdfqg8