Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify and expand documentation for runtime ParseTreeWalker #2782

Merged
merged 5 commits into from
Mar 22, 2020
Merged

Clarify and expand documentation for runtime ParseTreeWalker #2782

merged 5 commits into from
Mar 22, 2020

Conversation

songyang-dev
Copy link
Contributor

My pull request based on the issue #2759 and the answer given by @ericvergnaud . I applied the changes to all target languages. Hopefully, the documentation style conforms to all the target languages and is accepted by each respective compiler.


/// <summary>
/// Performs a walk on the given parse tree starting at the root and going down recursively
/// with depth-first search. On each node, <seealso cref="ParseTreeWalker#enterRule"/> is called before
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not use block comments?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ill change this into blocks

/// with depth-first search. On each node,
/// <see cref="ParseTreeWalker.EnterRule(IParseTreeListener, IRuleNode)"/> is called before
/// recursively walking down into child nodes, then
/// <see cref="ParseTreeWalker.ExitRule(IParseTreeListener, IRuleNode)"/>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not use block comments?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/// line comments are the de-facto standard for C# code. Java-style /** */ are technically allowed, but nearly non-existent in the wild.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

microsoft uses triple slashes on their c# documentation so I thought of doing the same

@ericvergnaud
Copy link
Contributor

thanks song yang
@parrt blessed

@parrt parrt merged commit 4779b8f into antlr:master Mar 22, 2020
@parrt parrt added this to the 4.9 milestone Nov 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants