Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Out of Beta

The C++ Target was mainly written in order to incorporate the C++ way of doing things into ANTLR. The C Target instructions work as it is with the C++ Target, with some additional stuffs. Note that this is still in beta stage. 

a) @namespace is a section which can be defined to provide the namespace, in which the new parser/lexer should get generated.The code below, if put into lexer and parser will create them in this namespace.

...

c) It works on both Windows and Linux and tested on Visual Studio 2010, Visual Studio 2008 and g++ 4.4.6. Other compiler supports are not guaranteedIt should work with other compilers without much issue.

d) Almost everything in the C++ Library can be customized to the user's requirements. They should be provided in the form of Traits named after the lexer and parser to be generated. The attachment above also provides two examples explaining the same.

...