Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This target is incorporated into the 3.5 ANTLR release.

Here are two examples using the C++ target (option language=Cpp).

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. 

...

typedef TLexerTraits TParserTraits;

}

j) There is a small difference between Cpp target and Java Target. Since C++ Target has to work with a header file and a source file, @members section in Java is split into @context (for inserting into header file) and @members (for inserting into cpp file). This is consistent with C-Target behavior

Any suggestions on the API are welcome.