From 0b980e93b3c89ef6f6cfec8c7af1f745eff54fc0 Mon Sep 17 00:00:00 2001 From: Song Yang Date: Wed, 18 Mar 2020 15:10:45 -0400 Subject: [PATCH] Change to c++ block comments --- .../Cpp/runtime/src/tree/ParseTreeWalker.h | 47 +++++++++++-------- 1 file changed, 27 insertions(+), 20 deletions(-) diff --git a/runtime/Cpp/runtime/src/tree/ParseTreeWalker.h b/runtime/Cpp/runtime/src/tree/ParseTreeWalker.h index 9a173aa3d..166ad806b 100755 --- a/runtime/Cpp/runtime/src/tree/ParseTreeWalker.h +++ b/runtime/Cpp/runtime/src/tree/ParseTreeWalker.h @@ -16,31 +16,38 @@ namespace tree { virtual ~ParseTreeWalker(); - /// - /// Performs a walk on the given parse tree starting at the root and going down recursively - /// with depth-first search. On each node, is called before - /// recursively walking down into child nodes, then - /// is called after the recursive call to wind up. - /// - /// The listener used by the walker to process grammar rules - /// The parse tree to be walked on + /** + * + * Performs a walk on the given parse tree starting at the root and going down recursively + * with depth-first search. On each node, is called before + * recursively walking down into child nodes, then + * is called after the recursive call to wind up. + * + * The listener used by the walker to process grammar rules + * The parse tree to be walked on + */ virtual void walk(ParseTreeListener *listener, ParseTree *t) const; protected: - /// - /// Enters a grammar rule by first triggering the generic event - /// then by triggering the event specific to the given parse tree node - /// - /// The listener responding to the trigger events - /// The grammar rule containing the rule context + + /** + * + * Enters a grammar rule by first triggering the generic event + * then by triggering the event specific to the given parse tree node + * + * The listener responding to the trigger events + * The grammar rule containing the rule context + */ virtual void enterRule(ParseTreeListener *listener, ParseTree *r) const; - /// - /// Exits a grammar rule by first triggering the event specific to the given parse tree node - /// then by triggering the generic event - /// - /// The listener responding to the trigger events - /// The grammar rule containing the rule context + /** + * + * Exits a grammar rule by first triggering the event specific to the given parse tree node + * then by triggering the generic event + * + * The listener responding to the trigger events + * The grammar rule containing the rule context + */ virtual void exitRule(ParseTreeListener *listener, ParseTree *r) const; };