Merge branch 'master-upstream'

This commit is contained in:
Mike Lischke 2017-06-04 12:13:56 +02:00
commit 4fdcff6f05
2 changed files with 3 additions and 3 deletions

View File

@ -49,7 +49,7 @@ using namespace org::antlr::v4::runtime;
class TreeShapeListener : public MyGrammarBaseListener { class TreeShapeListener : public MyGrammarBaseListener {
public: public:
void enterKey(Ref<ParserRuleContext> ctx) { void enterKey(ParserRuleContext *ctx) override {
// Do something when entering the key rule. // Do something when entering the key rule.
} }
}; };
@ -72,7 +72,7 @@ int main(int argc, const char* argv[]) {
``` ```
This example assumes your grammar contains a parser rule named `key` for which the enterKey function was generated. The `Ref<>` template is an alias for `std::shared_ptr<>` to simplify the runtime source code which often makes use of smart pointers. This example assumes your grammar contains a parser rule named `key` for which the enterKey function was generated.
## Specialities of this ANTLR target ## Specialities of this ANTLR target

View File

@ -53,7 +53,7 @@ public interface IntStream {
* filtering streams (e.g. {@link CommonTokenStream} which distinguishes * filtering streams (e.g. {@link CommonTokenStream} which distinguishes
* between "on-channel" and "off-channel" tokens). * between "on-channel" and "off-channel" tokens).
* *
* @throws IllegalStateException if an attempt is made to consume the the * @throws IllegalStateException if an attempt is made to consume the
* end of the stream (i.e. if {@code LA(1)==}{@link #EOF EOF} before calling * end of the stream (i.e. if {@code LA(1)==}{@link #EOF EOF} before calling
* {@code consume}). * {@code consume}).
*/ */